aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-07-22 20:41:11 +0800
committervs <vs@FreeBSD.org>2004-07-22 20:41:11 +0800
commit568896b6c1bc37e95142947fe1842a7c0d92111f (patch)
treef496153ff93413794fdb85e77b8b09d3e2370a63 /databases
parent23ee53a9f0c42788b840b83a369ab65ae070c023 (diff)
downloadfreebsd-ports-gnome-568896b6c1bc37e95142947fe1842a7c0d92111f.tar.gz
freebsd-ports-gnome-568896b6c1bc37e95142947fe1842a7c0d92111f.tar.zst
freebsd-ports-gnome-568896b6c1bc37e95142947fe1842a7c0d92111f.zip
Add fix for perl <= 5.005_03
PR: ports/66418 Submitted by: Lars Thegler Approved by: maintainer timeout
Diffstat (limited to 'databases')
-rw-r--r--databases/rrdtool/Makefile8
-rw-r--r--databases/rrdtool/files/extra-patch-perl-shared::RRDs.xs11
-rw-r--r--databases/rrdtool10/Makefile8
-rw-r--r--databases/rrdtool10/files/extra-patch-perl-shared::RRDs.xs11
4 files changed, 34 insertions, 4 deletions
diff --git a/databases/rrdtool/Makefile b/databases/rrdtool/Makefile
index 8b30ad1a5b41..4102d5e4a225 100644
--- a/databases/rrdtool/Makefile
+++ b/databases/rrdtool/Makefile
@@ -32,12 +32,16 @@ MAN1= RRDp.1 RRDs.1 bin_dec_hex.1 rrdcgi.1 rrdcreate.1 rrddump.1 \
MAN3= RRDp.3 RRDs.3
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+.include <bsd.port.pre.mk>
+
+.if ( ${PERL_LEVEL} <= 500503 )
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-perl-shared::RRDs.xs
+.endif
+
.if defined(WITH_LATIN2)
CONFIGURE_ARGS+= --with-latin2
.endif
-.include <bsd.port.pre.mk>
-
.if ${ARCH} == "amd64"
BROKEN= "Does not build on amd64 (needs to build shared libraries with -fPIC)"
.endif
diff --git a/databases/rrdtool/files/extra-patch-perl-shared::RRDs.xs b/databases/rrdtool/files/extra-patch-perl-shared::RRDs.xs
new file mode 100644
index 000000000000..c91724436ae8
--- /dev/null
+++ b/databases/rrdtool/files/extra-patch-perl-shared::RRDs.xs
@@ -0,0 +1,11 @@
+--- perl-shared/RRDs.xs.orig Sun May 9 11:07:59 2004
++++ perl-shared/RRDs.xs Sun May 9 11:08:11 2004
+@@ -360,6 +360,6 @@
+ XSRETURN_UNDEF;
+ }
+ EXTEND(sp,2);
+- PUSHs(sv_2mortal(newSVuv(start_tmp)));
+- PUSHs(sv_2mortal(newSVuv(end_tmp)));
++ PUSHs(sv_2mortal(newSViv(start_tmp)));
++ PUSHs(sv_2mortal(newSViv(end_tmp)));
+
diff --git a/databases/rrdtool10/Makefile b/databases/rrdtool10/Makefile
index 8b30ad1a5b41..4102d5e4a225 100644
--- a/databases/rrdtool10/Makefile
+++ b/databases/rrdtool10/Makefile
@@ -32,12 +32,16 @@ MAN1= RRDp.1 RRDs.1 bin_dec_hex.1 rrdcgi.1 rrdcreate.1 rrddump.1 \
MAN3= RRDp.3 RRDs.3
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+.include <bsd.port.pre.mk>
+
+.if ( ${PERL_LEVEL} <= 500503 )
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-perl-shared::RRDs.xs
+.endif
+
.if defined(WITH_LATIN2)
CONFIGURE_ARGS+= --with-latin2
.endif
-.include <bsd.port.pre.mk>
-
.if ${ARCH} == "amd64"
BROKEN= "Does not build on amd64 (needs to build shared libraries with -fPIC)"
.endif
diff --git a/databases/rrdtool10/files/extra-patch-perl-shared::RRDs.xs b/databases/rrdtool10/files/extra-patch-perl-shared::RRDs.xs
new file mode 100644
index 000000000000..c91724436ae8
--- /dev/null
+++ b/databases/rrdtool10/files/extra-patch-perl-shared::RRDs.xs
@@ -0,0 +1,11 @@
+--- perl-shared/RRDs.xs.orig Sun May 9 11:07:59 2004
++++ perl-shared/RRDs.xs Sun May 9 11:08:11 2004
+@@ -360,6 +360,6 @@
+ XSRETURN_UNDEF;
+ }
+ EXTEND(sp,2);
+- PUSHs(sv_2mortal(newSVuv(start_tmp)));
+- PUSHs(sv_2mortal(newSVuv(end_tmp)));
++ PUSHs(sv_2mortal(newSViv(start_tmp)));
++ PUSHs(sv_2mortal(newSViv(end_tmp)));
+