From nobody@FreeBSD.org  Tue Apr  7 19:33:32 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C946610657D9
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Apr 2009 19:33:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id F24BD8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  7 Apr 2009 19:33:29 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n37JXTNn007484
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 7 Apr 2009 19:33:29 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n37JXTup007483;
	Tue, 7 Apr 2009 19:33:29 GMT
	(envelope-from nobody)
Message-Id: <200904071933.n37JXTup007483@www.freebsd.org>
Date: Tue, 7 Apr 2009 19:33:29 GMT
From: Kenneth Menzel <kenm@icarz.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [MAINTAINER UPDATE]textproc/p5-XML-Xerces does not build with perl 5.8.9
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>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:    dhn
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 07 19:40:06 UTC 2009
>Closed-Date:    Thu Apr 09 14:55:07 UTC 2009
>Last-Modified:  Thu Apr  9 15:00:13 UTC 2009
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->dhn 
Responsible-Changed-By: dhn 
Responsible-Changed-When: Wed Apr 8 19:31:14 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133470 
State-Changed-From-To: open->closed 
State-Changed-By: dhn 
State-Changed-When: Thu Apr 9 14:55:05 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=133470 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/133470: commit references a PR
Date: Thu,  9 Apr 2009 14:55:05 +0000 (UTC)

 dhn         2009-04-09 14:54:47 UTC
 
   FreeBSD ports repository
 
   Modified files:
     textproc/p5-XML-Xerces Makefile 
   Added files:
     textproc/p5-XML-Xerces/files patch-Makefile.PL 
   Log:
   - fix build
   
   PR:             ports/133470
   Submitted by:   Kenneth Menzel <kenm@icarz.com> (maintainer)
   Approved by:    tabthorpe (co-mentor)
   
   Revision  Changes    Path
   1.13      +4 -1      ports/textproc/p5-XML-Xerces/Makefile
   1.1       +25 -0     ports/textproc/p5-XML-Xerces/files/patch-Makefile.PL (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
