Hello community, here is the log from the commit of package go1.13 for openSUSE:Factory checked in at 2020-06-12 21:36:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/go1.13 (Old) and /work/SRC/openSUSE:Factory/.go1.13.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "go1.13" Fri Jun 12 21:36:36 2020 rev:10 rq:814162 version:1.13.11 Changes: -------- --- /work/SRC/openSUSE:Factory/go1.13/go1.13.changes 2020-06-11 14:44:48.301400510 +0200 +++ /work/SRC/openSUSE:Factory/.go1.13.new.3606/go1.13.changes 2020-06-12 21:37:08.575721252 +0200 @@ -1,0 +2,5 @@ +Fri Jun 12 12:34:48 UTC 2020 - Richard Brown <rbr...@suse.com> + +- Add Prefer-etc-hosts-over-DNS.patch to ensure /etc/hosts is used if /etc/nsswitch.conf is not present boo#1172868 gh#golang/go#35305 + +------------------------------------------------------------------- New: ---- Prefer-etc-hosts-over-DNS.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ go1.13.spec ++++++ --- /var/tmp/diff_new_pack.sitCoY/_old 2020-06-12 21:37:11.167730782 +0200 +++ /var/tmp/diff_new_pack.sitCoY/_new 2020-06-12 21:37:11.171730797 +0200 @@ -138,6 +138,8 @@ Patch8: gcc6-go.patch Patch9: gcc7-go.patch Patch11: gcc9-rsp-clobber.patch +# PATCH-FIX-UPSTREAM prefer /etc/hosts over DNS when /etc/nsswitch.conf not present boo#1172868 gh#golang/go#35305 +Patch12: Prefer-etc-hosts-over-DNS.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build # boostrap %if %{with gccgo} @@ -220,6 +222,7 @@ # go %setup -q -n go %patch5 -p1 +%patch12 -p1 %if %{with gccgo} %if 0%{?gcc_go_version} == 6 %patch8 -p1 ++++++ Prefer-etc-hosts-over-DNS.patch ++++++ >From c738f669adda7f285f2974fb03f30e9ff78e99e5 Mon Sep 17 00:00:00 2001 From: Richard Brown <rbrown...@opensuse.org> Date: Fri, 12 Jun 2020 14:21:56 +0200 Subject: [PATCH 1/1] Prefer /etc/hosts over DNS when files not present golang/go#35305 --- src/net/conf.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/net/conf.go b/src/net/conf.go index 971b1a399a..f8f9aa70e4 100644 --- a/src/net/conf.go +++ b/src/net/conf.go @@ -203,9 +203,8 @@ func (c *conf) hostLookupOrder(r *Resolver, hostname string) (ret hostLookupOrde return fallbackOrder } if c.goos == "linux" { - // glibc says the default is "dns [!UNAVAIL=return] files" - // https://www.gnu.org/software/libc/manual/html_node/Notes-on-NSS-Configuration-File.html. - return hostLookupDNSFiles + // Workaround issues identified in https://github.com/golang/go/issues/35305 + return hostLookupFilesDNS } return hostLookupFilesDNS } -- 2.26.2