diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-19 22:33:32 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-03-08 14:13:49 +0100 |
| commit | 01ff86a9bb2ac99232845ea70c91adbf117236d3 (patch) | |
| tree | e2905f6f2bff24aafeaef00bf0c615b374047e1a /gnu/packages/bootstrap.scm | |
| parent | 1758aca454d5a5c26a9fef29f239ef5a65f161d7 (diff) | |
gnu: guix: Drop input labels.
* gnu/packages/bootstrap.scm
(bootstrap-executable*): Add a file-name argument to the former
bootstrap-executable and rename from it.
(bootstrap-executable): New procedure, matching the API of the
previous procedure, and adding the file-name argument when absent and
needed.
* gnu/packages/package-management.scm (guix)[inputs]: Drop input labels.
[arguments]<#:phases>: In phase 'copy-bootstrap-guile, adapt input
selection and the intern procedure for this purpose.
(guix-daemon)[inputs]: Adapt input removal.
* tests/packages.scm (package-source-derivation, snippet): Adapt
bootstrap-guile-origin call.
Change-Id: I9ca2f0170c386575fccf96e05f9979219364255b
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #5154
Diffstat (limited to 'gnu/packages/bootstrap.scm')
| -rw-r--r-- | gnu/packages/bootstrap.scm | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm index 0b4b29c833a..01053fb3e19 100644 --- a/gnu/packages/bootstrap.scm +++ b/gnu/packages/bootstrap.scm | |||
| @@ -46,7 +46,8 @@ | |||
| 46 | #:use-module (srfi srfi-34) | 46 | #:use-module (srfi srfi-34) |
| 47 | #:use-module (srfi srfi-35) | 47 | #:use-module (srfi srfi-35) |
| 48 | #:use-module (ice-9 match) | 48 | #:use-module (ice-9 match) |
| 49 | #:export (bootstrap-origin | 49 | #:export (bootstrap-guile-url-path |
| 50 | bootstrap-origin | ||
| 50 | package-with-bootstrap-guile | 51 | package-with-bootstrap-guile |
| 51 | glibc-dynamic-linker | 52 | glibc-dynamic-linker |
| 52 | 53 | ||
| @@ -181,8 +182,8 @@ | |||
| 181 | (_ (string-append system "/" program | 182 | (_ (string-append system "/" program |
| 182 | "?id=44f07d1dc6806e97c4e9ee3e6be883cc59dc666e")))) | 183 | "?id=44f07d1dc6806e97c4e9ee3e6be883cc59dc666e")))) |
| 183 | 184 | ||
| 184 | (define bootstrap-executable | 185 | (define bootstrap-executable* |
| 185 | (mlambda (program system) | 186 | (mlambda (program system file-name) |
| 186 | "Return an origin for PROGRAM, a statically-linked bootstrap executable | 187 | "Return an origin for PROGRAM, a statically-linked bootstrap executable |
| 187 | built for SYSTEM." | 188 | built for SYSTEM." |
| 188 | (let ((system (if (string=? system "x86_64-linux") | 189 | (let ((system (if (string=? system "x86_64-linux") |
| @@ -203,9 +204,15 @@ for system '~a'") | |||
| 203 | (uri (map (cute string-append <> | 204 | (uri (map (cute string-append <> |
| 204 | (bootstrap-executable-file-name system program)) | 205 | (bootstrap-executable-file-name system program)) |
| 205 | %bootstrap-executable-base-urls)) | 206 | %bootstrap-executable-base-urls)) |
| 206 | (file-name program) | 207 | ;; XXX: In the long term, migrate all boostrap executables to |
| 208 | ;; (string-append "bootstrap-" program), and drop the additional | ||
| 209 | ;; file-name argument. | ||
| 210 | (file-name file-name) | ||
| 207 | (hash (content-hash bv sha256)))))))) | 211 | (hash (content-hash bv sha256)))))))) |
| 208 | 212 | ||
| 213 | (define* (bootstrap-executable program system #:optional file-name) | ||
| 214 | (bootstrap-executable* program system (or file-name program))) | ||
| 215 | |||
| 209 | 216 | ||
| 210 | ;;; | 217 | ;;; |
| 211 | ;;; Helper procedures. | 218 | ;;; Helper procedures. |
