Bug 152262
Summary: | rpmbuild searches %doc for perl reqs | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Chris Petersen <lists> | ||||
Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Mike McLean <mikem> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | rawhide | CC: | redhat-bugzilla | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2005-11-14 03:11:45 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 150221 | ||||||
Attachments: |
|
Description
Chris Petersen
2005-03-26 23:32:07 UTC
Yes, chmod -x on perl scripts included in %doc will disable dependency extraction. One questions whether %doc is useful or adequate means to distribute scripts. 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? Created attachment 114596 [details]
test casee
Simple test package
...
Requires: /usr/bin/perl perl(Win32::Foo)
...
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. |