me
/
guix
Archived
1
0
Fork 0

gnu: gnumach: Update to 1.8-1.097f9cf.

* gnu/packages/hurd.scm (gnumach-headers): Update to 1.8-1.097f9cf.
[arguments]: Add host flag to configure-flags.
[native-inputs]: Add autoconf, automake, texinfo-4.
master
Efraim Flashner 2020-01-31 15:48:21 +02:00
parent 64e9d1280f
commit fb9d6f0f94
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 45 additions and 68 deletions

View File

@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2015, 2016, 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com> ;;; Copyright © 2014, 2015, 2016, 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -30,6 +31,7 @@
#:use-module (gnu packages bison) #:use-module (gnu packages bison)
#:use-module (gnu packages perl) #:use-module (gnu packages perl)
#:use-module (gnu packages base) #:use-module (gnu packages base)
#:use-module (gnu packages texinfo)
#:use-module (guix git-download) #:use-module (guix git-download)
#:export (hurd-triplet? #:export (hurd-triplet?
hurd-target?)) hurd-target?))
@ -44,46 +46,26 @@ GNU/Hurd."
(or (and=> (%current-target-system) hurd-triplet?) (or (and=> (%current-target-system) hurd-triplet?)
(string-suffix? (%current-system) "-gnu"))) (string-suffix? (%current-system) "-gnu")))
(define (gnumach-source-url version)
(string-append "mirror://gnu/gnumach/gnumach-"
version ".tar.gz"))
(define (hurd-source-url version) (define (hurd-source-url version)
(string-append "mirror://gnu/hurd/hurd-" (string-append "mirror://gnu/hurd/hurd-"
version ".tar.gz")) version ".tar.gz"))
(define (patch-url repository commit)
(string-append "https://git.savannah.gnu.org/cgit/hurd/" repository
".git/patch/?id=" commit))
(define-public gnumach-headers (define-public gnumach-headers
(let ((commit "097f9cf735ffa1212b828682ad92f0f6c5f1c552")
(revision "1"))
(package (package
(name "gnumach-headers") (name "gnumach-headers")
(version "1.8") (version (git-version "1.8" revision commit))
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (gnumach-source-url version)) (uri (git-reference
(url "https://git.savannah.gnu.org/git/hurd/gnumach.git")
(commit commit)))
(file-name (git-file-name "gnumach" version))
(sha256 (sha256
(base32 (base32
"02hygsfpd2dljl5lg1vjjg9pizi9jyxd4aiiqzjshz6jax62jm9f")) "0q36z7k02bykrld90zaxbhyzxlmwlqqs4divgir6ix38zsp6icqk"))))
(patches (list (origin
;; This patch adds <mach/vm_wire.h>, which defines the
;; VM_WIRE_* constants needed by glibc 2.28.
(method url-fetch)
(uri (patch-url "gnumach" "2b0f19f602e08fd9d37268233b962674fd592634"))
(sha256
(base32
"01iajnwsmka0w9hwjkxxijc4xfhwqbvlkw1w8n71hpnhfixd0y28"))
(file-name "gnumach-vm-wire-header.patch"))))
(modules '((guix build utils)))
(snippet
'(begin
;; Actually install vm_wire.h.
(substitute* "Makefile.in"
(("^include_mach_HEADERS =")
"include_mach_HEADERS = include/mach/vm_wire.h"))
#t))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases `(#:phases
@ -99,14 +81,19 @@ GNU/Hurd."
'() '()
;; See <http://lists.gnu.org/archive/html/bug-hurd/2015-06/msg00042.html> ;; See <http://lists.gnu.org/archive/html/bug-hurd/2015-06/msg00042.html>
;; <http://lists.gnu.org/archive/html/guix-devel/2015-06/msg00716.html> ;; <http://lists.gnu.org/archive/html/guix-devel/2015-06/msg00716.html>
'(#:configure-flags '("--build=i586-pc-gnu"))) '(#:configure-flags '("--build=i586-pc-gnu"
"--host=i686-linux-gnu")))
#:tests? #f)) #:tests? #f))
(native-inputs
`(("autoconf" ,autoconf)
("automake" ,automake)
("texinfo" ,texinfo-4)))
(home-page "https://www.gnu.org/software/hurd/microkernel/mach/gnumach.html") (home-page "https://www.gnu.org/software/hurd/microkernel/mach/gnumach.html")
(synopsis "GNU Mach kernel headers") (synopsis "GNU Mach kernel headers")
(description (description
"Headers of the GNU Mach kernel.") "Headers of the GNU Mach kernel.")
(license gpl2+))) (license gpl2+))))
(define-public mig (define-public mig
(package (package
@ -264,15 +251,8 @@ Hurd-minimal package which are needed for both glibc and GCC.")
(define-public gnumach (define-public gnumach
(package (package
(inherit gnumach-headers)
(name "gnumach") (name "gnumach")
(version "1.8")
(source (origin
(method url-fetch)
(uri (gnumach-source-url version))
(sha256
(base32
"02hygsfpd2dljl5lg1vjjg9pizi9jyxd4aiiqzjshz6jax62jm9f"))))
(build-system gnu-build-system)
(arguments (arguments
`(#:phases (modify-phases %standard-phases `(#:phases (modify-phases %standard-phases
(add-after 'install 'produce-image (add-after 'install 'produce-image
@ -286,12 +266,9 @@ Hurd-minimal package which are needed for both glibc and GCC.")
`(("mig" ,mig) `(("mig" ,mig)
("perl" ,perl))) ("perl" ,perl)))
(supported-systems (cons "i686-linux" %hurd-systems)) (supported-systems (cons "i686-linux" %hurd-systems))
(home-page
"https://www.gnu.org/software/hurd/microkernel/mach/gnumach.html")
(synopsis "Microkernel of the GNU system") (synopsis "Microkernel of the GNU system")
(description (description
"GNU Mach is the microkernel upon which a GNU Hurd system is based.") "GNU Mach is the microkernel upon which a GNU Hurd system is based.")))
(license gpl2+)))
(define-public hurd (define-public hurd
(package (package