diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2019-06-14 21:35:08 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2019-06-14 21:57:39 +0200 |
| commit | 1ba0b1e6ec41afd94a3c5f907b1122204dcb5d9d (patch) | |
| tree | bb1a81684fe9f5c777b826ad10b104501b0e6189 /gnu/packages.scm | |
| parent | 03d76577b96ba81c9921eb3a297d42db8644280b (diff) | |
packages: Remove 'search-bootstrap-binary'.
* gnu/packages.scm (%bootstrap-binaries-path, search-bootstrap-binary):
Remove.
* gnu/packages/bootstrap.scm (bootstrap-executable): Export.
* guix/tests.scm (bootstrap-binary-file, search-bootstrap-binary):
Export.
* tests/derivations.scm: Remove (gnu packages) import.
* tests/grafts.scm: Likewise.
* tests/guix-daemon.sh: Likewise.
Diffstat (limited to 'gnu/packages.scm')
| -rw-r--r-- | gnu/packages.scm | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/gnu/packages.scm b/gnu/packages.scm index 4742f49405f..2d7622d397a 100644 --- a/gnu/packages.scm +++ b/gnu/packages.scm | |||
| @@ -46,10 +46,8 @@ | |||
| 46 | #:export (search-patch | 46 | #:export (search-patch |
| 47 | search-patches | 47 | search-patches |
| 48 | search-auxiliary-file | 48 | search-auxiliary-file |
| 49 | search-bootstrap-binary | ||
| 50 | %patch-path | 49 | %patch-path |
| 51 | %auxiliary-files-path | 50 | %auxiliary-files-path |
| 52 | %bootstrap-binaries-path | ||
| 53 | %package-module-path | 51 | %package-module-path |
| 54 | %default-package-module-path | 52 | %default-package-module-path |
| 55 | 53 | ||
| @@ -75,18 +73,13 @@ | |||
| 75 | ;;; | 73 | ;;; |
| 76 | ;;; Code: | 74 | ;;; Code: |
| 77 | 75 | ||
| 78 | ;; By default, we store patches, auxiliary files and bootstrap binaries | 76 | ;; By default, we store patches and auxiliary files |
| 79 | ;; alongside Guile modules. This is so that these extra files can be | 77 | ;; alongside Guile modules. This is so that these extra files can be |
| 80 | ;; found without requiring a special setup, such as a specific | 78 | ;; found without requiring a special setup, such as a specific |
| 81 | ;; installation directory and an extra environment variable. One | 79 | ;; installation directory and an extra environment variable. One |
| 82 | ;; advantage of this setup is that everything just works in an | 80 | ;; advantage of this setup is that everything just works in an |
| 83 | ;; auto-compilation setting. | 81 | ;; auto-compilation setting. |
| 84 | 82 | ||
| 85 | (define %bootstrap-binaries-path | ||
| 86 | (make-parameter | ||
| 87 | (map (cut string-append <> "/gnu/packages/bootstrap") | ||
| 88 | %load-path))) | ||
| 89 | |||
| 90 | (define %auxiliary-files-path | 83 | (define %auxiliary-files-path |
| 91 | (make-parameter | 84 | (make-parameter |
| 92 | (map (cut string-append <> "/gnu/packages/aux-files") | 85 | (map (cut string-append <> "/gnu/packages/aux-files") |
| @@ -108,22 +101,6 @@ | |||
| 108 | FILE-NAME found in %PATCH-PATH." | 101 | FILE-NAME found in %PATCH-PATH." |
| 109 | (list (search-patch file-name) ...)) | 102 | (list (search-patch file-name) ...)) |
| 110 | 103 | ||
| 111 | (define (search-bootstrap-binary file-name system) | ||
| 112 | "Search the bootstrap binary FILE-NAME for SYSTEM. Raise an error if not | ||
| 113 | found." | ||
| 114 | ;; On x86_64 always use the i686 binaries. | ||
| 115 | (let ((system (match system | ||
| 116 | ("x86_64-linux" "i686-linux") | ||
| 117 | (_ system)))) | ||
| 118 | (or (search-path (%bootstrap-binaries-path) | ||
| 119 | (string-append system "/" file-name)) | ||
| 120 | (raise (condition | ||
| 121 | (&message | ||
| 122 | (message | ||
| 123 | (format #f (G_ "could not find bootstrap binary '~a' \ | ||
| 124 | for system '~a'") | ||
| 125 | file-name system)))))))) | ||
| 126 | |||
| 127 | (define %distro-root-directory | 104 | (define %distro-root-directory |
| 128 | ;; Absolute file name of the module hierarchy. Since (gnu packages …) might | 105 | ;; Absolute file name of the module hierarchy. Since (gnu packages …) might |
| 129 | ;; live in a directory different from (guix), try to get the best match. | 106 | ;; live in a directory different from (guix), try to get the best match. |
