summaryrefslogtreecommitdiff
path: root/guix/scripts
AgeCommit message (Expand)Author
2023-12-06shell: ‘--development’ honors ‘--system’....Fixes a bug whereby ‘package->development-manifest’ would run with the wrong system in mind, leading to errors like this: $ guix shell -s i586-gnu -D shepherd --no-grafts guix shell: error: package linux-libre-headers@5.15.49 does not support i586-gnu * guix/scripts/environment.scm (options/resolve-packages): Define ‘system’ and pass it to ‘package->development-manifest’.’ * tests/guix-shell.sh: Test it. Change-Id: I95c471c1918913ab80dec7d3ca64fe38583cce78 Ludovic Courtès
2023-12-04substitute: Do not exit when failing to find a nar....Fixes <https://issues.guix.gnu.org/67575>. * guix/scripts/substitute.scm (process-substitution/fallback): Use ‘report-error’ instead of ‘leave’. Write status line to PORT. * tests/substitute.scm ("substitute, narinfo is available but nar is missing"): Adjust accordingly. Change-Id: Ic7297dbd563c007111ec2167c8d52505a07d4822 Ludovic Courtès
2023-12-02gnu: Use ‘libc-utf8-locales-for-target’....* guix/packages.scm (%standard-patch-inputs): Use ‘libc-utf8-locales-for-target’ instead of ‘glibc-utf8-locales’. * guix/self.scm (%packages): Likewise. * gnu/home/services/ssh.scm (file-join): Likewise * gnu/installer.scm (build-compiled-file): Likewise. * gnu/packages/chromium.scm (ungoogled-chromium/wayland): Likewise. * gnu/packages/gnome.scm (libgweather4, tracker): Likewise. * gnu/packages/javascript.scm (js-mathjax): Likewise. * gnu/packages/package-management.scm (guix, flatpak): Likewise. * gnu/packages/raspberry-pi.scm (raspi-arm64-chainloader): Likewise. * gnu/packages/suckless.scm (svkbd): Likewise. * gnu/services.scm (cleanup-gexp): Likewise. * gnu/services/base.scm (guix-publish-shepherd-service): Likewise. * gnu/services/guix.scm (guix-build-coordinator-shepherd-services) (guix-build-coordinator-agent-shepherd-services): Likewise. * gnu/services/guix.scm (guix-build-coordinator-queue-builds-shepherd-services): (guix-data-service-shepherd-services) (nar-herder-shepherd-services) (bffe-shepherd-services): Likewise. * gnu/services/web.scm (anonip-shepherd-service) (mumi-shepherd-services): Likewise. * gnu/system/image.scm (system-disk-image, system-iso9660-image) (system-docker-image, system-tarball-image): Likewise. * gnu/system/install.scm (%installation-services): Likewise. * guix/profiles.scm (info-dir-file): Likewise. (ca-certificate-bundle, profile-derivation): Likewise. * guix/scripts/pack.scm (store-database, set-utf8-locale): Likewise. * tests/pack.scm: Likewise. * tests/profiles.scm ("profile-derivation, cross-compilation"): Likewise. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Co-authored-by: Christopher Baines <mail@cbaines.net> Change-Id: I24239f427bcc930c29d2ba5d00dc615960a6c374 Janneke Nieuwenhuizen
2023-11-26locate: Gracefully handle busy-database error conditions....* guix/scripts/locate.scm (SQLITE_BUSY): New variable. (call-with-database): Catch 'sqlite-error and call ‘leave’ upon SQLITE_BUSY. Change-Id: Iebe76c75d45e70317bd18d2c176dcdeaf9d6964c Co-authored-by: Ludovic Courtès <ludo@gnu.org> Maciej Kalandyk
2023-11-22shell: Disable caching for ‘guix shell -f guix.scm’....Fixes <https://issues.guix.gnu.org/64858>. * guix/scripts/shell.scm (profile-cached-gc-root): Distinguish the two ‘load’ cases; return #f and #f for (load ad-hoc-package _). Reported-by: Pierre-Henry Fröhring <phfrohring@deeplinks.com>. Change-Id: I00282fbd41aeed09fb927690945cf65e1f9efe4d Ludovic Courtès
2023-11-22shell: Correct cache key for ‘guix shell -f guix.scm’....Partially fixes <https://issues.guix.gnu.org/64858>. Fixes a bug whereby ‘guix shell -f guix.scm’ would use the same cache key as ‘guix shell’ in an empty directory (meaning: no packages specified) and would ignore the mtime of ‘guix.scm’. * guix/scripts/shell.scm (profile-cached-gc-root): In ‘load’ case, recognize both the ‘package’ and ‘ad-hoc-package’ tags. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Change-Id: Ice6d0ac43e1dc6bb335a17963364c2cc6bcd076d Felix Lechner
2023-11-22style: ‘guix style -f’ warns when passed zero arguments....* guix/scripts/style.scm (guix-style): When OPTS has ‘whole-file?’ set, warn when FILES is empty. Change-Id: I494f52ef5d070510d20006e6dd987a6805161bb4 Ludovic Courtès
2023-11-15locate: Accept ‘--clear’ without additional arguments....Fixes a bug whereby ‘guix locate --clear’ would end with the “no files to search for” error. Fixes <https://issues.guix.gnu.org/66799>. * guix/scripts/locate.scm (guix-locate): Do not emit “no files to search for” error when 'clear? is set in OPTS. * tests/guix-locate.sh: Test it. Reported-by: Maciej Kalandyk <m.kalandyk@outlook.com> Change-Id: Ib8fa125c18481d7f5408bd89df9503713527641d Ludovic Courtès
2023-11-05time-machine: Warn when no command is given....* guix/scripts/time-machine.scm (guix-time-machine): Emit a warning when COMMAND-LINE is false. Change-Id: I26e6b608915ecaf6d9372f9b03dc5ebd1b4c68f9 Ludovic Courtès
2023-11-05time-machine: Make target commit check cheaper....Commit 79ec651a286c71a3d4c72be33a1f80e76a560031 introduced a check to error out when attempting to use ‘time-machine’ to travel to a commit before ‘v1.0.0’. This commit fixes a performance issue with the strategy used in 79ec651a286c71a3d4c72be33a1f80e76a560031 (the repository was opened, updated, and traversed a second time by ‘validate-guix-channel’) as well as a user interface issue (“Updating channel” messages would be printed too late). This patch reimplements the check in terms of the existing #:validate-pull mechanism, which is designed to avoid extra repository operations. Fixes <https://issues.guix.gnu.org/65788>. * guix/inferior.scm (cached-channel-instance): Change default value of #:validate-channels. Remove call to VALIDATE-CHANNELS; pass it as #:validate-pull to ‘latest-channel-instances’. * guix/scripts/time-machine.scm (%reference-channels): New variable. (validate-guix-channel): New procedure, written as a simplification of… (guix-time-machine)[validate-guix-channel]: … this. Remove. Pass #:reference-channels to ‘cached-channel-instance’. Reported-by: Simon Tournier <zimon.toutoune@gmail.com> Change-Id: I9b0ec61fba7354fe08b04a91f4bd32b72a35460c Ludovic Courtès
2023-11-05scripts: edit: Fix relative file-name with 'load-path' option....* guix/scripts/edit.scm (search-path*): Return 'file' if exists when 'search-path' fails. Change-Id: I891d63d0d28577a7d1732fc59435828ecc0a5c5a Simon Tournier
2023-10-28environment: Fix typo in error messages....* guix/scripts/environment.scm (guix-environment*): Fix typo in error messages. Change-Id: I0b8669cb43267d0456a70f3b157514a6bcc725e8 Ludovic Courtès
2023-10-28environment: Parameterize ‘%graft?’ early on....Previously, ‘%graft?’ would be parameterized after ‘package-derivation’ had been called for ‘%guile-for-build’, which is too late. * guix/scripts/environment.scm (guix-environment*)[with-store/maybe]: Parameterize ‘%graft?’. Remove ‘%graft?’ parameterization from body. Change-Id: I65ef4a8c5f27e19a49196005871e5f7057fabaec Ludovic Courtès
2023-10-28environment: Honor ‘-s’ for guile-for-build....Partly fixes <https://issues.guix.gnu.org/65225>. * guix/scripts/environment.scm (guix-environment*): Pass SYSTEM to ‘package-derivation’ when defining ‘%guile-for-build’. Reported-by: Simon Tournier <zimon.toutoune@gmail.com> Change-Id: I9d883f1e61fac72754fdc9dee9b7c8a3dea32add Ludovic Courtès
2023-10-18locate: Do not return the system database when it is too old....Fixes a bug whereby ‘guix locate’ would pick the system database, then decide it’s too old, try to update it, and fail because it’s not writable by unprivileged users. Fixes <https://issues.guix.gnu.org/66612>. * guix/scripts/locate.scm (file-age): New procedure. (suitable-database): Add ‘age-update-threshold’ parameter and honor it. (guix-locate): Remove ‘file-age’. Pass ‘age-update-threshold’ to the ‘database’ option. Reported-by: Matt Wette <matt.wette@gmail.com> Ludovic Courtès
2023-10-17scripts: weather: Handle EPIPE errors when displaying help....* guix/scripts/weather.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: upgrade: Handle EPIPE errors when displaying help....* guix/scripts/upgrade.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: time-machine: Handle EPIPE errors when displaying help....* guix/scripts/time-machine.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: substitute: Handle EPIPE errors when displaying help....* guix/scripts/substitute.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: system: Handle EPIPE errors when displaying help....* guix/scripts/system.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: style: Handle EPIPE errors when displaying help....* guix/scripts/style.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: size: Handle EPIPE errors when displaying help....* guix/scripts/size.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: show: Handle EPIPE errors when displaying help....* guix/scripts/show.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: shell: Handle EPIPE errors when displaying help....* guix/scripts/shell.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: search: Handle EPIPE errors when displaying help....* guix/scripts/search.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: repl: Handle EPIPE errors when displaying help....* guix/scripts/repl.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: remove: Handle EPIPE errors when displaying help....* guix/scripts/remove.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: refresh: Handle EPIPE errors when displaying help....* guix/scripts/refresh.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: pull: Handle EPIPE errors when displaying help....Reported by Mathieu Othacehe <othacehe@gnu.org>. * guix/scripts/pull.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: publish: Handle EPIPE errors when displaying help....* guix/scripts/publish.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: processes: Handle EPIPE errors when displaying help....* guix/scripts/processes.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: package: Handle EPIPE errors when displaying help....Reported by Mathieu Othacehe <othacehe@gnu.org>. * guix/scripts/package.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: pack: Handle EPIPE errors when displaying help....* guix/scripts/pack.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: offload: Handle EPIPE errors when displaying help....* guix/scripts/offload.scm (guix-offload): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: locate: Handle EPIPE errors when displaying help....* guix/scripts/locate.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: lint: Handle EPIPE errors when displaying help....* guix/scripts/lint.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: install: Handle EPIPE errors when displaying help....* guix/scripts/install.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: import: Handle EPIPE errors when displaying help....* guix/scripts/import.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: home: Handle EPIPE errors when displaying help....* guix/scripts/home.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: hash: Handle EPIPE errors when displaying help....* guix/scripts/hash.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: graph: Handle EPIPE errors when displaying help....* guix/scripts/graph.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: git: Handle EPIPE errors when displaying help....* guix/scripts/git.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: gc: Handle EPIPE errors when displaying help....* guix/scripts/gc.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: edit: Handle EPIPE errors when displaying help....* guix/scripts/edit.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: download: Handle EPIPE errors when displaying help....* guix/scripts/download.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: discover: Handle EPIPE errors when displaying help....* guix/scripts/discover.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: describe: Handle EPIPE errors when displaying help....* guix/scripts/describe.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: deploy: Handle EPIPE errors when displaying help....* guix/scripts/deploy.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: copy: Handle EPIPE errors when displaying help....* guix/scripts/copy.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier
2023-10-17scripts: container: Handle EPIPE errors when displaying help....* guix/scripts/container.scm (%options): Handle EPIPE errors when displaying help. Simon Tournier