$ rpm -q file
$ file /usr/share/perl5/Encode/Makefile_PL.e2x
/usr/share/perl5/Encode/Makefile_PL.e2x: C source, ASCII text
But /usr/share/perl5/Encode/Makefile_PL.e2x is Perl code:
$ head /usr/share/perl5/Encode/Makefile_PL.e2x
# This file is auto-generated by:
# enc2xs version $_Version_
This is regression against file-5.09-1.fc17.
Thanks for the report. It should be fixed in file-5.10-4.fc17.
Upstream bug report: http://bugs.gw.com/view.php?id=166
Fix verified. Thank you.
The Fedora patch for this bug has never been applied upstream and it is known to cause problems (see bug #1424989). Based on the info from the above ticket on the upstream bug tracker, this bug is already fixed upstream in a different way.
I am about to drop the downstream patch from Fedora now. Petr, do you have any data I can use to verify if this bug is fixed upstream?
/usr/share/perl5/Encode/Makefile_PL.e2x does not exist on my Fedora 24 box...
The bug report mentions Fedora 17. /usr/share/perl5/Encode/Makefile_PL.e2x is delivered by perl-devel-5.14.4-224.fc17.x86_64.rpm there and I can assure you that file-5.25-6.fc24.x86_64 still misinterprets the file:
$ wget -q -O - https://kojipkgs.fedoraproject.org//packages/perl/5.14.4/224.fc17/x86_64/perl-devel-5.14.4-224.fc17.x86_64.rpm | rpm2cpio | cpio -i --to-stdout ./usr/share/perl5/Encode/Makefile_PL.e2x | file -
/dev/stdin: C source, ASCII text
$ rpm -qf /usr/bin/file
F24 provides the file in perl-Encode-devel under /usr/lib64/perl5/vendor_perl/Encode/Makefile_PL.e2x path and it also exhibits the same problem:
$ file /usr/lib64/perl5/vendor_perl/Encode/Makefile_PL.e2x
/usr/lib64/perl5/vendor_perl/Encode/Makefile_PL.e2x: C source, ASCII text
So it looks like a regression in Fedora because Fedora 24 is broken again. Reopening this bug report.
Thanks! So it does not work anyway...
The patch we have in Fedora is not the patch that was originally applied for this bug. The contents of file-5.10-strength.patch was (by mistake?) rewritten two years later:
The patch for this bug patched Magdir/c-lang whereas the current patch (with the same file name) patches Magdir/python. The commit message only says "update to version 5.19":
Created attachment 1255707 [details]