On 2019-03-14 12:17:25 +0100, Jan Engelhardt wrote:
On Wednesday 2019-03-13 14:54, Marcus Hüwe wrote:
It is not always clear how to do that. I thought there is a way to switch rpm spec scriptlets to different shell but did not find how to do that for %build.
You can specify it via the %__spec_build_cmd macro. For instance, you could add a
%define __spec_build_cmd /bin/bash -e
line to your spec file.
That looks really insance. Why not just do what specfiles already do?
%define _buildshell /bin/bash
That would also influence %prep, %install etc. I just realized that __spec_build_shell might be the better choice if one wants to change build shell only. However, in all cases (%_buildshell, %__spec_build_cmd, %__spec_build_shell), one should also consider the __spec_build_template and related macros... Marcus -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org