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_magic ^.perl .*$
%__perl_magic ^.*[Pp]erl .*$
fixes the problem.
More on the problems this is causing can be found at:
Given that a Rawhide mass rebuild is imminent, this could really do with being fixed urgently.
Created attachment 551572 [details]
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 ***