Add patch to handle Debian's libjson-c.
authorgregor herrmann <gregoa@debian.org>
Thu, 27 Jun 2013 23:13:12 +0000 (01:13 +0200)
committergregor herrmann <gregoa@debian.org>
Thu, 27 Jun 2013 23:13:12 +0000 (01:13 +0200)
debian/patches/json-c.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/json-c.patch b/debian/patches/json-c.patch
new file mode 100644 (file)
index 0000000..83601ec
--- /dev/null
@@ -0,0 +1,28 @@
+Description: adjust to json-c in Debian
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gregoa@debian.org>
+Last-Update: 2013-06-28
+
+--- a/bti.c
++++ b/bti.c
+@@ -32,7 +32,7 @@
+ #include <libxml/xmlmemory.h>
+ #include <libxml/parser.h>
+ #include <libxml/tree.h>
+-#include <json/json.h>
++#include <json-c/json.h>
+ #include <pcre.h>
+ #include <termios.h>
+ #include <dlfcn.h>
+--- a/configure.ac
++++ b/configure.ac
+@@ -18,7 +18,7 @@
+ PKG_CHECK_MODULES(LIBPCRE, libpcre)
+ PKG_CHECK_MODULES([LIBCURL], [libcurl])
+ PKG_CHECK_MODULES([XML], [libxml-2.0])
+-PKG_CHECK_MODULES([JSON], [json])
++PKG_CHECK_MODULES([JSON], [json-c])
+ AC_SEARCH_LIBS([dlopen], [dl])
index c6aa687..7d5fcfb 100644 (file)
@@ -1 +1,2 @@
 manpage-debian.patch
 manpage-debian.patch
+json-c.patch