[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh_movefiles, tar vs. mv

Oliver Kurth <okurth@gmx.net> 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 the build time/disk usage savings for your favorite Big
>> Package (hard numbers usually very helpful for promoting new features),
>> and send the numbers together with the patch to the debhelper maintainer. 
>> Someone already mentioned that a complex package might want to install
>> the same file to multiple different locations, so making this the
>> default is probably not feasible.
> How about hard linking with ln instead? You would have the best of both
> approaches: it is fast, and still possible to have the same file in
> multiple packages.

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. And I suspect it could end in great mess). 

Regards, Frank

Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer

Reply to: