From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Archive authentication & =?utf-8?Q?=E2=80=98guix_challenge?= =?utf-8?Q?=E2=80=99?= Date: Tue, 14 Feb 2017 10:20:46 +0100 Message-ID: <87vasduo0h.fsf@gnu.org> References: <8737goz2ba.fsf@gnu.org> <8660kud3u4.fsf@gmail.com> <874m03z5h2.fsf_-_@gnu.org> <86o9y9fybz.fsf@gmail.com> <87shnk3iib.fsf@gnu.org> <87y3xa4z08.fsf@gmail.com> <8760kefaoc.fsf@gnu.org> <864lzy10b9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdZI5-0000is-1F for guix-devel@gnu.org; Tue, 14 Feb 2017 04:20:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdZI1-00073b-Po for guix-devel@gnu.org; Tue, 14 Feb 2017 04:20:52 -0500 In-Reply-To: <864lzy10b9.fsf@gmail.com> (myglc2@gmail.com's message of "Mon, 13 Feb 2017 12:13:14 -0500") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: myglc2 Cc: guix-devel@gnu.org, Maxim Cournoyer myglc2 skribis: > On 02/13/2017 at 14:05 Ludovic Court=C3=A8s writes: > >> Hi Maxim, >> >> Maxim Cournoyer skribis: >> >>> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>> >>>> myglc2 skribis: >>>> >>>>> On 02/09/2017 at 17:36 Ludovic Court=C3=A8s writes: >>>> >>>> [...] >>>> >>>>>> Could it be that the =E2=80=98guix archive=E2=80=99 you ran uses a c= onfiguration >>>>>> directory other than this one? What does: >>>>>> >>>>>> guile -c '(use-modules (guix config)) (pk %config-directory)' >>>>>> >>>>>> print? >>> >>> I remember being equally confused by not finding the key imported in the >>> /etc/guix/acl file, as per the manual. >>> >>> On my GuixSD system, the value of %config-directory is: >>> "/usr/local/etc/guix", and the file "/usr/local/etc/guix/acl" does >>> contain multiple times the public key of Bayfront, which must be due >>> to passed attempts at adding the Bayfront key using "guix archive". >> >> I suppose that=E2=80=99s because you installed Guix in /usr/local at som= e point? >> >> myglc2, are you in a similar situation? > > Hmm, apparently so ... > > guile -c '(use-modules (guix config)) (pk %config-directory)' > > ... returns ... > > ;;; ("/etc/guix") > > ... but in the REPL I get ... > > (use-modules (guix config)) > (pk %config-directory) > > =3D> "/usr/local/etc/guix" > > ... /usr/local/etc/guix/acl is the only file under /usr and I didn't > install in /usr/local. The system was created with 'guix init' on a > previous GuixSD system and has since been modified by 'guix reconfigure' > and 'guix package', running either from 'git pull' or git checkout. > > I don't know if this is related, but I see that guix config.log > (attached) has ... > > guix_sysconfdir=3D'/usr/local/etc' > > Also, you may recall that, on the previous system, we had to make > /usr/local/sbin/guix-register a symlink to guix-register to get 'guix > init' to work ... Right. =E2=80=98guix pull=E2=80=99 preserves your (guix config) module. So if the= =E2=80=98guix=E2=80=99 you run was configured to use /etc, it=E2=80=99ll keep using that; if it was configured to use /usr/local/etc, it=E2=80=99ll keep using that. If you run =E2=80=9C./pre-inst-env guix pull=E2=80=9D, then you end up usin= g (guix config) from your build tree, which is configured to use /usr/local/etc by default. That=E2=80=99s probably what happened, no? To fix it, you can either run: rm -f ~/.config/guix/latest && guix pull or just do: ./configure --sysconfdir=3D/etc in your checkout. Admittedly all this is kind of ugly and I look forward to the =E2=80=98guix pull=E2=80=99 replacement=E2=80=A6 HTH! Ludo=E2=80=99.