From debbugs-submit-bounces@debbugs.gnu.org Thu May 23 17:01:54 2019 Received: (at submit) by debbugs.gnu.org; 23 May 2019 21:01:54 +0000 Received: from localhost ([127.0.0.1]:45429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTuqX-0006WM-Ra for submit@debbugs.gnu.org; Thu, 23 May 2019 17:01:54 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTuqV-0006W9-FN for submit@debbugs.gnu.org; Thu, 23 May 2019 17:01:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:56107) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hTuqP-0007MM-Kk for submit@debbugs.gnu.org; Thu, 23 May 2019 17:01:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTuqM-0000rK-GR for bug-guix@gnu.org; Thu, 23 May 2019 17:01:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hTuqK-0007Jx-Hz for bug-guix@gnu.org; Thu, 23 May 2019 17:01:42 -0400 Received: from a2062.mx.srv.dfn.de ([194.95.232.172]:51317) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hTuqC-00077l-2Y for bug-guix@gnu.org; Thu, 23 May 2019 17:01:35 -0400 Received: from localhost (localhost [127.0.0.1]) by a2062.mx.srv.dfn.de (Postfix) with ESMTP id 2EA68A0050 for ; Thu, 23 May 2019 23:01:15 +0200 (CEST) Received: from a2062.mx.srv.dfn.de ([127.0.0.1]) by localhost (mgw4-han.srv.dfn.de [127.0.0.1]) (amavisd-new, port 20134) with ESMTP id w5mERl5Pv6tO for ; Thu, 23 May 2019 23:01:10 +0200 (CEST) Received: from SW-IT-P-CAS4.mdc-berlin.net (mgw10-4.mdc-berlin.de [141.80.113.59]) by a2062.mx.srv.dfn.de (Postfix) with ESMTPS for ; Thu, 23 May 2019 23:01:10 +0200 (CEST) Received: from localhost (84.173.71.57) by SW-IT-P-CAS4.mdc-berlin.net (141.80.113.59) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 May 2019 23:01:09 +0200 User-agent: mu4e 1.2.0; emacs 26.2 From: Ricardo Wurmus To: Subject: =?utf-8?B?4oCcZ3VpeCBwdWxs4oCd?= fails on setlocale X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 23 May 2019 23:01:08 +0200 Message-ID: <87y32wga23.fsf@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [84.173.71.57] X-TM-AS-Product-Ver: SMEX-12.5.0.1684-8.5.1010-24634.002 X-TM-AS-Result: No-20.573000-8.000000-10 X-TMASE-MatchedRID: LmW1L8EnXQpzfeCSt9MtiLsHVDDM5xAPCqIE7aqEIgYFSmV+BE8Fj2No keyvFnLM/kqghsUfAMHednYgFc6jdkfX0Ayg3UN3+CjwEqX1p7liSlK/b4FRPYTiscmlKoiZgZU /o5eha2Gg5Q2VG3/2WRAvoyYY3IpDspZ3l27pLkvnbOH5yr/Qm9fgqdEINwWesp5O052MzLr/6e wCMzTAUpaqOBKZlzPgZgXAaXYxXEKv1fP3II840qmukiZOfPi250koXQIlRspE6qvV2uOcudSLO Rr4Zhm8FoD8mv041fLzmVB+NB3FcHPH+Ely1Rpp45DZ3wRzNr5EMh482HGNCl3MICnN4BZZnldd nGB9iAGwyaf6oVJ8rx9Z6RJmMAYRqN9SB8J2bqFwsULORIYX4/G6GRFYrbYYR/DWCqF4RMtjt+8 dtsIdXChHLOV1f1xSqxbMfDzu/oQwyMJYmrAoFsmR5yDJkPg4urOlC+PL0QDjDtHs/gjS0poisj ATqNaKwh1gytW32ecAbI0+HOcTP52vo76v4TxgJ/NotB45sAFpeZ1cXZibxxEYLStbyrVdaGRLC nKSipXorK6l53jRbvW6SANrOtw/ZFnOBL1vNaZ9RfLO7PnHP36NJZ3HRhRTrP7fIroeSfM6aVyl yjHBiuJjzgIojeW7QqgqlPoy5ZpbyxAy8+P9fJ4CIKY/Hg3AWQy9YC5qGvwNX1NatttCayq2rl3 dzGQ1/7wtTgJ+a2x+3BndfXUhXQ== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--20.573000-8.000000 X-TMASE-Version: SMEX-12.5.0.1684-8.5.1010-24634.002 X-TM-SNTS-SMTP: D108A6F45B304E24547CA327FDA83418111E44F941BF57E8D158BFDC1A4F3A772000:9 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 194.95.232.172 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Hi Guix, I=E2=80=99m getting this weird error on =E2=80=9Cguix pull=E2=80=9D: --8<---------------cut here---------------start------------->8--- [rwurmus@max147.mdc-berlin.net:~] $ guix pull Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.or= g/git/guix.git'... Building from this channel: guix https://git.savannah.gnu.org/git/guix.git e26d628 Computing Guix derivation for 'x86_64-linux'... \@ build-started /gnu/store= /pryjyasqnhc69qqjsbvv5f1ksi25mjdc-libgit2-0.28.tar.xz.drv - x86_64-linux /g= nu/var/log/guix/drvs/pr//yjyasqnhc69qqjsbvv5f1ksi25mjdc-libgit2-0.28.tar.xz= .drv 2110 = |@ build-log 2110 252 Backtrace: 2 (primitive-load "/gnu/store/lgad0sg02p56jadwqrq674250d5?") In ice-9/eval.scm: 619:8 1 (_ #f) In unknown file: 0 (setlocale 6 "en_US.utf8") ERROR: In procedure setlocale: In procedure setlocale: Invalid argument builder for `/gnu/store/pryjyasqnhc69qqjsbvv5f1ksi25mjdc-libgit2-0.28.tar.x= z.drv' failed with exit code 1 @ build-failed /gnu/store/pryjyasqnhc69qqjsbvv5f1ksi25mjdc-libgit2-0.28.tar= .xz.drv - 1 builder for `/gnu/store/pryjyasqnhc69qqjsbvv5f1ksi25mjdc-libgit= 2-0.28.tar.xz.drv' failed with exit code 1 cannot build derivation `/gnu/store/nj6zd6gn3x1rf08ayxxwd1v0fyg71v9c-libgit= 2-0.28.2.drv': 1 dependencies couldn't be built cannot build derivation `/gnu/store/82x55s3m26j3rpq45ppijzvvh3rhxhsb-guile-= git-0.2.0.drv': 1 dependencies couldn't be built Backtrace: In ./guix/store.scm: 1667:8 19 (_ _) 1667:8 18 (_ _) In ./guix/gexp.scm: 708:2 17 (_ _) In ./guix/monads.scm: 482:9 16 (_ _) In ./guix/gexp.scm: 573:13 15 (_ _) In ./guix/store.scm: 1667:8 14 (_ _) In ./guix/gexp.scm: 708:2 13 (_ _) In ./guix/monads.scm: 482:9 12 (_ _) In ./guix/gexp.scm: 573:13 11 (_ _) In ./guix/store.scm: 1667:8 10 (_ _) In ./guix/gexp.scm: 708:2 9 (_ _) In ./guix/monads.scm: 482:9 8 (_ _) In ./guix/gexp.scm: 573:13 7 (_ _) In ./guix/store.scm: 1667:8 6 (_ _) 1690:38 5 (_ #) In ./guix/packages.scm: 936:16 4 (cache! # # ?) In ./guix/grafts.scm: 314:4 3 (graft-derivation # # # ?) 192:4 2 (references-oracle # #) 201:20 1 (_ _ _) In ./guix/store.scm: 1203:15 0 (_ # _ _) ./guix/store.scm:1203:15: Throw to key `srfi-34' with args `(#)'. guix pull: error: You found a bug: the program '/gnu/store/2mjaq8zxq60ifqxj= 3fra7f8gyxxccypm-compute-guix-derivation' failed to compute the derivation for Guix (version: "e26d628b0fabf5a0aa7c41= 64a9558c66c61e02ab"; system: "x86_64-linux"; host version: "ebd45195dd10eea9ce2c563697989bd4b27dfdd3"; pull-version: 1). Please report it by email to . --8<---------------cut here---------------end--------------->8--- I=E2=80=99m using =E2=80=9Cguix=E2=80=9D from the result of a previous =E2= =80=9Cguix pull=E2=80=9D, but it=E2=80=99s the same if I use a git checkout. The daemon is probably a little special. I=E2=80=99m using the daemon from= a git checkout inside of an environment for =E2=80=9Cguix=E2=80=9D, because l= ocalstatedir in my case is /gnu/var. I also tried using the daemon from the same =E2=80=9Cguix pull=E2=80=9D tre= e, after setting GUIX_DATABASE_DIRECTORY=3D/gnu/var/guix/db and GUIX_STATE_DIRECTORY=3D/gnu/var/guix. Here=E2=80=99s how I launch the daemon: --8<---------------cut here---------------start------------->8--- #!/bin/bash export GUIX_PROFILE=3D/gnu/var/guix/profiles/custom/guix-remote/.guix-profi= le # We need this to augment the GUILE_LOAD_PATH such that it includes # the Guile bindings to gnutls. Sourcing the whole profile is # overkill, but who cares, eh? source ${GUIX_PROFILE}/etc/profile # Fix locale warnings export GUIX_LOCPATH=3D${GUIX_PROFILE}/lib/locale # Fix certificate validation export SSL_CERT_DIR=3D${GUIX_PROFILE}/etc/ssl/certs/ #export GUIX_DATABASE_DIRECTORY=3D/gnu/var/guix/db #export GUIX_STATE_DIRECTORY=3D/gnu/var/guix #/gnu/remote/.guix-pull/bin/guix-daemon \ #/gnu/remote/guix/pre-inst-env guix-daemon \ exec /gnu/remote/guix/pre-inst-env guix-daemon \ --disable-log-compression \ --build-users-group=3Dguix-builder \ --listen=3D141.80.186.209:9999 \ --substitute-urls=3D"https://berlin.guixsd.org https://mirror.hydra.gn= u.org" $@ --8<---------------cut here---------------end--------------->8--- All communication with the daemon happens over network; the local socket is not involved, but this doesn=E2=80=99t seem to make any difference here. The simplest reproducer is to run Guile where the daemon runs and to evaluate setlocale: --8<---------------cut here---------------start------------->8--- [rwurmus@guix-builder:~] (716) $ /gnu/store/r658y3cgpnf99nxjxqgjiaizx20ac4k= 0-guile-2.2.4/bin/guile guile: warning: failed to install locale warning: failed to install locale: Invalid argument GNU Guile 2.2.4 Copyright (C) 1995-2017 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> (setlocale 6 "en_US.utf8") ERROR: In procedure setlocale: In procedure setlocale: Invalid argument Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> --8<---------------cut here---------------end--------------->8--- This is expected because GUIX_LOCPATH isn=E2=80=99t set in this environment. It=E2=80=99s fine when I set GUIX_LOCPATH to the value it has in the above guix-daemon wrapper: --8<---------------cut here---------------start------------->8--- [rwurmus@guix-builder:~] (719) $ GUIX_LOCPATH=3D/gnu/var/guix/profiles/cust= om/guix-remote/.guix-profile/lib/locale /gnu/store/r658y3cgpnf99nxjxqgjiaiz= x20ac4k0-guile-2.2.4/bin/guile GNU Guile 2.2.4 Copyright (C) 1995-2017 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> (setlocale 6 "en_US.utf8") $1 =3D "en_US.utf8" scheme@(guile-user)> --8<---------------cut here---------------end--------------->8--- I don=E2=80=99t understand why Guile as used in the builder of libgit2-0.28.tar.xz would behave any different as the daemons environment looks fine to me: --8<---------------cut here---------------start------------->8--- [rwurmus@guix-builder:~] (723) $ sudo strings /proc/27562/environ GUIX_LOCPATH=3D/gnu/var/guix/profiles/custom/guix-remote/.guix-profile/lib/= locale NIX_BUILD_HOOK=3D/gnu/remote/guix/nix/scripts/offload NIX_HASH=3D NIX_LIBEXEC_DIR=3D/gnu/remote/guix/nix/scripts LC_ALL=3Den_US.UTF-8 GUILE_LOAD_PATH=3D/gnu/remote/guix:/gnu/remote/guix:/gnu/var/guix/profiles/= custom/guix-remote/.guix-profile/share/guile/site/2.2 GUIX_PROFILE=3D/gnu/var/guix/profiles/custom/guix-remote/.guix-profile GUILE_LOAD_COMPILED_PATH=3D/gnu/remote/guix:/gnu/var/guix/profiles/custom/g= uix-remote/.guix-profile/lib/guile/2.2/site-ccache PATH=3D/gnu/remote/guix/scripts:/gnu/remote/guix:/gnu/var/guix/profiles/cus= tom/guix-remote/.guix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:= /usr/bin PWD=3D/ LANG=3Den_US.UTF-8 SSL_CERT_DIR=3D/gnu/var/guix/profiles/custom/guix-remote/.guix-profile/etc/= ssl/certs/ SHLVL=3D0 NIX_ROOT_FINDER=3D/gnu/remote/guix/nix/scripts/list-runtime-roots GUIX_UNINSTALLED=3D1 --8<---------------cut here---------------end--------------->8--- What=E2=80=99s going on here? -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Thu May 23 17:40:23 2019 Received: (at 35874) by debbugs.gnu.org; 23 May 2019 21:40:23 +0000 Received: from localhost ([127.0.0.1]:45499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTvRn-0007UL-DD for submit@debbugs.gnu.org; Thu, 23 May 2019 17:40:23 -0400 Received: from c2062.mx.srv.dfn.de ([194.95.238.172]:60617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hTvRl-0007UC-Bh for 35874@debbugs.gnu.org; Thu, 23 May 2019 17:40:21 -0400 Received: from localhost (localhost [127.0.0.1]) by c2062.mx.srv.dfn.de (Postfix) with ESMTP id 7595030004A; Thu, 23 May 2019 23:40:18 +0200 (CEST) Received: from c2062.mx.srv.dfn.de ([127.0.0.1]) by localhost (mgw4-erl.srv.dfn.de [127.0.0.1]) (amavisd-new, port 20134) with ESMTP id UOqlU4hPhz7P; Thu, 23 May 2019 23:40:17 +0200 (CEST) Received: from SW-IT-P-CAS4.mdc-berlin.net (mgw10-4.mdc-berlin.de [141.80.113.59]) by c2062.mx.srv.dfn.de (Postfix) with ESMTPS; Thu, 23 May 2019 23:40:17 +0200 (CEST) Received: from localhost (84.173.71.57) by SW-IT-P-CAS4.mdc-berlin.net (141.80.113.59) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 23 May 2019 23:40:16 +0200 References: <87y32wga23.fsf@mdc-berlin.de> User-agent: mu4e 1.2.0; emacs 26.2 From: Ricardo Wurmus To: <35874@debbugs.gnu.org> Subject: Re: bug#35874: =?utf-8?B?4oCcZ3VpeCBwdWxs4oCd?= fails on setlocale In-Reply-To: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 23 May 2019 23:40:15 +0200 Message-ID: <87woigg88w.fsf@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [84.173.71.57] X-TM-AS-Product-Ver: SMEX-12.5.0.1684-8.5.1010-24634.003 X-TM-AS-Result: No-0.560100-8.000000-10 X-TMASE-MatchedRID: 9zTThWtzImv2/Vi8qGCS+eh7ldQVCWDzAeCR7YmppCwn+p552csI1f7Q K2y3CWrBoZ004UNo6TGgbP9cCscstrECoSu/5nv6Tauf2PrRb1tE9JRrX2yv6Qp+tuYb4NtQUav hHJUOVIKKooUFzyW/Nu7oiMjz9NDrUj9jh4i0i4Sm7ZVSyheM6b92t/Q6R4L/sR73pvMuk69y7+ o+wlvalefOVcxjDhcwPcCXjNqUmkXCttcwYNipX4jdp2MG2wysJyuPPdGq7AF+GZFuVCrPzHwcV Nz7Sx1Y4EjqzR5THFZ5cqHIIgTWEpJO3Sta2SJxfQxuo0nMDOoFc1m4DHErGIjN4OONeY56Ie7f YQkSrGFiXB/2hzyEnMoLiG3sSjrYUwJ3iqxKP5s= X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--0.560100-8.000000 X-TMASE-Version: SMEX-12.5.0.1684-8.5.1010-24634.003 X-TM-SNTS-SMTP: 834C6D91243F3BF20F292DFBA5ED7F17C03F15027784A22D8AFEA661D2965FDC2000:9 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35874 Cc: ludo@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is a store corruption bug. The problem appears to be that I accidentally ran the daemon with the wrong GUIX_DATABASE_DIRECTORY. The localstatedir is /gnu/var, not /var. In an attempt to simplify my complicated cluster setup, I wanted to switch from the git checkout to =E2=80=9Cguix pull=E2=80=9D. I was able to= use the Guix client from =E2=80=9Cguix pull=E2=80=9D, but not the daemon, because of the localstatedir difference. When I started the daemon from =E2=80=9Cguix pull=E2=80=9D without having s= et GUIX_DATABASE_DIRECTORY and I asked Guix to build something I noticed this error message: guix pull: error: cannot unlink `/gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigdd= fmq4-glibc-2.28/lib/gconv': Directory not empty Wait, =E2=80=9Cunlink=E2=80=9D? Of course: when a build is not found in th= e database, but the store contains an item of the same name the daemon will remove the existing directory. In my case, the daemon did not realize that it couldn=E2=80=99t ever find anything interesting in the database, because it looked in the wrong localstate directory. So it partially removed store items and then aborted, leaving the store in a broken state. Can we make the daemon detect that its understanding of the site differs from that of the Guix client? -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Fri May 24 09:49:12 2019 Received: (at 35874) by debbugs.gnu.org; 24 May 2019 13:49:12 +0000 Received: from localhost ([127.0.0.1]:46329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUAZM-0004iC-3D for submit@debbugs.gnu.org; Fri, 24 May 2019 09:49:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51875) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUAZK-0004hw-7A for 35874@debbugs.gnu.org; Fri, 24 May 2019 09:49:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUAZD-0003oD-BR; Fri, 24 May 2019 09:49:03 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36490 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hUAZC-0008Cc-SI; Fri, 24 May 2019 09:49:03 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: bug#35874: =?utf-8?B?4oCcZ3VpeCBwdWxs4oCd?= fails on setlocale References: <87y32wga23.fsf@mdc-berlin.de> <87woigg88w.fsf@mdc-berlin.de> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Prairial an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 24 May 2019 15:49:01 +0200 In-Reply-To: <87woigg88w.fsf@mdc-berlin.de> (Ricardo Wurmus's message of "Thu, 23 May 2019 23:40:15 +0200") Message-ID: <877eagx8s2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35874 Cc: 35874@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello Ricardo, Ricardo Wurmus skribis: > This is a store corruption bug. > > The problem appears to be that I accidentally ran the daemon with the > wrong GUIX_DATABASE_DIRECTORY. The localstatedir is /gnu/var, not /var. Ouch. :-/ > When I started the daemon from =E2=80=9Cguix pull=E2=80=9D without having= set > GUIX_DATABASE_DIRECTORY and I asked Guix to build something I noticed > this error message: > > guix pull: error: cannot unlink `/gnu/store/h90vnqw0nwd0hhm1l5dgxsdrig= ddfmq4-glibc-2.28/lib/gconv': Directory not empty When you do =E2=80=98guix pull=E2=80=99, the resulting (guix config) is sup= posed to honor the settings of the calling =E2=80=98guix=E2=80=99: %localstatedir, e= tc. It seems that it wasn=E2=80=99t the case here? Could you try again running =E2=80=98guix pull=E2=80=99 from a =E2=80=98guix=E2=80=99 command that has = non-default settings and check the resulting (guix config) module? > Can we make the daemon detect that its understanding of the site differs > from that of the Guix client? I don=E2=80=99t see how that could be done. The daemon necessarily assumes= that its database is authoritative. This kind of issue was supposed to happen only when building from source, but in that case, ./configure tries hard to protect against that. Here it seems that the real issue is that =E2=80=98guix pull=E2=80= =99 produces a =E2=80=98guix=E2=80=99 that does not honor your settings. Anyway, I hope you managed to recover from it without too much hassle. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri May 24 10:11:38 2019 Received: (at 35874) by debbugs.gnu.org; 24 May 2019 14:11:38 +0000 Received: from localhost ([127.0.0.1]:46977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUAv4-0005XC-IM for submit@debbugs.gnu.org; Fri, 24 May 2019 10:11:38 -0400 Received: from a2062.mx.srv.dfn.de ([194.95.232.172]:54259) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUAv1-0005X2-Ny for 35874@debbugs.gnu.org; Fri, 24 May 2019 10:11:36 -0400 Received: from localhost (localhost [127.0.0.1]) by a2062.mx.srv.dfn.de (Postfix) with ESMTP id F2759A004F; Fri, 24 May 2019 16:11:33 +0200 (CEST) Received: from a2062.mx.srv.dfn.de ([127.0.0.1]) by localhost (mgw4-han.srv.dfn.de [127.0.0.1]) (amavisd-new, port 20134) with ESMTP id k6fXI20eGj4L; Fri, 24 May 2019 16:11:27 +0200 (CEST) Received: from SW-IT-P-CAS3.mdc-berlin.net (mgw10-3.mdc-berlin.de [141.80.113.58]) by a2062.mx.srv.dfn.de (Postfix) with ESMTPS; Fri, 24 May 2019 16:11:27 +0200 (CEST) Received: from localhost (141.80.218.143) by SW-IT-P-CAS3.mdc-berlin.net (141.80.113.58) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 24 May 2019 16:11:27 +0200 References: <87y32wga23.fsf@mdc-berlin.de> <87woigg88w.fsf@mdc-berlin.de> <877eagx8s2.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.2 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#35874: =?utf-8?B?4oCcZ3VpeCBwdWxs4oCd?= fails on setlocale In-Reply-To: <877eagx8s2.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 24 May 2019 16:11:26 +0200 Message-ID: <87tvdkdjsh.fsf@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [141.80.218.143] X-TM-AS-Product-Ver: SMEX-12.5.0.1684-8.5.1010-24636.000 X-TM-AS-Result: No-5.957700-8.000000-10 X-TMASE-MatchedRID: oHOSwQSJZWheDtEKgt5AZqHXpVd0THLOC/ExpXrHizxpsnGGIgWMmfVk zkYVc9f2Xhji+B95TSIHq/7mBVbccmD2rk9aaf8Sj0FWpA5CVPmL5MCc+du22GfihW8hWemQEwa 0+RTIVt2Hqrm/bHnDlar3Zm8eMl4Wpljg/F9ExYSnIRazgfZGpxfbPFE2GHrVf2dEskHXJhCtVu Y1YwKyassSlWLa92lXd3kzm3KolL8b35hYG2f1/Zqvoi7RQmPS2zgw5RT/Brb8epMj3qRIPoLqt ST0hsHwq685a5dDEb3PHdrH2BvZHB+kqee36OEzExdS7WFvZWupXdWa4gU0S6Y3y6dPFN/18XUh 1TV0X9Lwy3ElrzYGpMdvCnMCa3KBcJeK6hrO/i6w81wr3rIqslT5iq0BT4XZVVuS1SVf7KM48Hu 1yQGFD208pIXTqA/4AxRDB1E4xT7PQA2fbswzvZ4CIKY/Hg3AWQy9YC5qGvz6APa9i04WGCq2rl 3dzGQ1GpeevGsoI5eXaecUSZDTUxPY7SKNXItn7aQtz7KF1dJzQtM8l+KIZeNkxy8mEWm7IpYm/ +CWayf7x2fDltb+m8ny1DPMMBpjSffSgDsURjcLmlVHqliGQIukLdu5WEN2drIREZCfrxJGiIvI NHGGvn7cGd19dSFd X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.957700-8.000000 X-TMASE-Version: SMEX-12.5.0.1684-8.5.1010-24636.000 X-TM-SNTS-SMTP: 90FFE19495B293715C215199BC27DB97C52D5DD113F6D6CF4F1E21EA351236C62000:9 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35874 Cc: 35874@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ludovic Court=C3=A8s writes: >> When I started the daemon from =E2=80=9Cguix pull=E2=80=9D without havin= g set >> GUIX_DATABASE_DIRECTORY and I asked Guix to build something I noticed >> this error message: >> >> guix pull: error: cannot unlink `/gnu/store/h90vnqw0nwd0hhm1l5dgxsdri= gddfmq4-glibc-2.28/lib/gconv': Directory not empty > > When you do =E2=80=98guix pull=E2=80=99, the resulting (guix config) is s= upposed to > honor the settings of the calling =E2=80=98guix=E2=80=99: %localstatedir,= etc. > > It seems that it wasn=E2=80=99t the case here? Could you try again runni= ng > =E2=80=98guix pull=E2=80=99 from a =E2=80=98guix=E2=80=99 command that ha= s non-default settings and > check the resulting (guix config) module? Is (guix config) enough? What about the daemon? I=E2=80=99ve had no probl= em with =E2=80=9Cguix=E2=80=9D itself when used with a daemon taken from the g= it checkout. >> Can we make the daemon detect that its understanding of the site differs >> from that of the Guix client? > > I don=E2=80=99t see how that could be done. The daemon necessarily assum= es that > its database is authoritative. > > This kind of issue was supposed to happen only when building from > source, but in that case, ./configure tries hard to protect against > that. Here it seems that the real issue is that =E2=80=98guix pull=E2=80= =99 produces a > =E2=80=98guix=E2=80=99 that does not honor your settings. This is confusing, because I *am* using the =E2=80=9Cguix=E2=80=9D client f= rom whatever =E2=80=9Cguix pull=E2=80=9D produces. It=E2=80=99s just the daemon that wo= rks against me when I take it from the same directory as the =E2=80=9Cguix=E2=80=9D client. So, =E2=80=9Cguix-daemon=E2=80=9D currently runs from the git checkout, and= all users talk to it with =E2=80=9Cguix=E2=80=9D from various runs of =E2=80=9Cguix p= ull=E2=80=9D (we initially pulled using the properly configured version from the git checkout). > Anyway, I hope you managed to recover from it without too much hassle. Yes, I was able to identify the corrupt store items and copy the corresponding items from a separate machine. I was lucky that it aborted early when trying to delete items, so it seems that it didn=E2=80= =99t get to do all that much damage. (Curiously, I wasn=E2=80=99t able to run =E2=80=9Cguix gc --verify=3Drepair= ,contents=E2=80=9D because Guix claims I don=E2=80=99t have sufficient privileges to repair the store =E2=80=94 I=E2=80=99m running this as root, but who knows how NFS com= plicates things=E2=80=A6) -- Ricardo From debbugs-submit-bounces@debbugs.gnu.org Sat May 25 13:18:14 2019 Received: (at 35874) by debbugs.gnu.org; 25 May 2019 17:18:14 +0000 Received: from localhost ([127.0.0.1]:49509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUaJB-0002Zz-LI for submit@debbugs.gnu.org; Sat, 25 May 2019 13:18:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUaJA-0002Zj-08 for 35874@debbugs.gnu.org; Sat, 25 May 2019 13:18:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUaIy-0001aT-66; Sat, 25 May 2019 13:18:04 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=37930 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hUaIw-0006DO-PQ; Sat, 25 May 2019 13:18:00 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: bug#35874: =?utf-8?B?4oCcZ3VpeCBwdWxs4oCd?= fails on setlocale References: <87y32wga23.fsf@mdc-berlin.de> <87woigg88w.fsf@mdc-berlin.de> <877eagx8s2.fsf@gnu.org> <87tvdkdjsh.fsf@mdc-berlin.de> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 Prairial an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 25 May 2019 19:17:55 +0200 In-Reply-To: <87tvdkdjsh.fsf@mdc-berlin.de> (Ricardo Wurmus's message of "Fri, 24 May 2019 16:11:26 +0200") Message-ID: <87ef4mqwqk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35874 Cc: 35874@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! Ricardo Wurmus skribis: > Ludovic Court=C3=A8s writes: [...] >> When you do =E2=80=98guix pull=E2=80=99, the resulting (guix config) is = supposed to >> honor the settings of the calling =E2=80=98guix=E2=80=99: %localstatedir= , etc. >> >> It seems that it wasn=E2=80=99t the case here? Could you try again runn= ing >> =E2=80=98guix pull=E2=80=99 from a =E2=80=98guix=E2=80=99 command that h= as non-default settings and >> check the resulting (guix config) module? > > Is (guix config) enough? What about the daemon? I=E2=80=99ve had no pro= blem > with =E2=80=9Cguix=E2=80=9D itself when used with a daemon taken from the= git checkout. Oooh, good point, the =E2=80=98guix-daemon=E2=80=99 package uses a fixed lo= calstatedir. I believe the patch below solves the problem. WDYT? > Yes, I was able to identify the corrupt store items and copy the > corresponding items from a separate machine. I was lucky that it > aborted early when trying to delete items, so it seems that it didn=E2=80= =99t > get to do all that much damage. Phheeew. > (Curiously, I wasn=E2=80=99t able to run =E2=80=9Cguix gc --verify=3Drepa= ir,contents=E2=80=9D > because Guix claims I don=E2=80=99t have sufficient privileges to repair = the > store =E2=80=94 I=E2=80=99m running this as root, but who knows how NFS c= omplicates > things=E2=80=A6) It=E2=80=99s supposed to work if you=E2=80=99re root, and the privilege cla= im checks just that (see nix-daemon.cc): --8<---------------cut here---------------start------------->8--- if (remoteAddr.ss_family =3D=3D AF_UNIX) { [=E2=80=A6] trusted =3D clientUid =3D=3D 0; [=E2=80=A6] =20=20=20=20 case wopVerifyStore: { bool checkContents =3D readInt(from) !=3D 0; bool repair =3D readInt(from) !=3D 0; startWork(); if (repair && !trusted) throw Error("you are not privileged to repair paths"); bool errors =3D store->verifyStore(checkContents, repair); stopWork(); writeInt(errors, to); break; } --8<---------------cut here---------------end--------------->8--- Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/guix/self.scm b/guix/self.scm index 6d7569ec19..8cc82de64c 100644 --- a/guix/self.scm +++ b/guix/self.scm @@ -603,7 +603,21 @@ Info manual." (define (wrap daemon) (program-file "guix-daemon" #~(begin + ;; Refer to the right 'guix' command for 'guix + ;; substitute' & co. (setenv "GUIX" #$command) + + ;; Honor the user's settings rather than those hardcoded + ;; in the 'guix-daemon' package. + (unless (getenv "GUIX_STATE_DIRECTORY") + (setenv "GUIX_STATE_DIRECTORY" + #$(string-append %localstatedir "/guix"))) + (unless (getenv "GUIX_CONFIGURATION_DIRECTORY") + (setenv "GUIX_CONFIGURATION_DIRECTORY" + #$(string-append %sysconfdir "/guix"))) + (unless (getenv "NIX_STORE_DIR") + (setenv "NIX_STORE_DIR" %storedir)) + (apply execl #$(file-append daemon "/bin/guix-daemon") "guix-daemon" (cdr (command-line)))))) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 25 13:20:43 2019 Received: (at control) by debbugs.gnu.org; 25 May 2019 17:20:43 +0000 Received: from localhost ([127.0.0.1]:49513 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUaLb-0002ei-9G for submit@debbugs.gnu.org; Sat, 25 May 2019 13:20:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUaLZ-0002eN-BK for control@debbugs.gnu.org; Sat, 25 May 2019 13:20:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUaLU-0005To-55 for control@debbugs.gnu.org; Sat, 25 May 2019 13:20:36 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=37936 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hUaLT-0006OH-It for control@debbugs.gnu.org; Sat, 25 May 2019 13:20:35 -0400 Date: Sat, 25 May 2019 19:20:32 +0200 Message-Id: <87d0k6qwm7.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #35874 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) retitle 35874 guix-daemon from "guix pull" does not honor user settings quit From debbugs-submit-bounces@debbugs.gnu.org Sun May 26 07:55:52 2019 Received: (at 35874) by debbugs.gnu.org; 26 May 2019 11:55:52 +0000 Received: from localhost ([127.0.0.1]:50454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUrkl-0002Nb-Mn for submit@debbugs.gnu.org; Sun, 26 May 2019 07:55:51 -0400 Received: from a2062.mx.srv.dfn.de ([194.95.232.172]:35639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUrkj-0002NP-Ut for 35874@debbugs.gnu.org; Sun, 26 May 2019 07:55:50 -0400 Received: from localhost (localhost [127.0.0.1]) by a2062.mx.srv.dfn.de (Postfix) with ESMTP id 2E9BBA003C; Sun, 26 May 2019 13:55:44 +0200 (CEST) Received: from a2062.mx.srv.dfn.de ([127.0.0.1]) by localhost (mgw4-han.srv.dfn.de [127.0.0.1]) (amavisd-new, port 20134) with ESMTP id aI6gxPONmFry; Sun, 26 May 2019 13:55:42 +0200 (CEST) Received: from SW-IT-P-CAS4.mdc-berlin.net (mgw10-4.mdc-berlin.de [141.80.113.59]) by a2062.mx.srv.dfn.de (Postfix) with ESMTPS; Sun, 26 May 2019 13:55:42 +0200 (CEST) Received: from localhost (84.173.67.92) by SW-IT-P-CAS4.mdc-berlin.net (141.80.113.59) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 26 May 2019 13:55:41 +0200 References: <87y32wga23.fsf@mdc-berlin.de> <87woigg88w.fsf@mdc-berlin.de> <877eagx8s2.fsf@gnu.org> <87tvdkdjsh.fsf@mdc-berlin.de> <87ef4mqwqk.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.2 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#35874: =?utf-8?B?4oCcZ3VpeCBwdWxs4oCd?= fails on setlocale In-Reply-To: <87ef4mqwqk.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sun, 26 May 2019 13:55:40 +0200 Message-ID: <874l5hxweb.fsf@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [84.173.67.92] X-TM-AS-Product-Ver: SMEX-12.5.0.1684-8.5.1010-24638.007 X-TM-AS-Result: No-3.269200-8.000000-10 X-TMASE-MatchedRID: scwq2vQP8OE4HKI/yaqRm6o2fOuRT7aauaLiYlmqWfcxiSY0g7v6FgMT qT+LpjRFhKBjhElMJ54I+Fp4wzN16QHmMMvi0m/TKrDHzH6zmUUEa8g1x8eqFzhYqvU+Y921/pE 4pKve7n/ARoIcSvIvLHbVZ4Gn9RXU3UlFtb5ON3F+J3gtIe0gAyIk3dpe5X+hzP9LEqj2YniPsK oL2VFqqNpqDQBlV+5iYnAKxv9nxqW/WXZS/HqJ2paWKijZlsbB2bNx1HEv7HAqtq5d3cxkNRqXn rxrKCOXpjPxwF8IBEwgdU0aN6EN7TYBTxEsub0yhHZuD8foZanmj0oekBx34SmqKM8CNCgvHdG8 OO+9btIKUBA5W1LwuK4X7F7Bvr0pC5pVR6pYhkCLpC3buVhDdnayERGQn68SRoiLyDRxhr5+3Bn dfXUhXQ== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--3.269200-8.000000 X-TMASE-Version: SMEX-12.5.0.1684-8.5.1010-24638.007 X-TM-SNTS-SMTP: 99059C8A2D3AC9E53FBFE55EC381658A32C4AD497748BE3AB8B0D73D6A235F652000:9 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35874 Cc: 35874@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, >>> When you do =E2=80=98guix pull=E2=80=99, the resulting (guix config) is= supposed to >>> honor the settings of the calling =E2=80=98guix=E2=80=99: %localstatedi= r, etc. >>> >>> It seems that it wasn=E2=80=99t the case here? Could you try again run= ning >>> =E2=80=98guix pull=E2=80=99 from a =E2=80=98guix=E2=80=99 command that = has non-default settings and >>> check the resulting (guix config) module? >> >> Is (guix config) enough? What about the daemon? I=E2=80=99ve had no pr= oblem >> with =E2=80=9Cguix=E2=80=9D itself when used with a daemon taken from th= e git checkout. > > Oooh, good point, the =E2=80=98guix-daemon=E2=80=99 package uses a fixed = localstatedir. > > I believe the patch below solves the problem. WDYT? Yes, I think this would fix it. I set two of these variables before (not NIX_STORE_DIR) and it seemed to work fine. Thanks! --=20 Ricardo From debbugs-submit-bounces@debbugs.gnu.org Sun May 26 17:24:44 2019 Received: (at 35874-done) by debbugs.gnu.org; 26 May 2019 21:24:44 +0000 Received: from localhost ([127.0.0.1]:51961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hV0dI-0005rb-H5 for submit@debbugs.gnu.org; Sun, 26 May 2019 17:24:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hV0dG-0005rN-JD for 35874-done@debbugs.gnu.org; Sun, 26 May 2019 17:24:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hV0d9-0000dp-IO; Sun, 26 May 2019 17:24:35 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=49898 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hV0d7-0005vR-4K; Sun, 26 May 2019 17:24:33 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: bug#35874: =?utf-8?B?4oCcZ3VpeCBwdWxs4oCd?= fails on setlocale In-Reply-To: <874l5hxweb.fsf@mdc-berlin.de> (Ricardo Wurmus's message of "Sun, 26 May 2019 13:55:40 +0200") References: <87y32wga23.fsf@mdc-berlin.de> <87woigg88w.fsf@mdc-berlin.de> <877eagx8s2.fsf@gnu.org> <87tvdkdjsh.fsf@mdc-berlin.de> <87ef4mqwqk.fsf@gnu.org> <874l5hxweb.fsf@mdc-berlin.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 Prairial an 227 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 26 May 2019 23:24:30 +0200 Message-ID: <87imtwkiy9.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35874-done Cc: 35874-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello! Ricardo Wurmus skribis: >> I believe the patch below solves the problem. WDYT? > > Yes, I think this would fix it. I set two of these variables before > (not NIX_STORE_DIR) and it seemed to work fine. Great. Pushed as dfc69e4b6d4bbc41a4d37b3cc6ea12adb34aaafa. Thanks, Ludo=E2=80=99. From unknown Fri Jun 13 06:10:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 24 Jun 2019 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator