* [gentoo-commits] gentoo-x86 commit in www-client/dwb/files: dwb-2013.03.30-json-c.patch
@ 2013-04-30 7:57 Tim Harder (radhermit)
0 siblings, 0 replies; only message in thread
From: Tim Harder (radhermit) @ 2013-04-30 7:57 UTC (permalink / raw
To: gentoo-commits
radhermit 13/04/30 07:57:59
Added: dwb-2013.03.30-json-c.patch
Log:
Fix compile with >=json-c-0.11 (bug #467940), fix compile on uclibc and other systems without execinfo.h (bug #465170), and add dep on gnutls.
(Portage version: 2.2.0_alpha173/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Revision Changes Path
1.1 www-client/dwb/files/dwb-2013.03.30-json-c.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/dwb/files/dwb-2013.03.30-json-c.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/dwb/files/dwb-2013.03.30-json-c.patch?rev=1.1&content-type=text/plain
Index: dwb-2013.03.30-json-c.patch
===================================================================
--- dwb-2013.03.30/config.mk
+++ dwb-2013.03.30/config.mk
@@ -105,8 +105,18 @@
$(error Cannot find $(GNUTLS))
endif
+# >=json-c-0.11 renamed its library, pc file, and include dir
+# first check for >=0.11, if it doesn't exist check for <0.11
+ifeq ($(shell pkg-config --exists json-c && echo 1), 1)
+JSONC=json-c
+else
ifeq ($(shell pkg-config --exists json && echo 1), 1)
-LIBS+=$(GNUTLS)
+JSONC=json
+endif
+endif
+
+ifdef JSONC
+LIBS+=$(JSONC)
else
$(error Cannot find json-c)
endif
--- dwb-2013.03.30/src/util/Makefile
+++ dwb-2013.03.30/src/util/Makefile
@@ -13,7 +13,7 @@
TRANSPORT_SECURITY_JSON=transport_security_state_static.json
TRANSPORT_SECURITY_CERTS=transport_security_state_static.certs
-LIBS=glib-2.0 gnutls json
+LIBS=glib-2.0 gnutls $(JSONC)
CFLAGS+=$(shell pkg-config --cflags $(LIBS))
LDFLAGS=$(shell pkg-config --libs $(LIBS))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-04-30 7:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-30 7:57 [gentoo-commits] gentoo-x86 commit in www-client/dwb/files: dwb-2013.03.30-json-c.patch Tim Harder (radhermit)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox