[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/33: gnu: make: Revert to 4.1 for the Hurd.
From: |
guix-commits |
Subject: |
08/33: gnu: make: Revert to 4.1 for the Hurd. |
Date: |
Tue, 10 Mar 2020 03:58:45 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd
in repository guix.
commit f7804e0f00741a65e7538fe7f3f0cf9844c2165c
Author: Jan Nieuwenhuizen <address@hidden>
AuthorDate: Wed Feb 26 20:22:18 2020 -0500
gnu: make: Revert to 4.1 for the Hurd.
* gnu/packages/base.scm (gnu-make-4.1): New variable.
* gnu/packages/commencement.scm (gnu-make-boot0): Use it for the Hurd.
---
gnu/packages/base.scm | 29 ++++++++++++++++++++++++++++-
gnu/packages/commencement.scm | 14 ++++++++++----
2 files changed, 38 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 13bcf7f..8852ec4 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -6,7 +6,7 @@
;;; Copyright © 2014 Alex Kost <address@hidden>
;;; Copyright © 2014, 2015 Manolis Fragkiskos Ragkousis <address@hidden>
;;; Copyright © 2016, 2017, 2019, 2020 Efraim Flashner <address@hidden>
-;;; Copyright © 2016 Jan Nieuwenhuizen <address@hidden>
+;;; Copyright © 2016, 2020 Jan (janneke) Nieuwenhuizen <address@hidden>
;;; Copyright © 2016, 2018 Alex Vong <address@hidden>
;;; Copyright © 2017 Rene Saavedra <address@hidden>
;;; Copyright © 2017 Mathieu Othacehe <address@hidden>
@@ -396,6 +396,33 @@ change. GNU make offers many powerful extensions over the
standard utility.")
(license gpl3+)
(home-page "https://www.gnu.org/software/make/")))
+(define-public gnu-make-4.1
+ (package
+ (inherit gnu-make)
+ (version "4.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/make/make-" version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0madzk1srlf17i2pfdj3dh8kc9jshx8zhj0km81a0bix7mwakiwz"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments gnu-make)
+ ((#:configure-flags flags (if (hurd-target?)
''("CFLAGS=-D__alloca=alloca") ''()))
+ flags)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (replace 'set-default-shell
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Change the default shell from /bin/sh.
+ (let ((bash (assoc-ref inputs "bash")))
+ (substitute* "job.c"
+ (("default_shell =.*$")
+ (format #f "default_shell = \"~a/bin/sh\";\n"
+ bash)))
+ #t)))))))))
+
(define-public binutils
(package
(name "binutils")
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index cebb4b5..9524748 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2497,14 +2497,20 @@ exec " gcc "/bin/" program
(define gnu-make-boot0
(package
(inherit gnu-make)
- (source (bootstrap-origin (package-source gnu-make)))
+ (version (if (hurd-system?) "4.1"
+ (package-version gnu-make)))
+ (source (if (hurd-system?)
+ (bootstrap-origin (package-source gnu-make-4.1))
+ (bootstrap-origin (package-source gnu-make))))
(name "make-boot0")
(arguments
`(#:guile ,%bootstrap-guile
#:implicit-inputs? #f
- #:tests? #f ; cannot run "make check"
- ,@(substitute-keyword-arguments (package-arguments gnu-make)
- ((#:configure-flags flags ''())
+ #:tests? #f ; cannot run "make check"
+ ,@(substitute-keyword-arguments
+ (package-arguments (if (hurd-system?) gnu-make-4.1 gnu-make))
+ ((#:configure-flags flags (if (hurd-system?)
''("CFLAGS=-D__alloca=alloca")
+ ''()))
;; The generated config.status has some problems due to the
;; bootstrap environment. Disable dependency tracking to work
;; around it.
- branch wip-hurd created (now c32b649), guix-commits, 2020/03/10
- 04/33: gnu: bootloader: Add grub-minimal-bootloader., guix-commits, 2020/03/10
- 03/33: gnu: Add grub-minimal., guix-commits, 2020/03/10
- 05/33: gnu: hurd: Fix hurd-target?., guix-commits, 2020/03/10
- 06/33: gnu: hurd: Add hurd-system?., guix-commits, 2020/03/10
- 07/33: gnu: java-jansi-native: Compile fix for the Hurd., guix-commits, 2020/03/10
- 08/33: gnu: make: Revert to 4.1 for the Hurd.,
guix-commits <=
- 01/33: gnu: flex-2.6.1: Build fix for the Hurd., guix-commits, 2020/03/10
- 11/33: gnu: glibc: Add and update patches for the Hurd., guix-commits, 2020/03/10
- 02/33: gnu: grub: Build fix for the Hurd., guix-commits, 2020/03/10
- 13/33: gnu: cross-libc: Build fix for the Hurd., guix-commits, 2020/03/10
- 17/33: gnu: pciutils: Build fix for the Hurd., guix-commits, 2020/03/10
- 25/33: gnu: commencement: hurd-headers-boot0: Build from tarball., guix-commits, 2020/03/10
- 27/33: gnu: commencement: glibc-intermediate: Build fixes for the Hurd., guix-commits, 2020/03/10
- 09/33: gnu: less: Build fix for the Hurd., guix-commits, 2020/03/10
- 18/33: gnu: shepherd: Build fix for the Hurd., guix-commits, 2020/03/10
- 10/33: gnu: fontconfig: Build fix for the Hurd., guix-commits, 2020/03/10