pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/libspf2 Avoid res_close() on OpenBSD (from OpenBS...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7493de733c89
branches:  trunk
changeset: 327018:7493de733c89
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Mon Dec 17 18:32:42 2018 +0000

description:
Avoid res_close() on OpenBSD (from OpenBSD ports).

diffstat:

 mail/libspf2/distinfo                                     |   3 +-
 mail/libspf2/patches/patch-src_libspf2_spf__dns__resolv.c |  16 +++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r e72c0e41d39c -r 7493de733c89 mail/libspf2/distinfo
--- a/mail/libspf2/distinfo     Mon Dec 17 17:04:38 2018 +0000
+++ b/mail/libspf2/distinfo     Mon Dec 17 18:32:42 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2015/11/03 23:27:08 agc Exp $
+$NetBSD: distinfo,v 1.10 2018/12/17 18:32:42 schmonz Exp $
 
 SHA1 (libspf2-1.2.10.tar.gz) = 3c31b20c737d9a8044440e5bf25697016b9cb582
 RMD160 (libspf2-1.2.10.tar.gz) = 5557435802896bec31362c1fa028e9e295656455
@@ -8,3 +8,4 @@
 SHA1 (patch-src_include_spf__log.h) = 87b534d338b7fa36168cf8b745a285e38598cfed
 SHA1 (patch-src_libreplace_Makefile.in) = 12fab6f97efff6cc1944ebb5a5cf26fdb79971c2
 SHA1 (patch-src_libreplace_ensure__libreplace__symbol.c) = 1b2ccf11fe7cade3c7769e7388cdd79ee250b26e
+SHA1 (patch-src_libspf2_spf__dns__resolv.c) = 493449b294afa3154b8656d2155d3b144393d02c
diff -r e72c0e41d39c -r 7493de733c89 mail/libspf2/patches/patch-src_libspf2_spf__dns__resolv.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/libspf2/patches/patch-src_libspf2_spf__dns__resolv.c Mon Dec 17 18:32:42 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_libspf2_spf__dns__resolv.c,v 1.1 2018/12/17 18:32:42 schmonz Exp $
+
+OpenBSD's libc resolver provides res_init() but not res_close().
+
+--- src/libspf2/spf_dns_resolv.c.orig  Sat Jan 28 08:24:47 2012
++++ src/libspf2/spf_dns_resolv.c
+@@ -607,7 +607,9 @@ SPF_dns_resolv_free(SPF_dns_server_t *spf_dns_server)
+       SPF_ASSERT_NOTNULL(spf_dns_server);
+ 
+ #if ! HAVE_DECL_RES_NINIT
++#  ifndef __OpenBSD__
+       res_close();
++#  endif
+ #endif
+ 
+       free(spf_dns_server);



Home | Main Index | Thread Index | Old Index