From 8090a18b1939ce9d4ef0e541fa294fa7d41f2a10e50d7d37db6c9547f987e6cf Mon Sep 17 00:00:00 2001 From: Andreas Stieger Date: Wed, 21 Feb 2018 09:44:50 +0000 Subject: [PATCH] Accepting request 577888 from home:avindra - Update to 3.20 * debian-specific change only - includes 3.19 * Fix lintian warnings. - includes 3.18 * Make sure memory is initialized to zero before attempting to read hostname. - includes 3.17 * Use _GNU_SOURCE feature test macro, instead of glibc internal __USE_GNU. * Use getdomainname instead of yp_get_default_domain because it is more widely available and avoids the -lnsl dependency. * localnisdomain is kept, even though it should be the same as localdomain, so the behaviour is not changed in case of an error. * Replace 'dh-clean -k' with 'dh-prep' - cleanup with spec-cleaner OBS-URL: https://build.opensuse.org/request/show/577888 OBS-URL: https://build.opensuse.org/package/show/network:utilities/hostname?expand=0&rev=10 --- hostname-3.20.tar.gz | 3 +++ hostname.changes | 20 ++++++++++++++++++++ hostname.spec | 13 +++++-------- hostname_3.16.tar.gz | 3 --- 4 files changed, 28 insertions(+), 11 deletions(-) create mode 100644 hostname-3.20.tar.gz delete mode 100644 hostname_3.16.tar.gz diff --git a/hostname-3.20.tar.gz b/hostname-3.20.tar.gz new file mode 100644 index 0000000..58672af --- /dev/null +++ b/hostname-3.20.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7ed56f8c532573ff34d9bd6e7a10d04fbbb2c7fae187898805868e5fed24ab0 +size 13336 diff --git a/hostname.changes b/hostname.changes index 2b1d5f6..0072497 100644 --- a/hostname.changes +++ b/hostname.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Sun Feb 18 21:23:47 UTC 2018 - avindra@opensuse.org + +- Update to 3.20 + * debian-specific change only +- includes 3.19 + * Fix lintian warnings. +- includes 3.18 + * Make sure memory is initialized to zero before attempting to + read hostname. +- includes 3.17 + * Use _GNU_SOURCE feature test macro, instead of glibc internal + __USE_GNU. + * Use getdomainname instead of yp_get_default_domain because it + is more widely available and avoids the -lnsl dependency. + * localnisdomain is kept, even though it should be the same as + localdomain, so the behaviour is not changed in case of an error. + * Replace 'dh-clean -k' with 'dh-prep' +- cleanup with spec-cleaner + ------------------------------------------------------------------- Tue Aug 15 21:55:30 CEST 2017 - kukuk@suse.de diff --git a/hostname.spec b/hostname.spec index 3ac9d13..fb2dbfa 100644 --- a/hostname.spec +++ b/hostname.spec @@ -1,7 +1,7 @@ # # spec file for package hostname # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -17,27 +17,25 @@ Name: hostname -Version: 3.16 +Version: 3.20 Release: 0 Summary: Utility to Set/Show the Host Name or Domain Name License: GPL-2.0+ Group: Productivity/Networking/Other Url: https://tracker.debian.org/pkg/hostname -Source: http://http.debian.net/debian/pool/main/h/%{name}/%{name}_%{version}.tar.gz +Source: http://http.debian.net/debian/pool/main/h/%{name}/%{name}_%{version}.tar.gz#/%{name}-%{version}.tar.gz # net-tools requires hostname, but we know we do not rely on ourselves to build #!BuildIgnore: hostname -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: libnsl-devel %description This package provides commands which can be used to display the system's DNS name, and to display or set its hostname or NIS domain name. %prep -%setup -q +%setup -q -n %{name} %build -make %{?_smp_mflags} CFLAGS="%{optflags}" +make %{?_smp_mflags} CFLAGS="%{optflags} -D_GNU_SOURCE" %install install -D -p -m 755 %{name} %{buildroot}%{_bindir}/%{name} @@ -51,7 +49,6 @@ for prog in dnsdomainname domainname ypdomainname nisdomainname; do done %files -%defattr(-,root,root) %doc COPYRIGHT debian/changelog /bin/%{name} /bin/domainname diff --git a/hostname_3.16.tar.gz b/hostname_3.16.tar.gz deleted file mode 100644 index 0210af7..0000000 --- a/hostname_3.16.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:40c6dc0b4fb36ffefe92e9572f679c377f4486ed4010302732175e743c9e269b -size 13225