Re: %doc killing files installed below %_defaultdocdir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Schwendt wrote, at 02/28/2009 06:43 PM +9:00:
The scenario:

  - tarball "make install" installs lots of documentation files in
    %_defaultdocdir/%name-%version/

  - package %files list uses %doc attributes to place its own
    selection of files in our default docdir

  => all doc files from "make install" are lost, because
     %doc fills %_defaultdocdir/%name-%version/ from scratch


In all earlier cases where applicable, I could convince the packager
to not use %doc and instead create proper %files entries to include
the files found in %_defaultdocdir/%name-%version/ -- as a bonus,
rpmbuild would fail for any file not included in %files.

For the first time, a packager insists on overwriting/killing the
installed files with his own conflicting %doc attributes.


Conclusion: It works but bears risks. It would silently kill any
additional documentation files built and installed by an upgrade, but not
added by the packager manually via %doc. It could also be that the %doc
statements create different subdirs (e.g. ./html/ versus placing the
html files directory in the pkg's docdir root) which might conflict
with paths compiled into an application.

What do other people think about this?


I have already seen that many packagers (including myself) once
remove all installed document files and add them again
using %doc, and I have seen no problem for this method.

Mamoru

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux