Add fix for perl <= 5.005_03

PR:		ports/66418
Submitted by:	Lars Thegler
Approved by:	maintainer timeout
This commit is contained in:
Volker Stolz 2004-07-22 12:41:11 +00:00
parent 2f05a9e3d5
commit 18aaf7cb1a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=114428
8 changed files with 68 additions and 8 deletions

View file

@ -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

View file

@ -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)));

View file

@ -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

View file

@ -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)));

View file

@ -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

View file

@ -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)));

View file

@ -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

View file

@ -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)));