[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Issues building golang-github-msteinert-pam





Le jeu. 10 avr. 2025 à 11:09, Adam Baxter <debian@voltagex.org> a écrit :
Hi,
I am unsure if I should go through reportbug for this, but I can't build golang-github-msteinert-pam from the sources at https://salsa.debian.org/go-team/packages/golang-github-msteinert-pam

go test fails:

#11 15.56 FAIL
#11 15.56 FAIL  github.com/msteinert/pam        8.348s
#11 15.56 FAIL
#11 15.59 dh_auto_test: error: cd _build && go test -vet=off -v -p 32 github.com/msteinert/pam returned exit code 1
#11 15.59 make: *** [debian/rules:7: binary] Error 25
#11 15.59 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
#11 15.60 debuild: fatal error at line 1185:
#11 15.60 dpkg-buildpackage -us -uc -ui -i -I failed
#11 15.60 gbp:error: 'debuild -i -I -us -uc' failed: it exited with 29
#11 ERROR: process "/bin/sh -c gbp buildpackage -us -uc" did not complete successfully: exit code: 1

It builds fine here (in a clean debian/sid env). 
 
------

Reproduce with the following Dockerfile:

FROM debian:sid
RUN apt update
RUN apt install --no-install-recommends -y golang-go git-buildpackage git libpam0g-dev dh-golang debhelper-compat build-essential golang-any golang-golang-x-term-dev
WORKDIR /src/
RUN git clone https://salsa.debian.org/go-team/packages/golang-github-msteinert-pam
WORKDIR /src/golang-github-msteinert-pam
RUN git checkout debian/sid
RUN gbp buildpackage -us -uc

You're missing "apt build-dep"
I suggest these more efficient commands:
 
FROM debian:sid
RUN apt update
RUN apt build-dep golang-github-msteinert-pam
WORKDIR /src/
RUN apt source --compile golang-github-msteinert-pam


Reply to: