Mailinglist Archive: opensuse-packaging (135 mails)

< Previous Next >
Re: [opensuse-packaging] %fdupes
  • From: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>
  • Date: Wed, 29 Aug 2007 19:35:59 +0200 (CEST)
  • Message-id: <Pine.LNX.4.64.0708290650030.24730@xxxxxxxxxxxxxxxxxxxxxxxxx>

On Aug 24 2007 17:52, Vladimir Nadvornik wrote:
>> It's pretty simple: BuildRequire fdupes and then use "%fdupes
>> $RPM_BUILD_ROOT" in your install section. This will check for duplicated
>> files and make them hardlink. Just be careful that these duplicated files
>> do not end up in different subpackages - I haven't tried what rpm does in
>> that case.
>
>There seems to be another problem. %fdupes can create hardlinks between
>files that would finally end on different partitions.
>See https://bugzilla.novell.com/show_bug.cgi?id=304167
>
>Using something like
>%fdupes $RPM_BUILD_ROOT/usr
>%fdupes $RPM_BUILD_ROOT/srv
>...
>
>fixes the problem. 

What if /srv/ftp and /srv/www were separate mounts?

>
>Do you think that the %fdupes macro should be changed to do this 
>automatically?

        Jan
-- 
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
References