Exutils::MakeMaker dual-lives now

Paul Howarth paul at city-fan.org
Mon Jan 9 13:02:51 UTC 2012


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.



More information about the perl-devel mailing list