Accepting request 293719 from home:MargueriteSu:branches:devel:languages:go
OBS-URL: https://build.opensuse.org/request/show/293719 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go?expand=0&rev=212
This commit is contained in:
parent
1b64742140
commit
6381ba7c33
11
go.changes
11
go.changes
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 30 15:18:44 UTC 2015 - i@marguerite.su
|
||||
|
||||
- disable debuginfo/debug package creation on all golang packages
|
||||
* .a files in golang doesn't contain debuginfo right now,
|
||||
so extract a debug package will cause
|
||||
"Failed to write file: invalid section alignment"
|
||||
and we don't need to bother stripping them.
|
||||
* we can't depend on good luck for all golang packages, hoping
|
||||
they'll pass the build and not randomly fail.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 20 12:43:46 UTC 2015 - i@marguerite.su
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#
|
||||
# Copyright: (c) 2011 Sascha Peilicke <saschpe@gmx.de>
|
||||
# Copyright: (c) 2012 Graham Anderson <graham@andtech.eu>
|
||||
# Copyright: (c) 2013 SUSE Linux Products GmbH
|
||||
# Copyright: (c) 2015 SUSE Linux GmbH
|
||||
#
|
||||
|
||||
%go_ver %(LC_ALL=C rpm -q --qf '%%{epoch}:%%{version}\\n' go | sed -e 's/(none)://' -e 's/ 0:/ /' | grep -v "is not")
|
||||
@ -36,6 +36,12 @@ Recommends: %{name}-doc \
|
||||
# We need a $GOPATH: go help gopath
|
||||
# We need a valid importpath: go help packages
|
||||
%goprep() \
|
||||
# *.a files in golang doesn't contain debuginfo right now,
|
||||
# so extract a debug package will cause
|
||||
# "Failed to write file: invalid section alignment"
|
||||
# and we don't need to bother stripping them.
|
||||
%global debug_package %{nil} \
|
||||
%global __strip /bin/true \
|
||||
export GOPATH=%{_builddir}/go \
|
||||
if [ %# -eq 0 ]; then \
|
||||
echo "goprep: please specify a valid importpath, see: go help packages" \
|
||||
|
Loading…
Reference in New Issue
Block a user