getdns: fix missing libbsd dependency 8094/head
authorCraig Andrews <candrews@integralblue.com>
Thu, 31 Jan 2019 16:16:57 +0000 (11:16 -0500)
committerCraig Andrews <candrews@integralblue.com>
Thu, 31 Jan 2019 18:06:08 +0000 (13:06 -0500)
Backport these commits from master to the 18.06 branch:
8365744b80c1c0c57fabe199aaa08e6bacef8063
035b22b2085c1dc5f5788a941a44f69de757826b
d0766135ade4409103cd5bfbd6180a41c4f2741a

Fixes https://github.com/openwrt/packages/issues/8093

Signed-off-by: Craig Andrews <candrews@integralblue.com>
libs/getdns/Makefile

index 3954a4525b081bee0a64f6206b0a08ded3e940be..4992b088f6544a3fa39a51075e8b413a2cdfffd3 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=getdns
 PKG_VERSION:=1.4.2
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=LICENSE
@@ -55,6 +55,11 @@ CONFIGURE_ARGS += \
                $(if $(CONFIG_GETDNS_ENABLE_IDN_LIBIDN2), , --without-libidn2 ) \
                --with-ssl="$(STAGING_DIR)/usr" \
 
+# This will make 'configure' think that our libbsd.so is missing the
+# functions inet_pton, inet_ntop, strlcpy and use the builtin. This 
+# removes the libbsd dependency
+CONFIGURE_VARS += LIBBSD_LIBS=-lc
+
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/getdns/
        $(CP) $(PKG_INSTALL_DIR)/usr/include/getdns/getdns*.h $(1)/usr/include/getdns/