Hello community,

here is the log from the commit of package go1.14 for openSUSE:Factory checked 
in at 2020-06-12 21:36:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/go1.14 (Old)
 and      /work/SRC/openSUSE:Factory/.go1.14.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "go1.14"

Fri Jun 12 21:36:44 2020 rev:6 rq:814163 version:1.14.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/go1.14/go1.14.changes    2020-06-11 
14:43:38.881198277 +0200
+++ /work/SRC/openSUSE:Factory/.go1.14.new.3606/go1.14.changes  2020-06-12 
21:37:14.583743342 +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.14.spec ++++++
--- /var/tmp/diff_new_pack.N5oCB3/_old  2020-06-12 21:37:15.895748166 +0200
+++ /var/tmp/diff_new_pack.N5oCB3/_new  2020-06-12 21:37:15.899748180 +0200
@@ -145,6 +145,8 @@
 # PATCH-FIX-UPSTREAM marguer...@opensuse.org - find /usr/bin/go-5 when 
bootstrapping with gcc5-go
 Patch8:         gcc6-go.patch
 Patch9:         gcc7-go.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}
@@ -226,6 +228,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


Reply via email to