Package: release.debian.org Severity: normal User: release.debian.org@packages.debian.org Usertags: unblock Please unblock package golang-github-spf13-viperThe package FTBFS on 32 bit architectures (#860678), detected by Lucas Nussbaum. I've just uploaded a fixed version.
unblock golang-github-spf13-viper/0.0~git20161213.0.5ed0fc3-3 Regards, Tobias
diff -Nru golang-github-spf13-viper-0.0~git20161213.0.5ed0fc3/debian/changelog golang-github-spf13-viper-0.0~git20161213.0.5ed0fc3/debian/changelog
--- golang-github-spf13-viper-0.0~git20161213.0.5ed0fc3/debian/changelog 2017-01-02 10:05:21.000000000 +0100
+++ golang-github-spf13-viper-0.0~git20161213.0.5ed0fc3/debian/changelog 2017-04-26 21:57:34.000000000 +0200
@@ -1,3 +1,10 @@
+golang-github-spf13-viper (0.0~git20161213.0.5ed0fc3-3) unstable; urgency=medium
+
+ * Team upload.
+ * Fix FTBFS on 32 bit architectures. (Closes: #860678)
+
+ -- Dr. Tobias Quathamer <toddy@debian.org> Wed, 26 Apr 2017 21:57:34 +0200
+
golang-github-spf13-viper (0.0~git20161213.0.5ed0fc3-2) unstable; urgency=medium
* Remove double escape backslashes from debian/watch
diff -Nru golang-github-spf13-viper-0.0~git20161213.0.5ed0fc3/debian/patches/0001-Fix-FTBFS-on-32-bit-architectures.patch golang-github-spf13-viper-0.0~git20161213.0.5ed0fc3/debian/patches/0001-Fix-FTBFS-on-32-bit-architectures.patch
--- golang-github-spf13-viper-0.0~git20161213.0.5ed0fc3/debian/patches/0001-Fix-FTBFS-on-32-bit-architectures.patch 1970-01-01 01:00:00.000000000 +0100
+++ golang-github-spf13-viper-0.0~git20161213.0.5ed0fc3/debian/patches/0001-Fix-FTBFS-on-32-bit-architectures.patch 2017-04-26 21:56:38.000000000 +0200
@@ -0,0 +1,51 @@
+From: "Dr. Tobias Quathamer" <toddy@debian.org>
+Date: Wed, 26 Apr 2017 21:56:15 +0200
+Subject: Fix FTBFS on 32 bit architectures.
+
+---
+ viper.go | 4 +++-
+ viper_test.go | 8 --------
+ 2 files changed, 3 insertions(+), 9 deletions(-)
+
+diff --git a/viper.go b/viper.go
+index 2603c78..b176b8e 100644
+--- a/viper.go
++++ b/viper.go
+@@ -605,8 +605,10 @@ func (v *Viper) Get(key string) interface{} {
+ return cast.ToBool(val)
+ case string:
+ return cast.ToString(val)
+- case int64, int32, int16, int8, int:
++ case int32, int16, int8, int:
+ return cast.ToInt(val)
++ case int64:
++ return cast.ToInt64(val)
+ case float64, float32:
+ return cast.ToFloat64(val)
+ case time.Time:
+diff --git a/viper_test.go b/viper_test.go
+index cd7b65c..189b499 100644
+--- a/viper_test.go
++++ b/viper_test.go
+@@ -841,10 +841,6 @@ func TestMergeConfig(t *testing.T) {
+ t.Fatalf("pop != 37890, = %d", pop)
+ }
+
+- if pop := v.GetInt("hello.lagrenum"); pop != 765432101234567 {
+- t.Fatalf("lagrenum != 765432101234567, = %d", pop)
+- }
+-
+ if pop := v.GetInt64("hello.lagrenum"); pop != int64(765432101234567) {
+ t.Fatalf("int64 lagrenum != 765432101234567, = %d", pop)
+ }
+@@ -865,10 +861,6 @@ func TestMergeConfig(t *testing.T) {
+ t.Fatalf("pop != 45000, = %d", pop)
+ }
+
+- if pop := v.GetInt("hello.lagrenum"); pop != 7654321001234567 {
+- t.Fatalf("lagrenum != 7654321001234567, = %d", pop)
+- }
+-
+ if pop := v.GetInt64("hello.lagrenum"); pop != int64(7654321001234567) {
+ t.Fatalf("int64 lagrenum != 7654321001234567, = %d", pop)
+ }
diff -Nru golang-github-spf13-viper-0.0~git20161213.0.5ed0fc3/debian/patches/series golang-github-spf13-viper-0.0~git20161213.0.5ed0fc3/debian/patches/series
--- golang-github-spf13-viper-0.0~git20161213.0.5ed0fc3/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ golang-github-spf13-viper-0.0~git20161213.0.5ed0fc3/debian/patches/series 2017-04-26 21:56:38.000000000 +0200
@@ -0,0 +1 @@
+0001-Fix-FTBFS-on-32-bit-architectures.patch
Attachment:
signature.asc
Description: OpenPGP digital signature