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.
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 ***