Hello community,

here is the log from the commit of package udns for openSUSE:Factory checked in 
at 2019-09-30 16:03:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/udns (Old)
 and      /work/SRC/openSUSE:Factory/.udns.new.2352 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "udns"

Mon Sep 30 16:03:11 2019 rev:2 rq:734035 version:0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/udns/udns.changes        2017-09-22 
21:34:47.445248707 +0200
+++ /work/SRC/openSUSE:Factory/.udns.new.2352/udns.changes      2019-09-30 
16:03:31.340558215 +0200
@@ -1,0 +2,7 @@
+Thu Sep 26 11:25:33 UTC 2019 - Stefan BrĂ¼ns <stefan.bru...@rwth-aachen.de>
+
+- Fix initialization problem in dns_add_srch()
+  * Fix-dns_add_srch-initialization-problem.patch
+- Cleanup spec file
+
+-------------------------------------------------------------------

New:
----
  Fix-dns_add_srch-initialization-problem.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ udns.spec ++++++
--- /var/tmp/diff_new_pack.hFA4mC/_old  2019-09-30 16:03:32.172556001 +0200
+++ /var/tmp/diff_new_pack.hFA4mC/_new  2019-09-30 16:03:32.180555979 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package udns
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -20,11 +20,12 @@
 Version:        0.4
 Release:        0
 Summary:        DNS resolver tools
-License:        LGPL-2.1
+License:        LGPL-2.1-or-later
 Group:          Productivity/Networking/DNS/Utilities
-Url:            http://www.corpit.ru/mjt/udns.html
+URL:            http://www.corpit.ru/mjt/udns.html
 Source:         http://www.corpit.ru/mjt/udns/udns-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+# PATCH-FIX-UPSTREAM -- http://www.corpit.ru/pipermail/udns/2018q2/000186.html
+Patch0:         Fix-dns_add_srch-initialization-problem.patch
 
 %description
 UDNS is a stub DNS resolver library with ability to perform both
@@ -52,8 +53,10 @@
 
 %prep
 %setup -q
+%patch0
 
 %build
+# not an autotools configure
 ./configure --enable-ipv6
 make %{?_smp_mflags} shared
 
@@ -69,22 +72,20 @@
 %postun -n libudns0 -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root,-)
-%doc COPYING.LGPL NEWS NOTES TODO
+%doc NEWS NOTES TODO
+%license COPYING.LGPL
 %{_bindir}/dnsget
 %{_bindir}/rblcheck
 %{_bindir}/ex-rdns
-%{_mandir}/man1/dnsget.1%{ext_man}
-%{_mandir}/man1/rblcheck.1%{ext_man}
+%{_mandir}/man1/dnsget.1%{?ext_man}
+%{_mandir}/man1/rblcheck.1%{?ext_man}
 
 %files -n libudns0
-%defattr(-,root,root,-)
 %{_libdir}/libudns.so.0
 
 %files devel
-%defattr(-,root,root,-)
 %{_libdir}/libudns.so
 %{_includedir}/udns.h
-%{_mandir}/man3/udns.3%{ext_man}
+%{_mandir}/man3/udns.3%{?ext_man}
 
 %changelog

++++++ Fix-dns_add_srch-initialization-problem.patch ++++++
Source: http://www.corpit.ru/pipermail/udns/2018q2/000184.html

dns_add_srch() initialization problem

udns seems to insist on twice repeating queries for nonexistent domain
names with my local search path appended, which seems to be due to a
bug in dns_init_resolvconf()?


--- udns_init.c.orig    2018-04-30 07:41:41.533514452 +0300
+++ udns_init.c 2018-04-30 07:41:43.789510882 +0300
@@ -204,7 +204,7 @@
     dns_set_opts(ctx, v);
 
   /* if still no search list, use local domain name */
-  if (has_srch &&
+  if (!has_srch &&
       gethostname(buf, sizeof(buf) - 1) == 0 &&
       (v = strchr(buf, '.')) != NULL &&
       *++v != '\0')

Reply via email to