From: Oleg Pykhalov <go.wigust@gmail.com>
To: pukkamustard <pukkamustard@posteo.net>
Cc: John Soo <jsoo1@asu.edu>, 46297@debbugs.gnu.org
Subject: bug#46297: nix-service-configuration is missing the default /bin/sh
Date: Thu, 22 Apr 2021 19:50:25 +0300 [thread overview]
Message-ID: <87zgxquuum.fsf@gmail.com> (raw)
In-Reply-To: <8635viiwcs.fsf@posteo.net> (pukkamustard@posteo.net's message of "Thu, 22 Apr 2021 07:30:58 +0000")
[-- Attachment #1.1: Type: text/plain, Size: 415 bytes --]
pukkamustard <pukkamustard@posteo.net> writes:
[…]
> The build succeeds if I do following:
>
> ```
> $ sudo nix-build nixpkgs/ -A ocaml-ng.ocamlPackages_4_11.ocaml --option
> build-sandbox-paths
> "/bin/sh=//nix/store/0xrjvxvh3wvdbf8pc2850jry1fcx292g-busybox-1.32.1/bin/busybox"
Could you apply the following patch on
13c4a377f5a2e1240790679f3d5643385b6d7635 and run the command again,
please?
[-- Attachment #1.2: [PATCH] services: nix: Add /bin/sh to build-sandbox-paths. --]
[-- Type: text/x-patch, Size: 1736 bytes --]
From 1aa675482fa1aaba02ac1d8599198ec0aa8c2201 Mon Sep 17 00:00:00 2001
From: Oleg Pykhalov <go.wigust@gmail.com>
Date: Thu, 22 Apr 2021 19:46:23 +0300
Subject: [PATCH] services: nix: Add /bin/sh to build-sandbox-paths.
* gnu/services/nix.scm (nix-service-etc): Add /bin/sh to build-sandbox-paths.
---
gnu/services/nix.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gnu/services/nix.scm b/gnu/services/nix.scm
index 1aef47db0a..619e3cae54 100644
--- a/gnu/services/nix.scm
+++ b/gnu/services/nix.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
+;;; Copyright © 2019, 2020, 2021 Oleg Pykhalov <go.wigust@gmail.com>
;;; Copyright © 2020 Peng Mei Yu <i@pengmeiyu.com>
;;;
;;; This file is part of GNU Guix.
@@ -19,6 +19,7 @@
(define-module (gnu services nix)
#:use-module (gnu packages admin)
+ #:use-module (gnu packages bash)
#:use-module (gnu packages package-management)
#:use-module (gnu services base)
#:use-module (gnu services configuration)
@@ -121,7 +122,8 @@ GID."
(format #t "sandbox = ~a~%" (if #$sandbox "true" "false"))
;; config.nix captures store file names.
(format #t "build-sandbox-paths = ~{~a ~}~%"
- (append internal-sandbox-paths
+ (append (list (string-append "/bin/sh=" #$bash-minimal "/bin/sh"))
+ internal-sandbox-paths
'#$build-sandbox-items))
(for-each (cut display <>) '#$extra-config)))))))))))
--
2.31.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
next prev parent reply other threads:[~2021-04-22 16:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-04 16:00 bug#46297: nix-service-configuration is missing the default /bin/sh John Soo
2021-02-04 18:54 ` John Soo
2021-04-21 15:00 ` pukkamustard
2021-04-22 6:59 ` Oleg Pykhalov
2021-04-22 7:30 ` pukkamustard
2021-04-22 16:50 ` Oleg Pykhalov [this message]
2021-04-26 7:21 ` pukkamustard
2021-04-26 17:06 ` Oleg Pykhalov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zgxquuum.fsf@gmail.com \
--to=go.wigust@gmail.com \
--cc=46297@debbugs.gnu.org \
--cc=jsoo1@asu.edu \
--cc=pukkamustard@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).