| Summary: | Update of "file" from 5.09 to 5.10 has broken perl dependency generator | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Paul Howarth <paul> | ||||
| Component: | rpm | Assignee: | Jindrich Novy <jnovy> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | rawhide | CC: | ffesti, jnovy, pknirsch, pmatilai, ppisar, tmraz | ||||
| Target Milestone: | --- | Keywords: | Reopened | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-01-10 08:34:41 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
Created attachment 551572 [details]
rpmfcTokens update
This patch adds new `Perl script' string to rpmfcTokens array. I'm not sure this is still needed.
Fixed in rawhide RPM and rebuilt. The patch from Comment #1 on its own does not fix this bug (it does not apply the change mentioned in the original description). There is a suitable patch attached to Bug #772699, which also addresses a similar issue affecting python code. *** This bug has been marked as a duplicate of bug 772699 *** |
Description of problem: file version 5.10 has included "magic for /usr/bin/env Perl scripts", which changes the output of "file /path/to/perl/script" from (e.g.) "a /usr/bin/perl -w script, ASCII text executable" to "Perl script, ASCII text executable", which in turn cause rpm not to check it for perl provides/requires. Changing /usr/lib/rpm/fileattrs/perl.attr from: %__perl_requires %{_rpmconfigdir}/perl.req %__perl_magic ^.perl .*$ %__perl_flags exeonly to: %__perl_requires %{_rpmconfigdir}/perl.req %__perl_magic ^.*[Pp]erl .*$ %__perl_flags exeonly fixes the problem. More on the problems this is causing can be found at: http://lists.fedoraproject.org/pipermail/perl-devel/2012-January/044150.html http://lists.fedoraproject.org/pipermail/devel/2012-January/160958.html Given that a Rawhide mass rebuild is imminent, this could really do with being fixed urgently.