Commit graph

521 commits

Author SHA1 Message Date
Maxim Cournoyer
6aa5d1dc24
guix-install.sh: Expand mktemp template for busybox compatibility.
Fixes <https://issues.guix.gnu.org/58858>.

* etc/guix-install.sh (main): Use 6 'X' characters in the template, as this is
the minimum required by Busybox's mktemp (which matches glibc's mktemp
behavior).

Reported-by: conses <contact@conses.eu>
2022-11-16 16:23:15 -05:00
Florian Pelz
706a916056
news: Add 'de' translation.
* etc/news.scm: Add German translation of '--symlink' entry.
2022-11-16 09:08:44 +01:00
Maxim Cournoyer
8f9588185d
news: Add entry for 'guix shell --symlink'.
* etc/news.scm: Add entry.
2022-11-15 14:40:53 -05:00
Maxim Cournoyer
b538ccc208
etc/news.scm: Normalize indentation.
* etc/news.scm: Normalize indentation.
2022-11-15 14:38:28 -05:00
Prafulla Giri
775134ebf5
guix-install.sh: Remove unnecessary XDG_DATA_DIRS export.
This started out as a bug-fix for a GUI login loop that was resulting from XDG_DATA_DIRS
not including any of the host distro's directories. The solution was to export the vari-
able (with fail-safe defaults) before source-ing GUIX_PROFILE/etc/profile. It turns out
changes have already been made to ensure that XDG_DATA_DIRS, etc. are always exported
before anything guix-specific. So, this export is no longer necessary.

For reference, the aforementioned bug was found on a Debian 11 machine and it's guix.sh
init profile for guix version 1.2.

* etc/guix-install.sh (sys_create_init_profile): Remove unnecessary
XDG_DATA_DIRS export.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
2022-11-14 10:25:45 +08:00
Raghav Gururajan
01aa6e0454
teams: Add Raghav Gururajan.
* etc/teams.scm.in: Add Raghav Gururajan.
2022-11-12 04:09:40 -05:00
Raghav Gururajan
3c62b03798
Revert "teams: Add Raghav Gururajan."
This reverts commit 56aebf7f7c.
2022-11-12 03:49:39 -05:00
Raghav Gururajan
56aebf7f7c
teams: Add Raghav Gururajan.
* etc/teams.scm.in: Add Raghav Gururajan.
2022-11-12 03:43:15 -05:00
zimoun
18fb7c0f30
etc: teams: List teams sorted by id.
* etc/teams.scm.in (list-teams): Sort teams by id.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-11-09 17:15:43 +01:00
zimoun
ab9e6597f6
etc: teams: List members sorted by name.
* etc/teams.scm.in (list-members): Sort by name.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-11-09 17:09:42 +01:00
Konrad Hinsen
93be56a3ab
guix-install.sh: Run guix.sh script in /etc/profile.d last.
* etc/guix-install.sh: Rename /etc/profile.d/guix.sh to zzz-guix.sh.

This script refers to environment variables set by the host distribution.
They may be set in other scripts in /etc/profile.d, which must therefore
be run first.
Example: in Ubuntu 20.04, XDG_DATA_DIRS is set in
/etc/profile.d/xdg_dirs_desktop_session.sh

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-11-08 10:55:54 +01:00
Florian Pelz
d41ea236bf
news: Update 'de', 'fr', 'pt_BR' translation.
* etc/news.scm: Add the usual translations for kernel news.
2022-11-07 09:57:25 +01:00
Leo Famulari
4a34da845e
news: Add entry about the update of the 'linux-libre' package.
* etc/news.scm: Add entry.
2022-11-06 17:40:58 -05:00
jgart
0e9e83d821
etc: teams: Add pyproject-build-system to python scope.
* etc/teams.scm.in (python): Add guix/build/pyproject-build-system.scm and
guix/build-system/pyproject.scm to python team's scope.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2022-11-06 15:11:21 +01:00
Thiago Jung Bauermann
64e9190a87
news: Add 'pt' translation.
* etc/news.scm: Add Portuguese translation of entry about
pyproject-build-system.

Signed-off-by: Florian Pelz <pelzflorian@pelzflorian.de>
2022-11-05 23:28:26 +01:00
Antero Mejr
7a4f858f39
etc: teams: Add help information for commands.
* etc/teams.scm.in (main): Add command information to usage help prompt.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2022-11-03 17:26:52 +01:00
Tobias Geerinckx-Rice
068f1a1905
etc: systemd services shouldn't ‘RemainAfterExit’.
* etc/guix-daemon.service.in (RemainAfterExit): Don't.
* etc/guix-publish.service.in (RemainAfterExit): Likewise don't.
2022-10-23 02:00:26 +02:00
Tobias Geerinckx-Rice
0f6ec662f6
etc: Add ‘Restart=always’ to both systemd services.
* etc/guix-daemon.service.in (Restart): ‘Always’ do.
* etc/guix-publish.service.in (Restart): Likewise.
2022-10-23 02:00:25 +02:00
Tobias Geerinckx-Rice
f16d91295a
etc: Add ‘OOMPolicy=continue’ to guix-daemon.service.
* etc/guix-daemon.service.in (OOMPolicy): Continue.
2022-10-23 02:00:00 +02:00
Marius Bakke
a4fd4db6d1
news: Add entry for 'pyproject-build-system'.
* etc/news.scm: Add entry.

Co-authored-by: Florian Pelz <pelzflorian@pelzflorian.de>
Co-authored-by: Julien Lepiller <julien@lepiller.eu>
2022-10-27 19:43:07 +02:00
Christopher Baines
be9b213c75
maint: Tweak release manifest special case for armhf-linux.
Don't remove the emacs package, as it does build and substitutes are
available. Do remove the guix package though, as it doesn't build due to Guile
memory issues while compiling the package modules.

* etc/release-manifest.scm (%base-packages/armhf): Don't replace the emacs
package, remove the guix package.
(%base-manifest): Remove FIXME comment as %base-packages/armhf doesn't relate
to build power.
2022-10-25 10:10:06 +01:00
Liliana Marie Prikler
85aff4de30
snippets: Harden for review activity.
When reviewing patches, whose commit logs don't follow the structure outlined
in “Submitting Patches”, a reviewer might be tempted to use snippets to
rewrite them.  This makes it so that their attempt, while not immediately
succeeding, isn't completely thwarted.

* etc/snippets/tempel/text-mode (add\ , remove\ , rename\ , update\ )
(addcl\ , https\ ): Use an empty "p" field if (car (magit-staged-files))
fails.
2022-10-22 14:16:13 +02:00
Tobias Geerinckx-Rice
0d2ad16c07
guix-install.sh: Cosmetically tweak non-interactive output.
Avoid printing

  Press return to continue...[1666352494.051]: Starting installation…
  [1666352648.869]: …

when the return itself wasn't echoed on the console.

* etc/guix-install.sh (welcome): Add a carriage return to the prompt,
so that the next line of output may overwrite it.
2022-10-16 02:00:29 +02:00
Tobias Geerinckx-Rice
a326e3085d
guix-install.sh: Warn if we suspect dodgy automation.
This doesn't affect the installation (yet), but reserves the right to
default to safe values other than ‘y’ in future.

* etc/guix-install.sh (welcome): Warn if the ‘return’ wasn't.
2022-10-16 02:00:28 +02:00
Tobias Geerinckx-Rice
1e8e84b286
guix-install.sh: Treat all uncaught errors as fatal.
* etc/guix-install.sh: Set -o pipefail.
2022-10-16 02:00:28 +02:00
Tobias Geerinckx-Rice
54c0b5c457
guix-install.sh: Suggest what to do if fetching OpenPGP key(s) fails.
* etc/guix-install.sh (chk_gpg_keyring): Report an _err and set the
exit_flag if wget | gpg --import fails.
2022-10-16 02:00:28 +02:00
Tobias Geerinckx-Rice
9a0a786c25
guix-install.sh: Time out fetching OpenPGP keys.
The default 900s provide no useful backstop in interactive use.

* etc/guix-install.sh (chk_gpg_keyring): Add a 30s wget --timeout.
2022-10-16 02:00:28 +02:00
Thiago Jung Bauermann
6f7b44e42e
news: Add 'pt' translation.
* etc/news.scm: Add Portuguese translation of entry about the new
--emulate-fhs option.

Signed-off-by: Julien Lepiller <julien@lepiller.eu>
2022-10-17 07:32:47 +02:00
Florian Pelz
759d365cd2
news: Add 'de' translation.
* etc/news.scm: Add German translation of '--emulate-fhs' entry.
2022-10-14 12:37:15 +02:00
Ludovic Courtès
2c11e857af
news: Add entry for 'guix shell --emulate-fhs'.
* etc/news.scm: Add entry.
2022-10-13 09:34:15 +02:00
Maxim Cournoyer
e46bb5fd5a
guix-install.sh: Restore compatibility with "yes" invocation.
Commit 6a2e303d3a had modified prompt_yes_no to only read a single character,
aiming to ease the user experience.  This was, in retrospect, a bad idea, as
it makes user input error more likely and introduces complexity.

This commit reverts to line-oriented input, while preserving the default yes
value so that a user can simply hit 'Enter' at the prompt in place of typing
"yes".

* etc/guix-install.sh (_flush): Delete function.
(prompt_yes_no): Restore line-oriented read.  Remove loop.  Make anything else
than yes means no.  Use Bash features to streamline definition.

Reported-by: Lars-Dominik Braun <lars@6xq.net> and others.
2022-10-11 12:00:44 -04:00
Maxim Cournoyer
9ca0f9e5a9
guix-install.sh: Add Bash prompt customization option.
Fixes <https://issues.guix.gnu.org/55484>.

* etc/guix-install.sh (sys_customize_bashrc): New function.
(main): Use it.
2022-10-07 08:25:40 -04:00
Maxim Cournoyer
231e5f29ae
guix-install.sh: Introduce 'die' utility function.
* etc/guix-install.sh (die): New function.
(chk_sys_arch): Use it.
(guix_get_bin_list, guix_get_bin, sys_create_store): Likewise.
2022-10-07 08:20:33 -04:00
Maxim Cournoyer
6a2e303d3a
guix-install.sh: Improve prompt_yes_no procedure.
* etc/guix-install.sh (_flush): New function.
(prompt_yes_no): Clear input, then only read the first character, silently.
Add the [Yes/no] string to the message.  When a newline is entered by the
user, treat it as the default value, which is "yes".
(chk_gpg_keyring): Remove "(yes/no)" from the prompt message.
(configure_substitute_discovery): Likewise.
(sys_authorize_build_farms): Likewise.
2022-10-07 01:23:05 -04:00
Liliana Marie Prikler
5e63e51afe
snippets: Fix move.
The current move is never correct.  It flip-flops between car and cadr for
the destination.  Since the position of the destination is not actually a
fixed point in the list of changes, use a more robust method of inferring it.

* etc/snippets/tempel/text-mode (move\ ): Infer source and destination from
washed diffs.  Process new module before destination.
2022-10-06 21:16:46 +02:00
Liliana Marie Prikler
da281417cc
snippets: tempel: Reformat.
This makes it so that ‘indent-region’ and ‘delete-trailing-whitespace’ do not
change the file.

* etc/snippets/tempel/text-mode: Reformat.
2022-10-06 21:16:46 +02:00
Liliana Marie Prikler
980c34853e
snippets: tempel: Fix calls to mapconcat.
* etc/snippets/tempel/text-mode (update\ ,https\ ): Add "\n" as separator
argument to mapconcat.
2022-10-06 21:16:45 +02:00
Thiago Jung Bauermann
aeaabc4253
news: Add 'pt' translation.
* etc/news.scm: Add Portuguese translation of entry about the --with-source
option being recursive.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-10-03 16:23:16 +02:00
Thiago Jung Bauermann
ee8211a62c
etc: teams: Add news.scm to translations team scope.
* etc/teams.scm.in (translations)[#:scope]: Add etc/news.scm.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-10-03 15:33:29 +02:00
Florian Pelz
0dec41f329
news: Add 'de' translation.
* etc/news.scm: Add German translation of '--with-source' entry.
2022-10-01 00:55:28 +02:00
Jesse Gibbons
4244f5e9a7
news: Add entry for '--with-source'.
* etc/news.scm: Add entry.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2022-09-29 23:10:25 +02:00
zimoun
ea49070a36
teams: Add Simon Tournier.
* etc/teams.scm.in: Add Simon Tournier.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-09-28 09:03:22 +02:00
(
8710f01e04
etc: teams: Add (.
* etc/teams.scm.in: Add (.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-09-28 09:03:22 +02:00
(
fb9f51a81f
etc: teams: Add more scopes to teams.
* etc/teams.scm.in (r, julia, ruby, go, rust, kernel, translations,
  home, mozilla, racket): Add scopes.
(emacs)[scope]: Add ``guix import elpa''-related files.
(installer)[scope]: Correct ``guix/installer'' to ``gnu/installer''.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-09-28 09:03:22 +02:00
Thiago Jung Bauermann
e122c7b834
news: Add 'pt' translation.
* etc/news.scm: Add Portuguese translation of entries about WSL system images
and about Guix System image API documentation.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-09-28 09:03:22 +02:00
pukkamustard
f5ffaacd55
teams: Add pukkamustard.
* etc/teams.scm.in: Add pukkamustard.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-09-27 08:42:51 +02:00
Josselin Poiret
b4de11b5dc
teams: Add Josselin Poiret.
* etc/teams.scm.in: Add Josselin Poiret.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-09-27 08:40:48 +02:00
Nicolas Graves
b6274a20e8
etc: Add tempel snippet move.
* etc/snippets/tempel/text-mode (move\): New entry.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-09-26 23:29:36 +02:00
Florian Pelz
9e4164c6ff
news: Add another 'de' translation.
* etc/news.scm: Add German translation of images API entry.
2022-09-26 13:18:34 +02:00
Florian Pelz
5602eaeacb
news: Add 'de' translation.
* etc/news.scm: Add German translation of WSL images entry.
2022-09-26 13:14:49 +02:00