From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#36870: Date: Mon, 26 Aug 2019 12:11:56 +0200 Message-ID: <87wof0z15f.fsf@gnu.org> References: <20190731062047.GA831@PhantoNv4ArchGx.localdomain> <20190806023802.GA833@PhantoNv4ArchGx.localdomain> <871rxyokbd.fsf@netris.org> <20190806163148.GA7621@PhantoNv4ArchGx.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:35077) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i2Bzk-0003mq-BF for bug-guix@gnu.org; Mon, 26 Aug 2019 06:13:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i2Bzi-0004cW-Tl for bug-guix@gnu.org; Mon, 26 Aug 2019 06:13:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36813) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i2Bzi-0004cR-R2 for bug-guix@gnu.org; Mon, 26 Aug 2019 06:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i2Bzi-0006u2-Lz for bug-guix@gnu.org; Mon, 26 Aug 2019 06:13:02 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <20190806163148.GA7621@PhantoNv4ArchGx.localdomain> (Bengt Richter's message of "Tue, 6 Aug 2019 16:31:48 +0000") 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: 36870-done@debbugs.gnu.org Hi, Bengt Richter skribis: > On +2019-08-06 02:54:03 -0400, Mark H Weaver wrote: >> Hi Bengt, >>=20 >> I'm sorry that I didn't have time to fully read your messages, but if I >> understand correctly from my quick skimming, the 'date' command from >> Guix is failing to access the zoneinfo. I think I see your problem. >>=20 >> Bengt Richter writes: >> > $ strace -y date|& egrep 'America|^write'|sed -e 's:,:,\n :g' >> > openat(AT_FDCWD, >> > "/gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/share/zon= einfo/America/Los_Angeles", >> > O_RDONLY|O_CLOEXEC) =3D -1 ENOENT (No such file or directory) >>=20 >> The file name above suggests that your TZDIR variable is not set >> correctly to allow Guix-built binaries to find the zoneinfo files. >>=20 >> On Guix systems, /etc/environment includes an entry that sets TZDIR to >> the equivalent of "$(guix build tzdata)/share/zoneinfo". >>=20 >> When using Guix on top of another distro, an alternative choice might be >> to set TZDIR to "/usr/share/zoneinfo". I'm not sure which setting is >> preferable on non-Guix systems. >>=20 >> Can you try setting TZDIR and see if that solves the problem for you? >>=20 >> Regards, >> Mark > > Thanks, that works using either /usr/... or /gnu/... Good, closing! > but I am thinking everything guix should be accessed via > some profile if it's configurable? > > There is already a suggestion to source like this: > > GUIX_PROFILE=3D"$HOME/.guix-profile" > . "$GUIX_PROFILE/etc/profile" > > I think it would be nice if that were the only ~/.bash_profile > mod a foreign-system user would have to make to tie into the > guix packages such user installs with guix install. > > So what about having that GUIX_PROFILE profile -- at its end -- > source ~/.guixrc if it exists, and then when some installation wants > to suggest some environment settings, just automatically > append commented-out code to ~/.guixrc. I agree that it=E2=80=99d be nice to somehow tell users about =E2=80=98TZDI= R=E2=80=99, but I=E2=80=99m reluctant to introducing yet another profile file. I=E2=80=99m not sure what would be the best approach! Thanks, Ludo=E2=80=99.