perl-Padre-0.90 delivers 40_draw.pl file in the documentation: $ head share/examples/wx/40_draw.pl #!/usr/bin/perl use strict; use warnings; ############################################################################# ## Name: lib/Wx/DemoModules/wxPrinting.pm ## Based on the Printing demo by Mattia Barbon distribured in the Wx::Demo ## Copyright: (c) 2001, 2003, 2005-2006 Mattia Barbon ## Licence: This program is free software; you can redistribute it and/or The old good behavior: [test@fedora-24 Padre-0.90]$ rpm -qf /usr/bin/file file-5.22-4.fc23.x86_64 [test@fedora-24 Padre-0.90]$ /usr/bin/file share/examples/wx/40_draw.pl share/examples/wx/40_draw.pl: Perl script, ASCII text executable The new bad behavior. [test@fedora-24 Padre-0.90]$ rpm -qf /usr/bin/file file-5.25-1.fc24.x86_64 [test@fedora-24 Padre-0.90]$ /usr/bin/file share/examples/wx/40_draw.pl share/examples/wx/40_draw.pl: Perl5 module source, ASCII text The files contains both shell bang line and both "package" keyword. But I believe than any file with shell bang line should be recognized as "Perl script".
Created attachment 1091693 [details] The 40_draw.pl sample
See <https://ppisar.fedorapeople.org/perl_rebuild/scratch/2015-11-18/index.xhtml#done> for Perl mass rebuild. It breaks generating Perl RPM dependencies on many RPM packages. For example, perl-App-find2perl is very simple package with the only Perl file /usr/bin/find2perl.
I tried to solve the issue for Perl in attribute file perl.attr which is part of perl-generators. It helped, but it did not solve it completely. All perl(*) dependencies are back, but shebang command '/usr/bin/perl' is still missing. It seems shebang is added by rpm only, if the file is detected as script. For example: The latest koji build $ rpm -qpR perl-App-find2perl-1.003-6.fc23.noarch.rpm /usr/bin/perl perl(:MODULE_COMPAT_5.22.0) perl(Config) perl(File::Spec::Functions) perl(strict) perl(vars) rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1 Package build with updated perl-generators (not submitted yet) $ rpm -qpR perl-App-find2perl-1.003-7.fc24.noarch.rpm perl(:MODULE_COMPAT_5.22.0) perl(Config) perl(File::Spec::Functions) perl(strict) perl(vars) rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1
I confirm file-5.25-3.fc24 fixes the regression.
I checked all perlish packages built with the broken file packages in the Koji (53) and the only affected package was postgrey, so I rebuild it.