diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2020-01-06 15:14:09 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2020-01-06 16:31:54 +0100 |
| commit | 6a7c4636d4dec47eefa03c95da5a1315bd0e0413 (patch) | |
| tree | 78a0f28f2c7d4de31d3368ec6df399cc604f67b1 | |
| parent | 9961cde3835743643e562e0034a73356b1d1eb0f (diff) | |
Adjust module autoloads.
In Guile < 2.9.7, autoloading a module would give you access to all its
bindings. In future versions, autoloading a module gives access only to
the listed bindings, as per #:select (see <https://bugs.gnu.org/38895>).
This commit adjusts autoloads to the new semantics, allowing Guix to be
built with Guile 2.9.7/2.9.8.
* guix/build/download.scm <top level>: Remove call to 'module-autoload!'.
(load-gnutls): New procedure.
(tls-wrap): Call it.
* guix/git.scm <top level>: Remove call to 'module-autoload!'.
(load-git-submodules): New procedure.
(update-submodules): Call it instead of 'resolve-interface'.
* gnu/bootloader/grub.scm: Replace #:autoload with #:use-module.
* gnu/packages.scm: Likewise.
* gnu/packages/ssh.scm: Likewise.
* gnu/packages/tex.scm: Likewise.
* gnu/services/cuirass.scm: Likewise.
* gnu/services/mcron.scm: Likewise.
* guix/lint.scm: Augment list of bindings in #:autoload.
* guix/scripts/build.scm: Likewise.
* guix/scripts/gc.scm: Likewise.
* guix/scripts/pack.scm: Likewise.
* guix/scripts/publish.scm: Likewise.
* guix/scripts/pull.scm: Likewise.
* guix/utils.scm: Remove unnecessary #:autoload clauses; replace one
of them with #:use-module.
| -rw-r--r-- | gnu/bootloader/grub.scm | 2 | ||||
| -rw-r--r-- | gnu/packages.scm | 6 | ||||
| -rw-r--r-- | gnu/packages/ssh.scm | 6 | ||||
| -rw-r--r-- | gnu/packages/tex.scm | 2 | ||||
| -rw-r--r-- | gnu/services/cuirass.scm | 6 | ||||
| -rw-r--r-- | gnu/services/mcron.scm | 4 | ||||
| -rw-r--r-- | guix/build/download.scm | 13 | ||||
| -rw-r--r-- | guix/git.scm | 21 | ||||
| -rw-r--r-- | guix/lint.scm | 3 | ||||
| -rw-r--r-- | guix/scripts/build.scm | 6 | ||||
| -rw-r--r-- | guix/scripts/gc.scm | 2 | ||||
| -rw-r--r-- | guix/scripts/pack.scm | 6 | ||||
| -rw-r--r-- | guix/scripts/publish.scm | 6 | ||||
| -rw-r--r-- | guix/scripts/pull.scm | 6 | ||||
| -rw-r--r-- | guix/utils.scm | 7 |
15 files changed, 54 insertions, 42 deletions
diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm index adcdbdbab01..f13685ac9dd 100644 --- a/gnu/bootloader/grub.scm +++ b/gnu/bootloader/grub.scm | |||
| @@ -28,7 +28,7 @@ | |||
| 28 | #:use-module (gnu system uuid) | 28 | #:use-module (gnu system uuid) |
| 29 | #:use-module (gnu system file-systems) | 29 | #:use-module (gnu system file-systems) |
| 30 | #:use-module (gnu system keyboard) | 30 | #:use-module (gnu system keyboard) |
| 31 | #:autoload (gnu packages bootloaders) (grub) | 31 | #:use-module (gnu packages bootloaders) |
| 32 | #:autoload (gnu packages gtk) (guile-cairo guile-rsvg) | 32 | #:autoload (gnu packages gtk) (guile-cairo guile-rsvg) |
| 33 | #:autoload (gnu packages xorg) (xkeyboard-config) | 33 | #:autoload (gnu packages xorg) (xkeyboard-config) |
| 34 | #:use-module (ice-9 match) | 34 | #:use-module (ice-9 match) |
diff --git a/gnu/packages.scm b/gnu/packages.scm index 959777ff8ff..143469b288a 100644 --- a/gnu/packages.scm +++ b/gnu/packages.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2013 Mark H Weaver <mhw@netris.org> | 3 | ;;; Copyright © 2013 Mark H Weaver <mhw@netris.org> |
| 4 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> | 4 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
| 5 | ;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com> | 5 | ;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com> |
| @@ -30,12 +30,12 @@ | |||
| 30 | #:select ((package-name->name+version | 30 | #:select ((package-name->name+version |
| 31 | . hyphen-separated-name->name+version) | 31 | . hyphen-separated-name->name+version) |
| 32 | mkdir-p)) | 32 | mkdir-p)) |
| 33 | #:autoload (guix profiles) (packages->manifest) | 33 | #:use-module (guix profiles) |
| 34 | #:use-module (guix describe) | 34 | #:use-module (guix describe) |
| 35 | #:use-module (guix deprecation) | 35 | #:use-module (guix deprecation) |
| 36 | #:use-module (ice-9 vlist) | 36 | #:use-module (ice-9 vlist) |
| 37 | #:use-module (ice-9 match) | 37 | #:use-module (ice-9 match) |
| 38 | #:autoload (ice-9 binary-ports) (put-bytevector) | 38 | #:use-module (ice-9 binary-ports) |
| 39 | #:autoload (system base compile) (compile) | 39 | #:autoload (system base compile) (compile) |
| 40 | #:use-module (srfi srfi-1) | 40 | #:use-module (srfi srfi-1) |
| 41 | #:use-module (srfi srfi-11) | 41 | #:use-module (srfi srfi-11) |
diff --git a/gnu/packages/ssh.scm b/gnu/packages/ssh.scm index 45b8f0db00a..ec4f00d8e61 100644 --- a/gnu/packages/ssh.scm +++ b/gnu/packages/ssh.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr> | 3 | ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr> |
| 4 | ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org> | 4 | ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org> |
| 5 | ;;; Copyright © 2015, 2016, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> | 5 | ;;; Copyright © 2015, 2016, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> |
| @@ -32,7 +32,7 @@ | |||
| 32 | #:use-module (gnu packages) | 32 | #:use-module (gnu packages) |
| 33 | #:use-module (gnu packages autotools) | 33 | #:use-module (gnu packages autotools) |
| 34 | #:use-module (gnu packages base) | 34 | #:use-module (gnu packages base) |
| 35 | #:autoload (gnu packages boost) (boost) | 35 | #:use-module (gnu packages boost) |
| 36 | #:use-module (gnu packages compression) | 36 | #:use-module (gnu packages compression) |
| 37 | #:use-module (gnu packages crypto) | 37 | #:use-module (gnu packages crypto) |
| 38 | #:use-module (gnu packages elf) | 38 | #:use-module (gnu packages elf) |
| @@ -51,7 +51,7 @@ | |||
| 51 | #:use-module (gnu packages perl) | 51 | #:use-module (gnu packages perl) |
| 52 | #:use-module (gnu packages pkg-config) | 52 | #:use-module (gnu packages pkg-config) |
| 53 | #:use-module (gnu packages popt) | 53 | #:use-module (gnu packages popt) |
| 54 | #:autoload (gnu packages protobuf) (protobuf) | 54 | #:use-module (gnu packages protobuf) |
| 55 | #:use-module (gnu packages python) | 55 | #:use-module (gnu packages python) |
| 56 | #:use-module (gnu packages python-xyz) | 56 | #:use-module (gnu packages python-xyz) |
| 57 | #:use-module (gnu packages readline) | 57 | #:use-module (gnu packages readline) |
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index d184d7616b8..e4346d1232c 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm | |||
| @@ -71,7 +71,7 @@ | |||
| 71 | #:use-module (gnu packages xml) | 71 | #:use-module (gnu packages xml) |
| 72 | #:use-module (gnu packages xorg) | 72 | #:use-module (gnu packages xorg) |
| 73 | #:use-module (gnu packages xdisorg) | 73 | #:use-module (gnu packages xdisorg) |
| 74 | #:autoload (gnu packages texinfo) (texinfo) | 74 | #:use-module (gnu packages texinfo) |
| 75 | #:use-module (ice-9 ftw) | 75 | #:use-module (ice-9 ftw) |
| 76 | #:use-module (ice-9 match) | 76 | #:use-module (ice-9 match) |
| 77 | #:use-module ((srfi srfi-1) #:hide (zip))) | 77 | #:use-module ((srfi srfi-1) #:hide (zip))) |
diff --git a/gnu/services/cuirass.scm b/gnu/services/cuirass.scm index d92421762a7..7bfb021161d 100644 --- a/gnu/services/cuirass.scm +++ b/gnu/services/cuirass.scm | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org> | 2 | ;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org> |
| 3 | ;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> | 4 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
| 5 | ;;; Copyright © 2017 Jan Nieuwenhuizen <janneke@gnu.org> | 5 | ;;; Copyright © 2017 Jan Nieuwenhuizen <janneke@gnu.org> |
| 6 | ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net> | 6 | ;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net> |
| @@ -25,8 +25,8 @@ | |||
| 25 | #:use-module (guix gexp) | 25 | #:use-module (guix gexp) |
| 26 | #:use-module (guix records) | 26 | #:use-module (guix records) |
| 27 | #:use-module (gnu packages admin) | 27 | #:use-module (gnu packages admin) |
| 28 | #:autoload (gnu packages ci) (cuirass) | 28 | #:use-module (gnu packages ci) |
| 29 | #:autoload (gnu packages version-control) (git) | 29 | #:use-module (gnu packages version-control) |
| 30 | #:use-module (gnu services) | 30 | #:use-module (gnu services) |
| 31 | #:use-module (gnu services base) | 31 | #:use-module (gnu services base) |
| 32 | #:use-module (gnu services shepherd) | 32 | #:use-module (gnu services shepherd) |
diff --git a/gnu/services/mcron.scm b/gnu/services/mcron.scm index 1327516b493..d9627c6bd00 100644 --- a/gnu/services/mcron.scm +++ b/gnu/services/mcron.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; | 3 | ;;; |
| 4 | ;;; This file is part of GNU Guix. | 4 | ;;; This file is part of GNU Guix. |
| 5 | ;;; | 5 | ;;; |
| @@ -19,7 +19,7 @@ | |||
| 19 | (define-module (gnu services mcron) | 19 | (define-module (gnu services mcron) |
| 20 | #:use-module (gnu services) | 20 | #:use-module (gnu services) |
| 21 | #:use-module (gnu services shepherd) | 21 | #:use-module (gnu services shepherd) |
| 22 | #:autoload (gnu packages guile-xyz) (mcron) | 22 | #:use-module (gnu packages guile-xyz) |
| 23 | #:use-module (guix deprecation) | 23 | #:use-module (guix deprecation) |
| 24 | #:use-module (guix records) | 24 | #:use-module (guix records) |
| 25 | #:use-module (guix gexp) | 25 | #:use-module (guix gexp) |
diff --git a/guix/build/download.scm b/guix/build/download.scm index a7bb3b0d6e6..641dacefa1f 100644 --- a/guix/build/download.scm +++ b/guix/build/download.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> | 3 | ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> |
| 4 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> | 4 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
| 5 | ;;; | 5 | ;;; |
| @@ -155,11 +155,11 @@ out if the connection could not be established in less than TIMEOUT seconds." | |||
| 155 | ;; be bound if we need them, because (guix download) adds GnuTLS as an | 155 | ;; be bound if we need them, because (guix download) adds GnuTLS as an |
| 156 | ;; input in that case. | 156 | ;; input in that case. |
| 157 | 157 | ||
| 158 | ;; XXX: Use this hack instead of #:autoload to avoid compilation errors. | 158 | (define (load-gnutls) |
| 159 | ;; See <http://bugs.gnu.org/12202>. | 159 | ;; XXX: Use this hack instead of #:autoload to avoid compilation errors. |
| 160 | (module-autoload! (current-module) | 160 | ;; See <http://bugs.gnu.org/12202>. |
| 161 | '(gnutls) | 161 | (module-use! (current-module) (resolve-interface '(gnutls))) |
| 162 | '(make-session connection-end/client)) | 162 | (set! load-gnutls (const #t))) |
| 163 | 163 | ||
| 164 | (define %x509-certificate-directory | 164 | (define %x509-certificate-directory |
| 165 | ;; The directory where X.509 authority PEM certificates are stored. | 165 | ;; The directory where X.509 authority PEM certificates are stored. |
| @@ -245,6 +245,7 @@ host name without trailing dot." | |||
| 245 | (format (current-error-port) | 245 | (format (current-error-port) |
| 246 | "gnutls: [~a|~a] ~a" (getpid) level str)) | 246 | "gnutls: [~a|~a] ~a" (getpid) level str)) |
| 247 | 247 | ||
| 248 | (load-gnutls) | ||
| 248 | (let ((session (make-session connection-end/client)) | 249 | (let ((session (make-session connection-end/client)) |
| 249 | (ca-certs (%x509-certificate-directory))) | 250 | (ca-certs (%x509-certificate-directory))) |
| 250 | 251 | ||
diff --git a/guix/git.scm b/guix/git.scm index 83af596ef5b..15a0a6f9e5c 100644 --- a/guix/git.scm +++ b/guix/git.scm | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> | 2 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
| 3 | ;;; Copyright © 2018, 2019 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; | 4 | ;;; |
| 5 | ;;; This file is part of GNU Guix. | 5 | ;;; This file is part of GNU Guix. |
| 6 | ;;; | 6 | ;;; |
| @@ -48,11 +48,6 @@ | |||
| 48 | git-checkout-url | 48 | git-checkout-url |
| 49 | git-checkout-branch)) | 49 | git-checkout-branch)) |
| 50 | 50 | ||
| 51 | ;; XXX: Use this hack instead of #:autoload to avoid compilation errors. | ||
| 52 | ;; See <http://bugs.gnu.org/12202>. | ||
| 53 | (module-autoload! (current-module) | ||
| 54 | '(git submodule) '(repository-submodules)) | ||
| 55 | |||
| 56 | (define %repository-cache-directory | 51 | (define %repository-cache-directory |
| 57 | (make-parameter (string-append (cache-directory #:ensure? #f) | 52 | (make-parameter (string-append (cache-directory #:ensure? #f) |
| 58 | "/checkouts"))) | 53 | "/checkouts"))) |
| @@ -200,11 +195,23 @@ dynamic extent of EXP." | |||
| 200 | (call-with-repository directory | 195 | (call-with-repository directory |
| 201 | (lambda (repository) exp ...))) | 196 | (lambda (repository) exp ...))) |
| 202 | 197 | ||
| 198 | (define (load-git-submodules) | ||
| 199 | "Attempt to load (git submodules), which was missing until Guile-Git 0.2.0. | ||
| 200 | Return true on success, false on failure." | ||
| 201 | (match (false-if-exception (resolve-interface '(git submodule))) | ||
| 202 | (#f | ||
| 203 | (set! load-git-submodules (const #f)) | ||
| 204 | #f) | ||
| 205 | (iface | ||
| 206 | (module-use! (current-module) iface) | ||
| 207 | (set! load-git-submodules (const #t)) | ||
| 208 | #t))) | ||
| 209 | |||
| 203 | (define* (update-submodules repository | 210 | (define* (update-submodules repository |
| 204 | #:key (log-port (current-error-port))) | 211 | #:key (log-port (current-error-port))) |
| 205 | "Update the submodules of REPOSITORY, a Git repository object." | 212 | "Update the submodules of REPOSITORY, a Git repository object." |
| 206 | ;; Guile-Git < 0.2.0 did not have (git submodule). | 213 | ;; Guile-Git < 0.2.0 did not have (git submodule). |
| 207 | (if (false-if-exception (resolve-interface '(git submodule))) | 214 | (if (load-git-submodules) |
| 208 | (for-each (lambda (name) | 215 | (for-each (lambda (name) |
| 209 | (let ((submodule (submodule-lookup repository name))) | 216 | (let ((submodule (submodule-lookup repository name))) |
| 210 | (format log-port (G_ "updating submodule '~a'...~%") | 217 | (format log-port (G_ "updating submodule '~a'...~%") |
diff --git a/guix/lint.scm b/guix/lint.scm index 41ddff584d1..e3544bd963b 100644 --- a/guix/lint.scm +++ b/guix/lint.scm | |||
| @@ -45,7 +45,8 @@ | |||
| 45 | #:use-module (guix gnu-maintenance) | 45 | #:use-module (guix gnu-maintenance) |
| 46 | #:use-module (guix cve) | 46 | #:use-module (guix cve) |
| 47 | #:use-module ((guix swh) #:hide (origin?)) | 47 | #:use-module ((guix swh) #:hide (origin?)) |
| 48 | #:autoload (guix git-download) (git-reference?) | 48 | #:autoload (guix git-download) (git-reference? |
| 49 | git-reference-url git-reference-commit) | ||
| 49 | #:use-module (ice-9 match) | 50 | #:use-module (ice-9 match) |
| 50 | #:use-module (ice-9 regex) | 51 | #:use-module (ice-9 regex) |
| 51 | #:use-module (ice-9 format) | 52 | #:use-module (ice-9 format) |
diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm index a853ac6c7d7..1ab3a80e660 100644 --- a/guix/scripts/build.scm +++ b/guix/scripts/build.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2013 Mark H Weaver <mhw@netris.org> | 3 | ;;; Copyright © 2013 Mark H Weaver <mhw@netris.org> |
| 4 | ;;; | 4 | ;;; |
| 5 | ;;; This file is part of GNU Guix. | 5 | ;;; This file is part of GNU Guix. |
| @@ -45,8 +45,8 @@ | |||
| 45 | #:use-module (srfi srfi-37) | 45 | #:use-module (srfi srfi-37) |
| 46 | #:autoload (gnu packages) (specification->package %package-module-path) | 46 | #:autoload (gnu packages) (specification->package %package-module-path) |
| 47 | #:autoload (guix download) (download-to-store) | 47 | #:autoload (guix download) (download-to-store) |
| 48 | #:autoload (guix git-download) (git-reference?) | 48 | #:autoload (guix git-download) (git-reference? git-reference-url) |
| 49 | #:autoload (guix git) (git-checkout?) | 49 | #:autoload (guix git) (git-checkout? git-checkout-url) |
| 50 | #:use-module ((guix status) #:select (with-status-verbosity)) | 50 | #:use-module ((guix status) #:select (with-status-verbosity)) |
| 51 | #:use-module ((guix progress) #:select (current-terminal-columns)) | 51 | #:use-module ((guix progress) #:select (current-terminal-columns)) |
| 52 | #:use-module ((guix build syscalls) #:select (terminal-columns)) | 52 | #:use-module ((guix build syscalls) #:select (terminal-columns)) |
diff --git a/guix/scripts/gc.scm b/guix/scripts/gc.scm index 3f20a2e1928..31a05075b5d 100644 --- a/guix/scripts/gc.scm +++ b/guix/scripts/gc.scm | |||
| @@ -22,7 +22,7 @@ | |||
| 22 | #:use-module (guix store) | 22 | #:use-module (guix store) |
| 23 | #:use-module (guix store roots) | 23 | #:use-module (guix store roots) |
| 24 | #:autoload (guix build syscalls) (free-disk-space) | 24 | #:autoload (guix build syscalls) (free-disk-space) |
| 25 | #:autoload (guix profiles) (generation-profile) | 25 | #:autoload (guix profiles) (generation-profile profile-generations) |
| 26 | #:autoload (guix scripts package) (delete-generations) | 26 | #:autoload (guix scripts package) (delete-generations) |
| 27 | #:use-module (ice-9 match) | 27 | #:use-module (ice-9 match) |
| 28 | #:use-module (ice-9 regex) | 28 | #:use-module (ice-9 regex) |
diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm index b84e37cbf2e..c8d8546e292 100644 --- a/guix/scripts/pack.scm +++ b/guix/scripts/pack.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2015, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2015, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net> | 3 | ;;; Copyright © 2017, 2018 Ricardo Wurmus <rekado@elephly.net> |
| 4 | ;;; Copyright © 2018 Konrad Hinsen <konrad.hinsen@fastmail.net> | 4 | ;;; Copyright © 2018 Konrad Hinsen <konrad.hinsen@fastmail.net> |
| 5 | ;;; Copyright © 2018 Chris Marusich <cmmarusich@gmail.com> | 5 | ;;; Copyright © 2018 Chris Marusich <cmmarusich@gmail.com> |
| @@ -29,7 +29,9 @@ | |||
| 29 | #:use-module ((guix status) #:select (with-status-verbosity)) | 29 | #:use-module ((guix status) #:select (with-status-verbosity)) |
| 30 | #:use-module ((guix self) #:select (make-config.scm)) | 30 | #:use-module ((guix self) #:select (make-config.scm)) |
| 31 | #:use-module (guix grafts) | 31 | #:use-module (guix grafts) |
| 32 | #:autoload (guix inferior) (inferior-package?) | 32 | #:autoload (guix inferior) (inferior-package? |
| 33 | inferior-package-name | ||
| 34 | inferior-package-version) | ||
| 33 | #:use-module (guix monads) | 35 | #:use-module (guix monads) |
| 34 | #:use-module (guix modules) | 36 | #:use-module (guix modules) |
| 35 | #:use-module (guix packages) | 37 | #:use-module (guix packages) |
diff --git a/guix/scripts/publish.scm b/guix/scripts/publish.scm index 8fb67f9268b..71a349d2fe5 100644 --- a/guix/scripts/publish.scm +++ b/guix/scripts/publish.scm | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2015 David Thompson <davet@gnu.org> | 2 | ;;; Copyright © 2015 David Thompson <davet@gnu.org> |
| 3 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; | 4 | ;;; |
| 5 | ;;; This file is part of GNU Guix. | 5 | ;;; This file is part of GNU Guix. |
| 6 | ;;; | 6 | ;;; |
| @@ -51,7 +51,9 @@ | |||
| 51 | #:use-module (guix store) | 51 | #:use-module (guix store) |
| 52 | #:use-module ((guix serialization) #:select (write-file)) | 52 | #:use-module ((guix serialization) #:select (write-file)) |
| 53 | #:use-module (guix zlib) | 53 | #:use-module (guix zlib) |
| 54 | #:autoload (guix lzlib) (lzlib-available?) | 54 | #:autoload (guix lzlib) (lzlib-available? |
| 55 | call-with-lzip-output-port | ||
| 56 | make-lzip-output-port) | ||
| 55 | #:use-module (guix cache) | 57 | #:use-module (guix cache) |
| 56 | #:use-module (guix ui) | 58 | #:use-module (guix ui) |
| 57 | #:use-module (guix scripts) | 59 | #:use-module (guix scripts) |
diff --git a/guix/scripts/pull.scm b/guix/scripts/pull.scm index 04cc51829d4..cb1be989e13 100644 --- a/guix/scripts/pull.scm +++ b/guix/scripts/pull.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2013, 2014, 2015, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2013, 2014, 2015, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com> | 3 | ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com> |
| 4 | ;;; | 4 | ;;; |
| 5 | ;;; This file is part of GNU Guix. | 5 | ;;; This file is part of GNU Guix. |
| @@ -33,7 +33,9 @@ | |||
| 33 | #:use-module (guix memoization) | 33 | #:use-module (guix memoization) |
| 34 | #:use-module (guix monads) | 34 | #:use-module (guix monads) |
| 35 | #:use-module (guix channels) | 35 | #:use-module (guix channels) |
| 36 | #:autoload (guix inferior) (open-inferior) | 36 | #:autoload (guix inferior) (open-inferior |
| 37 | inferior-available-packages | ||
| 38 | close-inferior) | ||
| 37 | #:use-module (guix scripts build) | 39 | #:use-module (guix scripts build) |
| 38 | #:autoload (guix build utils) (which) | 40 | #:autoload (guix build utils) (which) |
| 39 | #:use-module ((guix build syscalls) | 41 | #:use-module ((guix build syscalls) |
diff --git a/guix/utils.scm b/guix/utils.scm index 728039fbf01..3e8e59b8dce 100644 --- a/guix/utils.scm +++ b/guix/utils.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2013, 2014, 2015 Mark H Weaver <mhw@netris.org> | 3 | ;;; Copyright © 2013, 2014, 2015 Mark H Weaver <mhw@netris.org> |
| 4 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> | 4 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
| 5 | ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net> | 5 | ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net> |
| @@ -31,16 +31,13 @@ | |||
| 31 | #:use-module (srfi srfi-26) | 31 | #:use-module (srfi srfi-26) |
| 32 | #:use-module (srfi srfi-35) | 32 | #:use-module (srfi srfi-35) |
| 33 | #:use-module (srfi srfi-39) | 33 | #:use-module (srfi srfi-39) |
| 34 | #:use-module (ice-9 binary-ports) | ||
| 35 | #:use-module (ice-9 ftw) | 34 | #:use-module (ice-9 ftw) |
| 36 | #:autoload (rnrs io ports) (make-custom-binary-input-port) | 35 | #:use-module (rnrs io ports) ;need 'port-position' etc. |
| 37 | #:use-module ((rnrs bytevectors) #:select (bytevector-u8-set!)) | 36 | #:use-module ((rnrs bytevectors) #:select (bytevector-u8-set!)) |
| 38 | #:use-module (guix memoization) | 37 | #:use-module (guix memoization) |
| 39 | #:use-module ((guix build utils) #:select (dump-port mkdir-p delete-file-recursively)) | 38 | #:use-module ((guix build utils) #:select (dump-port mkdir-p delete-file-recursively)) |
| 40 | #:use-module ((guix build syscalls) #:select (mkdtemp! fdatasync)) | 39 | #:use-module ((guix build syscalls) #:select (mkdtemp! fdatasync)) |
| 41 | #:use-module (ice-9 format) | 40 | #:use-module (ice-9 format) |
| 42 | #:autoload (ice-9 popen) (open-pipe*) | ||
| 43 | #:autoload (ice-9 rdelim) (read-line) | ||
| 44 | #:use-module (ice-9 regex) | 41 | #:use-module (ice-9 regex) |
| 45 | #:use-module (ice-9 match) | 42 | #:use-module (ice-9 match) |
| 46 | #:use-module (ice-9 format) | 43 | #:use-module (ice-9 format) |
