fix FTBFS on mips
authorDmitry Smirnov <onlyjob@debian.org>
Sun, 14 Jun 2020 20:12:29 +0000 (21:12 +0100)
committerFelix Geyer <fgeyer@debian.org>
Sun, 14 Jun 2020 20:12:29 +0000 (21:12 +0100)
Last-Update: 2018-03-18
Forwarded: not-needed
Bug-Upstream: https://github.com/moby/moby/issues/28058

~~~~
github.com/docker/docker/pkg/system/stat_linux.go:13:7: cannot use s.Rdev (type uint32) as type uint64 in field value
~~~~

Gbp-Pq: Name mips-fix-devnumber.patch

engine/pkg/system/stat_linux.go

index 98c9eb18d18d83496315fc38a845821b26e530e8..8a090a53d9b735868682537c43cc534e0329eefc 100644 (file)
@@ -8,7 +8,7 @@ func fromStatT(s *syscall.Stat_t) (*StatT, error) {
                mode: s.Mode,
                uid:  s.Uid,
                gid:  s.Gid,
-               rdev: s.Rdev,
+               rdev: uint64(s.Rdev),
                mtim: s.Mtim}, nil
 }