[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to add /bin/sh to the build environment

From: Foo Chuan Wei
Subject: How to add /bin/sh to the build environment
Date: Mon, 8 Nov 2021 09:25:00 +0000

I am trying to package the Standard ML of New Jersey (SML/NJ) compiler
in Guix. My current understanding is that its installation process
relies on the existence of /bin/sh in a fundamental way. Is there a way
to add /bin/sh to the build environment?

In the build phase of the package definition, I tried something like

    (mkdir-p "/bin")
    (symlink (which "sh") "/bin/sh")

However, `mkdir-p` always fails with:

    ice-9/boot-9.scm:1669:16: In procedure raise-exception:
    In procedure mkdir: Permission denied

reply via email to

[Prev in Thread] Current Thread [Next in Thread]