On středa 16 květen 2007, Stephan Kulow 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. 

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

Vladimir
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to