On Mon, Jan 09, 2012 at 01:33:39PM +0000, Paul Howarth wrote: > On 01/09/2012 01:02 PM, Paul Howarth wrote: > >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. > > Raised: https://bugzilla.redhat.com/show_bug.cgi?id=772632 > I've just verified the fix works. There is only one small issue: /usr/share/perl5/Encode/Makefile_PL.e2x from perl-devel is omitted from the dependency scan: * x86_64/perl-devel: removed PROVIDES perl-devel(x86-64) = 4:5.14.2-207.fc17 added PROVIDES perl-devel(x86-64) = 4:5.14.2-208.fc17 removed PROVIDES perl(MY) removed REQUIRES perl >= 1:5.7.2 This is because `file' thinks it's C source code now. Former guess was `Perl5 module source, ASCII text'. But this is a regression in files magick database. Reported as <https://bugzilla.redhat.com/show_bug.cgi?id=772651> against `file'. -- Petr
Attachment:
pgpFljDu8BC0n.pgp
Description: PGP signature
-- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel