Accepting request 616520 from devel:languages:go

OBS-URL: https://build.opensuse.org/request/show/616520
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-packaging?expand=0&rev=24
This commit is contained in:
Yuchen Lin 2018-06-22 11:15:33 +00:00 committed by Git OBS Bridge
commit fc4e19a0c1
6 changed files with 42 additions and 7 deletions

View File

@ -4,8 +4,8 @@
<param name="scm">git</param>
<param name="filename">golang-packaging</param>
<param name="exclude">.git</param>
<param name="versionformat">15.0.10</param>
<param name="revision">v15.0.10</param>
<param name="versionformat">15.0.11</param>
<param name="revision">v15.0.11</param>
<param name="changesgenerate">enable</param>
</service>
<service name="recompress" mode="disabled">

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:14964961feb384becc2942b43999a09ded930bae620ceb082413c0e1192ee49a
size 16452

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1a16e0ed3a809cd8a8e98d1d4a42cd571c043c4909f5060bdda8b49d882d79b6
size 16444

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Wed Jun 13 11:02:18 UTC 2018 - jmassaguerpla@suse.com
- We don't need to require rpmdev, because we updated to 15.0.11
to remove that requirement. I missed to remove the req from
the spec file.
-------------------------------------------------------------------
Tue Jun 12 18:40:23 UTC 2018 - msuchanek@suse.com
- fix ppc64 (be) build. No pie baking support there.
+ ppc64-nopie.patch
-------------------------------------------------------------------
Mon Jun 11 15:28:42 UTC 2018 - opensuse-packaging@opensuse.org
- Update to version 15.0.11:
* Replace rpmdev-vercmp by "sort -V" to remove rpmdev-vercmp dependency
-------------------------------------------------------------------
Thu May 31 15:24:50 UTC 2018 - opensuse-packaging@opensuse.org

View File

@ -17,18 +17,18 @@
Name: golang-packaging
Version: 15.0.10
Version: 15.0.11
Release: 0
Summary: A toolchain to help packaging golang
License: GPL-3.0-only
Group: Development/Languages/Golang
Url: https://github.com/openSUSE/%{name}
Source: %{name}-%{version}.tar.xz
Patch: ppc64-nopie.patch
BuildRequires: rpm
BuildRequires: xz
Requires: go
Requires: rpmdevtools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
@ -37,6 +37,7 @@ A toolchain to help packaging golang, written in bash.
%prep
%setup -q
%patch -p1
%build

15
ppc64-nopie.patch Normal file
View File

@ -0,0 +1,15 @@
--- golang-packaging-15.0.11/golang.sh~ 2018-06-11 16:17:13.000000000 +0200
+++ golang-packaging-15.0.11/golang.sh 2018-06-12 20:35:41.617659481 +0200
@@ -139,7 +139,11 @@
local last=$(($#-1))
fi
- local build_flags="-v -p 4 -x -buildmode=pie"
+ local build_flags="-v -p 4 -x"
+ case "$(uname -m)" in
+ ppc64) ;;
+ *) build_flags="$build_flags -buildmode=pie" ;;
+ esac
# Add s flag if go is older than 1.10.
# s flag is an openSUSE flag to fix
# https://bugzilla.suse.com/show_bug.cgi?id=776058