On Wednesday 2014-11-12 16:21, Johannes Meixner wrote:
are bashisms in RPM scriptlets allowed?
If you do use them, be sure to use %post -p /bin/bash
In particular neither https://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets nor https://en.opensuse.org/openSUSE:Specfile_guidelines helps.
I found http://lists.opensuse.org/opensuse-packaging/2010-03/msg00076.html where comments therein seem to indicate that bash is o.k. for shell scripts but to be on the safe side one should explicitly require it via "#!/bin/bash" shebang but as far as I know I cannot have a bash shebang in RPM scriptlets.
That is because the shebang at the start of %post is not necessarily the first line in /var/tmp/rpm-xxxxxxx.xxxx. Hence -p. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org