[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/33: gnu: cross-kernel-headers: Fix build.
From: |
guix-commits |
Subject: |
01/33: gnu: cross-kernel-headers: Fix build. |
Date: |
Sun, 9 May 2021 17:50:04 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 3cf1afb7e7249992b2db2f4f00899fd22237e89a
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sun May 9 12:44:08 2021 +0200
gnu: cross-kernel-headers: Fix build.
This fixes a regression introduced in
0e2251fcf8189a4f642074d3aa898221b29c3a55, as "make headers_check" does not
actually build the headers in newer versions, instead "make headers_install"
built them as a side effect.
* gnu/packages/cross-base.scm (cross-kernel-headers)[arguments]: Adjust
build
phase to call the correct Make target. While at it, migrate to
MODIFY-PHASES.
---
gnu/packages/cross-base.scm | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 6df3696..9487ac9 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -4,7 +4,7 @@
;;; Copyright © 2016, 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2016 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
-;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
+;;; Copyright © 2019, 2020, 2021 Marius Bakke <marius@gnu.org>
;;; Copyright © 2019 Carl Dong <contact@carldong.me>
;;; Copyright © 2020 Mathieu Othacehe <m.othacehe@gmail.com>
;;;
@@ -341,15 +341,18 @@ target that libc."
`(#:implicit-cross-inputs? #f
,@(package-arguments linux-headers))
((#:phases phases)
- `(alist-replace
- 'build
- (lambda _
- (setenv "ARCH" ,(system->linux-architecture target))
- (format #t "`ARCH' set to `~a' (cross compiling)~%" (getenv
"ARCH"))
-
- (invoke "make" ,(system->defconfig target))
- (invoke "make" "mrproper" "headers_check"))
- ,phases))))
+ `(modify-phases ,phases
+ (replace 'build
+ (lambda _
+ (setenv "ARCH" ,(system->linux-architecture target))
+ (format #t "`ARCH' set to `~a' (cross compiling)~%"
+ (getenv "ARCH"))
+
+ (invoke "make" ,(system->defconfig target))
+ (invoke "make" "mrproper"
+ ,@(if (version>=? (package-version linux-headers)
"5.3")
+ '("headers")
+ '("headers_check")))))))))
(native-inputs `(("cross-gcc" ,xgcc)
("cross-binutils" ,xbinutils)
,@(package-native-inputs linux-headers)))))
- branch core-updates updated (a605ef3 -> 23666a9), guix-commits, 2021/05/09
- 01/33: gnu: cross-kernel-headers: Fix build.,
guix-commits <=
- 04/33: gnu: cURL: Update to 7.76.1., guix-commits, 2021/05/09
- 02/33: Merge branch 'master' into core-updates, guix-commits, 2021/05/09
- 03/33: gnu: Remove obsolete patches., guix-commits, 2021/05/09
- 07/33: gnu: MariaDB: Incorporate grafted changes., guix-commits, 2021/05/09
- 10/33: gnu: python-urllib3: Remove replacement package., guix-commits, 2021/05/09
- 11/33: gnu: glib: Disable SELinux support., guix-commits, 2021/05/09
- 14/33: gnu: elfutils: Omit static libraries., guix-commits, 2021/05/09
- 12/33: gnu: Python: Update to 3.9.5., guix-commits, 2021/05/09
- 13/33: gnu: elfutils: Update to 0.183., guix-commits, 2021/05/09
- 05/33: gnu: c-ares: Remove replacement package., guix-commits, 2021/05/09