From f6ca88e30cdea9e16aab9ba6028948ea148a7b97439080887f33525af3652748 Mon Sep 17 00:00:00 2001 From: Jordi Massaguer Date: Fri, 11 Nov 2016 09:09:52 +0000 Subject: [PATCH] Accepting request 439834 from home:cyphar:branches:devel:languages:go Finally fix this issue. - Disable stripping to fix __.PKGDEF issues. bsc#964546 There is an upstream issue about it as well, with a patch which will hopefully make Go more resilient to this issue. OBS-URL: https://build.opensuse.org/request/show/439834 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go?expand=0&rev=273 --- go.changes | 16 ++++++++++++---- go.spec | 11 +++++++++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/go.changes b/go.changes index 1c0b977..6b2c16e 100644 --- a/go.changes +++ b/go.changes @@ -1,7 +1,15 @@ +------------------------------------------------------------------- +Fri Nov 11 04:22:29 UTC 2016 - asarai@suse.com + +- Disable stripping to fix __.PKGDEF issues. bsc#964546 + There is an upstream issue about it as well, with a patch which will + hopefully make Go more resilient to this issue. + https://github.com/golang/go/issues/17890 + ------------------------------------------------------------------- Thu Nov 3 16:17:51 UTC 2016 - jmassaguerpla@suse.com -- Make sure we build go using gcc-go in Factory cause there is no go1.4 +- Make sure we build go using gcc-go in Factory cause there is no go1.4 ------------------------------------------------------------------- Mon Sep 26 14:29:33 UTC 2016 - jmassaguerpla@suse.com @@ -17,11 +25,11 @@ Mon Sep 26 14:29:33 UTC 2016 - jmassaguerpla@suse.com promoted from the x/net subrepository and now used in the standard library; and adds support in the testing package for creating hierarchies of tests and benchmarks. The release also finalizes - the vendoring support started in Go 1.5, making it a standard feature. + the vendoring support started in Go 1.5, making it a standard feature. more at: https://golang.org/doc/go1.7 - Review patches: + Review patches: - armv6l.patch - fix_certificates_lookup.patch, - go-1.5-install-dont-reinstall-stdlibs.patch @@ -48,7 +56,7 @@ Wed Sep 21 15:35:51 UTC 2016 - jmassaguerpla@suse.com ------------------------------------------------------------------- Tue Aug 30 14:38:11 UTC 2016 - jmassaguerpla@suse.com -- build ppc64le with gcc-go +- build ppc64le with gcc-go ------------------------------------------------------------------- Sun Aug 14 03:32:46 UTC 2016 - i@marguerite.su diff --git a/go.spec b/go.spec index e976c8c..ad33723 100644 --- a/go.spec +++ b/go.spec @@ -14,8 +14,15 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +# nodebuginfo +# strip will cause Go's .a archives to become invalid because strip appears to +# reassemble the archive incorrectly. This is a known issue upstream +# (https://github.com/golang/go/issues/17890), but we have to deal with it in +# the meantime. +%define __arch_install_post export NO_BRP_STRIP_DEBUG=true + # By default use go and not gccgo %define with_gccgo 0 @@ -94,7 +101,7 @@ Patch9: gcc6-go.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build # boostrap %if %{with_gccgo} -%if 0%{?suse_version} > 1320 +%if 0%{?suse_version} > 1320 BuildRequires: gcc6-go %else BuildRequires: gcc5-go @@ -158,7 +165,7 @@ Go examples and documentation. %endif %patch7 -p1 %if %{with_gccgo} -%if 0%{?suse_version} > 1320 +%if 0%{?suse_version} > 1320 %patch9 -p1 %else %patch8 -p1