[Bug 1249716] rt-4.2.11-1.fc24 FTBFS: Installed (but unpackaged) file(s) found with rpm-4.13

bugzilla at redhat.com bugzilla at redhat.com
Tue Aug 4 10:58:10 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1249716



--- Comment #2 from Ľuboš Kardoš <lkardos at redhat.com> ---
The problem is that in a previous version of rpm was bug causing that all files
in %{_pkgdocdir} became part of a package despite the fact that they wasn't
explicitly listed in file list (#728959). We fixed that bug and changed that
behaviour intentionally. I understand that this change of behaviour is
unpleasant for you because it causes FTBS but former behaviour was broken and
we don't plan to revert back to that behaviour. Please fix your package.

Your install script (during "make install") installs some files in
/usr/share/doc/rt/docs. To fix this problem it will be enough to list all those
files in file list section of your spec.

BTW %doc followed by relative paths of files copies these files from BUILD to
BUILDROOT/%{_pkgdocdir}. And you don't need to do that because this is already
done by your install script (by "make install"). 

You don't need to use %doc for absolute paths in %{_pkgdocdir} either because
all files in %{_pkgdocdir} are automatically marked as doc files.

So this:

%files
%doc %{_pkgdocdir}/docs/README
...

is the same as:

%files
%{_pkgdocdir}/docs/README
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the perl-devel mailing list