From 4fc1689eb4aa2be7af77d1137e00d1da5be31dbd Mon Sep 17 00:00:00 2001 From: Jiri Slachta Date: Tue, 12 Sep 2017 14:09:48 +0200 Subject: [PATCH] re: update to 0.5.5 Signed-off-by: Jiri Slachta --- libs/re/Makefile | 6 +++--- .../001-extend-ninit-nclose-check.patch | 20 +++++++++++++++++++ 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 libs/re/patches/001-extend-ninit-nclose-check.patch diff --git a/libs/re/Makefile b/libs/re/Makefile index 77cf7fd..7fb4148 100644 --- a/libs/re/Makefile +++ b/libs/re/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2010-2016 OpenWrt.org +# Copyright (C) 2010-2017 OpenWrt.org # Copyright (C) 2010 Alfred E. Heggestad # # This is free software, licensed under the GNU General Public License v2. @@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=re -PKG_VERSION:=0.4.17 +PKG_VERSION:=0.5.5 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.creytiv.com/pub -PKG_MD5SUM:=5900337fd8c77515c87eae5bf0f8c091 +PKG_HASH:=90917a173de962d3b20ab5f9875ad3051b7b307da4acb80c184b72e6c2ba7bb4 PKG_LICENSE:=BSD-3-Clause PKG_LICENSE_FILES:=docs/COPYING diff --git a/libs/re/patches/001-extend-ninit-nclose-check.patch b/libs/re/patches/001-extend-ninit-nclose-check.patch new file mode 100644 index 0000000..382d3e9 --- /dev/null +++ b/libs/re/patches/001-extend-ninit-nclose-check.patch @@ -0,0 +1,20 @@ +--- a/src/dns/res.c ++++ b/src/dns/res.c +@@ -25,7 +25,7 @@ int get_resolv_dns(char *domain, size_t + uint32_t i; + int ret, err; + +-#ifdef OPENBSD ++#if defined(OPENBSD) || defined(OPENWRT) + ret = res_init(); + state = _res; + #else +@@ -56,7 +56,7 @@ int get_resolv_dns(char *domain, size_t + *n = i; + + out: +-#ifdef OPENBSD ++#if defined(OPENBSD) || defined(OPENWRT) + #else + res_nclose(&state); + #endif -- 2.30.2