t/02_basic.t ........... 1/85 POSIX::tzset not implemented on this architecture at blib/lib/SVG/TT/Graph/TimeSeries.pm line 582, <DATA> line 593. # Looks like your test exited with 255 just after 72.and apparently that error is correct, since I found over on stackexchange
TL;DR: Starting with Perl v5.8.9 (released in 2011) calling tzset when changing $ENV{TZ} isn't needed anymore.The actual culprit is SVG::TT::Graph::TimeSeries. Which has
Format string for presenting the X axis labels. The POSIX strftime() function is used for formatting after calling the POSIX tzset() function with the timezone specified in timescale_time_zone if present (see strftime man pages and LC_TIME locale information).Any suggestions of what the right thing to do is? Should I contact the author of SVG::TT::Graph::TimeSeries and point out the problem? I don't think CPAN is like wikipedia and i can change it myself and make an updated version.
I have the .pm code here and so I suppose I could edit the offending call out of it and just install it locally. But I don't know how version-tracking and such goes. Here's the code in SVG::TT::Graph::TimeSeries:
# Need to set the timezone in order for x-axis labels to be # formatted correctly by strftime: $ENV{'TZ'} = $self->{config}->{timescale_time_zone}; POSIX::tzset();one "#" edited into the file and a config and gmake and I *think* I'd have a local copy that'd work. But what would the cpan database think? It thinks I have v1.88, but I can't find the version number anywhere in the .pm file. I'm just not sure what to do about this.
In reply to tzset and POSIX by BernieC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |