[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
216/377: isc-dhcp: Fix dhclient-script wrapper when cross-compiling.
From: |
guix-commits |
Subject: |
216/377: isc-dhcp: Fix dhclient-script wrapper when cross-compiling. |
Date: |
Thu, 2 Sep 2021 17:55:36 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 7256d9d2049352e9a63594eb558dc44978bd6687
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Wed Jun 30 15:43:42 2021 +0200
isc-dhcp: Fix dhclient-script wrapper when cross-compiling.
This causes many rebuilds, but only when cross-compiling.
This should unbreak Internet access on cross-compiled pinebook
images.
Reported-By: Guest4977 (on IRC)
* gnu/gnunet/packages/admin.scm
(isc-dhcp)[arguments]<#:phases>{post-install}: Use the
cross-compiled bash when cross-compiling. Work-around
<https://issues.guix.gnu.org/49290>.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
gnu/packages/admin.scm | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 63cf85f..f9b0aba 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -43,6 +43,7 @@
;;; Copyright © 2021 WinterHound <winterhound@yandex.com>
;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1232,7 +1233,11 @@ connection alive.")
"--owner=root:0"
"--group=root:0")))))
(add-after 'install 'post-install
- (lambda* (#:key inputs outputs #:allow-other-keys)
+ ;; TODO(core-updates): native-inputs isn't required anymore.
+ (lambda* (#:key ,@(if (%current-target-system)
+ '(native-inputs)
+ '())
+ inputs outputs #:allow-other-keys)
;; Install the dhclient script for GNU/Linux and make sure
;; if finds all the programs it needs.
(let* ((out (assoc-ref outputs "out"))
@@ -1257,6 +1262,19 @@ connection alive.")
(string-append dir "/bin:"
dir "/sbin"))
(list inetutils net-tools coreutils sed))))
+ ;; TODO(core-updates): should not be required anymore,
+ ;; once <https://issues.guix.gnu.org/49290> has been merged.
+ ,@(if (%current-target-system)
+ '((for-each
+ (lambda (file)
+ (substitute* file
+ (((assoc-ref native-inputs "bash"))
+ (assoc-ref inputs "bash"))))
+ (list (string-append libexec
+ "/dhclient-script")
+ (string-append libexec
+ "/.dhclient-script-real"))))
+ '())
#t))))))
(native-inputs
@@ -1264,6 +1282,11 @@ connection alive.")
("file" ,file)))
(inputs `(("inetutils" ,inetutils)
+ ;; TODO(core-updates): simply make this unconditional
+ ,@(if (%current-target-system)
+ ;; for wrap-program
+ `(("bash" ,(canonical-package bash-minimal)))
+ '())
,@(if (hurd-target?) '()
`(("net-tools" ,net-tools)
("iproute" ,iproute)))
- 210/377: gnu: Add ansible-core., (continued)
- 210/377: gnu: Add ansible-core., guix-commits, 2021/09/02
- 232/377: gnu: wine: Update to 6.14., guix-commits, 2021/09/02
- 212/377: gnu: python-django: Update to 3.2.6., guix-commits, 2021/09/02
- 234/377: gnu: wine: Update to 6.16., guix-commits, 2021/09/02
- 239/377: gnu: Add python-pytest-tornasync., guix-commits, 2021/09/02
- 237/377: gnu: Add python-dna-features-viewer., guix-commits, 2021/09/02
- 219/377: gnu: shadow: Use the cross-compiled shell at runtime., guix-commits, 2021/09/02
- 230/377: build-system: chicken: Add 'egg-uri' procedure., guix-commits, 2021/09/02
- 218/377: gnu: Add emacs-hideshowvis., guix-commits, 2021/09/02
- 231/377: gnu: Add ocaml-odoc-parser., guix-commits, 2021/09/02
- 216/377: isc-dhcp: Fix dhclient-script wrapper when cross-compiling.,
guix-commits <=
- 215/377: services: Remove i486 qemu target., guix-commits, 2021/09/02
- 248/377: build/jami-service: Fix range ends in account-fingerprint-rx., guix-commits, 2021/09/02
- 242/377: gnu: Add python-jupyter-server., guix-commits, 2021/09/02
- 246/377: gnu: Add python-voila., guix-commits, 2021/09/02
- 240/377: gnu: Add python-pytest-mock-3., guix-commits, 2021/09/02
- 241/377: gnu: Add python-anyio., guix-commits, 2021/09/02
- 259/377: gnu: glib-with-documentation: Fix documentation build., guix-commits, 2021/09/02
- 255/377: gnu: glib: Update to 2.68.0., guix-commits, 2021/09/02
- 251/377: gnu: Add go-github-com-anaseto-gruid., guix-commits, 2021/09/02
- 266/377: gnu: glibmm-2.64: Update to 2.64.5., guix-commits, 2021/09/02