From: Rosen Penev Date: Fri, 19 Jul 2019 07:02:21 +0000 (-0700) Subject: opendkim: Fix compilation with uClibc-ng X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e1cb7f98d8f6859bdf58e378348a713c66b8ec79;p=feed%2Fpackages.git opendkim: Fix compilation with uClibc-ng res_nsend and res_send are both not available in uClibc-ng as configured in OpenWrt. Having this function return an error is the only sensible way to fix. Signed-off-by: Rosen Penev (cherry-picked from b5b776fc9ad807739977e82f809c3fe7b485d262) --- diff --git a/mail/opendkim/Makefile b/mail/opendkim/Makefile index 9a441e61ac..6ec3ea989c 100644 --- a/mail/opendkim/Makefile +++ b/mail/opendkim/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=opendkim PKG_VERSION:=2.10.3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/$(PKG_NAME) diff --git a/mail/opendkim/patches/020-uclibc.patch b/mail/opendkim/patches/020-uclibc.patch new file mode 100644 index 0000000000..b74c3a99e3 --- /dev/null +++ b/mail/opendkim/patches/020-uclibc.patch @@ -0,0 +1,20 @@ +--- a/libopendkim/dkim-dns.c ++++ b/libopendkim/dkim-dns.c +@@ -163,6 +163,9 @@ int + dkim_res_query(void *srv, int type, unsigned char *query, unsigned char *buf, + size_t buflen, void **qh) + { ++#ifdef __UCLIBC__ ++ return DKIM_DNS_ERROR; ++#else + int n; + int ret; + struct dkim_res_qh *rq; +@@ -209,6 +212,7 @@ dkim_res_query(void *srv, int type, unsigned char *query, unsigned char *buf, + *qh = (void *) rq; + + return DKIM_DNS_SUCCESS; ++#endif // __UCLIBC__ + } + + /*