| Summary: | RPM cannot package python files when there is a docstring on the first line | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Rick Smith <magarace> |
| Component: | rpm | Assignee: | Panu Matilainen <pmatilai> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 13 | CC: | a.badger, dmalcolm, ffesti, jnovy, pmatilai |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-24 14:14:10 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Rick Smith
2011-04-01 19:33:00 UTC
This is actually a packaging bug: a file which starts with a docstring should not have executable permissions as such a file cannot be executed. Strip the executable bits off and the issue is gone. Also if you let rpm use the "internal dependency generator" (which is the default on Fedora) instead of the bit-rotten /usr/lib/rpm/(redhat)/find-provides|find-requires scripts it wont trip up with cryptic errors, but nevertheless the right fix is to remove executable bits on files that cannot be directly. |