Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 382086 Details for
Bug 507708
dev-db/postgis-2.1.1 failed to build
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
postgis-2.1.3-pkgconfig-json.patch
postgis-2.1.3-pkgconfig-json.patch (text/plain), 4.41 KB, created by
Andreas Sturmlechner
on 2014-08-02 13:32:41 UTC
(
hide
)
Description:
postgis-2.1.3-pkgconfig-json.patch
Filename:
MIME Type:
Creator:
Andreas Sturmlechner
Created:
2014-08-02 13:32:41 UTC
Size:
4.41 KB
patch
obsolete
>diff -Naruw postgis-2.1.0.orig/configure.ac postgis-2.1.0/configure.ac >--- postgis-2.1.0.orig/configure.ac 2013-07-09 03:36:15.000000000 +0000 >+++ postgis-2.1.0/configure.ac 2013-08-18 18:14:23.263697970 +0000 >@@ -896,7 +852,7 @@ > CPPFLAGS="$PGSQL_CPPFLAGS $GEOS_CPPFLAGS $PROJ_CPPFLAGS $XML2_CPPFLAGS $SFCGAL_CPPFLAGS $CPPFLAGS" > AC_MSG_RESULT([CPPFLAGS: $CPPFLAGS]) > >-SHLIB_LINK="$PGSQL_LDFLAGS $GEOS_LDFLAGS $PROJ_LDFLAGS -lgeos_c -lproj $JSON_LDFLAGS $XML2_LDFLAGS $SFCGAL_LDFLAGS" >+SHLIB_LINK="$PGSQL_LDFLAGS $GEOS_LDFLAGS $PROJ_LDFLAGS -lgeos_c -lproj $JSON_LIBS $XML2_LDFLAGS $SFCGAL_LDFLAGS" > AC_SUBST([SHLIB_LINK]) > dnl AC_MSG_RESULT([SHLIB_LINK: $SHLIB_LINK]) > >diff -Naruw postgis-2.1.0.orig/liblwgeom/Makefile.in postgis-2.1.0/liblwgeom/Makefile.in >--- postgis-2.1.0.orig/liblwgeom/Makefile.in 2013-05-09 19:38:17.000000000 +0000 >+++ postgis-2.1.0/liblwgeom/Makefile.in 2013-08-18 18:11:52.477943594 +0000 >@@ -11,8 +11,8 @@ > # ********************************************************************** > > CC = @CC@ >-CFLAGS = @CFLAGS@ @PICFLAGS@ @WARNFLAGS@ @GEOS_CPPFLAGS@ @PROJ_CPPFLAGS@ @JSON_CPPFLAGS@ >-LDFLAGS = @LDFLAGS@ @GEOS_LDFLAGS@ -lgeos_c @PROJ_LDFLAGS@ -lproj @JSON_LDFLAGS@ >+CFLAGS = @CFLAGS@ @PICFLAGS@ @WARNFLAGS@ @GEOS_CPPFLAGS@ @PROJ_CPPFLAGS@ @JSON_CFLAGS@ >+LDFLAGS = @LDFLAGS@ @GEOS_LDFLAGS@ -lgeos_c @PROJ_LDFLAGS@ -lproj @JSON_LIBS@ > NUMERICFLAGS = @NUMERICFLAGS@ > top_builddir = @top_builddir@ > prefix = @prefix@ >--- a/liblwgeom/lwin_geojson.c 2014-08-02 14:38:06.826136768 +0200 >+++ b/liblwgeom/lwin_geojson.c 2014-08-02 14:43:18.461144046 +0200 >@@ -23,8 +23,8 @@ > #include <json-c/json.h> > #include <json-c/json_object_private.h> > #else >-#include <json/json.h> >-#include <json/json_object_private.h> >+#include <json.h> >+#include <json_object_private.h> > #endif > > #ifndef JSON_C_VERSION >--- a/configure.ac 2014-08-02 14:59:42.413857651 +0200 >+++ b/configure.ac 2014-08-02 15:08:49.204021834 +0200 >@@ -749,62 +749,22 @@ > dnl Detect if json-c installed > dnl =========================================================================== > >-CHECK_JSON=yes >-HAVE_JSON=no >-HAVE_JSON_C=no >+PKG_CHECK_MODULES([JSON], [json], >+ [ >+ HAVE_JSON=yes >+ AC_DEFINE([HAVE_LIBJSON], 1, [Define to 1 if libjson is present]) >+ ], >+ [ >+ PKG_CHECK_MODULES([JSON], [json-c], >+ [ >+ HAVE_JSON_C=yes >+ AC_DEFINE([HAVE_LIBJSON_C], 1, [Define to 1 if libjson resides in a json-c subdir]) >+ ], >+ [HAVE_JSON_C=no]) >+ ]) > >-AC_ARG_WITH([json], >- [AS_HELP_STRING([--without-json], [build without json-c support])], >- [CHECK_JSON="$withval"], []) >- >-if test "$CHECK_JSON" != "no"; then dnl { >- >-AC_ARG_WITH([jsondir], >- [AS_HELP_STRING([--with-jsondir=PATH], [specify the json-c installation directory])], >- [JSONDIR="$withval"], [JSONDIR=]) >- >-if test ! "x$JSONDIR" = "x"; then >- dnl Make sure that the directory exists >- if test "x$JSONDIR" = "xyes"; then >- AC_MSG_ERROR([you must specify a parameter to --with-jsondir, e.g. --with-jsondir=/path/to]) >- else >- AC_MSG_RESULT([Using user-specified json-c directory: $JSONDIR]) >- >- dnl Add the include directory to JSON_CPPFLAGS >- JSON_CPPFLAGS="-I$JSONDIR/include" >- JSON_LDFLAGS="-L$JSONDIR/lib" >- fi >-fi >- >-dnl Check that we can find the json/json.h header file >-CPPFLAGS_SAVE="$CPPFLAGS" >-CPPFLAGS="$JSON_CPPFLAGS" >-AC_CHECK_HEADER([json/json.h], [HAVE_JSON=yes], [ >- AC_CHECK_HEADER([json-c/json.h], [HAVE_JSON=yes; HAVE_JSON_C=yes], []) >-]) >-CPPFLAGS="$CPPFLAGS_SAVE" >- >-dnl Ensure we can link against libjson >-LIBS_SAVE="$LIBS" >-LIBS="$JSON_LDFLAGS" >-AC_CHECK_LIB([json-c], [json_object_get], [HAVE_JSON=yes; JSON_LDFLAGS="${JSON_LDFLAGS} -ljson-c"], [ >- AC_CHECK_LIB([json], [json_object_get], [HAVE_JSON=yes; JSON_LDFLAGS="${JSON_LDFLAGS} -ljson"], [], []) >-], []) >-LIBS="$LIBS_SAVE" >- >-if test "$HAVE_JSON" = "yes"; then >- AC_DEFINE([HAVE_LIBJSON], 1, [Define to 1 if libjson is present]) >-fi >-if test "$HAVE_JSON_C" = "yes"; then >- AC_DEFINE([HAVE_LIBJSON_C], 1, [Define to 1 if libjson resides in a json-c subdir]) >-fi >- >-AC_SUBST([JSON_CPPFLAGS]) >-AC_SUBST([JSON_LDFLAGS]) > AC_SUBST([HAVE_JSON]) > >-fi dnl } >- > dnl =========================================================================== > dnl Detect GTK+2.0 for GUI > dnl ===========================================================================
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 507708
:
374972
|
374974
|
376852
|
376862
|
382084
| 382086 |
384196