summaryrefslogtreecommitdiff
path: root/guix
Commit message (Collapse)AuthorAge
* pack: Pass the cross-compilation target to 'run-with-store'.Ludovic Courtès2020-04-03
| | | | | | | This ensures '%current-target-system' is correctly bound upfront, which some packages rely on. * guix/scripts/pack.scm (guix-pack): Pass #:target to 'run-with-store'.
* guix system: Mention 'herd restart' when reconfigure completes.Ludovic Courtès2020-04-03
| | | | | | | | * guix/scripts/system.scm (with-shepherd-error-handling): Use 'mbegin' instead of 'begin'. (perform-action): Print a message after 'upgrade-shepherd-services'. That message had disappeared in commit 5c8c8c455420af27189d6045b3599fe6e27ad012.
* guix system: Remove unused procedure.Ludovic Courtès2020-04-03
| | | | | | | This procedure was unused since 5c8c8c455420af27189d6045b3599fe6e27ad012. * guix/scripts/system.scm (call-with-service-upgrade-info): Remove.
* reconfigure: Silence Guile warnings.Ludovic Courtès2020-04-03
| | | | | | | | | Fixes <https://bugs.gnu.org/39301>. Reported by strypsteen@posteo.net. * guix/scripts/system/reconfigure.scm (switch-to-system) (upgrade-shepherd-services, install-bootloader): Wrap 'primitive-load' call in 'parameterize'.
* Revert "reconfigure: Run the effect scripts as separate processes."Ludovic Courtès2020-04-03
| | | | | | This reverts commit 5517750344be05c91bc2979c1a0e2348a9ae902d. That commit would remove all sorts of error checking when running those programs.
* reconfigure: Run the effect scripts as separate processes.Ludovic Courtès2020-04-02
| | | | | | | | | Fixes <https://bugs.gnu.org/39301>. Reported by strypsteen@posteo.net. * guix/scripts/system/reconfigure.scm (switch-to-system) (upgrade-shepherd-services, install-bootloader): Use 'system*' instead of 'primitive-load'.
* guix system: Do not import the user's (guix config).Ludovic Courtès2020-04-02
| | | | | | | | | | Previously, 'switch-to-system.drv' and 'install-bootloader.drv' would depend on the user's (guix config) module. This is no longer the case. * guix/scripts/system/reconfigure.scm (not-config?): New procedure. (switch-system-program): Do not import the user's (guix config). Use 'make-config.scm' instead. (install-bootloader-program): Likewise.
* git: Don't try to resolve tags with 'tag-lookup'.Ludovic Courtès2020-04-02
| | | | | | | | Fixes <https://bugs.gnu.org/40377>. Reported by Brice Waegeneire <brice@waegenei.re>. * guix/git.scm (switch-to-ref): In the 'tag case, remove call to 'tag-lookup'.
* bournish: Prevent inlining of run-time support procedures.Ludovic Courtès2020-04-02
| | | | | | | | | | | | | | | | | | | On Guile 3, those procedures could be inlined, leading to unbound-variable errors: scheme@(guile-user)> ,bournish Welcome to Bournish, a minimal Bourne-like shell! To switch back, type `,L scheme'. bournish@(guile-user)> ls ice-9/boot-9.scm:1669:16: In procedure raise-exception: Unbound variable: ls-command-implementation Reported by Ricardo Wurmus. * guix/build/bournish.scm (define-command-runtime): New macro. (ls-command-implementation, wc-command-implementation) (wc-l-command-implementation, wc-c-command-implementation): Use it instead of 'define'.
* gexp: 'lower-references' uses 'mapm/accumulate-builds'.Ludovic Courtès2020-04-02
| | | | | * guix/gexp.scm (lower-references): Use 'mapm/accumulate-builds' instead of 'mapm'.
* guix system: Use 'mapm/accumulate-builds'.Ludovic Courtès2020-04-02
| | | | | * guix/scripts/system.scm (perform-action): Use 'mapm/accumulate-builds' instead of 'mapm'.
* ui: Clarify "dependencies changed".Ludovic Courtès2020-04-02
| | | | | | | Suggested by Leo Famulari <leo@famulari.name>. * guix/ui.scm (show-manifest-transaction): Change to "dependencies or package changed".
* grafts: Simplify access to store item references.Ludovic Courtès2020-04-02
| | | | | | | | | | | | | | This is a followup to 710854304b1ab29332edcb76f3de532e0724c197. This also slightly reduces the number of 'query-references' RPCs, for instance from 176 to 166 from "guix build emacs -d". * guix/grafts.scm (references-oracle): Remove. (non-self-references): Remove 'references' parameter and add 'store'. Add 'references*' procedure and use it instead of 'references'. Adjust caller accordingly. (cumulative-grafts): Remove 'references' parameter and adjust caller accordingly.
* profiles: Compute manual database entries in parallel.Arne Babenhauserheide2020-03-31
| | | | | | | | | | | | | This provides a 36% speedup on an SSD and 4 cores for the 1.5K man pages in the manual database derivation of: guix environment --ad-hoc jupyter python-ipython python-ipykernel * guix/profiles.scm (manual-database)[build]: Add 'print-string', 'print', and 'compute-entry'. Change 'compute-entries' to call 'compute-entry' in 'n-par-map'. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
* ci: Fix 'evaluation-spec' binding.Ludovic Courtès2020-03-31
| | | | | * guix/ci.scm (<evaluation>)[spec]: Add "specification", which is what the JSON field is actually called.
* guix package: Do not misdiagnose upgrades when there are propagated inputs.Ludovic Courtès2020-03-31
| | | | | | | | | | | Fixes <https://bugs.gnu.org/35872>. Reported by Andy Tai <atai@atai.org>. * guix/profiles.scm (list=?, manifest-entry=?): New procedures. * guix/scripts/package.scm (transaction-upgrade-entry): In the '=' case, use 'manifest-entry=?' to determine whether it's an upgrade. * tests/packages.scm ("transaction-upgrade-entry, zero upgrades, propagated inputs"): New test.
* profiles: 'lower-manifest-entry' recurses on dependencies.Ludovic Courtès2020-03-31
| | | | | * guix/profiles.scm (lower-manifest-entry)[recurse]: New procedure. Call it on dependencies and set the 'dependencies' field accordingly.
* guix package: 'transaction-upgrade-entry' swallows build requests.Ludovic Courtès2020-03-31
| | | | | | | | | | | | | | | | | | Fixes a regression introduced in 131f50cdc9dbb7183023f4dae759876a9e700bef whereby the install/upgrade message would not be displayed: $ guix upgrade -n 2.1 MB would be downloaded: /gnu/store/…-something-1.2 /gnu/store/…-its-dependency-2.3 This is because we'd directly abort from 'transaction-upgrade-entry' to the build handler of 'build-notifier'. * guix/scripts/package.scm (transaction-upgrade-entry): Call 'string=?' expression in 'with-build-handler'. * tests/packages.scm ("transaction-upgrade-entry, grafts"): New test.
* guix package: 'transaction-upgrade-entry' uses 'lower-manifest-entry'.Ludovic Courtès2020-03-31
| | | | | | | | * guix/profiles.scm (lower-manifest-entry): Export. * guix/scripts/package.scm (transaction-upgrade-entry)[lower-manifest-entry*] [upgrade]: New procedures. Use 'lower-manifest-entry*' instead of 'package-derivation' to compute the output file name of PKG.
* build-system/gnu: Optimize the package graph.Ludovic Courtès2020-03-29
| | | | | | | | | | | | | | | | | With this change, the output of: guix graph -e '(@@ (gnu packages commencement) coreutils-final)' |grep 'label = ' | wc -l drops from 76 nodes to 68 nodes, and the "add-data-to-store-cache" hit rate for: guix build libreoffice -d --no-grafts drops from 3.9% to 2.6%. * guix/build-system/gnu.scm (package-with-explicit-inputs*)[cut?]: Adjust condition to exclude packages with build systems other than GNU-BUILD-SYSTEM, such as 'ld-wrapper-boot3'.
* packages: 'package->bag' keys cache by replacement.Ludovic Courtès2020-03-29
| | | | | | * guix/packages.scm (package->bag): When GRAFT? is true, use PACKAGE's replacement as the cache key. Remove GRAFT? from the list of secondary cache keys.
* deploy: Use 'map/accumulate-builds'.Ludovic Courtès2020-03-29
| | | | | * guix/scripts/deploy.scm (guix-deploy): Use 'map/accumulate-builds' instead of 'for-each'.
* deploy: Factorize machine deployment.Ludovic Courtès2020-03-29
| | | | | * guix/scripts/deploy.scm (deploy-machine*): New procedure. (guix-deploy): Call it in 'for-each'.
* packages: Change 'guile-for-grafts' back to 2.0.Ludovic Courtès2020-03-29
| | | | | | | This reverts 2b6fe60599d52b449bbf531cfdc4dbf18a14eb2c, due to reports of segfaults of Guile 3.0.2 during grafting. * guix/packages.scm (guile-for-grafts): Change back to GUILE-2.0.
* '--dry-run' no longer implies '--no-grafts'.Ludovic Courtès2020-03-29
| | | | | | | | | | * guix/scripts/archive.scm (%options): "dry-run" option no longer adds 'graft? #f to RESULT. * guix/scripts/environment.scm (%options): Likewise. * guix/scripts/pack.scm (%options): Likewise. * guix/scripts/package.scm (%options): Likewise. * guix/scripts/pull.scm (%options): Likewise. * guix/scripts/system.scm (%options): Likewise.
* grafts: Don't rely on substitute info for missing store items.Ludovic Courtès2020-03-29
| | | | | | | | Fixes <https://bugs.gnu.org/22990>. * guix/grafts.scm (references-oracle)[references*]: Remove call to 'substitution-oracle' and to 'references/substitutes'. Use 'references/cached' and 'build-derivations' right away instead.
* store: Add 'references/cached'.Ludovic Courtès2020-03-29
| | | | * guix/store.scm (references/cached): New procedure.
* profiles: Use 'mapm/accumulate-builds'.Ludovic Courtès2020-03-29
| | | | | | | * guix/profiles.scm (check-for-collisions): Use 'mapm/accumulate-builds' to lower manifest entries. Call 'foldm' over the already-lowered entries. (profile-derivation): Use 'mapm/accumulate-builds' instead of 'mapm' when calling HOOKS.
* gexp: 'lower-inputs' uses 'mapm/accumulate-builds'.Ludovic Courtès2020-03-29
| | | | | | | This doesn't have an noticeable impact on the run time of 'guix system build desktop.tmp --no-grafts -d'. * guix/gexp.scm (lower-inputs): Use 'mapm/accumulate-builds' instead of 'mapm'.
* guix build: Use 'map/accumulate-builds'.Ludovic Courtès2020-03-29
| | | | | * guix/scripts/build.scm (options->derivations): Use 'map/accumulate-builds' instead of 'append-map'.
* store: Add 'map/accumulate-builds'.Ludovic Courtès2020-03-29
| | | | | | | | * guix/store.scm (<unresolved>): New record type. (build-accumulator, map/accumulate-builds, mapm/accumulate-builds): New procedures. * tests/store.scm ("map/accumulate-builds", "mapm/accumulate-builds"): New tests.
* deploy: Remove use of '~*' in format string.Marius Bakke2020-03-28
| | | | | | | | | ...since 'msgfmt' fails to interpret it. Reported by Vagrant Cascadian in <https://lists.gnu.org/archive/html/guix-devel/2020-03/msg00340.html>. See also <https://bugs.gnu.org/37505>. * guix/scripts/deploy.scm (show-what-to-deploy): Use ~d instead of ~* when displaying machines that will be deployed.
* packages: Use Guile 3.0 for grafts.Ludovic Courtès2020-03-27
| | | | | | * guix/packages.scm (guile-2.0): Rename to... (guile-for-grafts): ... this, and adjust callers. Refer to 'guile-3.0' instead of 'guile-2.0'.
* status: Display synthetic information about profiles being built.Ludovic Courtès2020-03-26
| | | | | | * guix/status.scm (print-build-event): Add 'profile case. * guix/scripts/package.scm (build-and-use-profile): Remove now redundant message.
* profiles: 'profile-derivation' sets a 'type' property.Ludovic Courtès2020-03-26
| | | | | * guix/profiles.scm (profile-derivation): Pass #:properties to 'gexp->derivation'.
* import/cran: Import missing module.Ricardo Wurmus2020-03-25
| | | | | | | | This is a follow-up to commit b005c240bb5e436ffe9d55c2dd75c9af85aa0fdd. Reported-by: Ludovic Courtès <ludo@gnu.org> * guix/import/cran.scm: Import (guix ui) module.
* environment: Use 'with-build-handler'.Ludovic Courtès2020-03-25
| | | | | | | * guix/scripts/environment.scm (build-environment): Remove. (guix-environment): Wrap 'with-status-verbosity' in 'with-build-handler'. Remove 'dry-run?' conditional. Use 'built-derivations' instead of 'build-environment'.
* archive: Use 'with-build-handler'.Ludovic Courtès2020-03-25
| | | | | | * guix/scripts/archive.scm (export-from-store): Remove call to 'show-what-to-build' and dry-run? condition. (guix-archive): Wrap 'cond' in 'with-build-handler'.
* import/cran: Support importing from Mercurial repositories.Ricardo Wurmus2020-03-25
| | | | | | | | | * guix/import/cran.scm (download): Accept keyword #:method; add case for hg method. (fetch-description): Handle hg repository. (description->package): Add cases for hg repositories and update call of DOWNLOAD procedure. (cran->guix-package): Retry importing from Bioconductor when hg import failed.
* scripts: lint: Handle store connections for lint checkers.Christopher Baines2020-03-24
| | | | | | | | | | | | Rather than individual checkers opening up a connection to the store for each package to check, if any checker requires a store connection, open a connection and pass it to all checkers that would use it. This makes running the derivation checker much faster for multiple packages. * guix/scripts/lint.scm (run-checkers): Add a #:store argument, and pass the store to checkers if they require a store connection. (guix-lint): Establish a store connection if any checker requires one, and pass it through to run-checkers.
* lint: Add a #:store argument to check-derivationChristopher Baines2020-03-24
| | | | | | | | This can then be used to avoid opening up a store connection each time a package needs checking. * guix/lint.scm (check-derivation): Add a #:store argument, and pull the handling of the store connection out of the try function.
* lint: Mark the derivation checker as requiring a store connection.Christopher Baines2020-03-24
| | | | | * guix/lint.scm (%local-checkers): Mark the derivation checker as requiring a store connection.
* lint: Add a requires-store? field to the checker record.Christopher Baines2020-03-24
| | | | | | | | | This can then be used to mark checkers that require a store connection, which will enable passing a connection in, avoiding the overhead of establishing a connection inside the check function when it's run for lots of different packages. * guix/lint.scm (<lint-checker>): Add requires-store? to the record type.
* guix system: Fix mistaken 'guix pull' warning upon 'reconfigure'.Ludovic Courtès2020-03-24
| | | | | | | | | | Fixes <https://bugs.gnu.org/38196>. Reported by Florian Pelz <pelzflorian@pelzflorian.de>. * guix/scripts/system.scm (maybe-suggest-running-guix-pull): Check whether 'current-profile' returns true instead of checking for the existence of ~root/.config/guix/current. That way, "sudo guix system reconfigure" no longer emits a warning in that case.
* pack: Do not store extended attributes in squashfs images.Ludovic Courtès2020-03-24
| | | | * guix/scripts/pack.scm (squashfs-image)[build](mksquashfs): Pass "-no-xattrs".
* ui: 'show-manifest-transaction' tabulates package lists for install/remove.base-for-series-3283Ludovic Courtès2020-03-24
| | | | | | | It also removes the store file name from the output. * guix/ui.scm (show-manifest-transaction)[package-strings]: Rewrite to use 'tabulate'. Remove 'item' parameter and adjust callers.
* ui: 'show-manifest-transaction' tabulates upgraded package lists.Ludovic Courtès2020-03-24
| | | | | | | | | | This also changes "1.0.0 → 1.0.0" to "(dependencies changed)", which is probably less confusing. * guix/ui.scm (tabulate): New procedure. (show-manifest-transaction)[upgrade-string]: Rewrite to take lists of names, versions, and outputs instead of single elements. Use 'tabulate'. Adjust callers accordingly.
* import: crate: Deduplicate dependencies.Martin Becze2020-03-24
| | | | | | * guix/import/crate.scm (crate-version-dependencies): Deduplicate crate dependencies. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* licenses: Add QWT 1.0 license.Arun Isaac2020-03-24
| | | | | | * guix/licenses.scm (qwt1.0): New variable. Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
* licenses: Add Open Government Licence for Public Sector Information.Arun Isaac2020-03-24
| | | | | | * guix/licenses.scm (ogl-psi1.0): New variable. Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>