Bug 184079 - %doc entries in spec files shouldn't be subject to find-requires
Summary: %doc entries in spec files shouldn't be subject to find-requires
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-03-05 23:20 UTC by Gabriel Somlo
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-03-06 16:03:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gabriel Somlo 2006-03-05 23:20:20 UTC
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

How reproducible:

in %files section of a .spec file, include an executable or a .pm perl module
and mark it as %doc.

Actual results:

When built, the resulting package will depend on anything
required by said file

Expected results:

Files marked as %doc should be there for informational purposes only, and
should not cause extra dependencies for the  package.

Additional info:

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.

Comment 1 Jeff Johnson 2006-03-06 16:03:44 UTC
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.

Comment 2 Gabriel Somlo 2006-03-06 16:27:05 UTC
> 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.


Note You need to log in before you can comment on or make changes to this bug.