File: engine-ftbfs-mips.patch

package info (click to toggle)
docker.io 27.5.1%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 67,368 kB
  • sloc: sh: 5,847; makefile: 1,011; ansic: 664; python: 162; asm: 133
file content (26 lines) | stat: -rw-r--r-- 1,039 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
24
25
26
From: Tianon Gravi <tianon@debian.org>
Description: Fix FTBFS on mips
Bug-Upstream: https://github.com/moby/buildkit/issues/5129

Index: docker.io/buildkit/snapshot/diffapply_linux.go
===================================================================
--- docker.io.orig/buildkit/snapshot/diffapply_linux.go
+++ docker.io/buildkit/snapshot/diffapply_linux.go
@@ -125,7 +125,7 @@ func statInode(stat *syscall.Stat_t) ino
 	}
 	return inode{
 		ino: stat.Ino,
-		dev: stat.Dev,
+		dev: uint64(stat.Dev), // TODO figure out the "correct" solution for mips64le (where "stat.Dev" is a uint32)
 	}
 }
 
@@ -294,7 +294,7 @@ func (a *applier) applyDelete(ca *change
 			if ca.srcStat == nil {
 				ca.srcStat = &syscall.Stat_t{
 					Mode: syscall.S_IFCHR,
-					Rdev: unix.Mkdev(0, 0),
+					Rdev: 0, // TODO figure out the "correct" solution for mips64le (where "stat.Dev" is a uint32, but "unix.Mkdev" always returns uint64...); https://cs.opensource.google/go/x/sys/+/refs/tags/v0.10.0:unix/dev_linux.go;l=36
 				}
 				ca.srcPath = ""
 			}