r-readr in a container has got no timezone data

  • Open
  • quality assurance status badge
Details
2 participants
  • Wiktor ?elazny
  • zimoun
Owner
unassigned
Submitted by
Wiktor ?elazny
Severity
normal
W
W
Wiktor ?elazny wrote on 18 Feb 2020 16:19
(address . bug-guix@gnu.org)
20200218151926.2yhah6zc7pym2fiu@wzguix
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?

-----BEGIN PGP SIGNATURE-----

iQKTBAABCgB9FiEEvcl0zdnJun12Glc9xzWoxqtgedUFAl5MAH5fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEJE
Qzk3NENERDlDOUJBN0Q3NjFBNTczREM3MzVBOEM2QUI2MDc5RDUACgkQxzWoxqtg
edUA6BAAr45lHVnAQBdOyJhWL+l0kZaBZaPDNzu9Ao/to86XcFePdW0a54Eux/QN
KigSOEPyuLtKTo68x4XPl4NVHJ/VxVD0C4HoBOIg05+GtkUS6OoWWrTbpy7WoBVN
epa5WmyvEW1Kc294xtOJGIiyYI9IYibhD3fVQnDEk4Lc0meUqJyJIP1kLI2dGEn7
x5LGmTD99RSLCGQMQCVQ5e3g1tB3Pbzczyy5eCFY+h2N/hczmT1uiryAlGodsrfd
EVkj/f8VW/xu0ZpvNjWav11pPDM7CFpD8Xx4sp7dZ38ktWipG2xpt5Cr8MvH1b/V
GbwN5zJP6Hiht9I3vWuhb222E5TfCBEVYyhccxd2Zi3KWUHLddCwue0sPm+uQwdU
fYZrZnAFpQ8wBxzQgzHeU7u7JoFsQiHdDtocdYP9Wmy9HbbfrJS6RKGaNFkgZ4I6
QWtP6e9B+fsGHahUEKRedAdyRIJFvcaskGCqOzZAZ0u6wG0dUoyw74jn7qgw/edo
2P2655guZLyjfefo3TVnmvGsEw7BrSUyEH+f+cx8cKJgXe/JXVTyutNSvxN74NHo
kKUoIbJc53IsKll87fInvPq5vFxjd03DPMmAJdlp+GbWUz4oLNpsdwydYFR6MHHr
RClAZ0PBdu8Qdx1F1tiZJp64LctBONuOyD31r+4lKpkjt7vXZwA=
=1QZ9
-----END PGP SIGNATURE-----


Z
Z
zimoun wrote on 20 Feb 2020 13:44
(address . bug-guix@gnu.org)(address . 39665@debbugs.gnu.org)
CAJ3okZ0N6EfGx+KA9EZRJJMkQHxPMi90RmDNroDvO_O_dUvuLg@mail.gmail.com
Dear,

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

The output is:

Toggle snippet (8 lines)
Error: Unknown TZ UTC
In addition: Warning message:
In OlsonNames() : no Olson database found
Execution halted
sh: rm: command not found


Toggle quote (5 lines)
> (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:


Let investigate more...


Thank you for the report.
All the best,
simon
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 39665@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 39665
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch