From b264d424ef831e60509df1c1008b7d386dfc1bcf3b83be69be6a4da271ae5f1c Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Wed, 7 Aug 2019 13:53:08 +0000 Subject: [PATCH 1/2] Accepting request 720441 from home:marxin:static Use FAT LTO objects in order to provide proper static library. OBS-URL: https://build.opensuse.org/request/show/720441 OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=198 --- dhcp.changes | 5 +++++ dhcp.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/dhcp.changes b/dhcp.changes index 32c6485..11e1ac5 100644 --- a/dhcp.changes +++ b/dhcp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 2 06:58:43 UTC 2019 - Martin Liška + +- Use FAT LTO objects in order to provide proper static library. + ------------------------------------------------------------------- Thu Jul 11 18:13:36 UTC 2019 - Antoine Belvire diff --git a/dhcp.spec b/dhcp.spec index 230062d..7106833 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -212,6 +212,7 @@ popd ## %build +%global _lto_cflags %{_lto_cflags} -ffat-lto-objects CFLAGS="%{optflags} -D_GNU_SOURCE -W -Wall -Wno-unused" %ifarch ppc ppc64 s390x # bugs 134590, 171532 From 8ac6ae2920289ee30b1f88cc35f9f6d59000667c602dcf139573477296219990 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Tue, 27 Aug 2019 12:02:07 +0000 Subject: [PATCH 2/2] Accepting request 722585 from home:dirkmueller:branches:network:dhcp - dhclient-script: replace host(1) with getent, which is more lightweight (part of glibc and does not pull in bind-utils) OBS-URL: https://build.opensuse.org/request/show/722585 OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=199 --- dhclient-script | 4 ++-- dhcp.changes | 6 ++++++ dhcp.spec | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dhclient-script b/dhclient-script index 995b00b..c8792a8 100644 --- a/dhclient-script +++ b/dhclient-script @@ -312,8 +312,8 @@ set_hostname() if [ "x${new_host_name}" != "x" ]; then hostname "${new_host_name}" else - if [ -x /usr/bin/host ] ; then - if out=`host -W 2 "$new_ip_address" 2>/dev/null` ; then + if [ -x /usr/bin/getent ] ; then + if out=`timeout 2s /usr/bin/getent hosts "$new_ip_address" 2>/dev/null` ; then _hostname="`echo "$out" | sed 's:^.* ::; s:\..*::; s:.*[)]::'`" [[ ${_hostname} =~ ${rx_host} ]] || unset _hostname if [ "x${_hostname}" != "x" -a \ diff --git a/dhcp.changes b/dhcp.changes index 11e1ac5..b5e7476 100644 --- a/dhcp.changes +++ b/dhcp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Aug 8 12:19:53 UTC 2019 - Dirk Mueller + +- dhclient-script: replace host(1) with getent, which is more + lightweight (part of glibc and does not pull in bind-utils) + ------------------------------------------------------------------- Fri Aug 2 06:58:43 UTC 2019 - Martin Liška diff --git a/dhcp.spec b/dhcp.spec index 7106833..fa403bc 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -111,7 +111,7 @@ Requires(pre): group(nogroup) %package client Summary: ISC DHCP Client Group: Productivity/Networking/Boot/Clients -Requires: %{_bindir}/host +Requires: %{_bindir}/getent Requires: %{_bindir}/touch Requires: dhcp = %{version} Requires: iproute2