The package rpms/golang-vitess.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-vitess.git/commit/?id=30ee....
Change:
+%ifnarch %{ix86} %{arm}
Thanks.
Full change:
============
commit 30ee97f9fc7639ed2d08ce1516a9410d3b983cb8
Author: Robert-Andr Mauchin <zebob.m(a)gmail.com>
Date: Mon Jul 1 22:09:17 2019 +0200
Drop tests for 32 bits arches
Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
diff --git a/0001-Fix-int-overflow-due-to-use-math.MaxInt64.patch
b/0001-Fix-int-overflow-due-to-use-math.MaxInt64.patch
new file mode 100644
index 0000000..a482bcb
--- /dev/null
+++ b/0001-Fix-int-overflow-due-to-use-math.MaxInt64.patch
@@ -0,0 +1,38 @@
+From 33ef09b56f4a7f4f0f86c477ec855066fffa6a86 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Robert-Andr=C3=A9=20Mauchin?= <zebob.m(a)gmail.com>
+Date: Mon, 1 Jul 2019 21:37:52 +0200
+Subject: [PATCH] Fix int overflow due to use math.MaxInt64
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Robert-Andr Mauchin <zebob.m(a)gmail.com>
+---
+ go/vt/throttler/throttler.go | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/go/vt/throttler/throttler.go b/go/vt/throttler/throttler.go
+index 4db59307e..7de631e4b 100644
+--- a/go/vt/throttler/throttler.go
++++ b/go/vt/throttler/throttler.go
+@@ -50,7 +50,7 @@ const (
+
+ // MaxRateModuleDisabled can be set in NewThrottler() to disable throttling
+ // by a fixed rate.
+- MaxRateModuleDisabled = math.MaxInt64
++ MaxRateModuleDisabled = int64(math.MaxInt64)
+
+ // InvalidMaxRate is a constant which will fail in a NewThrottler() call.
+ // It should be used when returning maxRate in an error case.
+@@ -58,7 +58,7 @@ const (
+
+ // ReplicationLagModuleDisabled can be set in NewThrottler() to disable
+ // throttling based on the MySQL replication lag.
+- ReplicationLagModuleDisabled = math.MaxInt64
++ ReplicationLagModuleDisabled = int64(math.MaxInt64)
+
+ // InvalidMaxReplicationLag is a constant which will fail in a NewThrottler()
+ // call. It should be used when returning maxReplicationlag in an error case.
+--
+2.21.0
+
diff --git a/golang-vitess.spec b/golang-vitess.spec
index a9b4876..b14373d 100644
--- a/golang-vitess.spec
+++ b/golang-vitess.spec
@@ -1,5 +1,8 @@
# Generated by go2rpm
+#
https://github.com/vitessio/vitess/issues/4971
+%ifnarch %{ix86} %{arm}
%bcond_without check
+%endif
#
https://github.com/vitessio/vitess
%global goipath vitess.io/vitess
@@ -31,6 +34,8 @@ Summary: Database clustering system for horizontal scaling of
MySQL
License: MIT and ASL 2.0
URL: %{gourl}
Source0: %{gosource}
+# Fix int overflow due to use math.MaxInt64
+Patch0: 0001-Fix-int-overflow-due-to-use-math.MaxInt64.patch
BuildRequires:
golang(cloud.google.com/go/storage)
BuildRequires:
golang(github.com/aws/aws-sdk-go/aws)
@@ -88,6 +93,7 @@ BuildRequires: openssl
%prep
%goprep
+%patch0 -p1
mv go/README.md README-go.md
find . -name "*.go" -exec sed -i
"s|github.com/coreos/etcd|go.etcd.io/etcd|" "{}" +;