File: ftbfs-arm.patch

package info (click to toggle)
golang-github-openshift-imagebuilder 1.2.3%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,396 kB
  • sloc: makefile: 13; sh: 3; ansic: 1
file content (18 lines) | stat: -rw-r--r-- 681 bytes parent folder | download | duplicates (2)
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)