diff options
-rw-r--r-- | sci-libs/gdal/files/gdal-2.0.0-glibc-2.22-backport.patch | 14 | ||||
-rw-r--r-- | sci-libs/gdal/gdal-2.0.0-r1.ebuild | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/sci-libs/gdal/files/gdal-2.0.0-glibc-2.22-backport.patch b/sci-libs/gdal/files/gdal-2.0.0-glibc-2.22-backport.patch new file mode 100644 index 000000000000..f23ff76ab2e8 --- /dev/null +++ b/sci-libs/gdal/files/gdal-2.0.0-glibc-2.22-backport.patch @@ -0,0 +1,14 @@ +Index: /branches/2.0/gdal/apps/gdalserver.c
+===================================================================
+--- /branches/2.0/gdal/apps/gdalserver.c (revision 29667)
++++ /branches/2.0/gdal/apps/gdalserver.c (revision 29668)
+@@ -28,7 +28,6 @@
+ ****************************************************************************/
+
+-#if defined(__STDC_VERSION__)
+-#define _XOPEN_SOURCE
+-#endif
++// So that __USE_XOPEN2K is defined to have getaddrinfo
++#define _XOPEN_SOURCE 600
+
+ #include "cpl_port.h"
diff --git a/sci-libs/gdal/gdal-2.0.0-r1.ebuild b/sci-libs/gdal/gdal-2.0.0-r1.ebuild index 8f448890e6d0..6a344526788b 100644 --- a/sci-libs/gdal/gdal-2.0.0-r1.ebuild +++ b/sci-libs/gdal/gdal-2.0.0-r1.ebuild @@ -80,6 +80,8 @@ pkg_setup() { src_prepare() { java-pkg-opt-2_src_prepare + epatch "${FILESDIR}"/${P}-glibc-2.22-backport.patch + # fix datadir and docdir placement sed -i \ -e "s:@datadir@:@datadir@/gdal:" \ |