[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/12: gnu: toybox: Use #:make-flags.
From: |
guix-commits |
Subject: |
02/12: gnu: toybox: Use #:make-flags. |
Date: |
Wed, 25 May 2022 13:24:33 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 38787e36c1fc8108e93bcc702c5de44000a161ca
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun May 22 02:00:00 2022 +0200
gnu: toybox: Use #:make-flags.
* gnu/packages/busybox.scm (toybox)[arguments]: Add #:make-flags to
replace ad hoc use of environment variables and custom phases.
Remove the 'set-environment-variables and custom 'install phase.
---
gnu/packages/busybox.scm | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/busybox.scm b/gnu/packages/busybox.scm
index 8624f1f816..4468d71088 100644
--- a/gnu/packages/busybox.scm
+++ b/gnu/packages/busybox.scm
@@ -131,14 +131,15 @@ any small or embedded system.")
"150lvp7hf9ndafvmr42kb8xi86hxjd2zj4binwwhgjw2dwrvy25m"))))
(build-system gnu-build-system)
(arguments
- (list #:phases
+ (list #:make-flags
+ #~(list (string-append "CC=" #$(cc-for-target))
+ (string-append "HOSTCC=gcc")
+ (string-append "PREFIX=" #$output))
+ #:phases
#~(modify-phases %standard-phases
- (add-before 'configure 'set-environment-variables
- (lambda _
- (setenv "CC" #$(cc-for-target))
- (setenv "HOSTCC" (which "gcc"))))
(replace 'configure
- (lambda _ (invoke "make" "defconfig")))
+ (lambda* (#:key make-flags #:allow-other-keys)
+ (apply invoke "make" "defconfig" make-flags)))
(add-before 'check 'fix-or-skip-broken-tests
(lambda _
;; Some tests expect $USER to magically be the current user.
@@ -148,11 +149,6 @@ any small or embedded system.")
;; Delete tests that expect a root or 0 user to exist.
(substitute* "tests/id.test"
(("^testing .*[ \\(]root.*") ""))))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (invoke "make"
- (string-append "PREFIX=" #$output)
- "install")))
(add-after 'install 'remove-usr-directory
(lambda* (#:key outputs #:allow-other-keys)
(delete-file-recursively (string-append #$output "/usr")))))
- branch master updated (d2c06bf2ff -> 4c12fcfe43), guix-commits, 2022/05/25
- 02/12: gnu: toybox: Use #:make-flags.,
guix-commits <=
- 10/12: gnu: lynis: Update to 3.0.8., guix-commits, 2022/05/25
- 04/12: gnu: libbytesize: Update to 2.6., guix-commits, 2022/05/25
- 12/12: gnu: parallel: Update to 20220522., guix-commits, 2022/05/25
- 07/12: gnu: python-cli-helpers: Update to 2.2.1., guix-commits, 2022/05/25
- 05/12: gnu: libbytesize: Remove input labels., guix-commits, 2022/05/25
- 09/12: gnu: pelican: Update to 4.7.2., guix-commits, 2022/05/25
- 11/12: gnu: lynis: Work., guix-commits, 2022/05/25
- 01/12: gnu: toybox: Update to 0.8.7., guix-commits, 2022/05/25
- 08/12: gnu: litecli: Update to 1.8.0., guix-commits, 2022/05/25
- 06/12: gnu: libhx: Update to 4.3., guix-commits, 2022/05/25