GNU bug report logs -
#36870
date bug
Previous Next
Reported by: Bengt Richter <bokr <at> bokr.com>
Date: Wed, 31 Jul 2019 08:03:01 UTC
Severity: normal
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 36870 <at> debbugs.gnu.org (full text, mbox):
On +2019-08-06 02:54:03 -0400, Mark H Weaver wrote:
> Hi Bengt,
>
> 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.
>
> Bengt Richter <bokr <at> bokr.com> writes:
> > $ strace -y date|& egrep 'America|^write'|sed -e 's:,:,\n :g'
> > openat(AT_FDCWD,
> > "/gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/share/zoneinfo/America/Los_Angeles",
> > O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>
> The file name above suggests that your TZDIR variable is not set
> correctly to allow Guix-built binaries to find the zoneinfo files.
>
> On Guix systems, /etc/environment includes an entry that sets TZDIR to
> the equivalent of "$(guix build tzdata)/share/zoneinfo".
>
> 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.
>
> Can you try setting TZDIR and see if that solves the problem for you?
>
> Regards,
> Mark
Thanks, that works using either /usr/... or /gnu/...
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="$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.
Then the friendly hints at then end of an install could suggest:
┌──────────────────────────────────────────────┐
│ "Consider uncommenting some of the new │
│ lines we just added at the end of ~/.guixrc" │
└──────────────────────────────────────────────┘
(sorry if utf8 box-drawing characters are a nono here -- are they? ;-/ )
I had noticed the TZDIR name looking with "guix edit tzdata",
and was trying to figure out why installing had not hinted
that I might need to do what you suggest above :)
Thanks again.
Regards,
Bengt Richter
This bug report was last modified 5 years and 274 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.