ports/133470: [MAINTAINER UPDATE]textproc/p5-XML-Xerces does not build with perl 5.8.9
Kenneth Menzel
kenm at icarz.com
Tue Apr 7 19:40:07 UTC 2009
>Number: 133470
>Category: ports
>Synopsis: [MAINTAINER UPDATE]textproc/p5-XML-Xerces does not build with perl 5.8.9
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue Apr 07 19:40:06 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Kenneth Menzel
>Release: Freebsd 7.1
>Organization:
WHI Solutions
>Environment:
>Description:
Update of perl to version 5.8.9 changed SWIG interface. p5-XML-Xerces port does not build.
>How-To-Repeat:
Try to build or install textproc/p5-XML-Xreces
>Fix:
require swig and rebuild swig interface from swig input file.
Patch attached with submission follows:
diff -ruN p5-XML-Xerces.orig/Makefile p5-XML-Xerces/Makefile
--- p5-XML-Xerces.orig/Makefile 2009-03-17 15:15:36.000000000 -0500
+++ p5-XML-Xerces/Makefile 2009-03-17 15:20:26.000000000 -0500
@@ -7,6 +7,7 @@
PORTNAME= XML-Xerces
PORTVERSION= 2.7.0
+PORTREVISION?= 1
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -17,11 +18,13 @@
LIB_DEPENDS= xerces-c.27:${PORTSDIR}/textproc/xerces-c2
-BROKEN= does not compile
+BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13
USE_GMAKE= YES
PERL_CONFIGURE= YES
CONFIGURE_ENV+= XERCES_LIB="${LOCALBASE}/lib" \
XERCES_INCLUDE="${LOCALBASE}/include" \
+ XERCES_DEVEL="YES" \
+ CXX="g++" \
.include <bsd.port.mk>
diff -ruN p5-XML-Xerces.orig/files/patch-Makefile.PL p5-XML-Xerces/files/patch-Makefile.PL
--- p5-XML-Xerces.orig/files/patch-Makefile.PL 1969-12-31 19:00:00.000000000 -0500
+++ p5-XML-Xerces/files/patch-Makefile.PL 2009-03-17 15:21:03.000000000 -0500
@@ -0,0 +1,25 @@
+--- Makefile.PL.orig 2006-03-10 06:50:23.000000000 -0500
++++ Makefile.PL 2009-03-17 14:46:12.000000000 -0500
+@@ -290,16 +290,16 @@
+ my $CC_DEF;
+ if ($^O eq 'linux') {
+ $OS_DEF = '-DXML_LINUX';
+- } elsif($^O eq 'darwin') {
+- $OS_DEF = '-DXML_MACOSX';
++ } elsif($^O eq 'freebsd') {
++ $OS_DEF = '-DXML_FREEBSD';
+ } else {
+ die 'unsupported operating system';
+ }
+- if ($CXX =~ /g\+\+/) {
++ #if ($CXX =~ /g\+\+/) {
+ $CC_DEF = '-DXML_GCC';
+- } else {
+- die 'unsupported compiler';
+- }
++ #} else {
++ #die 'unsupported compiler';
++ #}
+ my $SWIG_ARGS = qq[-Wall $OS_DEF $CC_DEF -DXERCES_OLD -DXERCES_VERSION="$XERCES_PERL_VERSION" \$(INC) -perl5 -c++ -shadow];
+
+ my $MAKE = ' \$(MAKE) -C Handler static';
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list