From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kai Mertens Subject: bug#37865: guix pull: error: You found a bug: Date: Sun, 27 Oct 2019 08:54:19 +0100 Message-ID: <20191027085419.26121622.kmx@posteo.net> References: <20191022083418.0c821e9d.kmx@posteo.net> <87sgnkwk5l.fsf@gnu.org> <20191023085503.7af886c5.kmx@posteo.net> <874kzzx023.fsf@gnu.org> <20191023162411.3d520e24.kmx@posteo.net> <20191023165504.GB15460@E5400> <20191024133429.714337fb.kmx@posteo.net> <20191024204956.GA991@PhantoNv4ArchGx.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Igp2QnvyoPwj2MN_ta_KiQf"; protocol="application/pgp-signature"; micalg=pgp-sha512 Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37875) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOdQA-0007l7-9p for bug-guix@gnu.org; Sun, 27 Oct 2019 03:57:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iOdQ7-0006YR-1f for bug-guix@gnu.org; Sun, 27 Oct 2019 03:57:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32811) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iOdQ6-0006YM-Kq for bug-guix@gnu.org; Sun, 27 Oct 2019 03:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iOdQ6-0001SJ-H1 for bug-guix@gnu.org; Sun, 27 Oct 2019 03:57:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20191024204956.GA991@PhantoNv4ArchGx.localdomain> 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: Bengt Richter Cc: 37865@debbugs.gnu.org --Sig_/Igp2QnvyoPwj2MN_ta_KiQf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 24 Oct 2019 13:49:56 -0700 Bengt Richter wrote: > >=20 > > When invoking guix package -I for example, I encountered an error > > like guile: failed to install locale > > =20 >=20 > I have encountered the same error. It seems to recur for me after > major updates. So there seems to be something lurking to reawaken the > real error message source. I collected some symptoms and posted them > as bug#37900. >=20 Hello Bengt, as I see, issue #37900 is closed, but I don't understand the solution, unfortunately. This issue #37865 is closed as well, so I don't know whether this reply reaches you well and is placed correctly. I for myself use a different way to get around the warning messages, which re-occurred after a while: $ guix package -I guile: warning: failed to install locale warning: failed to install locale: Invalid argument I have the impression, that cat<> ~/.bash_profile GUIX_PROFILE=3D"$HOME/.guix-profile" source "\$GUIX_PROFILE/etc/profile" EOF is not enough to provide full information regarding search paths. As a complement, I put the output of guix package --search-paths -p "$HOME/.guix-profile" into my =E2=80=98~/.bashrc=E2=80=99, but append the ${:+:}$ pattern to each line in order to keep existing variable content. However, it seems as if the output of that command is incomplete as well, as it often (not always) misses information regarding GUIX_LOCPATH and PATH (~/.config/guix/current). I append these definitions as well, just to make sure they are not missing. (In a helper script, I use a =E2=80=98sort -u=E2=80=99 to avoid re= dundant occurences of lines.) cat<> ~/.bashrc export PATH=3D"$HOME/.config/guix/current/bin\${PATH:+:}\$PATH" export GUIX_LOCPATH=3D"$HOME/.guix-profile/lib/locale\${GUIX_LOCPATH:+:}\$G= UIX_LOCPATH" EOF Placing these complementary lines altogether in ~/.bash_profile won't help me, I use ~/.bashrc instead. Then I perform a logout, login sequence and the error messages disappear and everything seems to run smoothly. I update my ~/.bashrc after each new package generation. As a conclusion, I would like to word three assumptions: 1. sourcing GUIX_PROFILE is not enough 2. output of =E2=80=98guix package --search-paths=E2=80=99 is incomplete 3. ~/.bash_profile and ~/.bashrc are not equally weighted in respect to guix environment settings @all What do you think? Could this be regarded as useful information? Or does it address my specific use case only? best regards Kai --=20 Kai Mertens OpenPGP Key-ID: 0x40B15AB4B05B5BF1 on keys.gnupg.net Key fingerprint =3D 7C83 0A80 01FF 679C 6E8E AFD3 40B1 5AB4 B05B 5BF1 What is that? Please check: https://emailselfdefense.fsf.org/en/ --Sig_/Igp2QnvyoPwj2MN_ta_KiQf Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfIMKgAH/Z5xujq/TQLFatLBbW/EFAl21TSsACgkQQLFatLBb W/GMUhAAhE42afeJNBOgOFYv3GfdJ94Ir54U5qSyzvrdlsU3c86wAd8DDjaAVDcK nC2v5YJV7Mf373UOHuLhvA3wxd2Olvm6QuISKIEtg6QWFjrtOM/ow8lc/tTkXkp4 hhobh7+oI0uTaeGDbvruoUfR71+IPe7CGulEsfaSzes/gb3EIyieRBrpxjd+/TZP CtwVxsjuEJOKfIITtIvhsL8Zr2KbPR2T5MIG0ZW1SUnJ7xyOOxDTeOr7v195wLo8 vy+chFM/yHvyPAnRNjZYxSLxC6iZVhjgxpl5bPsd9GK85pYeD7IhnPcT3WGGReCY +nJ7BVh5EYXuWPq48ZIQxDNpB9AAynx4zn5kS5FHhy3224nRxL655TmymOWp1h+Q qsdH/XOHJ/1TkI3Yfg36VEhcHpIPoHJPgFtyWlNBCv4kxUeQcGhqSPhCh1gT4f2O gqOu6XL9PFbuKbiEyg9A7V6GNQ+HmsbJiseDUtI+x7tO79Ths5JMHWIKm1AHbg+n DYcNgqdGk+/dD6bB+z4Ecvw46audQ5C19EMXyByZtBgSZUb9BT75V9UETDsUS/PS AEufN4/183kw+cRMmlYFy7RJNIv8o36EcdvOHNKiI/0gzRHUTf0h4SwTTuPVIN3M BEETbV63pQ25eT5xi5wFZbcA+mqAB3j9fiDlIUYTDgTvN89eFa0= =FVhb -----END PGP SIGNATURE----- --Sig_/Igp2QnvyoPwj2MN_ta_KiQf--