[Rpm-maint] [rpm-software-management/rpm] scripts: add brp-mangle-shebangs (#344)

Igor Gnatenko notifications at github.com
Wed Nov 1 23:05:44 UTC 2017

This might look too magic, but what it does in short:

* Replace `/usr/bin/env foo` with `/usr/bin/foo`.. One could argue on this, so we could add some macro to disable this. In Fedora it is even prohibited by guidelines now. This brp would help a lot!
* Drop shebang from non-executable files.. Having shebangs in non-executable files doesn't make sense to me. If you think I'm wrong, I'm ready to listen!
* If shebang is empty or doesn't exist, but file is executable - remove executable bit, most likely it will not work anyway, only by luck
* Error out on shebangs like `#!perl`, this works only by luck

cc @jasontibbitts @Conan-Kudo 

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20171101/05b3e85f/attachment.html>

More information about the Rpm-maint mailing list