GNU bug report logs - #39665
r-readr in a container has got no timezone data

Previous Next

Package: guix;

Reported by: Wiktor Żelazny <wz <at> freeshell.de>

Date: Tue, 18 Feb 2020 15:21:01 UTC

Severity: normal

To reply to this bug, email your comments to 39665 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#39665; Package guix. (Tue, 18 Feb 2020 15:21:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Wiktor Żelazny <wz <at> freeshell.de>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 18 Feb 2020 15:21:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Wiktor Żelazny <wz <at> freeshell.de>
To: bug-guix <at> gnu.org
Subject: r-readr in a container has got no timezone data
Date: Tue, 18 Feb 2020 16:19:26 +0100
[Message part 1 (text/plain, inline)]
Related to [1]. Reproducing:

   guix environment -C --pure --ad-hoc r r-readr
   Rscript -e 'library(readr); default_locale()'

A hack that fixes this issue is to include tzdata among the environment
inputs, and to set

   TZDIR=/gnu/store/$(ls -F /gnu/store | grep tzdata.*/ | head -n 1)share/zoneinfo

(actually, one needs also coreutils and grep to do that, but that’s
beyond the point). I haven’t tried it (yet?), but maybe it suffices to
add tzdata to r-readr inputs in the package definition to fix this
issue.

WŻ

[1]: https://github.com/tidyverse/readr/issues/952
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#39665; Package guix. (Thu, 20 Feb 2020 12:45:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: bug-guix <at> gnu.org
Cc: 39665 <at> debbugs.gnu.org
Subject: Re: bug#39665: r-readr in a container has got no timezone data
Date: Thu, 20 Feb 2020 13:44:29 +0100
Dear,

On Tue, 18 Feb 2020 at 16:21, Wiktor Żelazny <wz <at> freeshell.de> wrote:
>
> Related to [1]. Reproducing:
>
>    guix environment -C --pure --ad-hoc r r-readr
>    Rscript -e 'library(readr); default_locale()'

The output is:

--8<---------------cut here---------------start------------->8---
Error: Unknown TZ UTC
In addition: Warning message:
In OlsonNames() : no Olson database found
Execution halted
sh: rm: command not found
--8<---------------cut here---------------end--------------->8---


> (actually, one needs also coreutils and grep to do that, but that’s
> beyond the point). I haven’t tried it (yet?), but maybe it suffices to
> add tzdata to r-readr inputs in the package definition to fix this
> issue.

Just adding tzdata to the propgapated-inputs list is not enough.


Well, I do not understand why the test suite pass. It should fail if
locale date is required... I am missing a point. Especially when
reading these 2 comments:

https://github.com/tidyverse/readr/issues/952#issuecomment-451244171
https://github.com/tidyverse/readr/issues/952#issuecomment-451255375

Let investigate more...


Thank you for the report.
All the best,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#39665; Package guix. (Thu, 20 Feb 2020 12:45:02 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 74 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.