Mailinglist Archive: opensuse-factory (401 mails)

< Previous Next >
Re: [opensuse-factory] Can we assume that /bin/sh is bash?

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
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups