[opensuse-packaging] how to use %fdupes ?
I'm trying to upgrade log2timeline from v0.61 to v0.64 in the security repo. I'm builidng in my home project: https://build.opensuse.org/package/show?package=log2timeline&project=home%3Agregfreemyer%3ATools-for-forensic-boot-cd It's not fatal, but I'm getting this rpmlint error: === log2timeline.noarch: E: files-duplicated-waste (Badness: 100) 118879 Your package contains duplicated files that are not hard- or symlinks. You should use the %fdupes macro to link the files to one. === I updated my specfile to have: === %install make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT %fdupes -s %buildroot %fdupes %buildroot === And my build log shows: === + _target= + _symlinks=0 + _symlinks=1 + fdupes -q -n -r /home/abuild/rpmbuild/BUILDROOT/log2timeline-0.64-27.1.i386 + read _file + _target= + _symlinks=0 + fdupes -q -n -r /home/abuild/rpmbuild/BUILDROOT/log2timeline-0.64-27.1.i386 + read _file === What am I doing wrong? Thanks Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Tue, May 29, 2012 at 9:28 PM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
I updated my specfile to have: === %install make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT %fdupes -s %buildroot %fdupes %buildroot ===
It's happened to me that you have to run fdupes for docdir, mandir and datadir separately for some reason. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Tue, May 29, 2012 at 8:41 PM, Claudio Freire <klaussfreire@gmail.com> wrote:
On Tue, May 29, 2012 at 9:28 PM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
I updated my specfile to have: === %install make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT %fdupes -s %buildroot %fdupes %buildroot ===
It's happened to me that you have to run fdupes for docdir, mandir and datadir separately for some reason.
Both of these behave the same: === %install make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT %fdupes -s $RPM_BUILD_ROOT/%_mandir %fdupes -s $RPM_BUILD_ROOT/%_docdir %fdupes -s $RPM_BUILD_ROOT/%_datadir %fdupes -s %buildroot %fdupes %buildroot === %install make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT %fdupes %{buildroot}/%_mandir %fdupes %{buildroot}/%_docdir %fdupes %{buildroot}/%_datadir %fdupes -s %buildroot %fdupes %buildroot === This is an example of one the specific errors: log2timeline.noarch: W: files-duplicate /usr/share/doc/packages/log2timeline/lib/Time.html /usr/share/doc/packages/log2timeline/lib/Log2t/Time.html Greg -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Dnia wtorek, 29 maja 2012 21:09:18 Greg Freemyer pisze:
This is an example of one the specific errors:
log2timeline.noarch: W: files-duplicate /usr/share/doc/packages/log2timeline/lib/Time.html /usr/share/doc/packages/log2timeline/lib/Log2t/Time.html
%fdupes does not work in %_docdir because it is run before relative %doc. Relative %doc forks any links it finds, giving RPM separate copies even though original files are linked. HTH, Chris -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On Tue, 29 May 2012 20:28:44 -0400 Greg Freemyer <greg.freemyer@gmail.com> wrote:
I'm trying to upgrade log2timeline from v0.61 to v0.64 in the security repo.
I'm builidng in my home project: https://build.opensuse.org/package/show?package=log2timeline&project=home%3Agregfreemyer%3ATools-for-forensic-boot-cd
It's not fatal, but I'm getting this rpmlint error:
=== log2timeline.noarch: E: files-duplicated-waste (Badness: 100) 118879 Your package contains duplicated files that are not hard- or symlinks. You should use the %fdupes macro to link the files to one. ===
Hi So where are the duplicates being installed? Find then and rm then after the install (Make a note in your spec file as well ;) ) then just use the %doc macro to install them once. -- Cheers Malcolm °¿° (Linux Counter #276890) openSUSE 12.1 (x86_64) Kernel 3.1.10-1.9-desktop up 2 days 2:32, 3 users, load average: 0.01, 0.03, 0.05 CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (4)
-
Claudio Freire
-
Greg Freemyer
-
Křištof Želechovski
-
Malcolm