Removing users, groups or Systemd units fails if they are already absent,
causing the uninstall script to exit. The goal here is to make the uninstall
always run entirely, whatever parts are already done.
* etc/guix-install.sh (sys_delete_build_user): Test if users and groups exist
before deleting them.
(sys_delete_guix_daemon): Test if /etc/systemd/system/guix-daemon.service file
exists before removing the matching Systemd unit.
Change-Id: Ibffb1f1b39de675542fb8057af21ecaea1b53d4c
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
The `ROOT_HOME` variable is natively absent from some systems, however the form
`~root`, which is used by the install functions in this same file, works.
* etc/guix-install.sh (sys_delete_store, sys_delete_guix_daemon)
(sys_delete_user_profiles): Replace `ROOT_HOME` with `~root`.
Change-Id: Ia867e271ac4c5557d9708235fee028bccce68342
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
The file /etc/systemd/system/gnu-store.mount has permissions 664, since the
`install_unit()` function installed it so. So the test prior to removing the
matching Systemd unit should not be wether this file is executable, otherwise
it will always fail. The relevant test is on the file existence.
* etc/guix-install.sh (sys_delete_guix_daemon): Test if gnu-store.mount file
exists rather than if it is executable.
Change-Id: Ic7cc186618b0b92fccf49a3b27805756a9126b89
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* gnu/packages/package-management.scm (guix-jupyter): Update to 0.3.0.
[arguments]: Remove ‘define-home’ phase, which is no longer needed.
Change-Id: I18e0897caf6e9ad0bc7d410f2011fad031cecb7e
* gnu/packages/entr.scm (entr): Switch input from bash to bash-minimal. This
was recommended by guix style lint.
Change-Id: Iccd37c3bf04b95ed510900f9d6ffd9359a227948
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* gnu/packages/entr.scm (entr): Improve package style. The changes are the
result of running ./pre-inst-env guix style entr.
Change-Id: I9579e326f88c6066078f2df78a12431f3f4badd4
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
That gives something like:
$ ./pre-inst-env guix build vim --no-grafts --no-substitutes -n
The following derivations would be built:
/gnu/store/…-tcsh-6.24.01.tar.gz.drv
/gnu/store/…-tcsh-6.24.01.tar.zst.drv
/gnu/store/…-tcsh-6.24.01.drv
/gnu/store/…-vim-9.1.0744-checkout.drv
/gnu/store/…-vim-9.1.0744.drv
… with the derivation(s) being asked for coming last.
* guix/ui.scm (show-what-to-build): Reverse ‘build/full’ before folding it.
Change-Id: Ic0da9f4f8a58c7ed5e2d10f6ec2226f0865aed75
That makes ‘derivation-build-plan’ directly usable in cases where one
wants to sequentially build derivations one by one, or to report builds
in the right order in the user interface.
* guix/derivations.scm (derivation-build-plan): Wrap ‘loop’ in
‘traverse’. Perform a depth-first traversal. Return the list of builds
in topological order.
* tests/derivations.scm ("derivation-build-plan, topological ordering"):
New test.
Change-Id: I7cd9083f42c4381b4213794a40dbb5b234df966d
* tests/gremlin.scm: Include stdio.h before using puts since GCC 14 no
longer allows implicit declarations.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
The `select?' keyword is part of the description instead of immediately
following `keep-permissions?' in the arguments list for `copy-recursively'.
This adds a missing '@' to fix that.
* doc/guix.texi (Build Utilities): Fix `copy-recursively' arguments.
Change-Id: If6802490a6afebc884b039d84f1fe4f9202a1151
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* gnu/packages/curl.scm (curl/fixed) [source]: Inherit base package patches,
having the effect of re-adding 'curl-use-ssl-cert-env.patch'.
Change-Id: I5c0fb5e44ad26cca9490cbbdef824011cffa9b2b
* gnu/packages/fpga.scm (yosys) [arguments]: Drop leading './' from file
names. Drop leading '/' from file names given to 'search-input-file'.
Change-Id: I49febe7bcf0d60553d2a24d99746e6457fa4d03f
* gnu/packages/fpga.scm (yosys) [make-flags]: Use cc-for-target and
cxx-for-target procedures to compute the correct CC and CXX flags.
Change-Id: I2a81f09ff7d6891d78ad157594bb0d96c38451f8
Fixes issue introduced in
<https://git.savannah.gnu.org/cgit/guix.git/commit/?id=b32f8bc9da> which
removed zlib. This caused failures in the yosys test suite.
* gnu/packages/fpga.scm (iverilog) [inputs]: Add zlib.
Change-Id: I262db5db43527a3a2a1753163f7b9a4104f7e895
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
'check' is its default value for the gnu-build-system.
* gnu/packages/fpga.scm (iverilog) [arguments] <#:test-target>: Delete argument.
Change-Id: I82c3103f71cfc39988f21d09f9bcdbcbdf9d1e03
This package has no dependencies in Guix, is unsupported (see
https://liballeg.org/old.html) and is vulnerable to CVE-2021-36489.
* gnu/packages/game-development.scm (allegro-5.0): Delete variable.
* gnu/local.mk: Deregister patch.
* gnu/packages/patches/allegro-mesa-18.2.5-and-later.patch: Delete file.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This fixes CVE-2023-51765 and CVE-2021-3618.
* gnu/packages/mail.scm (sendmail): Update to 8.18.1.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
* gnu/packages/networking.scm (nzbget)[arguments]<#:phases>:
Ignore a misconfigured test on aarch64.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>