tag 466786 patch
thanks

On Thu, Feb 21, 2008 at 12:42:32AM +0200, Niko Tyni wrote:
> Package: libxml-xerces-perl
> Version: 2.7.0-0-4
> Severity: important
> User: [EMAIL PROTECTED]
> Usertags: perl-5.10-transition
> 
> Your package fails to build with Perl 5.10 (currently in experimental.)
> This is a known issue with SWIG bindings and C++; see

The attached patch forces regeneration of the SWIG wrappers at build
time. This fixes the issue, as the current SWIG (1.3.33) supports Perl 5.10.

It seems to work OK, at least the test suite passes for me on both 5.8.8
and 5.10.0 with this.

Cheers,
-- 
Niko Tyni   [EMAIL PROTECTED]
diff --git a/debian/control b/debian/control
index 884cd8c..9ea82d3 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: libxml-xerces-perl
 Section: perl
 Priority: extra
 Maintainer: Jay Berkenbilt <[EMAIL PROTECTED]>
-Build-Depends: cdbs (>= 0.4.21), debhelper (>= 4.1.0), libxerces27-dev
+Build-Depends: cdbs (>= 0.4.21), debhelper (>= 4.1.0), libxerces27-dev, swig
 Standards-Version: 3.7.3
 
 Package: libxml-xerces-perl
diff --git a/debian/rules b/debian/rules
index 24f784e..2a30ea7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,6 +33,8 @@ override DEB_MAKE_CHECK_TARGET =
 export XERCES_INCLUDE=/usr/include
 export XERCES_LIB=/usr/lib
 export XERCES_CONFIG=/usr/lib/libxerces27/config.status
+# force regeneration of the SWIG wrappers
+export XERCES_DEVEL=1
 
 # As 0.4.21, cdbs creates but doesn't debian/compat.  It creates it
 # conditionally, so this doesn't have a trivial fix.

Reply via email to