Commit graph

365 commits

Author SHA1 Message Date
Sarah Morgensen
73177859bc
etc/committer: Support custom commit messages.
Allow custom change commit messages by supplying a commit message and
optionally a changelog message as arguments.

* etc/committer.scm.in (break-string-with-newlines)
(custom-commit-message): New procedures.
(main)[change-commit-message*]: New sub-procedure. Use them.
(main): Use it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-08-10 17:32:19 +02:00
Maxime Devos
50c2dcd1c9
etc: committer: Support reading G-expressions.
Some package definitions use G-expressions (see, e.g., chez-scheme).
Import (guix gexp) such that Guile knows how to read those.
Otherwise, an exception such as the following might be raised:

ERROR: In procedure read:
In procedure scm_lreadr: gnu/services/networking.scm:480:16: Unknown # object: #\~

* etc/committer.scm.in: Import (guix gexp).

Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
2021-08-07 14:01:20 +02:00
Ludovic Courtès
0e47fcced4
Merge branch 'master' into core-updates 2021-07-18 19:50:01 +02:00
Maxim Cournoyer
073904c553
guix-install.sh: Untabify.
* etc/guix-install.sh (sys_create_build_user): Normalize to spaces.
2021-07-14 08:50:22 -04:00
Ludovic Courtès
9b4c3c675c
news: Add news entry for simplified package inputs.
* etc/news.scm: Add entry.
2021-07-11 01:06:04 +02:00
Maxim Cournoyer
4cbe0127a6
guix-install.sh: Prompt for configuring substitutes discovery.
Also ensure prompt_yes_no always print the message with a trailing space,
which is more pleasing to the eye.

* etc/guix-daemon.conf.in <--discover=no>: New guix-daemon option.
* etc/guix-daemon.service.in: Likewise.
* etc/init.d/guix-daemon.in: Likewise.
* etc/openrc/guix-daemon.in: Likewise.
* etc/guix-install.sh (configure_substitute_discovery): New procedure.
(sys_enable_guix_daemon): Ask the user whether automatic substitute discovery
should be enabled.  Set the '--discover' argument accordingly.
(prompt_yes_no): Add a trailing space to the message.
(sys_authorize_build_farms): Remove trailing space from the message argument.
* NEWS (Distribution): Add news.
2021-07-07 23:54:20 -04:00
Hartmut Goebel
7f06567b83
guix-install.sh: No longer export GUIX_PROFILE.
If GUIX_PROFILE is exported here, any subsequent
"source /some/other/profile/etc/profile" will set variables pointing to
"$HOME/.guix-profile" instead of pointing to the sourced profile.

* etc/guix-install.sh (sys_create_init_profile): No longer export GUIX_PROFILE.
2021-07-07 21:25:16 +02:00
Florian Pelz
20dfda3d9e
news: Add 'de' translation.
* etc/news.scm: Add German translation of 'guix pack --format=deb' entry.
2021-06-30 16:02:29 +02:00
Maxim Cournoyer
6396f0c235
news: Add entry for the new 'deb' guix pack format.
* etc/news.scm: Add entry.
2021-06-29 15:01:10 -04:00
Xinglu Chen
d822c59243
etc: snippets: Use ‘hg-file-name’ when origin uses ‘hg-fetch’
Adjust to changes in commit aaafd19bd1.

* etc/snippets/scheme-mode/guix-origin: Use ‘hg-file-name’ instead of
‘string-append’ when ‘method’ for origin is ‘hg-fetch’.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-06-26 22:45:28 +02:00
Tobias Geerinckx-Rice
fa0dc1229c
bash_completion: Complete options for ‘guix environment’.
Note that there are still plenty of bugs that this series didn't fix,
e.g.:

  $ guix time-machine -- system reconf<Tab>

* etc/completion/bash/guix (_guix_complete): Call _guix_complete_option
if the word at point looks like an option.
2021-06-16 12:13:39 +02:00
Tobias Geerinckx-Rice
dc3ba8c836
bash completion: Complete options for the right command.
* etc/completion/bash/guix (_guix_complete_option): Receive two
arguments and complete the second based on the first, instead
of blindly completing the very last word based on the very first
(sub)command.
(_guix_complete): Adjust both calls.
2021-06-16 12:13:39 +02:00
Tobias Geerinckx-Rice
80a17aae79
bash completion: Really support subcommands.
* etc/completion/bash/guix (_guix_is_option): New function.
(_guix_is_command): Remove function to replace it with simple string
comparison…
(_guix_complete): …here.  Complete the ‘innermost’ command at point.
2021-06-16 12:13:39 +02:00
Tobias Geerinckx-Rice
0b17dc4aae
etc: indent-code.el: Remove any existing tabs.
* etc/indent-code.el (main): Call UNTABIFY on the sexp or entire buffer.
2021-06-12 10:26:02 +02:00
Ludovic Courtès
f9d8206e5b
news: Fix typo.
* etc/news.scm: Remove 'x' introduced by mistake in
dfdcd9d812.
2021-06-08 09:07:36 +02:00
Christopher Baines
26499816a9
etc: Add "bordeaux.guix.gnu.org.pub" public key file.
* etc/substitutes/bordeaux.guix.gnu.org.pub: New file.
* Makefile.am (dist_pkgdata_DATA): Add it.
* guix/self.scm (miscellaneous-files): Add
"share/guix/bordeaux.guix.gnu.org.pub".
2021-06-07 11:31:17 +01:00
Florian Pelz
dfdcd9d812
news: Add 'de' translation.
* etc/news.scm: Add German translation of 'guix import egg' entry.
2021-06-05 13:58:20 +02:00
Xinglu Chen
c78d6c60cf
news: Add entry for 'guix import egg'.
* etc/news.scm: Add entry.
2021-06-03 13:06:52 +02:00
Xinglu Chen
bdc298ecee
import: Add CHICKEN egg importer.
* guix/import/egg.scm: New file.
* guix/scripts/import/egg.scm: New file.
* tests/egg.scm: New file.
* Makefile.am (MODULES, SCM_TESTS): Register them.
* po/guix/POTFILES.in: Likewise.
* guix/scripts/import.scm (importers): Add egg importer.
* doc/guix.texi (Invoking guix import, Invoking guix refresh): Document it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-06-03 13:05:18 +02:00
Marius Bakke
35bd94a492
etc: Add more SELinux permissions for the daemon.
* etc/guix-daemon.cil.in (guix_daemon): Add more permissions, necessary for
garbage collection.
2021-05-22 19:53:17 +02:00
Maxim Cournoyer
b7cbca221f
Merge branch 'version-1.3.0' 2021-05-11 22:42:59 -04:00
Maxim Cournoyer
74009c4cf0
guix-install.sh: Exit early if Guix is already installed.
* etc/guix-install.sh (sys_create_store): Move the check & exit before The
Guix binary archive is unpacked.  Re-indent tar extraction command.
2021-05-05 11:01:07 -04:00
Maxim Cournoyer
5b0ce3393b
guix-install.sh: Propose automatically fetching OpenPGP keys.
Via, for example, yes | ./guix-install.sh.

* etc/guix-install.sh (prompt_yes_no): New procedure.
(chk_gpg_keyring, sys_authorize_build_farms): Use it.
2021-05-05 11:01:07 -04:00
Maxim Cournoyer
e61fe664a4
guix-install.sh: Please the shellcheck linter.
* etc/guix-install.sh <FUNCNAME>: Explicitly refer to the first item of the
FUNCNAME array.
(ROOT_HOME): Replace variable by ~root directly; manually expanding it via
echo was not necessary.
(chk_gpg_keyring): Use an if branch for the exit to avoid a warning about
expression precedence.
(chk_term) <ansi_term>: Remove unused variable.
(guix_get_bin) <wget, gpg>: Test the commands directly.  Use an array for the
wget arguments, which can then be properly expanded.
(sys_create_store): Disable SC1090 for the source command, as we don't care
about following the sourced script.
<_msg>: Reuse the GUIX_PROFILE variable in the message.
(sys_create_build_user) <getent>: Test the command directly.
2021-05-05 11:01:06 -04:00
Ricardo Wurmus
570b3d32b9
etc: Break long lines in commit messages.
* etc/committer.scm.in (break-string): New procedure.
(change-commit-message): Use it.
2021-05-04 11:52:23 +02:00
Maxim Cournoyer
e64af2060e
guix-install.sh: Add support for more than one signing key.
The forthcoming 1.3.0 release will be signed with my personal GnuPG key; the
installation script needs to tell users how to fetch it.

* etc/guix-install.sh (OPENPGP_SIGNING_KEY_ID): Remove variable.
(GPG_SIGNING_KEYS): New associative array.
(chk_gpg_keyring): Process all the keys contained in the above array.
(main) <GUIX_BINARY_FILE_NAME>: Double quote variable.
2021-05-01 01:24:16 -04:00
Maxim Cournoyer
bf1628038c
guix-install.sh: Ensure GUIX_BINARY_FILE_NAME is an absolute path.
This is necessary as the directory context is changed in the script, breaking
the use of a relative path.

* etc/guix-install.sh (main) <GUIX_BINARY_FILE_NAME>: Resolve its absolute
path via the 'realpath' command.
2021-05-01 01:23:08 -04:00
Maxim Cournoyer
38aab0ea8b
guix-install.sh: Allow overriding the Guix binary source.
This is useful for example for testing release candidates not yet uploaded to
the FTP, or for testing manually downloaded images from the CI.

* etc/guix-install.sh (main)[GUIX_BINARY_FILE_NAME]: When this variable is
defined, use it as the file name of a Guix binary, instead of automatically
retrieving the latest archive from the FTP.
2021-05-01 01:23:02 -04:00
Maxim Cournoyer
185709221d
guix-install.sh: Add support for more than one signing key.
The forthcoming 1.3.0 release will be signed with my personal GnuPG key; the
installation script need to tell users how fetch it.

* etc/guix-install.sh (OPENPGP_SIGNING_KEY_ID): Remove variable.
(GPG_SIGNING_KEYS): New associative array.
(chk_gpg_keyring): Process all the keys contained in the above array.
(main) <GUIX_BINARY_FILE_NAME>: Double quote variable.
2021-05-01 01:03:18 -04:00
Maxim Cournoyer
8214e70fa8
guix-install.sh: Ensure GUIX_BINARY_FILE_NAME is an absolute path.
This is necessary as the directory context is changed in the script, breaking
the use of a relative path.

* etc/guix-install.sh (main) <GUIX_BINARY_FILE_NAME>: Resolve its absolute
path via the 'realpath' command.
2021-04-29 14:09:22 -04:00
Ludovic Courtès
42ac8da474
maint: Require "emacs-no-x" instead of "emacs" on armhf-linux.
* etc/release-manifest.scm (%base-packages/armhf): New variable.
(%base-manifest): Use it.
2021-04-27 22:22:15 +02:00
Ludovic Courtès
a363e430d6
maint: Don't require 'bootstrap-tarballs' for powerpc64le-linux.
* etc/release-manifest.scm (%base-manifest): Special-case
"powerpc64le-linux".
2021-04-27 17:53:43 +02:00
Ludovic Courtès
c59cc2383d
import: Remove Nix importer.
This importer has suffered from bitrot and no longer works with current
Nix and Nixpkgs.  See <https://bugs.gnu.org/32339> and
<https://bugs.gnu.org/36255>.

* guix/import/snix.scm, guix/scripts/import/nix.scm,
tests/snix.scm: Remove.
* Makefile.am (MODULES, SCM_TESTS): Remove them.
* guix/scripts/import.scm (importers): Remove "nix".
* build-aux/test-env.in: Remove NIXPKGS variable.
* configure.ac: Remove '--with-nixpkgs' option.
* doc/guix.texi (Invoking guix import): Remove bit about "guix import
nix".
* etc/completion/fish/guix.fish: Likewise.
2021-04-25 14:34:09 +02:00
Maxim Cournoyer
51f95d4e64
guix-install.sh: Allow overriding the Guix binary source.
This is useful for example for testing release candidates not yet uploaded to
the FTP, or for testing manually downloaded images from the CI.

* etc/guix-install.sh (main)[GUIX_BINARY_FILE_NAME]: When this variable is
defined, use it as the file name of a Guix binary, instead of automatically
retrieving the latest archive from the FTP.
2021-04-24 10:32:40 -04:00
Ludovic Courtès
d95168321f
import: Remove Nix importer.
This importer has suffered from bitrot and no longer works with current
Nix and Nixpkgs.  See <https://bugs.gnu.org/32339> and
<https://bugs.gnu.org/36255>.

* guix/import/snix.scm, guix/scripts/import/nix.scm,
tests/snix.scm: Remove.
* Makefile.am (MODULES, SCM_TESTS): Remove them.
* guix/scripts/import.scm (importers): Remove "nix".
* build-aux/test-env.in: Remove NIXPKGS variable.
* configure.ac: Remove '--with-nixpkgs' option.
* doc/guix.texi (Invoking guix import): Remove bit about "guix import
nix".
* etc/completion/fish/guix.fish: Likewise.
2021-04-20 12:13:16 +02:00
Leo Famulari
8e214c53a4
guix-install.sh: Add the build users to the 'kvm' group.
Fixes <https://bugs.gnu.org/42129>.

* etc/guix-install.sh (sys_create_build_user): If a 'kvm' group exists,
add it to the guixbuilders' lists of supplementary groups.
2021-04-14 15:32:51 -04:00
Morgan Smith
a6ac141ebb
etc/committer: Add missing newline.
* etc/committer.scm.in (main): Add newline to message.

Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
2021-04-12 21:42:15 +02:00
Morgan Smith
d375eddda0
etc/committer: Use git plumbing instead of porcelain.
* etc/committer.scm.in (diff-info): Use "git diff-files" instead of "git diff".
(old-sexp): Use "git cat-file" instead of "git show".

Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
2021-04-12 21:42:15 +02:00
Ricardo Wurmus
c762df5478
etc/committer: Disable diff colors.
Reported by: morgansmith on IRC.

* etc/committer.scm.in (diff-info): Invoke "git diff" with "--no-color".
2021-04-08 17:12:06 +02:00
Ricardo Wurmus
83991a34d5
etc/committer: Recompute hunks before processing changes.
* etc/committer.scm.in (main): Re-evaluate diff-info after processing
insertions.
2021-04-08 03:10:14 +02:00
Ricardo Wurmus
43fb6b765d
etc/committer: Record minimal context for hunks to avoid problems.
With zero context new definitions would be applied to the wrong location in
the file.  More context lines lead to larger hunks, though, so we use just one
line of context.

* etc/committer.scm.in (diff-info): Invoke "git diff" with one line of
context.
[info]: Merge line break and first line.
(lines-to-first-change): New procedure.
(old-sexp, new-sexp): Use it.
2021-04-08 03:10:14 +02:00
Ricardo Wurmus
56270c1275
etc/committer: Define delay duration as a variable.
* etc/committer.scm.in (%delay): New variable.
(main): Use it.
2021-04-08 03:10:14 +02:00
Ricardo Wurmus
c8c3afe848
etc/committer: Handle package additions.
* etc/committer.scm.in (<hunk>)[diff]: Rename this field...
[diff-lines]: ...to this.
[definition?]: New field.
(hunk->patch): Join diff lines.
(diff-info): Do not join diff lines; record whether a hunk is a new
definition.
(commit-message): Rename this procedure...
(change-commit-message): ...to this.
(add-commit-message): New procedure.
(main): Handle new package definitions before changes.
2021-04-08 03:10:13 +02:00
Florian Pelz
86617c92c6
news: Add 'de' translation.
* etc/news.scm: Add German translation of user activation entry.
2021-04-04 07:47:12 +02:00
Ludovic Courtès
3b6247ba6d
news: Clarify time window for account activation vulnerability.
* etc/news.scm: Tweak wording about skeleton files.
2021-04-03 22:19:28 +02:00
Ludovic Courtès
c9960ad67c
news: Recommend upgrade for account activation vulnerability.
* etc/news.scm: Recommend upgrade.
2021-04-03 22:13:28 +02:00
Maxime Devos
72f911bf05
news: Add entry for user account activation vulnerability.
* etc/news.scm: Add entry.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2021-04-03 22:09:56 +02:00
Florian Pelz
2743a0b28d
news: Add 'de' translation.
* etc/news.scm: Add German translation of POWER9 entry.
2021-04-01 19:51:32 +02:00
Ludovic Courtès
f73b4ecb0c
news: Add 'fr' translation.
* etc/news.scm: Add French translation of POWER9 entry.
2021-03-31 17:18:14 +02:00
Chris Marusich
0374617920
news: Add entry announcing powerpc64le-linux support.
* etc/news.scm: Add entry.
2021-03-30 23:02:17 -07:00
Chris Marusich
a16eb6c5f9
Add powerpc64le-linux as a supported Guix architecture.
This makes powerpc64le-linux a supported architecture for Guix, but not for
Guix System.

* Makefile.am (SUPPORTED_SYSTEMS): Add an entry for powerpc64le-linux.
* etc/guix-install.sh (chk_sys_arch): Same.
* guix/packages.scm (%supported-systems): Same.
* m4/guix.m4 (GUIX_ASSERT_SUPPORTED_SYSTEM): Same.
* tests/guix-build.sh (all_systems): Same.
2021-03-23 23:19:57 -07:00
Florian Pelz
5dd33960bc
news: Add ‘de’ translation.
* etc/news.scm (channel-news): Add German translation.
2021-03-18 22:33:53 +00:00
Tobias Geerinckx-Rice
1cf49786f0
news: Add ‘nl’ translation.
* etc/news.scm (channel-news): Add a Dutch translation.
2021-03-18 22:30:46 +01:00
Tobias Geerinckx-Rice
79f9091b0f
news: Update erratum for '--keep-failed' vulnerability.
* etc/news.scm: Change commit to behave in a (hopefully) more expected
manner.  Change http:// to https:// URL whilst here.
2021-03-18 22:15:00 +01:00
Tobias Geerinckx-Rice
f62633a527
news: Add erratum for '--keep-failed' vulnerability.
* etc/news.scm: Add entry.
2021-03-18 21:52:02 +01:00
Tobias Geerinckx-Rice
a12de215e3
news: Fix ‘nl’ typo.
* etc/news.scm (channel-news): This locale's ‘locale’'s ‘lokale’.
2021-03-18 17:47:07 +01:00
Tobias Geerinckx-Rice
6ce80c9008
news: Add ‘nl’ translation.
* etc/news.scm (channel-news): Add a Dutch translation.
2021-03-18 17:08:11 +01:00
Florian Pelz
9783645ee8
news: Add ‘de’ translation. 2021-03-18 14:38:57 +00:00
Ludovic Courtès
1955ef93b7
news: Add entry for '--keep-failed' vulnerability.
* etc/news.scm: Add entry.
2021-03-18 12:34:02 +01:00
Julien Lepiller
bf6a1dbae1
news: Add 'fr' translation.
* etc/news.scm: Add missing French translations.
2021-03-17 13:31:43 +01:00
Florian Pelz
9ed2a26d04
news: Add ‘de’ translation. 2021-03-16 13:43:32 +00:00
Maxim Cournoyer
1ea2c82355
news: Add news entry about changes to the QEMU binfmt service.
* etc/news.scm: Add entry.
2021-03-15 18:03:16 -04:00
Florian Pelz
526b5b106e
news: Update copyright.
* etc/news.scm: Add missing copyright header.
2021-03-11 16:23:02 +00:00
Tobias Geerinckx-Rice
8f359cd9ff
news: Add ‘nl’ translation.
* etc/news.scm (channel-news): Add a Dutch translation.
2021-03-11 15:20:50 +01:00
Florian Pelz
c6079b0278
news: Add ‘de’ translation. 2021-03-11 13:00:00 +00:00
Ludovic Courtès
2673324efa
news: Add entry for 'guix import go'.
* etc/news.scm: Add entry.
2021-03-10 18:03:34 +01:00
Mathieu Othacehe
76bea3f8bc
ci: Remove hydra support.
This removes hydra support to use Cuirass as the only continuous integration
system.

* build-aux/hydra/gnu-system.scm: Remove it.
* build-aux/hydra/guix-modular.scm: Ditto.
* build-aux/hydra/guix.scm: Ditto.
* build-aux/cuirass/hydra-to-cuirass.scm: Ditto.
* Makefile.am (EXTRA_DIST): Update it.
(hydra-jobs.scm): Remove it.
(cuirass-jobs.scm): Update it.
* build-aux/hydra/evaluate.scm: Move it to ...
* build-aux/cuirass/evaluate.scm: ... here.
* build-aux/cuirass/guix-modular.scm: Remove it.
* build-aux/cuirass/gnu-system.scm: Ditto.
* guix/packages.scm (%hydra-supported-systems): Rename it to ...
(%cuirass-supported-systems): ... this variable.
* build-aux/check-final-inputs-self-contained: Adapt it.
* etc/release-manifest.scm: Ditto.
* gnu/ci.scm (package->alist): Remove it.
(derivation->job): New procedure.
(package-job, package-cross-job, cross-jobs, image-jobs, system-test-jobs,
tarball-jobs): Use it.
(guix-jobs): New procedure.
(hydra-jobs): Rename it to ...
(cuirass-jobs): ... this procedure.
2021-03-10 08:49:48 +01:00
Florian Pelz
d6547b1e40
news: Add ‘de’ translation. 2021-03-02 09:58:13 +00:00
Tobias Geerinckx-Rice
20b5cf8304
news: Add ‘nl’ translation.
* etc/news.scm: Add a Dutch translation.
2021-02-28 22:41:10 +01:00
Leo Famulari
a78058a80b
news: Add entry for the linux-libre 5.11 update.
* etc/news.scm: Add entry.
2021-02-28 14:58:03 -05:00
Zhu Zihao
a4458eb0ea
news: Add 'zh' translation.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-02-22 12:07:45 +01:00
Florian Pelz
fb2498aaa1
news: Add ‘de’ translation. 2021-02-18 10:48:37 +00:00
Mathieu Othacehe
3acf140736
news: Add entry for "guix system image".
* etc/news.scm: New entry.
2021-02-17 13:30:30 +01:00
Mathieu Othacehe
ee2a5da80a
scripts: system: Remove 'vm-image' command.
Remove the 'vm-image' command that has been superseded by the 'image'
command.

* gnu/system/vm.scm (system-qemu-image): Remove it.
* guix/scripts/system.scm (system-derivation-for-action): Mark 'vm-image'
command as deprecated and use the image API to produce the VM image.
(perform-action, show-help): Adapt accordingly.
* tests/guix-system.sh: Ditto.
* doc/guix.texi (Invoking guix system,
Running Guix in a VM): Ditto.
* etc/completion/fish/guix.fish: Ditto.
* etc/completion/zsh/_guix: Ditto.
2021-02-17 10:52:28 +01:00
Ludovic Courtès
2972287490
news: Add 'fr' translation. 2021-02-09 23:38:33 +01:00
Ludovic Courtès
e342f89b4c
etc: 'guix-publish.service' depends on 'guix-daemon.service'.
Reported by Dimitri Delabroye <dimitri.delabroye@inria.fr>.

* etc/guix-publish.service.in (Requires, PartOf, After): New fields.
2021-02-09 23:38:33 +01:00
Florian Pelz
5e01f68a93
news: Add ‘de’ translation. 2021-02-09 10:16:49 +00:00
Ludovic Courtès
b421b2f66e
news: Add news entry for local privilege escalation.
* etc/news.scm: Add entry.
2021-02-09 10:09:09 +01:00
Florian Pelz
786a8c5803
news: Add ‘de’ translation. 2021-02-03 16:49:59 +00:00
Ludovic Courtès
15078567c1
news: Add entry for '--export-manifest' and '--export-channels'.
* etc/news.scm: Add entry.
2021-02-01 17:58:05 +01:00
Florian Pelz
4fce867ddf
news: Add ‘de’ translation. 2021-01-21 15:02:41 +00:00
Ludovic Courtès
ff34f8a693
news: Add entry for '--with-latest'.
* etc/news.scm: Add entry.
2021-01-19 18:14:43 +01:00
Florian Pelz
edd989d57a
news: Add ‘de’ translation. 2021-01-16 23:26:16 +00:00
Ludovic Courtès
4c21676698
news: Add entry for zstd support.
* etc/news.scm: Add entry.
2021-01-14 09:49:07 +01:00
Jakub Kądziołka
9d34b04f40
/etc/profile.d/guix.sh: Add guix pull profile even when absent
* etc/guix-install.sh (sys_create_init_profile): Set PATH and INFOPATH
even when $_GUIX_PROFILE does not exist.

After initial installation on a foreign distro, the guix pull profile
won't be present in path. This means that the first guix pull won't take
effect until the shell is restarted.

~/.guix-profile cannot be pre-loaded like this as the relevant paths are
stored in ~/.guix-profile/etc/profile, which simply won't exist.
However, guix package will output a relevant hint that instructs the
user to reload the profile, so this isn't a problem.
2021-01-03 17:01:26 +01:00
Florian Pelz
551167d008
news: Add ‘de’ translation. 2020-12-27 17:37:44 +00:00
Ludovic Courtès
d21f251a35
news: Add entry for '--with-patch'.
* etc/news.scm: Add entry.
2020-12-27 17:24:07 +01:00
Morgan Smith
d6b0d219c6
etc: snippets: Add new build systems to package snippet.
* etc/snippets/scheme-mode/guix-package: Add the following as possibilities
for the build-system field:

clojure-build-system
copy-build-system
dune-build-system
guile-build-system
julia-build-system
linux-module-build-system
maven-build-system
node-build-system
qt-build-system
rakudo-build-system

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-12-23 17:30:14 +01:00
Vincent Legoll
d2532317d1
guix-install.sh: Add variable quoting and curly-bracketing.
* etc/guix-install.sh (guix_get_bin)[dl_path]: Add variable quoting and
curly-bracketing.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-12-18 12:21:25 +00:00
Vincent Legoll
1f4e878fc4
guix-install.sh: Adjust variable use in guix_get_bin_list().
* etc/guix-install.sh (guix_get_bin_list)[BIN_VER]: Add curly-brackets,
[latest_ver]: Likewise & add explicit array zero-indexing.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-12-18 12:21:15 +00:00
Vincent Legoll
b4a1252b71
guix-install.sh: Add variable quoting in sys_make_guix_available.
* etc/guix-install.sh (sys_make_guix_available): Add variable quoting.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-12-18 12:21:11 +00:00
Vincent Legoll
7c16406809
guix-install.sh: Replace tabs with spaces.
Almost the entire file is indented with spaces, a few tabs slipped in, clean
them up.

* etc/guix-install.sh(chk_sys_arch): Replace tabs with spaces.
(sys_enable_guix_daemon): Likewise.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-12-18 12:20:59 +00:00
Leo Famulari
80ebcdd100
maint: Only run make authenticate when pushing commits.
* etc/git/pre-push: Exit early when deleting a branch.
2020-12-14 12:15:06 -05:00
Miguel Ángel Arruga Vivas
6718ce446c
news: Add 'es' translation. 2020-12-12 02:27:58 +01:00
Marius Bakke
d677f3d623
etc: Add more SELinux permissions for the daemon.
* etc/guix-daemon.cil.in (guix_daemon): Permit file write, getattr, link and
unlink for the guix_daemon_exec_t type.
2020-12-10 23:48:42 +01:00
Ludovic Courtès
611ae310f4
bash completion: Complete file names after '-f' and '-l'.
* etc/completion/bash/guix (_guix_is_dash_f, _guix_is_dash_l): New
functions.
(_guix_complete): Complete file names after 'guix package -f', 'guix
build -f', and 'guix environment -l'.
2020-12-04 23:45:08 +01:00
Nicolas Goaziou
39e8bc2ab8
etc: snippets: Fix name extraction.
* etc/snippets/text-mode/guix-commit-message-add-package: Fix name
extraction. This is a follow-up to 988a49c78e.
2020-12-04 18:19:39 +01:00
Nicolas Goaziou
988a49c78e
etc: snippets: Fix name extraction.
* etc/snippets/text-mode/guix-commit-message-update-package: Since git commit
mode is not derived from any Lisp mode, so-called sexp or symbols do not
include the period character.  As a consequence, names including versions are
not properly extracted. Also use more idiomatic (goto-char (point-min))
instead of (beginning-of-buffer).
2020-12-04 17:09:38 +01:00
Nicolas Goaziou
2c0b331c9a
news: Fix typo.
* etc/news.scm (version): Add missing @option macro in French translation.
2020-12-01 09:36:44 +01:00
Florian Pelz
79613ec8fc
news: Add ‘de’ translation. 2020-11-29 19:33:36 +00:00