[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
219/377: gnu: shadow: Use the cross-compiled shell at runtime.
From: |
guix-commits |
Subject: |
219/377: gnu: shadow: Use the cross-compiled shell at runtime. |
Date: |
Sun, 5 Sep 2021 10:07:51 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 994d8ce394e88b55985241b7b14f6a8459bcf9e8
Author: Mathieu Othacehe <othacehe@gnu.org>
AuthorDate: Sun Aug 29 18:54:47 2021 +0200
gnu: shadow: Use the cross-compiled shell at runtime.
Make sure that the executed shell at runtime is the cross-compiled shell and
not the native shell.
* gnu/packages/admin.scm (shadow)[arguments]: Add a set-runtime-shell phase.
[inputs]: Add bash-minimal when cross-compiling.
---
gnu/packages/admin.scm | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index f9b0aba..7910bb1 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -29,7 +29,7 @@
;;; Copyright © 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2019, 2021 Guillaume Le Vaillant <glv@posteo.net>
-;;; Copyright © 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
+;;; Copyright © 2019, 2020, 2021 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
@@ -824,6 +824,17 @@ hostname.")
#:phases
(modify-phases %standard-phases
+ ,@(if (%current-target-system)
+ '((add-before 'configure 'set-runtime-shell
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((shell (string-append
+ (assoc-ref inputs "bash")
+ "/bin/bash")))
+ (setenv "RUNTIME_SHELL" shell)
+ (substitute* "configure.ac"
+ (("\\$SHELL")
+ "$RUNTIME_SHELL"))))))
+ '())
(add-before 'build 'set-nscd-file-name
(lambda* (#:key inputs #:allow-other-keys)
;; Use the right file name for nscd.
@@ -848,7 +859,10 @@ hostname.")
(inputs
`(,@(if (hurd-target?)
'()
- `(("linux-pam" ,linux-pam)))))
+ `(("linux-pam" ,linux-pam)))
+ ,@(if (%current-target-system)
+ `(("bash" ,bash-minimal))
+ '())))
(home-page "https://github.com/shadow-maint/shadow")
(synopsis "Authentication-related tools such as passwd, su, and login")
(description
- 205/377: gnu: python-pytest-forked: Update to 1.3.0 and run test suite., (continued)
- 205/377: gnu: python-pytest-forked: Update to 1.3.0 and run test suite., guix-commits, 2021/09/05
- 206/377: gnu: python-pytest-asyncio: Enable tests and patch for Python 3.8., guix-commits, 2021/09/05
- 207/377: gnu: python-pytest-mock: Update to 3.6.1 and run test suite., guix-commits, 2021/09/05
- 209/377: gnu: Add python-pytest-xdist-next., guix-commits, 2021/09/05
- 208/377: gnu: python-pytest-xdist: Fix by downgrading to 1.34.0, run test suite., guix-commits, 2021/09/05
- 212/377: gnu: python-django: Update to 3.2.6., guix-commits, 2021/09/05
- 213/377: gnu: python-pytest-django: Update to 4.4.0., guix-commits, 2021/09/05
- 214/377: services: base: Honor file-system-create-mount-point? at all times., guix-commits, 2021/09/05
- 216/377: isc-dhcp: Fix dhclient-script wrapper when cross-compiling., guix-commits, 2021/09/05
- 218/377: gnu: Add emacs-hideshowvis., guix-commits, 2021/09/05
- 219/377: gnu: shadow: Use the cross-compiled shell at runtime.,
guix-commits <=
- 220/377: gnu: mu: Update to 1.6.5., guix-commits, 2021/09/05
- 222/377: gnu: guile-websocket: Update to 0.1-d17878f6., guix-commits, 2021/09/05
- 223/377: services: xorg: Delay the xorg-configuration-modules field evaluation., guix-commits, 2021/09/05
- 224/377: gnu: extra-cmake-modules: Avoid dependency on qtbase when on armhf., guix-commits, 2021/09/05
- 225/377: build: Build (gnu system setuid)., guix-commits, 2021/09/05
- 231/377: gnu: Add ocaml-odoc-parser., guix-commits, 2021/09/05
- 232/377: gnu: wine: Update to 6.14., guix-commits, 2021/09/05
- 230/377: build-system: chicken: Add 'egg-uri' procedure., guix-commits, 2021/09/05
- 233/377: gnu: Add h-client., guix-commits, 2021/09/05
- 234/377: gnu: wine: Update to 6.16., guix-commits, 2021/09/05