Red Hat Bugzilla – Bug 184079
%doc entries in spec files shouldn't be subject to find-requires
Last modified: 2007-11-30 17:11:26 EST
Description of problem:
executable files, perl modules, etc. are checked for dependencies by
find-requires, even when they are marked as %doc in the %files section of
a .spec file
Version-Release number of selected component (if applicable):
rpm-build-4.4.1-22 on FC4, but I guess any version of rpmbuild
in %files section of a .spec file, include an executable or a .pm perl module
and mark it as %doc.
When built, the resulting package will depend on anything
required by said file
Files marked as %doc should be there for informational purposes only, and
should not cause extra dependencies for the package.
Currently, 'chmod a-x' is a valid workaround for simple binaries and scripts,
but e.g., perl modules (.pm) are checked based on their file extension
regardless of the execute bit.
Not true. Any file with the execute bit set is a candidate for dependency extraction
indpendent of path.
Turn off the execute bit, and rpm will not extract dependencies.
> Turn off the execute bit, and rpm will not extract dependencies.
except, of course, things like perl modules (which are checked for deps
based on their ending with '.pm', regardless of their execute bit).
I was hoping for a one-stop measure of specifying 'don't check these for
dependencies', and just turning execute off ain't it :( You have the ugly hacks
trying to rename files, modifying __perl_requires, etc.
Something like '%doc(nodeps) foo bar' maybe :)
Anyway, thanks for looking into it.