The package rpms/golang-gocloud.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/golang-gocloud.git/commit/?id=ecc....
Change:
-%ifnarch %{ix86} %{arm}
Thanks.
Full change:
============
commit ecca35fea6d0a039debe36c3a74324cd1d389ca2
Author: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
Date: Wed Oct 23 01:44:29 2019 -0400
Backport fix for 32-bit tests.
diff --git a/2678.patch b/2678.patch
new file mode 100644
index 0000000..a2ba1c4
--- /dev/null
+++ b/2678.patch
@@ -0,0 +1,60 @@
+From c78fc1d0d215c3b1e81d3d208ba297405e46ebf4 Mon Sep 17 00:00:00 2001
+From: Robert van Gent <rvangent(a)google.com>
+Date: Tue, 24 Sep 2019 10:28:04 -0700
+Subject: [PATCH 1/2] docstore/tests: cast constants to the desired type
+
+---
+ docstore/driver/compare_test.go | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/docstore/driver/compare_test.go b/docstore/driver/compare_test.go
+index ed0f4d417..8a1bce053 100644
+--- a/docstore/driver/compare_test.go
++++ b/docstore/driver/compare_test.go
+@@ -72,16 +72,16 @@ func TestCompareNumbers(t *testing.T) {
+ {2, 1.1, 1},
+
+ // large numbers
+- {math.MaxInt64, math.MaxInt64, 0},
++ {int64(math.MaxInt64), int64(math.MaxInt64), 0},
+ {uint64(math.MaxUint64), uint64(math.MaxUint64), 0},
+- {math.MaxFloat64, math.MaxFloat64, 0},
+- {math.MaxInt64, math.MaxInt64 - 1, 1},
+- {math.MaxInt64, float64(math.MaxInt64 - 1), -1}, // float is bigger because it gets
rounded up
+- {math.MaxInt64, uint64(math.MaxUint64), -1},
++ {float64(math.MaxFloat64), float64(math.MaxFloat64), 0},
++ {int64(math.MaxInt64), int64(math.MaxInt64 - 1), 1},
++ {int64(math.MaxInt64), float64(math.MaxInt64 - 1), -1}, // float is bigger because it
gets rounded up
++ {int64(math.MaxInt64), uint64(math.MaxUint64), -1},
+
+ // special floats
+- {math.MaxInt64, math.Inf(1), -1},
+- {math.MinInt64, math.Inf(-1), 1},
++ {int64(math.MaxInt64), math.Inf(1), -1},
++ {int64(math.MinInt64), math.Inf(-1), 1},
+ } {
+ check(test.in1, test.in2, test.want)
+ if test.want != 0 {
+
+From 18289c07b9aeeb2b1c7553ea32e570369d26e194 Mon Sep 17 00:00:00 2001
+From: Robert van Gent <rvangent(a)google.com>
+Date: Wed, 16 Oct 2019 19:27:26 -0700
+Subject: [PATCH 2/2] one more fix
+
+---
+ docstore/gcpfirestore/query_test.go | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/docstore/gcpfirestore/query_test.go b/docstore/gcpfirestore/query_test.go
+index 37bdbcb27..c1aa031ea 100644
+--- a/docstore/gcpfirestore/query_test.go
++++ b/docstore/gcpfirestore/query_test.go
+@@ -150,7 +150,7 @@ func TestEvaluateFilter(t *testing.T) {
+ "s": "32",
+ "t": time.Date(2000, 1, 1, 0, 0, 0, 0, time.UTC),
+ "b": true,
+- "mi": math.MaxInt64,
++ "mi": int64(math.MaxInt64),
+ }
+ doc := drivertest.MustDocument(m)
+ for _, test := range []struct {
diff --git a/golang-gocloud.spec b/golang-gocloud.spec
index 75a9d55..a1af693 100644
--- a/golang-gocloud.spec
+++ b/golang-gocloud.spec
@@ -1,8 +1,5 @@
# Generated by go2rpm 1
-#
https://github.com/google/go-cloud/issues/2675
-%ifnarch %{ix86} %{arm}
%bcond_without check
-%endif
%bcond_without bootstrap
#
https://github.com/google/go-cloud
@@ -30,13 +27,15 @@ and databases. Think database/sql for cloud products.}
CONTRIBUTORS README.md
Name: %{goname}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Library and tools for open cloud development in Go
# Upstream license specification: Apache-2.0
License: ASL 2.0
URL: %{gourl}
Source0: %{gosource}
+# Fix 32-bit tests:
https://github.com/google/go-cloud/issues/2675
+Patch0001:
https://github.com/google/go-cloud/pull/2678.patch
BuildRequires:
golang(cloud.google.com/go/firestore/apiv1)
BuildRequires:
golang(cloud.google.com/go/kms/apiv1)
@@ -156,6 +155,7 @@ BuildRequires:
golang(golang.org/x/tools/go/packages/packagestest)
%prep
%goprep
+%patch0001 -p1
find . -name "*.go" -exec sed -i
"s|github.com/Azure/azure-amqp-common-go/v2|github.com/Azure/azure-amqp-common-go|"
"{}" +;
find . -name "*.go" -exec sed -i
"s|github.com/nats-io/nats-server/v2|github.com/nats-io/nats-server|"
"{}" +;
@@ -179,5 +179,8 @@ find . -name "*.go" -exec sed -i
"s|github.com/nats-io/nats-server/v2|github.com
%gopkgfiles
%changelog
+* Wed Oct 23 2019 Elliott Sales de Andrade <quantum.analyst(a)gmail.com> - 0.17.0-2
+- Backport fix for 32-bit tests
+
* Tue Aug 20 18:30:17 CEST 2019 Robert-Andr Mauchin <zebob.m(a)gmail.com> - 0.17.0-1
- Initial package