Skip to content
Browse files

Force usage of the DM5 Date::Manip backend

For those users and distros with modern Perl versions, this fixes the
following error:

    munin-cgi-graph.cgi: Undefined subroutine &Date::Manip::ParseDateString called at /srv/http/munin/munin-cgi-graph.cgi line 406.
  • Loading branch information...
1 parent 280d558 commit eb5477fa09a1e8d3e1cabb48c014857fd5f7a085 @toofishes toofishes committed with steveschnepp
Showing with 6 additions and 0 deletions.
  1. +3 −0 master/_bin/munin-cgi-graph.in
  2. +3 −0 master/_bin/munin-graph.in
View
3 master/_bin/munin-cgi-graph.in
@@ -27,6 +27,9 @@ $Id$
use strict;
use warnings;
use IO::Handle;
+BEGIN {
+ $Date::Manip::Backend = 'DM5';
+}
use Date::Manip;
use POSIX qw(strftime locale_h);
use CGI::Fast qw(:cgi);
View
3 master/_bin/munin-graph.in
@@ -27,6 +27,9 @@ $Id$
use strict;
use warnings;
use IO::Handle;
+BEGIN {
+ $Date::Manip::Backend = 'DM5';
+}
use Date::Manip;
use POSIX qw(strftime);
use Time::HiRes qw(gettimeofday tv_interval);

0 comments on commit eb5477f

Please sign in to comment.
Something went wrong with that request. Please try again.