unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Raimundo Martins via Bug reports for GNU Guix <bug-guix@gnu.org>
To: "51348@debbugs.gnu.org" <51348@debbugs.gnu.org>
Subject: bug#51348: Solved: Exception on `guix install nss-certs`
Date: Mon, 25 Oct 2021 21:15:23 +0000	[thread overview]
Message-ID: <ZbOKXUqDOv-sri3lRGcDD3owQBf_8Aebi9XKJTyAnaLg36KaLthb5DihEpMEuWbpG2HaV89z4934YHrHCkY1pIjNoogiZpP18jMeB1Dm1Bg=@protonmail.com> (raw)
In-Reply-To: <q7aKeY7pvn3Z6oSoEzwQi11R4isz3AkAoanuUbqIOl9byMmlTIj-1RvYxmZwI12Kp2fd3zSvI71RD8yZahzdxpi3Z2lspEHRPL2nppIpqGY=@protonmail.com>

[-- Attachment #1: Type: text/plain, Size: 916 bytes --]

Hey!

Turns out that, since I use the runit init system, GUIX_LOCPATH wasn't being set anytime before guix-daemon started, since /etc/profile.d/guix.sh was not sourced.
As a fix I set that variable by hand in my init script.
If you want to have runit as a known init system in the installer script, I suggest adding to chk_init_sys()

elif $(runit 2>/dev/null; [ $? = 111 ]); then
    _msg "${INF}init system is: runit"
    INIT_SYS="runit"
    return 0

and to the case in sys_enable_guix_daemon()

runit)
mkdir /etc/sv/guix-daemon
echo "#!/bin/sh
GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale exec /var/guix/profiles/per-user/root/current-guix/bin/guix-daemon --build-users-group=guixbuild" >/etc/sv/guix-daemon/run
chmod 755 /etc/sv/guix-daemon/run
ln -sT /etv/sv/guix-daemon /var/service/guix-daemon
;;

Or something like that :P Thanks for your support in IRC #guix !!

Regards,
Raimundo

[-- Attachment #2: Type: text/html, Size: 1286 bytes --]

  parent reply	other threads:[~2021-10-26  0:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-23 10:57 bug#51348: Exception on `guix install nss-certs` Raimundo Martins via Bug reports for GNU Guix
2021-10-23 20:04 ` Leo Famulari
2021-10-25 21:15 ` Raimundo Martins via Bug reports for GNU Guix [this message]
2021-10-27 22:32   ` bug#51348: Solved: " Julien Lepiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ZbOKXUqDOv-sri3lRGcDD3owQBf_8Aebi9XKJTyAnaLg36KaLthb5DihEpMEuWbpG2HaV89z4934YHrHCkY1pIjNoogiZpP18jMeB1Dm1Bg=@protonmail.com' \
    --to=bug-guix@gnu.org \
    --cc=51348@debbugs.gnu.org \
    --cc=raimundomartins@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).