Summary: | sci-libs/gdal-2.0.0 - Error: Unknown SWIG preprocessor directive: wrapped (with patch) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Gary E. Miller <gem> |
Component: | [OLD] Library | Assignee: | Sci-geo Project <sci-geosciences> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | atoth, chalucha, gem, gentoo.bugzilla, hyedad, kredba, Martin.vGagern, om, randy-andy-, rose, wraeth |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
environment Patch for gdal-2.0.0 for compatibility with swig-3.0.6 |
Description
Gary E. Miller
2015-07-13 20:21:26 UTC
Created attachment 406708 [details]
build.log
Created attachment 406710 [details]
environment
There is a workaround to this problem: # USE="-perl" emerge -1 =sci-libs/gdal-2.0.0 I confirm. Failed to build with swig-3.0.4 and swig-3.0.6 but success with swig-3.0.2. Change the ebuild is the simplest solution. Related with https://github.com/swig/swig/issues/394 ? Applying this patch : https://547832.bugs.gentoo.org/attachment.cgi?id=406412 will solve the problem. Bug reported upstream : https://trac.osgeo.org/gdal/ticket/6039 Created attachment 407342 [details, diff]
Patch for gdal-2.0.0 for compatibility with swig-3.0.6
This is a patch from upstream to solve the compatibility with SWIG > 3.0.2. --- gdal-2.0.0.ebuild.orig 2015-07-08 10:28:11.000000000 +0200 +++ gdal-2.0.0.ebuild 2015-07-21 16:06:15.582209934 +0200 @@ -59,7 +59,7 @@ xls? ( dev-libs/freexl ) " -SWIG_DEP=">=dev-lang/swig-2.0.2 <=dev-lang/swig-3.0.4" +SWIG_DEP=">=dev-lang/swig-2.0.2" DEPEND="${RDEPEND} doc? ( app-doc/doxygen ) java? ( >=virtual/jdk-1.6 ) @@ -119,6 +119,9 @@ -e 's:^ar:$(AR):g' \ -i ogr/ogrsf_frmts/sdts/install-libs.sh || die + # Fixes for swig-3.0.3 (bug #554792) and swig 3.0.6 (bug #555156) + epatch "${FILESDIR}"/${PN}-2.0.0-swig-3.0.6.patch + tc-export AR RANLIB eautoreconf I can confirm that this patch works for gdal 2.0.0 and swig 3.0.6. Thanks to Gary and Jean-Claude Hi, I can confirm that the patch works with swig-3.0.4. Thanks. Is there a reason that the patch on hold ? The sci-geosciences hurd is probably under-staffed, since many many bugs are on hold, sometimes for years (see QGIS). *** Bug 559220 has been marked as a duplicate of this bug. *** Thanks a lot for the two necessary patches. I can confirm that it also works with swig-3.0.7 Fixed in bug 561262 *** Bug 560972 has been marked as a duplicate of this bug. *** Fixed as part of bug 561262 as per comment 15. |