mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
sci-libs/gdal: Backport patch for glibc-2.22
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=563608 Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
14
sci-libs/gdal/files/gdal-2.0.0-glibc-2.22-backport.patch
Normal file
14
sci-libs/gdal/files/gdal-2.0.0-glibc-2.22-backport.patch
Normal file
@@ -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"
|
||||
@@ -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:" \
|
||||
|
||||
Reference in New Issue
Block a user