sys-apps/nix: pass static shell into build container
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 11 Feb 2019 23:20:07 +0000 (23:20 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 11 Feb 2019 23:36:15 +0000 (23:36 +0000)
Package-Manager: Portage-2.3.59, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
sys-apps/nix/nix-2.2.1-r1.ebuild [moved from sys-apps/nix/nix-2.2.1.ebuild with 96% similarity]

similarity index 96%
rename from sys-apps/nix/nix-2.2.1.ebuild
rename to sys-apps/nix/nix-2.2.1-r1.ebuild
index 7168bdd8d9a36369eba69aec0a0b8b00561421ec..dfa1ac2e7c6dfc5a399c14783ad085e57a6f9e13 100644 (file)
@@ -15,10 +15,12 @@ SLOT="0"
 #KEYWORDS="~amd64 ~x86"
 IUSE="+etc_profile +gc doc s3 sodium"
 
+# sys-apps/busybox is needed for sandbox mount of /bin/sh
 RDEPEND="
        app-arch/brotli
        app-arch/bzip2
        app-arch/xz-utils
+       sys-apps/busybox[static]
        dev-db/sqlite
        dev-libs/editline:0=
        dev-libs/openssl:0=
@@ -83,8 +85,6 @@ src_prepare() {
 }
 
 src_configure() {
-       local econf_args=()
-
        if ! use s3; then
                # Disable automagic depend: bug #670256
                export ac_cv_header_aws_s3_S3Client_h=no
@@ -92,7 +92,7 @@ src_configure() {
        econf \
                --localstatedir="${EPREFIX}"/nix/var \
                $(use_enable gc) \
-               "${args[@]}"
+               --with-sandbox-shell=/bin/busybox
 }
 
 src_compile() {