Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/postgis/files/
Date: Fri, 29 Sep 2017 13:22:39
Message-Id: 1506691335.01e905c00457e6d44988b727dd6f7468d852bed5.mjo@gentoo
1 commit: 01e905c00457e6d44988b727dd6f7468d852bed5
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Mon Sep 18 13:24:30 2017 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 29 13:22:15 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01e905c0
7
8 dev-db/postgis: remove unused patch
9
10 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
11
12 .../postgis/files/postgis-2.1-pkgconfig-json.patch | 125 ---------------------
13 1 file changed, 125 deletions(-)
14
15 diff --git a/dev-db/postgis/files/postgis-2.1-pkgconfig-json.patch b/dev-db/postgis/files/postgis-2.1-pkgconfig-json.patch
16 deleted file mode 100644
17 index 9907e73d741..00000000000
18 --- a/dev-db/postgis/files/postgis-2.1-pkgconfig-json.patch
19 +++ /dev/null
20 @@ -1,125 +0,0 @@
21 -diff -Naruw postgis-2.1.0.orig/configure.ac postgis-2.1.0/configure.ac
22 ---- postgis-2.1.0.orig/configure.ac 2013-07-09 03:36:15.000000000 +0000
23 -+++ postgis-2.1.0/configure.ac 2013-08-18 18:14:23.263697970 +0000
24 -@@ -745,65 +745,21 @@
25 - dnl Detect if json-c installed
26 - dnl ===========================================================================
27 -
28 --CHECK_JSON=yes
29 --HAVE_JSON=no
30 --AC_SUBST([HAVE_JSON])
31 --
32 --AC_ARG_WITH([json],
33 -- [AS_HELP_STRING([--without-json], [build without json-c support])],
34 -- [CHECK_JSON="$withval"], [])
35 --
36 --if test "$CHECK_JSON" != "no"; then dnl {
37 --
38 --AC_ARG_WITH([jsondir],
39 -- [AS_HELP_STRING([--with-jsondir=PATH], [specify the json-c installation directory])],
40 -- [JSONDIR="$withval"], [JSONDIR=])
41 --
42 --if test ! "x$JSONDIR" = "x"; then
43 -- dnl Make sure that the directory exists
44 -- if test "x$JSONDIR" = "xyes"; then
45 -- AC_MSG_ERROR([you must specify a parameter to --with-jsondir, e.g. --with-jsondir=/path/to])
46 -- else
47 -- dnl We need (libjson.so OR libjson.a OR libjson.dll) AND json/json.h
48 -- if test ! -e "${JSONDIR}/include/json/json.h" -o \
49 -- ! \( -e "${JSONDIR}/lib/libjson.so" -o \
50 -- -e "${JSONDIR}/lib/libjson.dll" -o \
51 -- -e "${JSONDIR}/lib/libjson.dylib" -o \
52 -- -e "${JSONDIR}/bin/libjson.dll" -o \
53 -- -e "${JSONDIR}/lib/libjson.a" \)
54 -- then
55 -- AC_MSG_ERROR([Cannot find json dev files in "$JSONDIR"])
56 -- fi
57 -- AC_MSG_RESULT([Using user-specified json-c directory: $JSONDIR])
58 --
59 -- dnl Add the include directory to JSON_CPPFLAGS
60 -- JSON_CPPFLAGS="-I$JSONDIR/include"
61 -- JSON_LDFLAGS="-L$JSONDIR/lib"
62 -- fi
63 --fi
64 --
65 --dnl Check that we can find the json/json.h header file
66 --CPPFLAGS_SAVE="$CPPFLAGS"
67 --CPPFLAGS="$JSON_CPPFLAGS"
68 --AC_CHECK_HEADER([json/json.h], [HAVE_JSON=yes], [])
69 --CPPFLAGS="$CPPFLAGS_SAVE"
70 --
71 --dnl Ensure we can link against libjson
72 --LIBS_SAVE="$LIBS"
73 --LIBS="$JSON_LDFLAGS"
74 --AC_CHECK_LIB([json-c], [json_object_get], [HAVE_JSON=yes; JSON_LDFLAGS="${JSON_LDFLAGS} -ljson-c"], [
75 -- AC_CHECK_LIB([json], [json_object_get], [HAVE_JSON=yes; JSON_LDFLAGS="${JSON_LDFLAGS} -ljson"], [], [])
76 --], [])
77 --LIBS="$LIBS_SAVE"
78 --
79 --if test "$HAVE_JSON" = "yes"; then
80 -+PKG_CHECK_MODULES([JSON], [json],
81 -+ [
82 -+ HAVE_JSON=yes
83 - AC_DEFINE([HAVE_LIBJSON], 1, [Define to 1 if libjson is present])
84 --fi
85 --
86 --AC_SUBST([JSON_CPPFLAGS])
87 --AC_SUBST([JSON_LDFLAGS])
88 -+ ],
89 -+ [
90 -+ PKG_CHECK_MODULES([JSON], [json-c],
91 -+ [
92 -+ HAVE_JSON=yes
93 -+ AC_DEFINE([HAVE_LIBJSON], 1, [Define to 1 if libjson is present])
94 -+ ],
95 -+ [HAVE_JSON=no])
96 -+ ])
97 -
98 --fi dnl }
99 -+AC_SUBST([HAVE_JSON])
100 -
101 - dnl ===========================================================================
102 - dnl Detect GTK+2.0 for GUI
103 -@@ -896,7 +852,7 @@
104 - CPPFLAGS="$PGSQL_CPPFLAGS $GEOS_CPPFLAGS $PROJ_CPPFLAGS $XML2_CPPFLAGS $SFCGAL_CPPFLAGS $CPPFLAGS"
105 - AC_MSG_RESULT([CPPFLAGS: $CPPFLAGS])
106 -
107 --SHLIB_LINK="$PGSQL_LDFLAGS $GEOS_LDFLAGS $PROJ_LDFLAGS -lgeos_c -lproj $JSON_LDFLAGS $XML2_LDFLAGS $SFCGAL_LDFLAGS"
108 -+SHLIB_LINK="$PGSQL_LDFLAGS $GEOS_LDFLAGS $PROJ_LDFLAGS -lgeos_c -lproj $JSON_LIBS $XML2_LDFLAGS $SFCGAL_LDFLAGS"
109 - AC_SUBST([SHLIB_LINK])
110 - dnl AC_MSG_RESULT([SHLIB_LINK: $SHLIB_LINK])
111 -
112 -diff -Naruw postgis-2.1.0.orig/liblwgeom/lwin_geojson.c postgis-2.1.0/liblwgeom/lwin_geojson.c
113 ---- postgis-2.1.0.orig/liblwgeom/lwin_geojson.c 2013-02-28 17:42:49.000000000 +0000
114 -+++ postgis-2.1.0/liblwgeom/lwin_geojson.c 2013-08-18 18:11:52.473943571 +0000
115 -@@ -17,8 +17,8 @@
116 -
117 - #ifdef HAVE_LIBJSON
118 -
119 --#include <json/json.h>
120 --#include <json/json_object_private.h>
121 -+#include <json.h>
122 -+#include <json_object_private.h>
123 - #include <string.h>
124 -
125 - static void geojson_lwerror(char *msg, int error_code)
126 -@@ -551,5 +551,3 @@
127 - return lwgeom;
128 - #endif /* HAVE_LIBJSON */
129 - }
130 --
131 --
132 -diff -Naruw postgis-2.1.0.orig/liblwgeom/Makefile.in postgis-2.1.0/liblwgeom/Makefile.in
133 ---- postgis-2.1.0.orig/liblwgeom/Makefile.in 2013-05-09 19:38:17.000000000 +0000
134 -+++ postgis-2.1.0/liblwgeom/Makefile.in 2013-08-18 18:11:52.477943594 +0000
135 -@@ -11,8 +11,8 @@
136 - # **********************************************************************
137 -
138 - CC = @CC@
139 --CFLAGS = @CFLAGS@ @PICFLAGS@ @WARNFLAGS@ @GEOS_CPPFLAGS@ @PROJ_CPPFLAGS@ @JSON_CPPFLAGS@
140 --LDFLAGS = @LDFLAGS@ @GEOS_LDFLAGS@ -lgeos_c @PROJ_LDFLAGS@ -lproj @JSON_LDFLAGS@
141 -+CFLAGS = @CFLAGS@ @PICFLAGS@ @WARNFLAGS@ @GEOS_CPPFLAGS@ @PROJ_CPPFLAGS@ @JSON_CFLAGS@
142 -+LDFLAGS = @LDFLAGS@ @GEOS_LDFLAGS@ -lgeos_c @PROJ_LDFLAGS@ -lproj @JSON_LIBS@
143 - NUMERICFLAGS = @NUMERICFLAGS@
144 - top_builddir = @top_builddir@
145 - prefix = @prefix@