[packages] jansson: update to v2.2.1, remove extra LDFLAGS - based on patch by Roman...
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 19 Jan 2012 17:23:07 +0000 (17:23 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 19 Jan 2012 17:23:07 +0000 (17:23 +0000)
SVN-Revision: 29817

libs/jansson/Makefile
libs/jansson/patches/100-add-jason_object_deep_update.patch [new file with mode: 0644]

index 638b6dceb7243df760f0ed2e51bf52419a3cc736..bce1994cccac451be2104be7389bf80ccc21fc62 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2011 OpenWrt.org
+# Copyright (C) 2011-2012 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -9,12 +9,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=jansson
-PKG_VERSION:=2.2
+PKG_VERSION:=2.2.1
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.digip.org/jansson/releases/
-PKG_MD5SUM:=198fbff8265686894b6d088dca22896d
+PKG_MD5SUM:=ebf4ebc7af47de27f7b9d79ad5853176
 
 PKG_INSTALL:=1
 PKG_BUILD_PARALLEL:=1
@@ -27,8 +27,6 @@ define Package/jansson
   TITLE:=JSON library
 endef
 
-CONFIGURE_ARGS+= LIBS="-Wl,-rpath-link=$(STAGING_DIR)/usr/lib"
-
 TARGET_CFLAGS += $(FPIC)
 
 define Build/InstallDev
diff --git a/libs/jansson/patches/100-add-jason_object_deep_update.patch b/libs/jansson/patches/100-add-jason_object_deep_update.patch
new file mode 100644 (file)
index 0000000..d7c94ba
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/src/jansson.h
++++ b/src/jansson.h
+@@ -126,6 +126,7 @@ int json_object_set_new_nocheck(json_t *
+ int json_object_del(json_t *object, const char *key);
+ int json_object_clear(json_t *object);
+ int json_object_update(json_t *object, json_t *other);
++int json_object_deep_update(json_t *object, json_t *other);
+ void *json_object_iter(json_t *object);
+ void *json_object_iter_at(json_t *object, const char *key);
+ void *json_object_iter_next(json_t *object, void *iter);