From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: bug#36870: was: date bug -- really locale bug or ?? Date: Tue, 06 Aug 2019 02:54:03 -0400 Message-ID: <871rxyokbd.fsf@netris.org> References: <20190731062047.GA831@PhantoNv4ArchGx.localdomain> <20190806023802.GA833@PhantoNv4ArchGx.localdomain> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37254) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hutN8-00013A-Ua for bug-guix@gnu.org; Tue, 06 Aug 2019 02:55:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hutN7-00035j-Vo for bug-guix@gnu.org; Tue, 06 Aug 2019 02:55:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55762) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hutN7-00035e-Sg for bug-guix@gnu.org; Tue, 06 Aug 2019 02:55:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hutN7-0004wy-PT for bug-guix@gnu.org; Tue, 06 Aug 2019 02:55:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20190806023802.GA833@PhantoNv4ArchGx.localdomain> (Bengt Richter's message of "Tue, 6 Aug 2019 02:38:02 +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@debbugs.gnu.org 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 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