File: ftbfs-arm.patch

package info (click to toggle)
golang-github-openshift-imagebuilder 1.2.15%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,736 kB
  • sloc: makefile: 18; sh: 3; ansic: 1
file content (23 lines) | stat: -rw-r--r-- 794 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Reinhard Tartler <siretart@tauware.de>
Date: Sat, 6 Jul 2024 20:02:08 -0400
Subject: Fix FTBFS on arm platforms

Forwarded: https://github.com/openshift/imagebuilder/issues/160
Bug-Debian: http://bugs.debian.org/959538
---
 dispatchers_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dispatchers_test.go b/dispatchers_test.go
index dc4c8f1..214b364 100644
--- a/dispatchers_test.go
+++ b/dispatchers_test.go
@@ -26,7 +26,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)