[110974] trunk/dports/gis/gdal
ryandesign at macports.org
ryandesign at macports.org
Thu Sep 12 00:01:08 PDT 2013
Revision: 110974
https://trac.macports.org/changeset/110974
Author: ryandesign at macports.org
Date: 2013-09-12 00:01:08 -0700 (Thu, 12 Sep 2013)
Log Message:
-----------
gdal: fix build failure "Undefined symbols: _environ" (#40334)
Modified Paths:
--------------
trunk/dports/gis/gdal/Portfile
Added Paths:
-----------
trunk/dports/gis/gdal/files/patch-port-cpl_spawn.cpp.diff
Modified: trunk/dports/gis/gdal/Portfile
===================================================================
--- trunk/dports/gis/gdal/Portfile 2013-09-12 06:23:07 UTC (rev 110973)
+++ trunk/dports/gis/gdal/Portfile 2013-09-12 07:01:08 UTC (rev 110974)
@@ -98,6 +98,9 @@
patch-gdalwarpkernel_opencl_c.diff \
patch-gdalwarpkernel_opencl_h.diff
+# Upstream fix for "Undefined symbols: _environ"
+patchfiles-append patch-port-cpl_spawn.cpp.diff
+
# Patches for universal build
post-configure {
reinplace -E "s|(INST_PYMOD).*|\\1\t=\t${PYINST}|" \
Added: trunk/dports/gis/gdal/files/patch-port-cpl_spawn.cpp.diff
===================================================================
--- trunk/dports/gis/gdal/files/patch-port-cpl_spawn.cpp.diff (rev 0)
+++ trunk/dports/gis/gdal/files/patch-port-cpl_spawn.cpp.diff 2013-09-12 07:01:08 UTC (rev 110974)
@@ -0,0 +1,10 @@
+http://trac.osgeo.org/gdal/changeset/26424
+--- port/cpl_spawn.cpp (revision 26317)
++++ port/cpl_spawn.cpp (revision 26424)
+@@ -465,5 +465,5 @@
+ #include <TargetConditionals.h>
+ #endif
+- #if defined(__APPLE__) && !defined(TARGET_OS_IPHONE)
++ #if defined(__APPLE__) && (!defined(TARGET_OS_IPHONE) || TARGET_OS_IPHONE==0)
+ #include <crt_externs.h>
+ #define environ (*_NSGetEnviron())
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130912/8e67d1ba/attachment.html>
More information about the macports-changes
mailing list