Subject: | Date::Manip fails to load when /etc/localtime is "Factory" timezone |
I'm not sure if this is in Date-Manips territory or not, but I've been working around this issue for a while and was wondering if somewhere closer to the problem is appropriate.
Upon completing a fresh stock install of Gentoo from installation media, the /etc/localtime is a copy of /usr/share/zoneinfo/Factory which I believe is built from this file : https://github.com/eggert/tz/blob/master/factory
And this file is provided by upstream for this purpose.
And /etc/timezone does not exist.
This causes Date-Manip to cease working in entirety, and causes lots of things that only try to load it to see if its installed or not to also fail.
perl -MDate::Manip -e1
ERROR: Date::Manip unable to determine Time Zone.
ERROR LOADING MODULE: Date::Manip::DM6 at <>/Date/Manip.pm line 35.
Compilation failed in require.
BEGIN failed--compilation aborted.
But its of my opinion that "hey, user hasn't configured their timezone" is not good grounds for not being able to build packages.
So I've just been working around the problem by setting TZ=UTC inside the build chain code, and deferring the "Hey, you probably should set your timezone" problem to somewhere else.
If there could be a better solution for this problem closer to where it appears, that'd be awesome :)
--
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
Upon completing a fresh stock install of Gentoo from installation media, the /etc/localtime is a copy of /usr/share/zoneinfo/Factory which I believe is built from this file : https://github.com/eggert/tz/blob/master/factory
And this file is provided by upstream for this purpose.
And /etc/timezone does not exist.
This causes Date-Manip to cease working in entirety, and causes lots of things that only try to load it to see if its installed or not to also fail.
perl -MDate::Manip -e1
ERROR: Date::Manip unable to determine Time Zone.
ERROR LOADING MODULE: Date::Manip::DM6 at <>/Date/Manip.pm line 35.
Compilation failed in require.
BEGIN failed--compilation aborted.
But its of my opinion that "hey, user hasn't configured their timezone" is not good grounds for not being able to build packages.
So I've just been working around the problem by setting TZ=UTC inside the build chain code, and deferring the "Hey, you probably should set your timezone" problem to somewhere else.
If there could be a better solution for this problem closer to where it appears, that'd be awesome :)
--
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )