From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sNvtCC/kVWJOyQAAgWs5BA (envelope-from ) for ; Tue, 12 Apr 2022 22:42:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8HAWBi/kVWL8dwEA9RJhRA (envelope-from ) for ; Tue, 12 Apr 2022 22:42:23 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B4D6CAE15 for ; Tue, 12 Apr 2022 22:42:22 +0200 (CEST) Received: from localhost ([::1]:45046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neNLA-0000jn-P9 for larch@yhetil.org; Tue, 12 Apr 2022 16:42:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neNKr-0000gK-Vm for bug-guix@gnu.org; Tue, 12 Apr 2022 16:42:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56300) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1neNKr-0001WB-Mk for bug-guix@gnu.org; Tue, 12 Apr 2022 16:42:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1neNKr-0001oP-KT for bug-guix@gnu.org; Tue, 12 Apr 2022 16:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54893: guix-daemon, locale, LANG, and unicode in git tag names Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 12 Apr 2022 20:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54893 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Attila Lendvai , 54893@debbugs.gnu.org Received: via spool by 54893-submit@debbugs.gnu.org id=B54893.16497960696898 (code B ref 54893); Tue, 12 Apr 2022 20:42:01 +0000 Received: (at 54893) by debbugs.gnu.org; 12 Apr 2022 20:41:09 +0000 Received: from localhost ([127.0.0.1]:50197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neNK1-0001nC-Gb for submit@debbugs.gnu.org; Tue, 12 Apr 2022 16:41:09 -0400 Received: from michel.telenet-ops.be ([195.130.137.88]:45500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neNJy-0001n0-JS for 54893@debbugs.gnu.org; Tue, 12 Apr 2022 16:41:08 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id Hwh4270044UW6Th06wh4TN; Tue, 12 Apr 2022 22:41:04 +0200 Message-ID: From: Maxime Devos Date: Tue, 12 Apr 2022 22:40:59 +0200 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-QOFqfkmS2uBvw5l0yGUA" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1649796064; bh=8gmxcGbduGzOeS+1m3PJ9zsJOGLXKSDmoD/SJ029HoA=; h=Subject:From:To:Date:In-Reply-To:References; b=kY4DDX9Hyv0oorwPPfmhVcTE1bTm95hgKviESVROtjcut1xWIkUnpM+cMmWmXQyYa GScS4dZ3QqRKDYa8iecEIriClDyIP429fVR8pmGbQ3kUJDdDdAa9nnswcHxXzyNpUK CDSBX37KdP9HPSv4UGuQfjyAm/jLKe5R3pqbZd+UB3Hm78uxf62c8PrXMO+mGJ3cxG 9jWQSyvfOLALFT9Us9RqaBynGQfJMOX++KVkbLm6VPHUZUqw3ZBZ+zuzHg9ZY8czZJ V0Ggb/FSCmJll/AvJ5TcMNX8K7rR1+OjRCPOcUtZ7k7OiBUh7BsEFpLlwAt2gv59YJ iiMFpbSwJB/uA== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649796142; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=8gmxcGbduGzOeS+1m3PJ9zsJOGLXKSDmoD/SJ029HoA=; b=ZofyJbC4khCqkvN3Ahang3X6eaFN/7cETaAh6QVjkqiZfnrD86yPa0zQq1etU8tD6pQEVT qguPyuYJv0BZi5qRWvQY+qcawDf4Qv/sdhcwGzq+DoABeVG5HG904MMIK/Ez1iP5DtuAMR Y3uzDr/LbiuFfW8dz3hUY2X2RyM+UMu4m+jT2vnsu3hcgJlXrct+MnMwzc6sneei0CRS0d q+mHtbJFR0MuxK7EIYEOrCWTZQHpaBWGwQLY5lGm3aVIE3EvN4gfSinVAjbpi4Q5kt6TDZ LBnfcpCVK6VTlQf+HH7sTGt8fVvHy3/+MNNNGZ2hyMJodcEvdg+9QQnu+5/NNQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649796142; a=rsa-sha256; cv=none; b=ay4p9QVuZdt59iRxYck+gQnrJi78pJZfRrt5fVj9SUGnhkwCJy7gMsCBXk0ZHVvoXN3m88 2v6SuBjdkgCGSSEnC5K0eBxIQ28GvlhdW6uapZV6tPVNFVyBjp4OUglZf4rqp1FiHmtklP cQfIst40R6f2dnBVIAwePaj2YrwtQly8OvkPeXRe8XRzzbudKNeGxL93X/NYP7sI0Lay8p G15AwLvrh5QL/IX1MCWTuspzqEjdCFcj5i8z4FctoU2XoB2DyrXDHDFLNmy++mk4DSf7w+ eU1jj1tluFHrINpgcFudBf1Vr9HuKZr1bYOvEGK57ZfiL1VbiMqDGuelWmj3pQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=kY4DDX9H; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.54 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=kY4DDX9H; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B4D6CAE15 X-Spam-Score: 2.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ji2yuWDpSrAX --=-QOFqfkmS2uBvw5l0yGUA Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attila Lendvai schreef op di 12-04-2022 om 19:47 [+0000]: > and i can't get rid of this^ warning. i installed glibc-locales to > root and my user, reconfigured, restarted the guix-daemon. >=20 > which is probably the cause of the ultimate error: >=20 > warning: failed to delete .git/refs/tags/v??.2.0: No such file or > directory > r:sha256 hash mismatch for... >=20 > the daemon starts from an empty env: >=20 > https://git.savannah.gnu.org/cgit/guix.git/tree/nix/libstore/build.cc#n15= 90 >=20 > and then copies the env from the derivation, but it doesn't seem to > contain any LANG value. i assume guile is also launched then without > a LANG env. BTW, guile could be more informative in its warning, too. Some remarks: * LANG should be set, because it is in #:leaked-env-vars (see guix/git-download.scm). I don't know whose LANG it is though -- the user's, or the daemon's? * To install an UTF-8 locale, you need glibc-locales (or possibly glibc-utf8-locales) (At least, for now. Upstream has some plans for including a C.UTF-8 locale so maybe eventually we can fallback to C.UTF-8.) * This locale data needs to be in $GUIX_LOCPATH. * GUIX_LOCPATH is not leaked. * Even if it was, I don't think that /gnu/store/...glibc-locales would be accessible from the build container (though you could give it a try?). * So perhaps GUIX_LOCPATH needs to be set=C2=A0in the gexp in guix/git-download.scm, + some setlocale as done by gnu-build-system. * Long-term, it could be interesting to remove the =E2=80=98file name =3D string encoded in current locale's encoding=E2= =80=99 assumption from Guile. * svn-download, hg-download, bzr-download and cvs-download probably have the same issue. Greetings, Maxime. --=-QOFqfkmS2uBvw5l0yGUA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYlXj2xccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7jnfAP9cLhZT3dU0MecJKeU/FkrkHHBb 5j30CWhGVi7rHTCU4gEAqrB966PjXpiJEwSx/SnGyj4QOgDyNH0N3lt0cp21MAU= =ND06 -----END PGP SIGNATURE----- --=-QOFqfkmS2uBvw5l0yGUA--