Hello community,

here is the log from the commit of package hostname for openSUSE:Factory 
checked in at 2020-09-14 12:00:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hostname (Old)
 and      /work/SRC/openSUSE:Factory/.hostname.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hostname"

Mon Sep 14 12:00:10 2020 rev:10 rq:832928 version:3.23

Changes:
--------
--- /work/SRC/openSUSE:Factory/hostname/hostname.changes        2020-05-19 
15:25:45.476854407 +0200
+++ /work/SRC/openSUSE:Factory/.hostname.new.4249/hostname.changes      
2020-09-14 12:00:20.731441925 +0200
@@ -1,0 +2,9 @@
+Wed Aug 26 07:43:53 UTC 2020 - Dirk Mueller <dmuel...@suse.com>
+
+- update to 3.23:
+ * Increase buffer size for all FQDNs to NI_MAXHOST as suggested by manpage.
+   (Closes: #942311)
+ * Use the same size for getdomainname().
+ * Bumped Standards-Version, no changes needed.
+
+-------------------------------------------------------------------

Old:
----
  hostname-3.21.tar.gz

New:
----
  hostname-3.23.tar.gz

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

Other differences:
------------------
++++++ hostname.spec ++++++
--- /var/tmp/diff_new_pack.AxA2Vi/_old  2020-09-14 12:00:23.571444844 +0200
+++ /var/tmp/diff_new_pack.AxA2Vi/_new  2020-09-14 12:00:23.571444844 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package hostname
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,12 +17,12 @@
 
 
 Name:           hostname
-Version:        3.21
+Version:        3.23
 Release:        0
 Summary:        Utility to Set/Show the Host Name or Domain Name
 License:        GPL-2.0-or-later
 Group:          Productivity/Networking/Other
-Url:            https://tracker.debian.org/pkg/hostname
+URL:            https://tracker.debian.org/pkg/hostname
 Source0:        
http://http.debian.net/debian/pool/main/h/%{name}/%{name}_%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Source1:        nis-domainname
 Source2:        nis-domainname.service.in

++++++ hostname-3.21.tar.gz -> hostname-3.23.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hostname/debian/changelog 
new/hostname/debian/changelog
--- old/hostname/debian/changelog       2018-09-27 10:45:17.000000000 +0200
+++ new/hostname/debian/changelog       2019-11-07 12:31:36.000000000 +0100
@@ -1,3 +1,21 @@
+hostname (3.23) unstable; urgency=medium
+
+  * Increase buffer size for all FQDNs to NI_MAXHOST as suggested by manpage.
+    (Closes: #942311)
+  * Use the same size for getdomainname().
+  * Bumped Standards-Version, no changes needed.
+  * Removed debian/compat file as suggested by lintian.
+
+ -- Michael Meskes <mes...@debian.org>  Thu, 07 Nov 2019 12:31:36 +0100
+
+hostname (3.22) unstable; urgency=medium
+
+  * Made build process robust against binNMUs. (Closes: #935277)
+  * Bumped Standards-Version, no changes needed.
+  * Bumped debhelper version, no changes needed.
+
+ -- Michael Meskes <mes...@debian.org>  Sat, 24 Aug 2019 19:05:40 +0200
+
 hostname (3.21) unstable; urgency=medium
 
   * Minor fixes to the manpage.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hostname/debian/compat new/hostname/debian/compat
--- old/hostname/debian/compat  2018-01-30 11:28:44.000000000 +0100
+++ new/hostname/debian/compat  1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-11
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hostname/debian/control new/hostname/debian/control
--- old/hostname/debian/control 2018-09-27 10:45:17.000000000 +0200
+++ new/hostname/debian/control 2019-11-07 12:31:36.000000000 +0100
@@ -2,8 +2,8 @@
 Section: admin
 Priority: required
 Maintainer: Michael Meskes <mes...@debian.org>
-Standards-Version: 4.2.1.1
-Build-Depends: debhelper (>= 11)
+Standards-Version: 4.4.1
+Build-Depends: debhelper-compat (= 12)
 
 Package: hostname
 Architecture: any
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hostname/debian/rules new/hostname/debian/rules
--- old/hostname/debian/rules   2018-01-30 11:36:46.000000000 +0100
+++ new/hostname/debian/rules   2019-08-24 19:03:54.000000000 +0200
@@ -5,6 +5,7 @@
 
 include /usr/share/dpkg/pkg-info.mk
 PRGVERSION := $(shell awk '/define VERSION/ { print 
substr($$3,2,length($$3)-2)}' hostname.c)
+MYVERSION := $(shell echo '$(DEB_VERSION)' | sed -e 's/\+.*//')
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 CFLAGS = `dpkg-buildflags --get CFLAGS`
@@ -28,7 +29,7 @@
        dh_testdir
 
        # Building package
-       [ "$(DEB_VERSION)" = "$(PRGVERSION)" ] || exit 1
+       [ "$(MYVERSION)" = "$(PRGVERSION)" ] || exit 1
        CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" $(MAKE) 
$(CROSS)
 
        touch build-stamp
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hostname/hostname.c new/hostname/hostname.c
--- old/hostname/hostname.c     2018-09-27 10:45:03.000000000 +0200
+++ new/hostname/hostname.c     2019-11-07 12:31:36.000000000 +0100
@@ -43,7 +43,7 @@
 #include <ctype.h>
 #include <err.h>
 
-#define VERSION "3.21"
+#define VERSION "3.23"
 
 enum type_t { DEFAULT, DNS, FQDN, SHORT, ALIAS, IP, NIS, NIS_DEF, ALL_FQDNS, 
ALL_IPS };
 
@@ -56,8 +56,9 @@
 char *
 localnisdomain()
 {
-       /* The historical NIS limit is 1024, the limit on Linux is 64.  */
-       static char buf[1025];
+       /* The historical NIS limit is 1024, the limit on Linux is 64. We go
+        * with the limit suggested for getnameinfo(), which should be 1025. */
+       static char buf[NI_MAXHOST];
        int myerror = 0;
 
        myerror = getdomainname(buf, sizeof buf);
@@ -276,7 +277,7 @@
                        break;
                case ALL_IPS:
                case ALL_FQDNS: {
-                       char buf[255];
+                       char buf[NI_MAXHOST];
                        int flags, ret, family, addrlen;
 
                        /* What kind of information do we want from 
getnameinfo()? */


Reply via email to