Some perl packages are installing scripts in /usr/bin, with a shebang line so that kernel knows how to interpret them. Sometimes, the installed shebang is including the perl version, such as: #!/usr/bin/perl5.18.2 I propose that we add a new post-processing step in rpm to strip such perl version from the shebang line, to get back to: #!/usr/bin/perl This would prevent the rebuilding of perl modules shipping scripts with wrong shebangs when updating perl. It could be as simple as: for f in $(ls $buildroot/usr/bin/*); do perl -pi -E '$.==1 && s{^(#!/usr/bin/perl).*$}{$1}' $f done thanks. Reproducible: Steps to Reproduce:
Why not fix perl packages instead? I've fixed some perl module once that introduced it. I don't remember which one but that should be easy to find out (beginning with perl-Module/Build*)
Source RPM: rpm => rpm-mageia-setup
Severity: normal => enhancement
Source RPM: rpm-mageia-setup => rpm-mageia-setup, spec-helper