Package: golang-github-openshift-imagebuilder / 1.2.3+ds1-2

ftbfs-arm.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From: Reinhard Tartler <siretart@tauware.de>
Description: Fix FTBFS on arm platforms
Forwarded: https://github.com/openshift/imagebuilder/issues/160
Bug-Debian: http://bugs.debian.org/959538

diff --git a/dispatchers_test.go b/dispatchers_test.go
index dc46c96..718a9a4 100644
--- a/dispatchers_test.go
+++ b/dispatchers_test.go
@@ -23,7 +23,7 @@ func TestDispatchArgDefaultBuiltins(t *testing.T) {
 	localspec := platforms.DefaultSpec()
 	expectedArgs := []string{
 		"BUILDARCH=" + localspec.Architecture,
-		"TARGETPLATFORM=" + localspec.OS + "/" + localspec.Architecture,
+		"TARGETPLATFORM=" + platforms.DefaultString(),
 	}
 	got := mybuilder.Arguments()
 	sort.Strings(got)