[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/145: gnu: isc-dhcp: Address TODOs.
From: |
guix-commits |
Subject: |
15/145: gnu: isc-dhcp: Address TODOs. |
Date: |
Mon, 10 Jan 2022 11:44:01 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit 42d46430e735118d2f0354a5cbebbd4c47f182de
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Dec 17 15:24:06 2021 -0500
gnu: isc-dhcp: Address TODOs.
* gnu/packages/admin.scm (isc-dhcp): Remove trailing #t.
[phases]{post-install}: Remove the 'native-inputs' argument.
{post-configure}: Do not patch the libexec scripts.
[inputs]{bash}: Remove conditional.
---
gnu/packages/admin.scm | 34 +++++-----------------------------
1 file changed, 5 insertions(+), 29 deletions(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index d45857150f..1a41ddd2a0 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -1206,8 +1206,7 @@ connection alive.")
(("^RELEASETYPE=.*")
(format #f "RELEASETYPE=~a\n" ,bind-release-type))
(("^RELEASEVER=.*")
- (format #f "RELEASEVER=~a\n" ,bind-release-version)))
- #t))
+ (format #f "RELEASEVER=~a\n" ,bind-release-version)))))
,@(if (%current-target-system)
'((add-before 'configure 'fix-bind-cross-compilation
(lambda _
@@ -1216,8 +1215,7 @@ connection alive.")
"--host=$host_alias"))
;; BIND needs a native compiler because the DHCP
;; build system uses the built 'gen' executable.
- (setenv "BUILD_CC" "gcc")
- #t)))
+ (setenv "BUILD_CC" "gcc"))))
'())
(add-after 'configure 'post-configure
(lambda* (#:key outputs #:allow-other-keys)
@@ -1255,11 +1253,7 @@ connection alive.")
"--owner=root:0"
"--group=root:0")))))
(add-after 'install 'post-install
- ;; TODO(core-updates): native-inputs isn't required anymore.
- (lambda* (#:key ,@(if (%current-target-system)
- '(native-inputs)
- '())
- inputs outputs #:allow-other-keys)
+ (lambda* (#:key 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"))
@@ -1282,31 +1276,13 @@ connection alive.")
,(map (lambda (dir)
(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))))))
+ (list inetutils net-tools coreutils sed))))))))))
(native-inputs
(list perl file))
(inputs `(("inetutils" ,inetutils)
- ;; TODO(core-updates): simply make this unconditional
- ,@(if (%current-target-system)
- ;; for wrap-program
- `(("bash" ,(canonical-package bash-minimal)))
- '())
+ ("bash" ,(canonical-package bash-minimal)) ;for wrap-program
,@(if (hurd-target?) '()
`(("net-tools" ,net-tools)
("iproute" ,iproute)))
- 20/145: gnu: mozjs-60: Use quasiquote, addressing TODO., (continued)
- 20/145: gnu: mozjs-60: Use quasiquote, addressing TODO., guix-commits, 2022/01/10
- 33/145: gnu: util-linux: Update to 2.37.2., guix-commits, 2022/01/10
- 34/145: gnu: eudev: Update to 3.2.11., guix-commits, 2022/01/10
- 36/145: gnu: libpcap: Update to 2.62., guix-commits, 2022/01/10
- 39/145: gnu: rust-1.39: Update mrustc to commit c70665., guix-commits, 2022/01/10
- 42/145: gnu: python-gnupg: Update to 0.4.8., guix-commits, 2022/01/10
- 02/145: gnu: libx11: Update to 1.7.3.1., guix-commits, 2022/01/10
- 08/145: gnu: python-flit-core: Update to 3.5.1., guix-commits, 2022/01/10
- 23/145: gnu: heimdal: Unify phases, addressing TODO., guix-commits, 2022/01/10
- 25/145: gnu: libproxy: Remove target condition from check phase., guix-commits, 2022/01/10
- 15/145: gnu: isc-dhcp: Address TODOs.,
guix-commits <=
- 17/145: guix: lint: Fix comment per TODO., guix-commits, 2022/01/10
- 28/145: gnu: help2man: Update to 1.48.5., guix-commits, 2022/01/10
- 43/145: gnu: epiphany: Update to 41.2., guix-commits, 2022/01/10
- 40/145: gnu: gnome-backgrounds: Update to 41.0., guix-commits, 2022/01/10
- 44/145: gnu: wayland: Add python to native inputs., guix-commits, 2022/01/10
- 45/145: gnu: wayland-protocols: Add python to native inputs., guix-commits, 2022/01/10
- 49/145: gnu: pangomm: Add python to native inputs., guix-commits, 2022/01/10
- 59/145: gnu: python-curio: Disable newly failing 'test_timeout' test., guix-commits, 2022/01/10
- 52/145: gnu: gtkmm: Add python to native inputs., guix-commits, 2022/01/10
- 55/145: gnu: python-msgpack: Update to 1.0.3., guix-commits, 2022/01/10