Andreas Enge <[email protected]> skribis:

> A package I am trying to build contains the following lines in its 
> configure:
>
> case `/bin/sh -c "echo -n x"` in
> -n*)
>   case `/bin/sh -c "echo 'x\c'"` in
> ...
>
> Would it make sense to globally add a rule to patch-shebangs so that
> "`/bin/sh" is replaced? If not, how can this be handled?

If by globally you mean in gnu-build-system.scm, then I think that may
be too risky.

But in the package itself, you can add a phase that does:

  (substitute* "configure"
    (("`/bin/sh")
     (string-append "`" (which "bash"))))

HTH,
Ludo’.

Reply via email to