On 01/09/2012 12:55 PM, Paul Howarth wrote:
On 01/09/2012 12:20 PM, Petr Pisar wrote:
I've figured out that the problem was introduced by the update of "file"
from 5.09 to 5.10. The new version's ChangeLog includes as a recent
change "Add magic for /usr/bin/env Perl scripts", so running file on
such scripts now produces:

# file smbldap-passwd
smbldap-passwd: Perl script, ASCII text executable, with very long lines

Where it used to produce:

# file smbldap-passwd
smbldap-passwd: a /usr/bin/perl -w script, ASCII text executable, with
very long lines

Now I need to figure out why this is breaking rpm's dep-generator.

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.

Paul.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to