Re: dh_movefiles, tar vs. mv

2005-02-27 Thread Adeodato Simó
* Brian May [Mon, 28 Feb 2005 09:05:01 +1100]: > A benefit of moving files, rather then copying, is that you get to see > at a glance what files your package left behind and missed in > debian/tmp (e.g. if upstream adds new files to the packages but > doesn't document these additions). FWIW, th

Re: dh_movefiles, tar vs. mv

2005-02-27 Thread Brian May
> "Christoph" == Christoph Berg <[EMAIL PROTECTED]> writes: Christoph> As I understood it, the question was about moving stuff Christoph> from debian/tmp to debian/package. The stuff in Christoph> debian/tmp should get removed by the clean target Christoph> anyway, so it doesn'

Re: dh_movefiles, tar vs. mv

2005-02-26 Thread Adeodato Simó
* Daniel Burrows [Sat, 26 Feb 2005 13:42:28 -0500]: > On Saturday 26 February 2005 01:37 pm, Adeodato Simó wrote: > >   I remember that I once modified my dh_install to use cp -al. That will > >   make each file be a hardlink, even if you copy a dir. It's fast. > >   I wouldn't mind that dh_insta

Re: dh_movefiles, tar vs. mv

2005-02-26 Thread Daniel Burrows
On Saturday 26 February 2005 01:37 pm, Adeodato Simó wrote: > * Frank Küster [Sat, 26 Feb 2005 19:34:45 +0100]: > > I didn't look closely, but I think it might need quite some changes to > > the code. It seems dh_install uses cp -a for directories, and you cannot > > use hard links with directories

Re: dh_movefiles, tar vs. mv

2005-02-26 Thread Frank Küster
Colin Watson <[EMAIL PROTECTED]> wrote: > My point is that half the reason why dh_install was introduced instead > of dh_movefiles is to copy files, not move them, and it seems odd that > now there's a thread asking how to get dh_install to move files. If you > want to move files, don't use dh_ins

Re: dh_movefiles, tar vs. mv

2005-02-26 Thread Adeodato Simó
* Frank Küster [Sat, 26 Feb 2005 19:34:45 +0100]: > I didn't look closely, but I think it might need quite some changes to > the code. It seems dh_install uses cp -a for directories, and you cannot > use hard links with directories (at least not generally, here on my ext3 > $HOME it does not work.

Re: dh_movefiles, tar vs. mv

2005-02-26 Thread Frank Küster
Oliver Kurth <[EMAIL PROTECTED]> schrieb: > On Fri, 2005-02-25 at 20:25 +0100, GOMBAS Gabor wrote: >> On Fri, Feb 25, 2005 at 07:54:27PM +0100, Frank Küster wrote: >> >> > Correct. So, why not use mv? >> >> Add a new "--move" flag to dh_installfiles, come up with some exact >> numbers showing th

Re: dh_movefiles, tar vs. mv

2005-02-26 Thread Joe Wreschnig
On Fri, 2005-02-25 at 11:32 -0800, Oliver Kurth wrote: > On Fri, 2005-02-25 at 20:25 +0100, GOMBAS Gabor wrote: > > On Fri, Feb 25, 2005 at 07:54:27PM +0100, Frank KÃster wrote: > > > > > Correct. So, why not use mv? > > > > Add a new "--move" flag to dh_installfiles, come up with some exact > >

Re: dh_movefiles, tar vs. mv

2005-02-25 Thread Colin Watson
On Fri, Feb 25, 2005 at 08:59:00PM +0100, Frank Küster wrote: > Colin Watson <[EMAIL PROTECTED]> schrieb: > > On Fri, Feb 25, 2005 at 07:54:27PM +0100, Frank Küster wrote: > >> Christoph Berg <[EMAIL PROTECTED]> schrieb: > >> > Re: Daniel Burrows in <[EMAIL PROTECTED]> > >> >> I'd imagine that it

Re: dh_movefiles, tar vs. mv

2005-02-25 Thread Joey Hess
Frank Küster wrote: > Colin Watson <[EMAIL PROTECTED]> schrieb: > > > On Fri, Feb 25, 2005 at 07:54:27PM +0100, Frank Küster wrote: > >> Christoph Berg <[EMAIL PROTECTED]> schrieb: > >> > Re: Daniel Burrows in <[EMAIL PROTECTED]> > >> >> I'd imagine that it doesn't use mv for the same reason "in

Re: dh_movefiles, tar vs. mv

2005-02-25 Thread Frank Küster
Colin Watson <[EMAIL PROTECTED]> schrieb: > On Fri, Feb 25, 2005 at 07:54:27PM +0100, Frank Küster wrote: >> Christoph Berg <[EMAIL PROTECTED]> schrieb: >> > Re: Daniel Burrows in <[EMAIL PROTECTED]> >> >> I'd imagine that it doesn't use mv for the same reason "install" >> >> doesn't; >> >> ie

Re: dh_movefiles, tar vs. mv

2005-02-25 Thread Oliver Kurth
On Fri, 2005-02-25 at 20:25 +0100, GOMBAS Gabor wrote: > On Fri, Feb 25, 2005 at 07:54:27PM +0100, Frank Küster wrote: > > > Correct. So, why not use mv? > > Add a new "--move" flag to dh_installfiles, come up with some exact > numbers showing the build time/disk usage savings for your favorite B

Re: dh_movefiles, tar vs. mv

2005-02-25 Thread Colin Watson
On Fri, Feb 25, 2005 at 07:54:27PM +0100, Frank Küster wrote: > Christoph Berg <[EMAIL PROTECTED]> schrieb: > > Re: Daniel Burrows in <[EMAIL PROTECTED]> > >> I'd imagine that it doesn't use mv for the same reason "install" > >> doesn't; > >> ie, its purpose is to COPY files, not MOVE them. > >

Re: dh_movefiles, tar vs. mv

2005-02-25 Thread GOMBAS Gabor
On Fri, Feb 25, 2005 at 07:54:27PM +0100, Frank Küster wrote: > Correct. So, why not use mv? Add a new "--move" flag to dh_installfiles, come up with some exact numbers showing the build time/disk usage savings for your favorite Big Package (hard numbers usually very helpful for promoting new fea

Re: dh_movefiles, tar vs. mv

2005-02-25 Thread GOMBAS Gabor
On Fri, Feb 25, 2005 at 01:14:00PM -0500, Daniel Burrows wrote: > Anyway, I thought you were joking in your first message, but it looks like > you're serious, so I'll answer this time. If you're copying between files on > the same device, mv will use the rename(2) system call, which is an ato

Re: dh_movefiles, tar vs. mv

2005-02-25 Thread Frank Küster
Eric Dorland <[EMAIL PROTECTED]> wrote: > * Frank Küster ([EMAIL PROTECTED]) wrote: >> >> Well, fine. But the question remains: dh_install uses cp, not mv. What >> is the problem with using mv? And would it be safe to use mv if I only >> move complete directories? > > Well one reason is sometim

Re: dh_movefiles, tar vs. mv

2005-02-25 Thread Frank Küster
Christoph Berg <[EMAIL PROTECTED]> schrieb: > Re: Daniel Burrows in <[EMAIL PROTECTED]> >> I'd imagine that it doesn't use mv for the same reason "install" doesn't; >> ie, its purpose is to COPY files, not MOVE them. > > As I understood it, the question was about moving stuff from > debian/tmp

Re: dh_movefiles, tar vs. mv

2005-02-25 Thread Eric Dorland
* Frank Küster ([EMAIL PROTECTED]) wrote: > Eric Dorland <[EMAIL PROTECTED]> schrieb: > > > * Frank Küster ([EMAIL PROTECTED]) wrote: > >> Hi, > >> > >> dh_movefiles internally uses tar to move file contents. I'm not sure why > >> it doesn't use mv, is it because mv moves the file block-by-block

Re: dh_movefiles, tar vs. mv

2005-02-25 Thread Christoph Berg
Re: Daniel Burrows in <[EMAIL PROTECTED]> > I'd imagine that it doesn't use mv for the same reason "install" doesn't; > ie, its purpose is to COPY files, not MOVE them. As I understood it, the question was about moving stuff from debian/tmp to debian/package. The stuff in debian/tmp should get

Re: dh_movefiles, tar vs. mv

2005-02-25 Thread Daniel Burrows
On Friday 25 February 2005 12:36 pm, Frank Küster wrote: > Well, fine. But the question remains: dh_install uses cp, not mv.  What > is the problem with using mv?  And would it be safe to use mv if I only > move complete directories? I'd imagine that it doesn't use mv for the same reason "instal

Re: dh_movefiles, tar vs. mv

2005-02-25 Thread Frank Küster
Eric Dorland <[EMAIL PROTECTED]> schrieb: > * Frank Küster ([EMAIL PROTECTED]) wrote: >> Hi, >> >> dh_movefiles internally uses tar to move file contents. I'm not sure why >> it doesn't use mv, is it because mv moves the file block-by-block and >> thus starts removing parts of the file before it

Re: dh_movefiles, tar vs. mv

2005-02-23 Thread Frank Küster
Eric Dorland <[EMAIL PROTECTED]> wrote: > Uhh, who cares? dh_movefiles has been superseded by dh_install. Oh, thank you for pointing out the obvious. Regards, Frank -- Frank Küster Inst. f. Biochemie der Univ. Zürich Debian Developer

Re: dh_movefiles, tar vs. mv

2005-02-23 Thread Eric Dorland
* Frank Küster ([EMAIL PROTECTED]) wrote: > Hi, > > dh_movefiles internally uses tar to move file contents. I'm not sure why > it doesn't use mv, is it because mv moves the file block-by-block and > thus starts removing parts of the file before it is completely written, > and hence is less save? >

dh_movefiles, tar vs. mv

2005-02-23 Thread Frank Küster
Hi, dh_movefiles internally uses tar to move file contents. I'm not sure why it doesn't use mv, is it because mv moves the file block-by-block and thus starts removing parts of the file before it is completely written, and hence is less save? Anyway: If I am only going to move complete subdirecto