[Rpm-maint] [rpm-software-management/rpm] scripts: add brp-mangle-shebangs (#344)
notifications at github.com
Thu Nov 2 15:45:09 UTC 2017
On 2 November 2017 at 15:24, Thierry Vignaud <thierry.vignaud at gmail.com>
> On 2 November 2017 at 00:05, Igor Gnatenko <notifications at github.com>
>> 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 <https://github.com/jasontibbitts> @Conan-Kudo
>> You are receiving this because you are subscribed to this thread.
>> Reply to this email directly, view it on GitHub
>> or mute the thread
> In Mageia, this is done differently: the shebang is left as it, but the
> auto requires is translated from "/bin/env" to "/bin/foo"
> There's other patches in order to emit requires on packages instead of
> file deps:
> The patch:
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...
More information about the Rpm-maint