From 5a01792340999d37435f5000a3f6b8e0f2d11815 Mon Sep 17 00:00:00 2001 From: BlackNoxis Date: Fri, 7 Nov 2014 12:54:17 +0200 Subject: Added the full elimination of sabayon-version --- .../libreport/files/libreport-2.0.20-json-c.patch | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 dev-libs/libreport/files/libreport-2.0.20-json-c.patch (limited to 'dev-libs/libreport/files/libreport-2.0.20-json-c.patch') diff --git a/dev-libs/libreport/files/libreport-2.0.20-json-c.patch b/dev-libs/libreport/files/libreport-2.0.20-json-c.patch new file mode 100644 index 00000000..4e0f3d49 --- /dev/null +++ b/dev-libs/libreport/files/libreport-2.0.20-json-c.patch @@ -0,0 +1,51 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -158,7 +158,14 @@ AS_HELP_STRING([--with-ureport],[use uRe + LIBREPORT_PARSE_WITH([ureport])) + if test -z "$NO_UREPORT"; then + AM_CONDITIONAL(BUILD_UREPORT, true) +-PKG_CHECK_MODULES([JSON_C], [json]) ++PKG_CHECK_MODULES([JSON_C], [json], [ ++ JSON_C_PACKAGE=json ++], [ ++ PKG_CHECK_MODULES([JSON_C], [json-c], [ ++ JSON_C_PACKAGE=json-c ++ ]) ++]) ++AC_SUBST([JSON_C_PACKAGE]) + else + AM_CONDITIONAL(BUILD_UREPORT, false) + fi dnl end NO_UREPORT +--- a/libreport-web.pc.in ++++ b/libreport-web.pc.in +@@ -6,7 +6,7 @@ includedir=@includedir@ + Name: libreport + Description: Library providing network API for libreport + Version: @VERSION@ +-Requires: glib-2.0 libcurl libproxy-1.0 libxml-2.0 xmlrpc xmlrpc_client json btparser libreport ++Requires: glib-2.0 libcurl libproxy-1.0 libxml-2.0 xmlrpc xmlrpc_client @JSON_C_PACKAGE@ btparser libreport + Libs: -L${libdir} -lreport-web + Cflags: + +--- a/src/lib/json.c ++++ b/src/lib/json.c +@@ -17,7 +17,7 @@ + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +-#include ++#include + #include + #include + +--- a/src/plugins/ureport.c ++++ b/src/plugins/ureport.c +@@ -17,7 +17,7 @@ + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +-#include ++#include + #include "internal_libreport.h" + #include "ureport.h" + #include "libreport_curl.h" -- cgit v1.2.3