Hello community,
here is the log from the commit of package golang-packaging for
openSUSE:Factory checked in at 2019-12-02 11:27:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/golang-packaging (Old)
and /work/SRC/openSUSE:Factory/.golang-packaging.new.4691 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "golang-packaging"
Mon Dec 2 11:27:02 2019 rev:25 rq:749021 version:15.0.12
Changes:
--------
--- /work/SRC/openSUSE:Factory/golang-packaging/golang-packaging.changes
2018-06-22 13:15:37.786489228 +0200
+++
/work/SRC/openSUSE:Factory/.golang-packaging.new.4691/golang-packaging.changes
2019-12-02 11:27:32.218665758 +0100
@@ -1,0 +2,12 @@
+Sat Nov 16 05:45:43 UTC 2019 - [email protected]
+
+- Update to version 15.0.12:
+ * Drop ppc64-nopie.patch
+ * golang.sh: integrate ppc64-nopie.patch -buildmode=pie only on ppc64
+ * golang.sh: avoid excessive "rpm --eval..." calls
+ * Install Bazel files in src directory
+ * Replace rpmdev-vercmp by "sort -V" to remove rpmdev-vercmp dependency
+ * Remove s build flag no longer supported in go 1.10 boo#776058
+ * Packaging: improve _service tar_scm declarations add _servicedata
+
+-------------------------------------------------------------------
Old:
----
golang-packaging-15.0.11.tar.xz
ppc64-nopie.patch
New:
----
_servicedata
golang-packaging-15.0.12.tar.xz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ golang-packaging.spec ++++++
--- /var/tmp/diff_new_pack.RWKerp/_old 2019-12-02 11:27:33.310665253 +0100
+++ /var/tmp/diff_new_pack.RWKerp/_new 2019-12-02 11:27:33.314665251 +0100
@@ -1,7 +1,7 @@
#
# spec file for package golang-packaging
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,19 +12,18 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: golang-packaging
-Version: 15.0.11
+Version: 15.0.12
Release: 0
Summary: A toolchain to help packaging golang
License: GPL-3.0-only
Group: Development/Languages/Golang
-Url: https://github.com/openSUSE/%{name}
+URL: https://github.com/openSUSE/%{name}
Source: %{name}-%{version}.tar.xz
-Patch: ppc64-nopie.patch
BuildRequires: rpm
BuildRequires: xz
@@ -37,7 +36,6 @@
%prep
%setup -q
-%patch -p1
%build
++++++ _service ++++++
--- /var/tmp/diff_new_pack.RWKerp/_old 2019-12-02 11:27:33.334665242 +0100
+++ /var/tmp/diff_new_pack.RWKerp/_new 2019-12-02 11:27:33.338665240 +0100
@@ -4,9 +4,10 @@
<param name="scm">git</param>
<param name="filename">golang-packaging</param>
<param name="exclude">.git</param>
- <param name="versionformat">15.0.11</param>
- <param name="revision">v15.0.11</param>
+ <param name="versionformat">@PARENT_TAG@</param>
+ <param name="revision">v15.0.12</param>
<param name="changesgenerate">enable</param>
+ <param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
++++++ _servicedata ++++++
<servicedata>
<service name="tar_scm">
<param
name="url">https://github.com/openSUSE/golang-packaging</param>
<param
name="changesrevision">7898ac7e21212888bd3a2ba014871bb4b48e5c0b</param></service></servicedata>++++++
golang-packaging-15.0.11.tar.xz -> golang-packaging-15.0.12.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/golang-packaging-15.0.11/CHANGELOG
new/golang-packaging-15.0.12/CHANGELOG
--- old/golang-packaging-15.0.11/CHANGELOG 2018-06-11 16:17:13.000000000
+0200
+++ new/golang-packaging-15.0.12/CHANGELOG 2019-11-16 06:19:50.000000000
+0100
@@ -1,3 +1,13 @@
+== update version 15.0.12 ==
+
+ * golang.sh: integrate ppc64-nopie.patch -buildmode=pie only on ppc64
+ * golang.sh: avoid excessive "rpm --eval..." calls
+ * Install Bazel files in src directory
+
+== update version 15.0.11 ==
+
+ * Replace rpmdev-vercmp by "sort -V" to remove rpmdev-vercmp dependency
+
== update version 15.0.10 ==
* Remove s flag for go version >= 1.10
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/golang-packaging-15.0.11/golang.sh
new/golang-packaging-15.0.12/golang.sh
--- old/golang-packaging-15.0.11/golang.sh 2018-06-11 16:17:13.000000000
+0200
+++ new/golang-packaging-15.0.12/golang.sh 2019-11-16 06:19:50.000000000
+0100
@@ -2,6 +2,9 @@
set -e
set -x
+# this is used most
+GO_CONTRIBSRCDIR=$(rpm --eval %go_contribsrcdir)
+
go_version() {
go version | awk '{print $3}' | sed 's/go//'
}
@@ -54,7 +57,7 @@
}
get_source_path() {
- echo $(rpm --eval %go_contribsrcdir)
+ echo $GO_CONTRIBSRCDIR
}
get_tool_path() {
@@ -139,7 +142,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
@@ -179,23 +186,17 @@
}
process_source() {
- echo "This will copy all *.go, *.s and *.h files in $(get_build_path)/src
without resources"
-
- for file in $(find $(get_build_path)/src -type f -iname \*.go); do
- local
destination=${RPM_BUILD_ROOT}$(get_source_path)${file#$(get_build_path)/src/}
-
- echo "Copying ${file} to ${destination}"
- install -D -m0644 ${file} ${destination}
- done
-
- for file in $(find $(get_build_path)/src -type f -iname \*.s); do
- local
destination=${RPM_BUILD_ROOT}$(get_source_path)${file#$(get_build_path)/src/}
-
- echo "Copying ${file} to ${destination}"
- install -D -m0644 ${file} ${destination}
- done
+ echo "This will copy all *.go, *.s, *.h, BUILD, BUILD.bazel and WORKSPACE
files in $(get_build_path)/src without resources"
- for file in $(find $(get_build_path)/src -type f -iname \*.h); do
+ local files=$(find $(get_build_path)/src \
+ -type f \
+ \( -iname "*.go" \
+ -o -iname "*.s" \
+ -o -iname "*.h" \
+ -o -iname "BUILD" \
+ -o -iname "BUILD.bazel" \
+ -o -iname "WORKSPACE" \))
+ for file in ${files}; do
local
destination=${RPM_BUILD_ROOT}$(get_source_path)${file#$(get_build_path)/src/}
echo "Copying ${file} to ${destination}"