From 6dbc957365d82336cebf519d77e88d3183663ae1 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 21 May 2008 19:00:04 +0200 Subject: [PATCH] Added debian/patches/long-version. This is a simple workaround for a bug in perl 5.10. Perl cannot currently handle long version numbers when bootstrapping a module. Upstream used 1.299908051800 as a version number for this release candidate which caused RRDs to be unusable with perl 5.10. The date, used in the upstream version number, has been replaced with a simple counter. --- debian/patches/long-version | 39 +++++++++++++++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 40 insertions(+) create mode 100644 debian/patches/long-version diff --git a/debian/patches/long-version b/debian/patches/long-version new file mode 100644 index 0000000..e049975 --- /dev/null +++ b/debian/patches/long-version @@ -0,0 +1,39 @@ +diff --git a/bindings/perl-piped/RRDp.pm b/bindings/perl-piped/RRDp.pm +index e37104b..710814d 100644 +--- a/bindings/perl-piped/RRDp.pm ++++ b/bindings/perl-piped/RRDp.pm +@@ -120,7 +120,7 @@ sub cmd (@); + sub end (); + sub read (); + +-$VERSION=1.299908051800; ++$VERSION=1.2999001; + + sub start ($){ + croak "rrdtool is already running" +diff --git a/bindings/perl-shared/RRDs.pm b/bindings/perl-shared/RRDs.pm +index b75c9f0..918c642 100644 +--- a/bindings/perl-shared/RRDs.pm ++++ b/bindings/perl-shared/RRDs.pm +@@ -7,7 +7,7 @@ use vars qw(@ISA $VERSION); + + require DynaLoader; + +-$VERSION=1.299908051800; ++$VERSION=1.2999001; + + bootstrap RRDs $VERSION; + +diff --git a/configure b/configure +index acfddca..62e0d89 100755 +--- a/configure ++++ b/configure +@@ -2088,7 +2088,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +-NUMVERS=1.299908051800 ++NUMVERS=1.2999001 + + + LIBVERS=3:2:1 diff --git a/debian/patches/series b/debian/patches/series index 69cecaa..fdbdf1b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ setup.py-module-name no-rpath-for-ruby no-rpath-for-perl implicit-decl-fix +long-version -- 2.30.2