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