summaryrefslogtreecommitdiff
path: root/gnu/packages.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-12-20 19:57:28 +0100
committerLudovic Courtès <ludo@gnu.org>2018-12-20 20:01:10 +0100
commitea8be005d409658dea4f4356e9279784ce0a5a39 (patch)
tree5e2e22332f37cbf171a75d524b60a87c7f8afd12 /gnu/packages.scm
parent86974d8a9247cbeb938b5202f23ccca8d9ed627d (diff)
gnu: Use i686-linux bootstrap binaries on x86_64-linux.
This saves 4.4 MB on the installed Guix. * gnu/packages/bootstrap/x86_64-linux: Remove directory. * gnu/local.mk (bootstrap_x86_64_linuxdir) (dist_bootstrap_x86_64_linux_DATA): Remove. * gnu/packages.scm (search-bootstrap-binary): When SYSTEM is "x86_64-linux", use "i686-linux" instead.
Diffstat (limited to 'gnu/packages.scm')
-rw-r--r--gnu/packages.scm18
1 files changed, 11 insertions, 7 deletions
diff --git a/gnu/packages.scm b/gnu/packages.scm
index 532297239d2..333b18f9f0b 100644
--- a/gnu/packages.scm
+++ b/gnu/packages.scm
@@ -102,14 +102,18 @@ FILE-NAME found in %PATCH-PATH."
102(define (search-bootstrap-binary file-name system) 102(define (search-bootstrap-binary file-name system)
103 "Search the bootstrap binary FILE-NAME for SYSTEM. Raise an error if not 103 "Search the bootstrap binary FILE-NAME for SYSTEM. Raise an error if not
104found." 104found."
105 (or (search-path (%bootstrap-binaries-path) 105 ;; On x86_64 always use the i686 binaries.
106 (string-append system "/" file-name)) 106 (let ((system (match system
107 (raise (condition 107 ("x86_64-linux" "i686-linux")
108 (&message 108 (_ system))))
109 (message 109 (or (search-path (%bootstrap-binaries-path)
110 (format #f (G_ "could not find bootstrap binary '~a' \ 110 (string-append system "/" file-name))
111 (raise (condition
112 (&message
113 (message
114 (format #f (G_ "could not find bootstrap binary '~a' \
111for system '~a'") 115for system '~a'")
112 file-name system))))))) 116 file-name system))))))))
113 117
114(define %distro-root-directory 118(define %distro-root-directory
115 ;; Absolute file name of the module hierarchy. Since (gnu packages …) might 119 ;; Absolute file name of the module hierarchy. Since (gnu packages …) might