Bug 152262 - rpmbuild searches %doc for perl reqs
rpmbuild searches %doc for perl reqs
Status: CLOSED DUPLICATE of bug 173087
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
Depends On:
Blocks: FC5Target
  Show dependency treegraph
Reported: 2005-03-26 18:32 EST by Chris Petersen
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-13 22:11:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
test casee (648 bytes, text/plain)
2005-05-19 17:40 EDT, Paul Nasrat
no flags Details

  None (edit)
Description Chris Petersen 2005-03-26 18:32:07 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050323 Galeon/1.3.20

Description of problem:
AFAIK, rpmbuild is not supposed to search %doc files/directories for perl requirements.  For lack of a better place to put it, I'm including some "contrib" stuff in the %doc for a spec I'm building (mythtv), and it happens to have some perl scripts in it.

Temporary fix is to `chmod a-x` on all files in contrib, but I don't think that rpm should be matching those for the package requirements in the first place.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
see description

Additional info:
Comment 1 Jeff Johnson 2005-04-01 15:24:12 EST
Yes, chmod -x on perl scripts included in %doc will disable dependency extraction.

One questions whether %doc is useful or adequate means to distribute
Comment 2 Chris Petersen 2005-04-01 15:40:39 EST
where else would you put "contrib" scripts?  They're not part of the official
package or even necessarily endorsed by the authors, but leaving them out means
that users then have to track down the source if they ever want to see what's there.

It'd be nice to be able to keep them executable, but completely unrelated to
this, why is rpm even searching %doc stuff for execution dependencies?
Comment 3 Paul Nasrat 2005-05-19 17:40:43 EDT
Created attachment 114596 [details]
test casee

Simple test package

Requires: /usr/bin/perl perl(Win32::Foo)
Comment 4 Paul Nasrat 2005-05-19 18:18:46 EDT
Requires finding occurs with rpms file classifcation process which occurs on all
files.  This is agnostic of file flags (config, doc).  Changing this for FC4 is
probalby way too late.

You can work around by setting %attr in %files so once installed they are
executable but not inspected during the requires finding.

You can confirm this by changing the chmod line to:

chmod 644 %{name}.pl

[pauln@enki SPECS]$ rpm -qpR ../RPMS/perljam-1.0-1.noarch.rpm
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1

Move to FC5 target.

Comment 5 Jeff Johnson 2005-11-13 22:11:45 EST

*** This bug has been marked as a duplicate of 173087 ***

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