[opensuse-factory] rpmbuild brp-compress not considering possible man locations/installation prefix
Hi, when I build private rpm files I use the prefix /usr/local to keep the files separate from the official rpms. This results that the man pages are put to /usr/local/share/man/* The MANPATH at my system points to /usr/local/man:/usr/local/share/man:/usr/share/man Some Opensuse versions ago rpmbuild started to fail with my *.spec files at the end when it checked for unpackaged files. The reason was roughly that the man files were not gzipped and did not match the created file list. As a workaround I inserted some lines in my spec files to perform the gzipping of the man pages. Now I had a deeper check and I think the problem is the file /usr/lib/rpm/brp-compress which should do the compression, but it only searches the paths ./usr/man/man* ./usr/man/*/man* ./usr/info ./usr/share/man/man* ./usr/share/man/*/man* ./usr/share/info ./usr/kerberos/man ./usr/X11R6/man/man* ./usr/lib/perl5/man/man* ./usr/share/doc/*/man/man* ./usr/lib/*/man/man* without considering the chosen installation prefix. I made a small patch in brp-compress which only includes additionally the ./usr/local/man ./usr/local/share/man 44,45c44 < ./usr/share/doc/*/man/man* ./usr/lib/*/man/man* \ < ./usr/local/share/man/* ./usr/local/man/* ---
./usr/share/doc/*/man/man* ./usr/lib/*/man/man*
and with this the workaround in the spec files is no longer needed. Is it unsupported to build rpms with prefix different from /usr ? Or is it a bug in brp-compress? Dieter -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (1)
-
dieter