[opensuse-buildservice] mangling shebang in fedora 28

hi, is there any way how to disable 'shebang mangling' in Fedora 28, please? An example: [ 128s] mangling shebang in /opt/qorus/bin/qldapdelete from /usr/bin/env qore to #!/usr/bin/qore I know it's ugly etc. But I'm preparing some app which needs to use env for selecting the proper interpret. Or should I patch all scripts to use hardcoded shebangs paths in the package itself? thanks, Petr -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On Wednesday 2018-06-20 16:14, Petr Vanek wrote:
hi, is there any way how to disable 'shebang mangling' in Fedora 28, please? An example:
[ 128s] mangling shebang in /opt/qorus/bin/qldapdelete from /usr/bin/env qore to #!/usr/bin/qore
I know it's ugly etc. But I'm preparing some app which needs to use env for selecting the proper interpret.
How do you know what's proper? With PATH=$HOME/bin, it's all out the window and programs can start breaking at any time. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On 06/20/2018 04:34 PM, Jan Engelhardt wrote:
On Wednesday 2018-06-20 16:14, Petr Vanek wrote:
hi, is there any way how to disable 'shebang mangling' in Fedora 28, please? An example:
[ 128s] mangling shebang in /opt/qorus/bin/qldapdelete from /usr/bin/env qore to #!/usr/bin/qore
I know it's ugly etc. But I'm preparing some app which needs to use env for selecting the proper interpret. How do you know what's proper? With PATH=$HOME/bin, it's all out the window and programs can start breaking at any time.
that's true. But for that app (closed src application server) I need to bundle all required components into a prefix /opt/qorus. It's a set of binaries and libs and scripts. User can "switch" the env to use this app with sourcing env script. I know that the correct way is to change the upstream scripts to use hardcoded paths, but it will take some time to change it upstream. Meanwhile the current state of the app works in various Suse and CentOS/RHEL flavors out of the box. Just Fedora makes some paths changing inside scripts during obs build. For now I'll use a sed inplace replacement in these scripts probably to point directly to bundled language interpret thanks, petr -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

Dne 20.6.2018 v 16:14 Petr Vanek napsal(a):
is there any way how to disable 'shebang mangling' in Fedora 28, please? An example:
https://fedoraproject.org/wiki/Packaging:Guidelines#Shebang_lines Miroslav -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org

On 06/20/2018 04:14 PM, Petr Vanek wrote:
hi, is there any way how to disable 'shebang mangling' in Fedora 28, please? An example:
[ 128s] mangling shebang in /opt/qorus/bin/qldapdelete from /usr/bin/env qore to #!/usr/bin/qore
I know it's ugly etc. But I'm preparing some app which needs to use env for selecting the proper interpret.
Related: Just these days, upstream GNU coreutils' env(1) learned the -S option: https://git.sv.gnu.org/cgit/coreutils.git/commit/?id=668306ed86 env: add -S/--split-string option Adopted from FreeBSD's env(1), useful for specifing multiple parameters on a shebang (#!) script line, e.g: #!/usr/bin/env -S perl -w -T Discussed in https://lists.gnu.org/r/coreutils/2018-04/msg00011.html Coreutils-8.30 will be released very soon, so this will most probably land in TW in the next couple of weeks. ;-) Have a nice day, Berny -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (4)
-
Bernhard Voelker
-
Jan Engelhardt
-
Miroslav Suchy
-
Petr Vanek