[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/20: gnu: cross-base: Build the correct cross-mig.
From: |
Manolis Fragkiskos Ragkousis |
Subject: |
09/20: gnu: cross-base: Build the correct cross-mig. |
Date: |
Thu, 11 Feb 2016 13:37:49 +0000 |
phant0mas pushed a commit to branch wip-hurd
in repository guix.
commit 74ca66051b74138e6e38743b11cba614a3fe5bd3
Author: Manolis Ragkousis <address@hidden>
Date: Tue Jun 16 22:47:16 2015 +0300
gnu: cross-base: Build the correct cross-mig.
* gnu/packages/cross-base.scm (xmig): Pass '--target=' instead of
'--host=' and set the CROSS_CPATH.
* gnu/packages/hurd.scm (hurd-minimal): Move #:configure-flags
from here...
(hurd-headers): ...to here. Change '--build' to '--host'.
---
gnu/packages/cross-base.scm | 13 ++++++--
gnu/packages/hurd.scm | 68 +++++++++++++++++++------------------------
2 files changed, 39 insertions(+), 42 deletions(-)
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 4797478..3e4d60d 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -327,10 +327,15 @@ XBINUTILS and the cross tool chain."
(package (inherit mig)
(name (string-append "mig-cross"))
(arguments
- (substitute-keyword-arguments (package-arguments mig)
- ((#:configure-flags flags)
- `(cons ,(string-append "--host=" target)
- ,flags))))
+ `(#:phases (alist-cons-before
+ 'configure 'set-cross-headers-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((mach (assoc-ref inputs "cross-gnumach-headers")))
+ (setenv "CROSS_CPATH"
+ (string-append mach "/include"))))
+ %standard-phases)
+ #:configure-flags (list ,(string-append "--target=" target))
+ ,@(package-arguments mig)))
(propagated-inputs `(("cross-gnumach-headers" ,xgnumach-headers)))
(native-inputs `(("cross-gcc" ,xgcc)
diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index 30eaa3c..f7ac771 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -21,6 +21,7 @@
#:use-module (guix download)
#:use-module (guix packages)
#:use-module (gnu packages)
+ #:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module (gnu packages flex)
#:use-module (gnu packages bison)
@@ -125,10 +126,17 @@ communication.")
;; that.
,@(if (%current-target-system)
'()
- '("--build=i686-pc-gnu"))
+ '("--host=i686-pc-gnu"))
;; Reduce set of dependencies.
- "--without-parted")
+ "--disable-ncursesw"
+ "--disable-test"
+ "--without-libbz2"
+ "--without-libz"
+ "--without-parted"
+ ;; Skip the clnt_create check because it expects
+ ;; a working glibc causing a circular dependency.
+ "ac_cv_search_clnt_create=no")
#:tests? #f))
(home-page "http://www.gnu.org/software/hurd/hurd.html")
@@ -147,42 +155,26 @@ Library and other user programs.")
("mig" ,mig)))
(arguments
- `(#:phases (alist-replace
- 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- ;; We need to copy libihash.a to the output directory
manually,
- ;; since there is no target for that in the makefile.
- (mkdir-p (string-append out "/include"))
- (copy-file "libihash/ihash.h"
- (string-append out "/include/ihash.h"))
- (mkdir-p (string-append out "/lib"))
- (copy-file "libihash/libihash.a"
- (string-append out "/lib/libihash.a"))
- #t))
- (alist-replace
- 'build
- (lambda _
- (zero? (system* "make" "-Clibihash" "libihash.a")))
- (alist-cons-before
- 'configure 'bootstrap
- (lambda _
- (zero? (system* "autoreconf" "-vfi")))
- %standard-phases)))
- #:configure-flags '(;; Pretend we're on GNU/Hurd; 'configure' wants
- ;; that.
- "--host=i686-pc-gnu"
-
- ;; Reduce set of dependencies.
- "--disable-ncursesw"
- "--disable-test"
- "--without-libbz2"
- "--without-libz"
- "--without-parted"
- ;; Skip the clnt_create check because it expects
- ;; a working glibc causing a circular dependency.
- "ac_cv_search_clnt_create=no")
- #:tests? #f))
+ (substitute-keyword-arguments (package-arguments hurd-headers)
+ ((#:phases _)
+ '(alist-replace
+ 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ ;; We need to copy libihash.a to the output directory manually,
+ ;; since there is no target for that in the makefile.
+ (mkdir-p (string-append out "/include"))
+ (copy-file "libihash/ihash.h"
+ (string-append out "/include/ihash.h"))
+ (mkdir-p (string-append out "/lib"))
+ (copy-file "libihash/libihash.a"
+ (string-append out "/lib/libihash.a"))
+ #t))
+ (alist-replace
+ 'build
+ (lambda _
+ (zero? (system* "make" "-Clibihash" "libihash.a")))
+ %standard-phases)))))
(home-page "http://www.gnu.org/software/hurd/hurd.html")
(synopsis "GNU Hurd libraries")
(description
- branch wip-hurd created (now adce9bf), Manolis Fragkiskos Ragkousis, 2016/02/11
- 01/20: gnu: base: Add glibc-hurd and hurd-minimal., Manolis Fragkiskos Ragkousis, 2016/02/11
- 02/20: gnu: cross-base: Add support to cross-build libc for GNU/Hurd., Manolis Fragkiskos Ragkousis, 2016/02/11
- 03/20: gnu: cross-base: Make it aware of non-Linux (ie. Hurd) systems., Manolis Fragkiskos Ragkousis, 2016/02/11
- 04/20: gnu: gcc: Also substitute the dynamic linker name for GNU (ie. Hurd) systems., Manolis Fragkiskos Ragkousis, 2016/02/11
- 05/20: gnu: hurd: Pass --build to gnumach-headers when not cross building., Manolis Fragkiskos Ragkousis, 2016/02/11
- 06/20: gnu: hurd: Pass --build to hurd-headers when not cross building., Manolis Fragkiskos Ragkousis, 2016/02/11
- 07/20: gnu: base: Updated glibc-hurd to 2.19 and removed patches., Manolis Fragkiskos Ragkousis, 2016/02/11
- 08/20: gnu: base: Added glibc-for-target macro., Manolis Fragkiskos Ragkousis, 2016/02/11
- 09/20: gnu: cross-base: Build the correct cross-mig.,
Manolis Fragkiskos Ragkousis <=
- 10/20: gnu: base: Build glibc-hurd for i586-pc-gnu instead of i686-pc-gnu., Manolis Fragkiskos Ragkousis, 2016/02/11
- 11/20: gnu: make-bootstrap: Produce the correct %glibc-bootstrap-tarball for Hurd systems., Manolis Fragkiskos Ragkousis, 2016/02/11
- 12/20: gnu: base: Disable bogus code in Hurd's glibc., Manolis Fragkiskos Ragkousis, 2016/02/11
- 13/20: gnu: hurd: Add hurd-kernel-headers package., Manolis Fragkiskos Ragkousis, 2016/02/11
- 14/20: gnu: glibc/hurd: Use hurd-kernel-headers package., Manolis Fragkiskos Ragkousis, 2016/02/11
- 15/20: gnu: cross-gcc, cross-libc: Use hurd-kernel-headers., Manolis Fragkiskos Ragkousis, 2016/02/11
- 16/20: gnu: base: Add libmachuser.so and libhurduser.so to libc.so's search path., Manolis Fragkiskos Ragkousis, 2016/02/11
- 17/20: gnu: glibc/hurd: Make glibc aware of "--with-headers" argument., Manolis Fragkiskos Ragkousis, 2016/02/11
- 18/20: gnu: commencement: Add support for a native GNU/Hurd system., Manolis Fragkiskos Ragkousis, 2016/02/11
- 19/20: gnu: glibc-hurd: Update to 20151031., Manolis Fragkiskos Ragkousis, 2016/02/11