From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#33603: Invalid hash for NSS-Certs Date: Mon, 14 Jan 2019 09:48:04 +0100 Message-ID: <878szny69n.fsf@gnu.org> References: <87pnui8jrq.fsf@posteo.net> <87mupkyz2p.fsf@gnu.org> <874lajnmlp.fsf@kwak.i-did-not-set--mail-host-address--so-tickle-me> <87d0p3a9oi.fsf@gnu.org> <87muo4vuhg.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 ([209.51.188.92]:56982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gixvb-00083o-90 for bug-guix@gnu.org; Mon, 14 Jan 2019 03:49:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gixva-0003gA-5I for bug-guix@gnu.org; Mon, 14 Jan 2019 03:49:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59000) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gixva-0003fq-1H for bug-guix@gnu.org; Mon, 14 Jan 2019 03:49:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gixvZ-0001EF-TN for bug-guix@gnu.org; Mon, 14 Jan 2019 03:49:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87muo4vuhg.fsf@gmail.com> (Maxim Cournoyer's message of "Sun, 13 Jan 2019 21:33:15 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Maxim Cournoyer Cc: 33603@debbugs.gnu.org Hi! Maxim Cournoyer skribis: > Ludovic Court=C3=A8s writes: > [...] >> The wget commands above still give me the correct result, with hash >> 101v69xp1qzw9v6pgmbhw7gfdaic8vvs4v5l567lx7f2mjp25rla. >> >> Are you running Guix on a foreign distro? If so, could it be that >> guix-daemon is effectively running in the C locale? > > This is a good guess, and we've seen this very issue before. I am using > GuixSD. I had to use --fallback to work around it. > > I've digged a little bit: > > $ wget -q -O - https://mirror.hydra.gnu.org/nar/gzip/xbj4fhad0lnz0ziflwi9= 0gyqbls8ains-nss-certs-3.39 | gunzip | guix archive -x /tmp/xbj4fhad0lnz0zi= flwi90gyqbls8ains-nss-certs-3.39_from-hydra > > $ guix hash -r /tmp/xbj4fhad0lnz0ziflwi90gyqbls8ains-nss-certs-3.39_from-= hydra > 101v69xp1qzw9v6pgmbhw7gfdaic8vvs4v5l567lx7f2mjp25rla > > $ guix build nss-certs > /gnu/store/xbj4fhad0lnz0ziflwi90gyqbls8ains-nss-certs-3.39 > > $ guix hash -r /gnu/store/xbj4fhad0lnz0ziflwi90gyqbls8ains-nss-certs-3.39 > 08ziz714diyfq2klxy1nc0nhr5wa2vd356n9vizlq913a7an9a9s > > $ diff -r /tmp/xbj4fhad0lnz0ziflwi90gyqbls8ains-nss-certs-3.39_from-hydra= /gnu/store/xbj4fhad0lnz0ziflwi90gyqbls8ains-nss-certs-3.39 > Only in /tmp/xbj4fhad0lnz0ziflwi90gyqbls8ains-nss-certs-3.39_from-hydra/e= tc/ssl/certs: AC_Ra=C3=ADz_Certic=C3=A1mara_S.A.:2.15.7.126.82.147.123.224.= 21.227.87.240.105.140.203.236.12.pem > Only in /gnu/store/xbj4fhad0lnz0ziflwi90gyqbls8ains-nss-certs-3.39/etc/ss= l/certs: AC_Ra?z_Certic?mara_S.A.:2.15.7.126.82.147.123.224.21.227.87.240.1= 05.140.203.236.12.pem > Only in /tmp/xbj4fhad0lnz0ziflwi90gyqbls8ains-nss-certs-3.39_from-hydra/e= tc/ssl/certs: NetLock_Arany_=3DClass_Gold=3D_F=C5=91tan=C3=BAs=C3=ADtv=C3= =A1ny:2.6.73.65.44.228.0.16.pem > Only in > /gnu/store/xbj4fhad0lnz0ziflwi90gyqbls8ains-nss-certs-3.39/etc/ssl/certs: > NetLock_Arany_=3DClass_Gold=3D_F?tan?s?tv?ny:2.6.73.65.44.228.0.16.pem > > It's a rather old install (late 2016 -- but kept up-to-date, of course > :-)) so there might be remnants from the past? How could I verify in > which locale the guix-daemon is running? You could check /proc/$(pidof guix-daemon)/environ for variables like =E2=80=98LC_ALL=E2=80=99. And of course, you can see if =E2=80=98guix subs= titute=E2=80=99 emits the infamous =E2=80=9Ccan=E2=80=99t install locale=E2=80=9D message. :-) Regardless, I think =E2=80=98guix substitute=E2=80=99 should ideally be locale-insensitive, or it should error out rather than produce files with the wrong names. HTH, Ludo=E2=80=99.