Mailinglist Archive: opensuse-buildservice (131 mails)

< Previous Next >
Re: [opensuse-buildservice] Need Advice of Rpmlint Newscoop openSUSE Build Log

Quoting Andi Sugandi <andisugandi@xxxxxxxxx>:

Hi list mates,

I'm trying to build Newscoop 4.1.0 on OBS [0], other repositories are
successfully built except openSUSE/SLE's even it is building
(noarch.rpm and src.rpm) OK on my local build and on OBS [1]. Looking
for Rpmlint [2]:

newscoop.noarch: E: files-duplicated-waste (Badness: 100) 7359205
Your package contains duplicated files that are not hard- or symlinks. You
should use the %fdupes macro to link the files to one.

This error can be resolved by using the %fdupes macro (just as the error message indicates).

in the preamble
BuildRequires: fdupes

The at the end of the %install section:
%fdupes %{buildroot}
(preferably select a sub-directory, like %{_datadir} or so, to ensure you do not try to hard link over partition boundaries, as this will fail. But that depends largely on your package.

On the other hand, though, this gives only 100 BADNESS points. A package fails when it reaches 1000 points.

Looking at your actualy build log and the error, this is more critical and actually causes the failure:

[ 305s] newscoop-4.1.0-15.1.noarch.rpm: directories not owned by a package:
[ 305s] - /etc/php5
[ 305s] - /etc/php5/conf.d

Solution here:
Either 'buildrequire' / 'require' the package owning those folders (I assume php5 would be the right thing; very likely you will have to depend on them anyway in order to have the package functional) or own them yourself (a directory can be owned by more than one package...)

%dir %{_sysconfdir}/php5
%dir %{_sysconfdir}/php5/conf.d

Best regards,
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups