pkgsrc-Bugs archive

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

pkg/43126: [net/adns] Update to 1.4



>Number:         43126
>Category:       pkg
>Synopsis:       [net/adns] Update to 1.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 05 14:20:00 +0000 2010
>Originator:     Wen Heping
>Release:        NetBSD-5.0.2
>Organization:
Private
>Environment:
NetBSD nb502.wenjing.com 5.0.2 NetBSD 5.0.2 (GENERIC) #0: Sat Feb  6 17:53:27 
UTC 2010  
builds%b7.netbsd.org@localhost:/home/builds/ab/netbsd-5-0-2-RELEASE/i386/201002061851Z-obj/home/builds/ab/netbsd-5-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC
 i386
>Description:
adns (1.4); urgency=low

  Improvements for multithreaded programs:
  * New documentation comment in adns.h explaining thread guarantees
    (or lack of them), replaces `single-threaded' note at the top.
  * Fix string conversion of adns_r_addr not to use a static buffer
    (function csp_addr) so as to make thread promise true.
  * Make an internal variable const-correct (expectdomain in pa_ptr).

 -- Ian Jackson <ian%davenant.greenend.org.uk@localhost>  Tue, 17 Oct 2006 
17:05:08 +0100

adns (1.3); urgency=low

  Portability fixes:
  * Cast ptrdiff_t to int for %.*s length in adnsheloex and adnslogres,
    as is required.  (Report from Jim Meyering.)
  * In configure.in, quote macro name argument to define() to
    suppress spurious autoconf error.  (Report from Mihai Ibanescu.)
  * Use autoconf's values for {bin,lib,include}dir rather than inventing
    our own from @exec_prefix@, making configure --libdir work.
    (Patch from Mihai Ibanescu.)
  * Remove spurious `_' from {bin,lib,include}dir Makefile variables.
    (Report from Mihai Ibanescu.)
  * Do away with `mismatch' variable in parse.c:adns__findrr_anychk so that
    overzealous GCC cannot complain about members of eo_fls being
    uninitialised.  (Report from Jim Meyering.)

 -- Ian Jackson <ian%davenant.greenend.org.uk@localhost>  Tue,  6 Jun 2006 
20:22:30 +0100

adns (1.2); urgency=medium

  New features:
  * Support for SRV RRs.
  * Support for unknown RR types (according to RFC3597) via adns_r_unknown.
  * Allow `;'-comments in resolv.conf (report from Colin Charles).
  * New adnsheloex client courtesy of Tony Finch.
  * New adns_init_logfn etc. for having logging use a callback function.

  Bugfixes:
  * Fix error in prototype in definition of adns__parse_domain.
  * Add missing ENOTSOCK to hcommon.c.m4 (was already in hcommon.c!)

  Portability fixes prompted by Bernd Eckenfels, the Debian maintainer:
  * Correct type of various printf arguments: ptrdiff_t != int.
  * Do not print size of leaked blocks of memory (this causes
    a spurious regression test failure on some platforms).
  * Provide adns_if_none and adns_qf_none (which will help with compilers
    which complain about plain `0' being passed where an enum is wanted).
  * adnstest converts some errno values to EFOOBAR: all of the ones
    mentioned in adns.h, at least.  This makes the regression test
    more portable (fixes problem noticed by Bernd Eckenfels).
  * Add -Wno-pointer-sign if GCC has that option.

  Documentation improvements:
  * Add documentation comment by definition of adns_r_ptr_raw type enum.
  * Document in adns.h EINVAL from adns_init meaning bad configuration.
  * Include several new references to related programs to README.html.
  * Redacted the TODO list.
  * New LICENCE.WAIVERS file for GPL-incompatility workarounds.
  * Clarified GPL-vs-LGPL: a bit less hostile and a bit more mercenary.
  * Copyright notices updated.

  Packaging changes:
  * Update MINOR to 2 and DISTVERSION and ADNS_VERSION_STRING to 1.2.
  * Reran autoconf/autoheader (autoconf Debian 2.13-54).
  * Create $(bin_dir) and $(lib_dir) on `make install', and also
    make a libadns.so.1 -> libadns.so.1.<minor> link.  (Suggestions
    and patch from Nix of esperi.org.uk.)
  * Add .PHONY: install to Makefile, to help people with demented fs's.
  * Darwin listed in INSTALL.

  Minor test harness improvements:
  * Hgettimeofday calls Tensurerecordfile (was Tensureinput/outputfile).
  * Add bind(2) and listen(2) wrappers (for epithet, but harmless in adns).

 -- Ian Jackson <ian%davenant.greenend.org.uk@localhost>  Sat,  8 Apr 2006 
15:41:28 +0100

>How-To-Repeat:

>Fix:
diff -urN -x CVS adns.orig/Makefile adns/Makefile
--- adns.orig/Makefile  2010-04-06 04:13:33.000000000 +0800
+++ adns/Makefile       2010-04-06 04:13:45.000000000 +0800
@@ -1,8 +1,7 @@
 # $NetBSD: Makefile,v 1.20 2008/06/12 02:14:38 joerg Exp $
 #

-DISTNAME=      adns-1.1
-PKGREVISION=   2
+DISTNAME=      adns-1.4
 CATEGORIES=    net
 MASTER_SITES=  http://www.chiark.greenend.org.uk/~ian/adns/ftp/

diff -urN -x CVS adns.orig/PLIST adns/PLIST
--- adns.orig/PLIST     2010-04-06 04:13:33.000000000 +0800
+++ adns/PLIST  2010-04-06 06:02:37.000000000 +0800
@@ -1,4 +1,5 @@
 @comment $NetBSD: PLIST,v 1.3 2004/09/22 08:09:47 jlam Exp $
+bin/adnsheloex
 bin/adnshost
 bin/adnslogres
 bin/adnsresfilter
diff -urN -x CVS adns.orig/distinfo adns/distinfo
--- adns.orig/distinfo  2010-04-06 04:13:33.000000000 +0800
+++ adns/distinfo       2010-04-06 05:59:31.000000000 +0800
@@ -1,12 +1,10 @@
 $NetBSD: distinfo,v 1.14 2009/09/09 16:34:09 joerg Exp $

-SHA1 (adns-1.1.tar.gz) = cd47dfc819b147b3275eaf6316f17f15be7187e5
-RMD160 (adns-1.1.tar.gz) = c6198f864afc40657dd94b7a94cf59a483ab7581
-Size (adns-1.1.tar.gz) = 211455 bytes
-SHA1 (patch-aa) = 7ac1403a5f3d5a69de3976c0931f41bfd512c277
-SHA1 (patch-ab) = a87f93cec91a04b875c98bd2fb586b346fb3e74f
-SHA1 (patch-ac) = 2928cd6ccd224bc6d355e52b2f8dc149beaaff84
+SHA1 (adns-1.4.tar.gz) = 87283c3bcd09ceb2e605e91abedfb537a18f1884
+RMD160 (adns-1.4.tar.gz) = ccff2111bfa3eb99e28d355d48e9e17333f34394
+Size (adns-1.4.tar.gz) = 252668 bytes
 SHA1 (patch-ad) = 5ce6a933673c82b2058ff67223057bbf18f5d8bb
-SHA1 (patch-ae) = fdcc3815b880538ef2c124c7ff3c0ac74b25a14f
 SHA1 (patch-af) = f1372fe9216161d423602318a812e7f06e0f0a92
 SHA1 (patch-ag) = ffe081833324dbd28b15408ee7ce4b3a232382e2
+SHA1 (patch-ah) = a25cc65c5c465cc5e051f5cd601a54cadec8739e
+SHA1 (patch-ai) = fb3c95ff354469ac3836b275b6f2fee9a052cd79
diff -urN -x CVS adns.orig/patches/patch-aa adns/patches/patch-aa
--- adns.orig/patches/patch-aa  2010-04-06 04:13:33.000000000 +0800
+++ adns/patches/patch-aa       1970-01-01 07:00:00.000000000 +0700
@@ -1,38 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2009/09/02 11:01:50 joerg Exp $
-
---- client/Makefile.in.orig    Sat Sep 16 20:43:10 2000
-+++ client/Makefile.in
-@@ -31,7 +31,7 @@
- PROGRAMS_LOCAL=       fanftest adnstest
- PROGRAMS_ALL= $(PROGRAMS) $(PROGRAMS_LOCAL)
-
--STATIC_LIB=   $(ADNSDIR)/libadns.a
-+STATIC_LIB=   $(ADNSDIR)/libadns.la
-
- ifeq ($(ENABLE_DYNAMIC),elf)
- DYNAMIC_DEP=  $(srcdir)/../dynamic/$(SHLIBFILE)
-@@ -60,13 +60,13 @@
-
- install:      $(TARG_INSTALL)
-               set -xe; for f in $(TARG_INSTALL); \
--                      do $(INSTALL_PROGRAM) $$f $(bin_dir)/$$f; done
-+                      do ${LIBTOOL} --mode=install $(INSTALL_PROGRAM) $$f 
$(bin_dir)/$$f; don
e
-
- uninstall:
-               for f in $(TARGETS); do rm -f $(bin_dir)/$$f; done
-
- adnshost:     $(ADH_OBJS) $(DYNAMIC_DEP)
--              $(CC) $(LDFLAGS) $(ADH_OBJS) $(DYNAMIC_LINK) -o $@ $(LDLIBS)
-+              $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(ADH_OBJS) 
$(DYNAMIC_LINK) -o $@ $(LDL
IBS)
-
- adnshost_s:   $(ADH_OBJS) $(STATIC_LIB)
-               $(CC) $(LDFLAGS) $(ADH_OBJS) $(STATIC_LIB) -o $@ $(LDLIBS)
-@@ -76,7 +76,7 @@
- adnsresfilter.o:      $(ADNSDIR)/tvarith.h
-
- %:            %.o $(DYNAMIC_DEP)
--              $(CC) $(LDFLAGS) $< $(DYNAMIC_LINK) -o $@ $(LDLIBS)
-+              ${LIBTOOL} --mode=link $(CC) $(LDFLAGS) $< $(DYNAMIC_LINK) -o 
$@ $(LDLIBS)
-
- %_s:          %.o $(STATIC_LIB)
-               $(CC) $(LDFLAGS) $< $(STATIC_LIB) -o $@ $(LDLIBS)
diff -urN -x CVS adns.orig/patches/patch-ab adns/patches/patch-ab
--- adns.orig/patches/patch-ab  2010-04-06 04:13:33.000000000 +0800
+++ adns/patches/patch-ab       1970-01-01 07:00:00.000000000 +0700
@@ -1,36 +0,0 @@
-$NetBSD: patch-ab,v 1.3 2009/09/09 16:34:09 joerg Exp $
-
---- src/Makefile.in.orig       Sat Sep 16 20:24:24 2000
-+++ src/Makefile.in
-@@ -24,13 +24,13 @@
- srcdir=               @srcdir@
- VPATH=                @srcdir@
-
--TARGETS=      libadns.a
-+TARGETS=      libadns.la
- include               $(srcdir)/../settings.make
- include               adns.make
-
- install:
-               set -xe; for f in $(TARGETS); \
--                      do $(INSTALL_DATA) $$f $(lib_dir)/$$f; done
-+                      do ${LIBTOOL} --mode=install $(INSTALL_DATA) $$f 
$(lib_dir)/$$f; done
-               $(INSTALL_DATA) $(srcdir)/../src/adns.h $(include_dir)/adns.h
-
- uninstall:
-@@ -39,10 +39,10 @@
-
- ALLOBJS=      $(LIBOBJS)
-
--libadns.a:    $(LIBOBJS)
--              rm -f $@
--              $(AR) cqv $@.new $(LIBOBJS)
--              $(RANLIB) $@.new
--              mv -f $@.new $@
-+libadns.la:   $(LIBOBJS)
-+              ${LIBTOOL} --mode=link $(CC) $(LDFLAGS) -o $@ $(LIBOBJS:.o=.lo) 
-rpath ${PREFIX
}/lib -version-info $(MAJOR):$(MINOR)
-
- $(LIBOBJS):   adns.h internal.h config.h
-+
-+.c.o:
-+      ${LIBTOOL} --mode=compile $(CC) $(CFLAGS) -c $<
diff -urN -x CVS adns.orig/patches/patch-ac adns/patches/patch-ac
--- adns.orig/patches/patch-ac  2010-04-06 04:13:33.000000000 +0800
+++ adns/patches/patch-ac       1970-01-01 07:00:00.000000000 +0700
@@ -1,38 +0,0 @@
-$NetBSD: patch-ac,v 1.4 2005/03/12 06:05:33 tv Exp $
-
---- client/adnslogres.c.orig   2000-09-17 10:09:02.000000000 -0400
-+++ client/adnslogres.c
-@@ -186,9 +186,11 @@ static void proclog(FILE *inf, FILE *out
-       msg("%d in queue; checking %.*s", len,
-           head->rest-head->addr, guard_null(head->addr));
-       if (eof || len >= maxpending) {
-+#ifdef HAVE_POLL
-       if (opts & OPT_POLL)
-         err= adns_wait_poll(adns, &head->query, &answer, NULL);
-       else
-+#endif
-         err= adns_wait(adns, &head->query, &answer, NULL);
-       } else {
-       err= adns_check(adns, &head->query, &answer, NULL);
-@@ -223,7 +225,9 @@ static void printhelp(FILE *file) {
-   fputs("usage: adnslogres [<options>] [<logfile>]\n"
-       "       adnslogres --version|--help\n"
-       "options: -c <concurrency>  set max number of outstanding queries\n"
-+#ifdef HAVE_POLL
-       "         -p                use poll(2) instead of select(2)\n"
-+#endif
-       "         -d                turn on debugging\n"
-       "         -C <config>       use instead of contents of resolv.conf\n",
-       stdout);
-@@ -268,9 +272,11 @@ int main(int argc, char *argv[]) {
-     case 'd':
-       opts|= OPT_DEBUG;
-       break;
-+#ifdef HAVE_POLL
-     case 'p':
-       opts|= OPT_POLL;
-       break;
-+#endif
-     default:
-       usage();
-     }
diff -urN -x CVS adns.orig/patches/patch-ae adns/patches/patch-ae
--- adns.orig/patches/patch-ae  2010-04-06 04:13:33.000000000 +0800
+++ adns/patches/patch-ae       1970-01-01 07:00:00.000000000 +0700
@@ -1,13 +0,0 @@
-$NetBSD: patch-ae,v 1.1 2005/12/13 16:08:54 joerg Exp $
-
---- src/parse.c.orig   2005-12-13 16:03:36.000000000 +0000
-+++ src/parse.c
-@@ -113,7 +113,7 @@ adns_status adns__findlabel_next(findlab
- }
-
- adns_status adns__parse_domain(adns_state ads, int serv, adns_query qu,
--                             vbuf *vb, adns_queryflags flags,
-+                             vbuf *vb, parsedomain_flags flags,
-                              const byte *dgram, int dglen, int *cbyte_io,
-                              int max) {
-   findlabel_state fls;
diff -urN -x CVS adns.orig/patches/patch-ah adns/patches/patch-ah
--- adns.orig/patches/patch-ah  1970-01-01 07:00:00.000000000 +0700
+++ adns/patches/patch-ah       2010-04-06 05:38:41.000000000 +0800
@@ -0,0 +1,35 @@
+--- src/Makefile.in.orig       2010-04-06 05:35:09.000000000 +0800
++++ src/Makefile.in    2010-04-06 05:37:58.000000000 +0800
+@@ -23,14 +23,14 @@
+ srcdir=               @srcdir@
+ VPATH=                @srcdir@
+
+-TARGETS=      libadns.a
++TARGETS=      libadns.la
+ include               $(srcdir)/../settings.make
+ include               adns.make
+
+ install:
+               mkdir -p $(libdir) $(includedir)
+               set -xe; for f in $(TARGETS); \
+-                      do $(INSTALL_DATA) $$f $(libdir)/$$f; done
++                      do ${LIBTOOL} --mode=install $(INSTALL_DATA) $$f 
$(libdir)/$$f; done
+               $(INSTALL_DATA) $(srcdir)/../src/adns.h $(includedir)/adns.h
+
+ uninstall:
+@@ -39,10 +39,10 @@
+
+ ALLOBJS=      $(LIBOBJS)
+
+-libadns.a:    $(LIBOBJS)
+-              rm -f $@
+-              $(AR) cqv $@.new $(LIBOBJS)
+-              $(RANLIB) $@.new
+-              mv -f $@.new $@
++libadns.la:   $(LIBOBJS)
++              ${LIBTOOL} --mode=link $(CC) $(LDFLAGS) -o $@ $(LIBOBJS:.o=.lo) 
-rpath ${PREFIX
}/lib -version-info $(MAJOR):$(MINOR)
+
+ $(LIBOBJS):   adns.h internal.h config.h
++
++.c.o:
++              ${LIBTOOL} --mode=compile $(CC) $(CFLAGS) -c $<
diff -urN -x CVS adns.orig/patches/patch-ai adns/patches/patch-ai
--- adns.orig/patches/patch-ai  1970-01-01 07:00:00.000000000 +0700
+++ adns/patches/patch-ai       2010-04-06 05:52:48.000000000 +0800
@@ -0,0 +1,36 @@
+--- client/Makefile.in.orig    2006-05-10 18:58:02.000000000 +0800
++++ client/Makefile.in 2010-04-06 05:52:26.000000000 +0800
+@@ -30,7 +30,7 @@
+ PROGRAMS_LOCAL=       fanftest adnstest
+ PROGRAMS_ALL= $(PROGRAMS) $(PROGRAMS_LOCAL)
+
+-STATIC_LIB=   $(ADNSDIR)/libadns.a
++STATIC_LIB=   $(ADNSDIR)/libadns.la
+
+ ifeq ($(ENABLE_DYNAMIC),elf)
+ DYNAMIC_DEP=  $(srcdir)/../dynamic/$(SHLIBFILE)
+@@ -60,13 +60,13 @@
+ install:      $(TARG_INSTALL)
+               mkdir -p $(bindir)
+               set -xe; for f in $(TARG_INSTALL); \
+-                      do $(INSTALL_PROGRAM) $$f $(bindir)/$$f; done
++                      do ${LIBTOOL} --mode=install $(INSTALL_PROGRAM) $$f 
$(bindir)/$$f; done
+
+ uninstall:
+               for f in $(TARGETS); do rm -f $(bindir)/$$f; done
+
+ adnshost:     $(ADH_OBJS) $(DYNAMIC_DEP)
+-              $(CC) $(LDFLAGS) $(ADH_OBJS) $(DYNAMIC_LINK) -o $@ $(LDLIBS)
++              $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(ADH_OBJS) 
$(DYNAMIC_LINK) -o $@ $(LDL
IBS)
+
+ adnshost_s:   $(ADH_OBJS) $(STATIC_LIB)
+               $(CC) $(LDFLAGS) $(ADH_OBJS) $(STATIC_LIB) -o $@ $(LDLIBS)
+@@ -76,7 +76,7 @@
+ adnsresfilter.o:      $(ADNSDIR)/tvarith.h
+
+ %:            %.o $(DYNAMIC_DEP)
+-              $(CC) $(LDFLAGS) $< $(DYNAMIC_LINK) -o $@ $(LDLIBS)
++              $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $< $(DYNAMIC_LINK) -o 
$@ $(LDLIBS)
+
+ %_s:          %.o $(STATIC_LIB)
+               $(CC) $(LDFLAGS) $< $(STATIC_LIB) -o $@ $(LDLIBS)



Home | Main Index | Thread Index | Old Index