[opensuse-buildservice] rpmlint problems: double files

Hello, a) is there already somwhere a script, which replaces duplicate files in packages with softlinks? b) How can the duplicate files problem be handled with language files: W: squirrelmail-lang files-duplicate /srv/www/htdocs/squirrelmail/images/sec_remove_sr_YU.png:/srv/www/htdocs/squirrelmail/images/sec_remove_hr_HR.png W: squirrelmail-lang files-duplicate /srv/www/htdocs/squirrelmail/help/pt_PT/addresses.hlp:/srv/www/htdocs/squirrelmail/help/pt_BR/addresses.hlp W: squirrelmail-lang files-duplicate /srv/www/htdocs/squirrelmail/help/pt_PT/FAQ.hlp:/srv/www/htdocs/squirrelmail/help/pt_BR/FAQ.hlp W: squirrelmail-lang files-duplicate /srv/www/htdocs/squirrelmail/help/pt_BR/search.hlp:/srv/www/htdocs/squirrelmail/help/pt_PT/search.hlp W: squirrelmail-lang files-duplicate /srv/www/htdocs/squirrelmail/help/pt_BR/read_mail.hlp:/srv/www/htdocs/squirrelmail/help/pt_PT/read_mail.hlp W: squirrelmail-lang files-duplicate /srv/www/htdocs/squirrelmail/help/pt_BR/options.hlp:/srv/www/htdocs/squirrelmail/help/pt_PT/options.hlp W: squirrelmail-lang files-duplicate /srv/www/htdocs/squirrelmail/help/pt_BR/main_folder.hlp:/srv/www/htdocs/squirrelmail/help/pt_PT/main_folder.hlp W: squirrelmail-lang files-duplicate /srv/www/htdocs/squirrelmail/help/pt_BR/folders.hlp:/srv/www/htdocs/squirrelmail/help/pt_PT/folders.hlp W: squirrelmail-lang files-duplicate /srv/www/htdocs/squirrelmail/help/pt_BR/compose.hlp:/srv/www/htdocs/squirrelmail/help/pt_PT/compose.hlp W: squirrelmail-lang files-duplicate /srv/www/htdocs/squirrelmail/help/pt_BR/basic.hlp:/srv/www/htdocs/squirrelmail/help/pt_PT/basic.hlp W: squirrelmail-lang files-duplicate /srv/www/htdocs/squirrelmail/help/en_US/search.hlp:/srv/www/htdocs/squirrelmail/help/en_GB/search.hlp W: squirrelmail-lang files-duplicate /srv/www/htdocs/squirrelmail/help/en_US/FAQ.hlp:/srv/www/htdocs/squirrelmail/help/en_GB/FAQ.hlp W: squirrelmail-lang files-duplicate /srv/www/htdocs/squirrelmail/help/en_GB/basic.hlp:/srv/www/htdocs/squirrelmail/help/en_US/basic.hlp All these files are marked using %lang. If I now use softlinks and partial installation of language files is introduced, then the link targets may be missing. Ciao -- http://www.dstoecker.eu/ (PGP key available) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

* Dirk Stoecker (opensuse@dstoecker.de) [20070905 17:27]:
Hello,
a) is there already somwhere a script, which replaces duplicate files in packages with softlinks?
Not a script but a program: fdupes and a matching maco in /usr/lib/rpm/suse_macros . But fdupes creates hardlinks, so read the discussion on opensuse-packagers on fdupes for more info on the problems of using %fdupes Philipp --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On 2007-09-05 17:47:33 +0200, Philipp Thomas wrote:
* Dirk Stoecker (opensuse@dstoecker.de) [20070905 17:27]:
Hello,
a) is there already somwhere a script, which replaces duplicate files in packages with softlinks?
Not a script but a program: fdupes and a matching maco in /usr/lib/rpm/suse_macros . But fdupes creates hardlinks, so read the discussion on opensuse-packagers on fdupes for more info on the problems of using %fdupes
%fdupes -s %{buildroot} that would use symlinks darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On Wed, 5 Sep 2007, Marcus Rueckert wrote:
a) is there already somwhere a script, which replaces duplicate files in packages with softlinks?
Not a script but a program: fdupes and a matching maco in /usr/lib/rpm/suse_macros . But fdupes creates hardlinks, so read the discussion on opensuse-packagers on fdupes for more info on the problems of using %fdupes
%fdupes -s %{buildroot}
that would use symlinks
Thanks. It is dangerous and should be used with care, but saves me some work :-) Thought for the dup-language files it is no solution, or would the hard-links be helpful here? In case of partial extraction would at least one be extracted? Ciao -- http://www.dstoecker.eu/ (PGP key available) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org

On Wed, Sep 05, 2007 at 06:39:15PM +0200, Dirk Stoecker wrote:
On Wed, 5 Sep 2007, Marcus Rueckert wrote:
a) is there already somwhere a script, which replaces duplicate files in packages with softlinks?
Not a script but a program: fdupes and a matching maco in /usr/lib/rpm/suse_macros . But fdupes creates hardlinks, so read the discussion on opensuse-packagers on fdupes for more info on the problems of using %fdupes
%fdupes -s %{buildroot}
that would use symlinks
Thanks. It is dangerous and should be used with care, but saves me some work :-)
Thought for the dup-language files it is no solution, or would the hard-links be helpful here? In case of partial extraction would at least one be extracted?
In case of Apache, symlinks may or may not work. It depends on the configuration, and how the files are opened from PHP. Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development
participants (4)
-
Dirk Stoecker
-
Dr. Peter Poeml
-
Marcus Rueckert
-
Philipp Thomas