diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2013-06-21 00:25:54 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2013-06-21 00:25:54 +0200 |
| commit | 56c092ce94cee893898f71ce61e443dd121cccdb (patch) | |
| tree | e0323ffa05b55605112e2ce46500ee13c7707a48 /gnu/packages | |
| parent | d501fad11cfbd69245a4d5e2d632a0ab37985b55 (diff) | |
build-system/gnu: Unify with (guix build-system gnu-cross-build).
* guix/build/gnu-build-system.scm (set-paths): Add `native-inputs' and
`native-search-paths' keyword parameters. Honor them.
(configure): Add `target' and `native-inputs' keyword parameters.
Look for Bash in NATIVE-INPUTS or INPUTS. Pass `--host' when TARGET
is true.
(strip): Add `strip-command' keyword parameter. Use it.
* guix/build/gnu-cross-build.scm: Remove.
* Makefile.am (MODULES): Adjust accordingly.
* gnu/packages/acl.scm, gnu/packages/attr.scm, gnu/packages/base.scm,
gnu/packages/bash.scm, gnu/packages/gawk.scm,
gnu/packages/gettext.scm, gnu/packages/guile.scm,
gnu/packages/libffi.scm, gnu/packages/libsigsegv.scm,
gnu/packages/linux.scm, gnu/packages/ncurses.scm,
gnu/packages/readline.scm, guix/build-system/gnu.scm: Replace
`%standard-cross-phases' by `%standard-phases'. Remove references
to (guix build gnu-cross-build).
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/acl.scm | 2 | ||||
| -rw-r--r-- | gnu/packages/attr.scm | 2 | ||||
| -rw-r--r-- | gnu/packages/base.scm | 4 | ||||
| -rw-r--r-- | gnu/packages/bash.scm | 9 | ||||
| -rw-r--r-- | gnu/packages/gawk.scm | 4 | ||||
| -rw-r--r-- | gnu/packages/gettext.scm | 2 | ||||
| -rw-r--r-- | gnu/packages/guile.scm | 4 | ||||
| -rw-r--r-- | gnu/packages/libffi.scm | 9 | ||||
| -rw-r--r-- | gnu/packages/libsigsegv.scm | 4 | ||||
| -rw-r--r-- | gnu/packages/linux.scm | 10 | ||||
| -rw-r--r-- | gnu/packages/ncurses.scm | 2 | ||||
| -rw-r--r-- | gnu/packages/readline.scm | 4 |
12 files changed, 15 insertions, 41 deletions
diff --git a/gnu/packages/acl.scm b/gnu/packages/acl.scm index 54c9116baf8..b7604dcea6f 100644 --- a/gnu/packages/acl.scm +++ b/gnu/packages/acl.scm | |||
| @@ -46,7 +46,7 @@ | |||
| 46 | (lambda _ | 46 | (lambda _ |
| 47 | (patch-makefile-SHELL "include/buildmacros")) | 47 | (patch-makefile-SHELL "include/buildmacros")) |
| 48 | ,(if (%current-target-system) | 48 | ,(if (%current-target-system) |
| 49 | '%standard-cross-phases | 49 | '%standard-phases |
| 50 | '(alist-replace 'check | 50 | '(alist-replace 'check |
| 51 | (lambda _ | 51 | (lambda _ |
| 52 | (system* "make" "tests" "-C" "test") | 52 | (system* "make" "tests" "-C" "test") |
diff --git a/gnu/packages/attr.scm b/gnu/packages/attr.scm index 3fb15d235fc..2ce50296ac3 100644 --- a/gnu/packages/attr.scm +++ b/gnu/packages/attr.scm | |||
| @@ -55,7 +55,7 @@ | |||
| 55 | 55 | ||
| 56 | ;; When building natively, adjust the test cases. | 56 | ;; When building natively, adjust the test cases. |
| 57 | ,(if (%current-target-system) | 57 | ,(if (%current-target-system) |
| 58 | '%standard-cross-phases | 58 | '%standard-phases |
| 59 | '(alist-replace 'check | 59 | '(alist-replace 'check |
| 60 | (lambda _ | 60 | (lambda _ |
| 61 | ;; Use the right shell. | 61 | ;; Use the right shell. |
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 85380549ff8..95052775c55 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm | |||
| @@ -293,9 +293,7 @@ The tools supplied with this package are: | |||
| 293 | (substitute* (find-files "tests" "\\.sh$") | 293 | (substitute* (find-files "tests" "\\.sh$") |
| 294 | (("#!/bin/sh") | 294 | (("#!/bin/sh") |
| 295 | (format #f "#!~a/bin/bash" bash))))) | 295 | (format #f "#!~a/bin/bash" bash))))) |
| 296 | ,(if (%current-target-system) | 296 | %standard-phases))) |
| 297 | '%standard-cross-phases | ||
| 298 | '%standard-phases)))) | ||
| 299 | (synopsis "Core GNU utilities (file, text, shell)") | 297 | (synopsis "Core GNU utilities (file, text, shell)") |
| 300 | (description | 298 | (description |
| 301 | "The GNU Core Utilities are the basic file, shell and text manipulation | 299 | "The GNU Core Utilities are the basic file, shell and text manipulation |
diff --git a/gnu/packages/bash.scm b/gnu/packages/bash.scm index bf51403f1ae..aa3f397a529 100644 --- a/gnu/packages/bash.scm +++ b/gnu/packages/bash.scm | |||
| @@ -82,9 +82,7 @@ | |||
| 82 | 82 | ||
| 83 | #:phases (alist-cons-after 'install 'post-install | 83 | #:phases (alist-cons-after 'install 'post-install |
| 84 | ,post-install-phase | 84 | ,post-install-phase |
| 85 | ,(if (%current-target-system) | 85 | %standard-phases))) |
| 86 | '%standard-cross-phases | ||
| 87 | '%standard-phases)))) | ||
| 88 | (synopsis "The GNU Bourne-Again SHell") | 86 | (synopsis "The GNU Bourne-Again SHell") |
| 89 | (description | 87 | (description |
| 90 | "Bash is the shell, or command language interpreter, that will appear in | 88 | "Bash is the shell, or command language interpreter, that will appear in |
| @@ -106,10 +104,7 @@ modification.") | |||
| 106 | (let ((args `(#:modules ((guix build gnu-build-system) | 104 | (let ((args `(#:modules ((guix build gnu-build-system) |
| 107 | (guix build utils) | 105 | (guix build utils) |
| 108 | (srfi srfi-1) | 106 | (srfi srfi-1) |
| 109 | (srfi srfi-26) | 107 | (srfi srfi-26)) |
| 110 | ,@(if (%current-target-system) | ||
| 111 | '((guix build gnu-cross-build)) | ||
| 112 | '())) | ||
| 113 | ,@(package-arguments bash)))) | 108 | ,@(package-arguments bash)))) |
| 114 | (substitute-keyword-arguments args | 109 | (substitute-keyword-arguments args |
| 115 | ((#:configure-flags flags) | 110 | ((#:configure-flags flags) |
diff --git a/gnu/packages/gawk.scm b/gnu/packages/gawk.scm index 444fa5e5564..1b19f7bfd25 100644 --- a/gnu/packages/gawk.scm +++ b/gnu/packages/gawk.scm | |||
| @@ -50,9 +50,7 @@ | |||
| 50 | (substitute* "io.c" | 50 | (substitute* "io.c" |
| 51 | (("/bin/sh") | 51 | (("/bin/sh") |
| 52 | (string-append bash "/bin/bash"))))) | 52 | (string-append bash "/bin/bash"))))) |
| 53 | ,(if (%current-target-system) | 53 | %standard-phases))) |
| 54 | '%standard-cross-phases | ||
| 55 | '%standard-phases)))) | ||
| 56 | (inputs `(("libsigsegv" ,libsigsegv) | 54 | (inputs `(("libsigsegv" ,libsigsegv) |
| 57 | 55 | ||
| 58 | ;; TODO: On next core-updates, make Bash input unconditional. | 56 | ;; TODO: On next core-updates, make Bash input unconditional. |
diff --git a/gnu/packages/gettext.scm b/gnu/packages/gettext.scm index e22b1ba6ff2..c838f9c0a6e 100644 --- a/gnu/packages/gettext.scm +++ b/gnu/packages/gettext.scm | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | (arguments | 39 | (arguments |
| 40 | `(#:patches (list (assoc-ref %build-inputs "patch/gets")) | 40 | `(#:patches (list (assoc-ref %build-inputs "patch/gets")) |
| 41 | #:phases ,(if (%current-target-system) | 41 | #:phases ,(if (%current-target-system) |
| 42 | '%standard-cross-phases | 42 | '%standard-phases |
| 43 | '(alist-cons-before | 43 | '(alist-cons-before |
| 44 | 'check 'patch-tests | 44 | 'check 'patch-tests |
| 45 | (lambda* (#:key inputs #:allow-other-keys) | 45 | (lambda* (#:key inputs #:allow-other-keys) |
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm index b53f3eb7704..c4eca3e3508 100644 --- a/gnu/packages/guile.scm +++ b/gnu/packages/guile.scm | |||
| @@ -158,9 +158,7 @@ extensible. It supports many SRFIs.") | |||
| 158 | (substitute* "module/ice-9/popen.scm" | 158 | (substitute* "module/ice-9/popen.scm" |
| 159 | (("/bin/sh") | 159 | (("/bin/sh") |
| 160 | (string-append bash "/bin/bash"))))) | 160 | (string-append bash "/bin/bash"))))) |
| 161 | ,(if (%current-target-system) | 161 | %standard-phases) |
| 162 | '%standard-cross-phases | ||
| 163 | '%standard-phases)) | ||
| 164 | 162 | ||
| 165 | ,@(if (%current-target-system) | 163 | ,@(if (%current-target-system) |
| 166 | '(#:configure-flags '("CC_FOR_BUILD=gcc")) | 164 | '(#:configure-flags '("CC_FOR_BUILD=gcc")) |
diff --git a/gnu/packages/libffi.scm b/gnu/packages/libffi.scm index f7d4a8c908a..fdebab74337 100644 --- a/gnu/packages/libffi.scm +++ b/gnu/packages/libffi.scm | |||
| @@ -49,15 +49,10 @@ | |||
| 49 | "0ln4jbpb6clcsdpb9niqk0frgx4k0xki96wiv067ig0q4cajb7aq")))) | 49 | "0ln4jbpb6clcsdpb9niqk0frgx4k0xki96wiv067ig0q4cajb7aq")))) |
| 50 | (build-system gnu-build-system) | 50 | (build-system gnu-build-system) |
| 51 | (arguments `(#:modules ((guix build utils) (guix build gnu-build-system) | 51 | (arguments `(#:modules ((guix build utils) (guix build gnu-build-system) |
| 52 | (ice-9 ftw) (srfi srfi-26) | 52 | (ice-9 ftw) (srfi srfi-26)) |
| 53 | ,@(if (%current-target-system) | ||
| 54 | '((guix build gnu-cross-build)) | ||
| 55 | '())) | ||
| 56 | #:phases (alist-cons-after 'install 'post-install | 53 | #:phases (alist-cons-after 'install 'post-install |
| 57 | ,post-install-phase | 54 | ,post-install-phase |
| 58 | ,(if (%current-target-system) | 55 | %standard-phases))) |
| 59 | '%standard-cross-phases | ||
| 60 | '%standard-phases)))) | ||
| 61 | (synopsis "Foreign function call interface library") | 56 | (synopsis "Foreign function call interface library") |
| 62 | (description | 57 | (description |
| 63 | "The libffi library provides a portable, high level programming interface | 58 | "The libffi library provides a portable, high level programming interface |
diff --git a/gnu/packages/libsigsegv.scm b/gnu/packages/libsigsegv.scm index 4689b3d8b5d..62fb40737ac 100644 --- a/gnu/packages/libsigsegv.scm +++ b/gnu/packages/libsigsegv.scm | |||
| @@ -49,9 +49,7 @@ | |||
| 49 | (lambda _ | 49 | (lambda _ |
| 50 | (substitute* "src/fault-linux-mips-old.h" | 50 | (substitute* "src/fault-linux-mips-old.h" |
| 51 | (("#include <asm/sigcontext\\.h>") ""))) | 51 | (("#include <asm/sigcontext\\.h>") ""))) |
| 52 | ,(if (%current-target-system) | 52 | %standard-phases)) |
| 53 | '%standard-cross-phases | ||
| 54 | '%standard-phases))) | ||
| 55 | '())) | 53 | '())) |
| 56 | (description | 54 | (description |
| 57 | "GNU libsigsegv is a library for handling page faults in user mode. A page | 55 | "GNU libsigsegv is a library for handling page faults in user mode. A page |
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 0bc9fbcb5e3..dde53e9f5d8 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm | |||
| @@ -80,18 +80,12 @@ | |||
| 80 | (arguments | 80 | (arguments |
| 81 | `(#:modules ((guix build gnu-build-system) | 81 | `(#:modules ((guix build gnu-build-system) |
| 82 | (guix build utils) | 82 | (guix build utils) |
| 83 | (srfi srfi-1) | 83 | (srfi srfi-1)) |
| 84 | ,@(if (%current-target-system) | ||
| 85 | '((guix build gnu-cross-build)) | ||
| 86 | '())) | ||
| 87 | #:phases (alist-replace | 84 | #:phases (alist-replace |
| 88 | 'build ,(build-phase (%current-system)) | 85 | 'build ,(build-phase (%current-system)) |
| 89 | (alist-replace | 86 | (alist-replace |
| 90 | 'install ,install-phase | 87 | 'install ,install-phase |
| 91 | (alist-delete 'configure | 88 | (alist-delete 'configure %standard-phases))) |
| 92 | ,(if (%current-target-system) | ||
| 93 | '%standard-cross-phases | ||
| 94 | '%standard-phases)))) | ||
| 95 | #:tests? #f)) | 89 | #:tests? #f)) |
| 96 | (synopsis "GNU Linux-Libre kernel headers") | 90 | (synopsis "GNU Linux-Libre kernel headers") |
| 97 | (description "Headers of the Linux-Libre kernel.") | 91 | (description "Headers of the Linux-Libre kernel.") |
diff --git a/gnu/packages/ncurses.scm b/gnu/packages/ncurses.scm index c1badae8a38..e5a9bce0f1e 100644 --- a/gnu/packages/ncurses.scm +++ b/gnu/packages/ncurses.scm | |||
| @@ -116,7 +116,7 @@ | |||
| 116 | ,cross-pre-install-phase | 116 | ,cross-pre-install-phase |
| 117 | (alist-cons-after | 117 | (alist-cons-after |
| 118 | 'install 'post-install ,post-install-phase | 118 | 'install 'post-install ,post-install-phase |
| 119 | %standard-cross-phases))) | 119 | %standard-phases))) |
| 120 | 120 | ||
| 121 | `(alist-cons-after ; native build | 121 | `(alist-cons-after ; native build |
| 122 | 'install 'post-install ,post-install-phase | 122 | 'install 'post-install ,post-install-phase |
diff --git a/gnu/packages/readline.scm b/gnu/packages/readline.scm index 1fb43769712..8857666fcc4 100644 --- a/gnu/packages/readline.scm +++ b/gnu/packages/readline.scm | |||
| @@ -61,9 +61,7 @@ | |||
| 61 | #:phases (alist-cons-after | 61 | #:phases (alist-cons-after |
| 62 | 'install 'post-install | 62 | 'install 'post-install |
| 63 | ,post-install-phase | 63 | ,post-install-phase |
| 64 | ,(if (%current-target-system) | 64 | %standard-phases))) |
| 65 | '%standard-cross-phases | ||
| 66 | '%standard-phases)))) | ||
| 67 | (synopsis "Edit command lines while typing, with history support") | 65 | (synopsis "Edit command lines while typing, with history support") |
| 68 | (description | 66 | (description |
| 69 | "The GNU Readline library provides a set of functions for use by | 67 | "The GNU Readline library provides a set of functions for use by |
