[pkg-go] Bug#1084289: libpod: FTBFS: cannot find package "github.com/shirou/gopsutil/v3/mem"
Santiago Vila
sanvila at debian.org
Mon Oct 7 09:32:58 BST 2024
Package: src:libpod
Version: 5.2.2+ds1-2
Severity: serious
Tags: ftbfs
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules build
dh build --buildsystem=golang --with=golang,bash-completion --builddirectory=_output
dh_update_autotools_config -O--buildsystem=golang -O--builddirectory=_output
dh_autoreconf -O--buildsystem=golang -O--builddirectory=_output
dh_auto_configure -O--buildsystem=golang -O--builddirectory=_output
Can't stat utils/testdata: No such file or directory
at /usr/share/perl5/Debian/Debhelper/Buildsystem/golang.pm line 579.
debian/rules execute_after_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# install extra source
install -Dv -t _output/src/github.com/containers/podman/vendor/k8s.io/kubernetes/third_party/forked/golang/expansion debian/expand.go
install: creating directory '_output/src/github.com/containers/podman/vendor'
install: creating directory '_output/src/github.com/containers/podman/vendor/k8s.io'
install: creating directory '_output/src/github.com/containers/podman/vendor/k8s.io/kubernetes'
install: creating directory '_output/src/github.com/containers/podman/vendor/k8s.io/kubernetes/third_party'
install: creating directory '_output/src/github.com/containers/podman/vendor/k8s.io/kubernetes/third_party/forked'
install: creating directory '_output/src/github.com/containers/podman/vendor/k8s.io/kubernetes/third_party/forked/golang'
install: creating directory '_output/src/github.com/containers/podman/vendor/k8s.io/kubernetes/third_party/forked/golang/expansion'
'debian/expand.go' -> '_output/src/github.com/containers/podman/vendor/k8s.io/kubernetes/third_party/forked/golang/expansion/expand.go'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make docs docker-docs GOMD2MAN=/usr/bin/go-md2man
make[2]: Entering directory '/<<PKGBUILDDIR>>'
hack/markdown-preprocess
if [ ! -x "/usr/bin/go-md2man" ]; then \
/usr/bin/make -C test/tools build/go-md2man GOOS=linux GOARCH=amd64; \
fi
mkdir -p docs/build/man
troff:<standard input>:292: warning [p 5, 5.2i]: cannot adjust line
troff:<standard input>:310: warning [p 5, 8.3i]: cannot adjust line
troff:<standard input>:363: warning [p 6, 5.2i]: cannot adjust line
troff:<standard input>:377: warning [p 6, 7.7i]: cannot adjust line
troff:<standard input>:395: warning [p 6, 10.8i]: cannot adjust line
troff:<standard input>:868: warning [p 13, 7.7i]: cannot adjust line
troff:<standard input>:874: warning [p 13, 8.8i]: cannot break line
troff:<standard input>:1059: warning [p 16, 8.5i]: cannot adjust line
troff:<standard input>:1065: warning [p 16, 10.0i]: cannot adjust line
troff:<standard input>:1071: warning [p 16, 11.5i]: cannot adjust line
troff:<standard input>:1077: warning [p 17, 0.0i]: cannot adjust line
troff:<standard input>:1090: warning [p 17, 2.0i]: cannot adjust line
troff:<standard input>:1130: warning [p 17, 9.5i]: cannot adjust line
troff:<standard input>:1699: warning [p 25, 0.3i]: cannot adjust line
troff:<standard input>:38: warning [p 1, 6.7i]: cannot adjust line
troff:<standard input>:59: warning [p 1, 10.3i]: cannot adjust line
troff:<standard input>:142: warning [p 3, 2.7i]: cannot adjust line
troff:<standard input>:170: warning [p 3, 7.8i]: cannot adjust line
troff:<standard input>:191: warning [p 4, 0.2i]: cannot adjust line
troff:<standard input>:210: warning [p 4, 4.0i]: cannot adjust line
troff:<standard input>:222: warning [p 4, 6.3i]: cannot adjust line
<standard input>:21: warning: table wider than line length minus indentation
troff:<standard input>:212: warning [p 4, 2.2i]: cannot adjust line
troff:<standard input>:230: warning [p 4, 5.3i]: cannot adjust line
troff:<standard input>:307: warning [p 5, 7.2i]: cannot adjust line
troff:<standard input>:321: warning [p 5, 9.7i]: cannot adjust line
troff:<standard input>:335: warning [p 6, 0.2i]: cannot adjust line
troff:<standard input>:353: warning [p 6, 3.3i]: cannot adjust line
troff:<standard input>:411: warning [p 7, 1.8i]: cannot adjust line
troff:<standard input>:423: warning [p 7, 4.2i]: cannot adjust line
troff:<standard input>:435: warning [p 7, 6.5i]: cannot adjust line
troff:<standard input>:447: warning [p 7, 8.8i]: cannot adjust line
troff:<standard input>:1023: warning [p 16, 5.5i]: cannot adjust line
troff:<standard input>:1025: warning [p 16, 6.0i]: cannot adjust line
troff:<standard input>:1052: warning [p 16, 10.5i]: cannot break line
troff:<standard input>:1167: warning [p 18, 8.7i]: cannot adjust line
troff:<standard input>:1173: warning [p 18, 9.8i]: cannot break line
<standard input>:1965: warning: table wider than line length minus indentation
<standard input>:196: warning: table wider than line length minus indentation
troff:<standard input>:246: warning [p 4, 9.2i]: cannot adjust line
troff:<standard input>:264: warning [p 5, 0.3i]: cannot adjust line
troff:<standard input>:317: warning [p 5, 9.3i]: cannot adjust line
troff:<standard input>:331: warning [p 5, 11.8i]: cannot adjust line
troff:<standard input>:349: warning [p 6, 3.0i]: cannot adjust line
troff:<standard input>:745: warning [p 12, 3.0i]: cannot adjust line
troff:<standard input>:751: warning [p 12, 4.2i]: cannot break line
troff:<standard input>:882: warning [p 14, 7.7i]: cannot adjust line
troff:<standard input>:888: warning [p 14, 9.2i]: cannot adjust line
troff:<standard input>:894: warning [p 14, 10.7i]: cannot adjust line
troff:<standard input>:900: warning [p 15, 0.2i]: cannot adjust line
troff:<standard input>:913: warning [p 15, 2.2i]: cannot adjust line
troff:<standard input>:953: warning [p 15, 9.7i]: cannot adjust line
troff:<standard input>:438: warning [p 7, 8.2i]: cannot adjust line
troff:<standard input>:444: warning [p 7, 9.3i]: cannot break line
<standard input>:34: warning: table wider than line length minus indentation
troff:<standard input>:82: warning [p 2, 2.3i]: cannot adjust line
troff:<standard input>:100: warning [p 2, 5.7i]: cannot adjust line
troff:<standard input>:121: warning [p 2, 9.3i]: cannot adjust line
troff:<standard input>:168: warning [p 3, 6.7i]: cannot adjust line
troff:<standard input>:180: warning [p 3, 9.0i]: cannot adjust line
troff:<standard input>:23: warning [p 1, 3.3i]: cannot adjust line
troff:<standard input>:113: warning [p 2, 8.0i]: cannot adjust line
troff:<standard input>:131: warning [p 3, 0.0i]: cannot adjust line
troff:<standard input>:149: warning [p 3, 3.2i]: cannot adjust line
troff:<standard input>:192: warning [p 3, 11.0i]: cannot adjust line
troff:<standard input>:204: warning [p 4, 2.0i]: cannot adjust line
troff:<standard input>:454: warning [p 8, 5.7i]: cannot adjust line
troff:<standard input>:460: warning [p 8, 6.8i]: cannot break line
troff:<standard input>:234: warning [p 4, 7.0i]: cannot adjust line
troff:<standard input>:252: warning [p 4, 10.2i]: cannot adjust line
troff:<standard input>:329: warning [p 6, 0.5i]: cannot adjust line
troff:<standard input>:343: warning [p 6, 3.0i]: cannot adjust line
troff:<standard input>:357: warning [p 6, 5.5i]: cannot adjust line
troff:<standard input>:375: warning [p 6, 8.7i]: cannot adjust line
troff:<standard input>:455: warning [p 7, 11.5i]: cannot adjust line
troff:<standard input>:467: warning [p 8, 1.7i]: cannot adjust line
troff:<standard input>:479: warning [p 8, 4.0i]: cannot adjust line
troff:<standard input>:491: warning [p 8, 6.3i]: cannot adjust line
troff:<standard input>:1050: warning [p 16, 10.0i]: cannot adjust line
troff:<standard input>:1052: warning [p 16, 10.5i]: cannot adjust line
troff:<standard input>:1079: warning [p 17, 1.5i]: cannot break line
troff:<standard input>:1194: warning [p 18, 11.5i]: cannot adjust line
troff:<standard input>:1200: warning [p 18, 12.7i]: cannot break line
<standard input>:2027: warning: table wider than line length minus indentation
<standard input>:49: warning: table wider than line length minus indentation
troff:<standard input>:41: warning [p 1, 4.0i, div '3tbd5,1', 0.3i]: cannot break line
<standard input>:37: warning: table wider than line length minus indentation
troff:<standard input>:336: warning [p 5, 4.3i, div '3tbd39,1', 0.0i]: cannot adjust line
<standard input>:290: warning: table wider than line length minus indentation
<standard input>:971: warning: table wider than line length minus indentation
<standard input>:1113: warning: table wider than line length minus indentation
<standard input>:1302: warning: table wider than line length minus indentation
<standard input>:1621: warning: table wider than line length minus indentation
<standard input>:1906: warning: table wider than line length minus indentation
troff:<standard input>:42: warning [p 1, 6.7i]: cannot adjust line
troff:<standard input>:60: warning [p 1, 9.8i]: cannot adjust line
troff:<standard input>:137: warning [p 3, 0.5i]: cannot adjust line
troff:<standard input>:151: warning [p 3, 3.0i]: cannot adjust line
troff:<standard input>:165: warning [p 3, 5.5i]: cannot adjust line
troff:<standard input>:183: warning [p 3, 8.7i]: cannot adjust line
troff:<standard input>:195: warning [p 3, 11.0i]: cannot adjust line
troff:<standard input>:207: warning [p 4, 1.7i]: cannot adjust line
troff:<standard input>:219: warning [p 4, 4.0i]: cannot adjust line
troff:<standard input>:231: warning [p 4, 6.3i]: cannot adjust line
(cd docs; ./dckrman.sh ./build/man/*.1)
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
DH_GOLANG_BUILDPKG="github.com/containers/podman/cmd/podman" \
dh_auto_build -v --builddirectory=_output -- -tags "remote,exclude_graphdriver_btrfs,btrfs_noversion,exclude_graphdriver_devicemapper,containers_image_openpgp" \
-ldflags "-X main.buildInfo=5.2.2+ds1-2"
cd _output && go version
go version go1.23.2 linux/amd64
cd _output && go env
GO111MODULE='off'
GOARCH='amd64'
GOBIN=''
GOCACHE='/<<PKGBUILDDIR>>/_output/go-build'
GOENV='/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/<<PKGBUILDDIR>>/_output/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/<<PKGBUILDDIR>>/_output'
GOPRIVATE=''
GOPROXY='off'
GOROOT='/usr/lib/go-1.23'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/usr/lib/go-1.23/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.2'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD=''
GOWORK=''
CGO_CFLAGS='-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection'
CGO_CPPFLAGS='-Wdate-time -D_FORTIFY_SOURCE=2'
CGO_CXXFLAGS='-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection'
CGO_FFLAGS='-g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-clash-protection -fcf-protection'
CGO_LDFLAGS='-Wl,-z,relro'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build4190743575=/tmp/go-build -gno-record-gcc-switches'
cd _output && go generate -v -tags remote,exclude_graphdriver_btrfs,btrfs_noversion,exclude_graphdriver_devicemapper,containers_image_openpgp -ldflags "-X main.buildInfo=5.2.2+ds1-2" github.com/containers/podman/cmd/podman
src/github.com/containers/podman/cmd/podman/auto-update.go
src/github.com/containers/podman/cmd/podman/client.go
src/github.com/containers/podman/cmd/podman/client_supported.go
src/github.com/containers/podman/cmd/podman/compose.go
src/github.com/containers/podman/cmd/podman/compose_machine.go
src/github.com/containers/podman/cmd/podman/diff.go
src/github.com/containers/podman/cmd/podman/early_init_linux.go
src/github.com/containers/podman/cmd/podman/inspect.go
src/github.com/containers/podman/cmd/podman/login.go
src/github.com/containers/podman/cmd/podman/logout.go
src/github.com/containers/podman/cmd/podman/main.go
src/github.com/containers/podman/cmd/podman/root.go
src/github.com/containers/podman/cmd/podman/root_test.go
src/github.com/containers/podman/cmd/podman/shell_completion_test.go
src/github.com/containers/podman/cmd/podman/syslog_common.go
cd _output && go install -trimpath -v -p 2 -tags remote,exclude_graphdriver_btrfs,btrfs_noversion,exclude_graphdriver_devicemapper,containers_image_openpgp -ldflags "-X main.buildInfo=5.2.2+ds1-2" github.com/containers/podman/cmd/podman
src/github.com/containers/podman/pkg/machine/gvproxy_unix.go:11:2: cannot find package "github.com/shirou/gopsutil/v3/process" in any of:
/<<PKGBUILDDIR>>/_output/src/github.com/containers/podman/vendor/github.com/shirou/gopsutil/v3/process (vendor tree)
/usr/lib/go-1.23/src/github.com/shirou/gopsutil/v3/process (from $GOROOT)
/<<PKGBUILDDIR>>/_output/src/github.com/shirou/gopsutil/v3/process (from $GOPATH)
src/github.com/containers/podman/cmd/podman/machine/init.go:18:2: cannot find package "github.com/shirou/gopsutil/v3/mem" in any of:
/<<PKGBUILDDIR>>/_output/src/github.com/containers/podman/vendor/github.com/shirou/gopsutil/v3/mem (vendor tree)
/usr/lib/go-1.23/src/github.com/shirou/gopsutil/v3/mem (from $GOROOT)
/<<PKGBUILDDIR>>/_output/src/github.com/shirou/gopsutil/v3/mem (from $GOPATH)
dh_auto_build: error: cd _output && go install -trimpath -v -p 2 -tags remote,exclude_graphdriver_btrfs,btrfs_noversion,exclude_graphdriver_devicemapper,containers_image_openpgp -ldflags "-X main.buildInfo=5.2.2+ds1-2" github.com/containers/podman/cmd/podman returned exit code 1
make[1]: *** [debian/rules:67: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:54: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202410/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.
Thanks.
More information about the Pkg-go-maintainers
mailing list