Source: golang-github-moby-sys
Version: 0.0~git20201113.5a29239-1
Severity: normal
Tags: patch

Rebuilding golang-github-moby-sys with an older golang-golang-x-sys-dev
fails:

golang.org/x/sys/unix
path/filepath
github.com/moby/sys/mountinfo
# github.com/moby/sys/mountinfo
src/github.com/moby/sys/mountinfo/mounted_linux.go:15:16: undefined: 
unix.Openat2
src/github.com/moby/sys/mountinfo/mounted_linux.go:15:50: undefined: 
unix.OpenHow
src/github.com/moby/sys/mountinfo/mounted_linux.go:24:13: undefined: 
unix.Openat2
src/github.com/moby/sys/mountinfo/mounted_linux.go:24:40: undefined: 
unix.OpenHow
github.com/moby/sys/symlink
dh_auto_build: error: cd _build && go install -trimpath -v -p 1 
github.com/moby/sys/mount github.com/moby/sys/mountinfo 
github.com/moby/sys/symlink returned exit code 2
make: *** [debian/rules:6: binary] Error 2


It looks like the first upload w/ Openat2 support was:
  0.0~git20201101.da20708-1

So could we add a versioned build-dep?

--- debian/control.orig 2022-02-28 22:06:00.957994723 +0000
+++ debian/control      2022-02-28 22:00:28.630593702 +0000
@@ -7,7 +7,7 @@
 Build-Depends: debhelper-compat (= 12),
                dh-golang,
                golang-any,
-               golang-golang-x-sys-dev
+               golang-golang-x-sys-dev (>> 0.0~git20201101.da20708-1~)
 Standards-Version: 4.5.0
 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-moby-sys
 Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-moby-sys.git


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.17.0-rc4-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to