• Bug#1106061: golang-1.19: FTBFS: test fails because of expired certific

    From Santiago Vila@21:1/5 to All on Mon May 19 12:00:01 2025
    Package: src:golang-1.19
    Version: 1.19.8-2
    Severity: serious
    Tags: ftbfs bookworm

    Dear maintainer:

    During a rebuild of all packages in bookworm, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean
    debian/rules override_dh_auto_clean
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    # remove autogenerated files
    rm -f -v src/cmd/cgo/zdefaultcc.go src/cmd/go/internal/cfg/zdefaultcc.go src/cmd/go/internal/cfg/zosarch.go src/cmd/internal/objabi/zbootstrap.go src/go/build/zcgo.go src/internal/buildcfg/zbootstrap.go src/runtime/internal/sys/zversion.go
    # remove built objects
    rm -rf bin pkg
    # remove generated files
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_clean
    debian/rules binary
    dh binary
    dh_update_autotools_config
    dh_autoreconf
    debian/rules override_dh_auto_build-arch
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    [ -f VERSION ] || echo "debian snapshot 1.19.8-2" > VERSION
    # on i386, need to rebuild with go1.16 for GO386=softfloat
    export GOROOT_BOOTSTRAP=$(env -i GOPATH=/<<PKGBUILDDIR>>/gopath/ go env GOROOT) \
    && if [ "amd64" = "i386" ] && dpkg --compare-versions $(GOROOT_BOOTSTRAP=/usr ./debian/helpers/goenv.sh echo '$GOVERSION_BOOTSTRAP') lt "1.16"; then \
    mkdir -p /<<PKGBUILDDIR>>/bootstrap \
    && cp -Rp /<<PKGBUILDDIR>>/src bootstrap/ \
    && cp -Rp /<<PKGBUILDDIR>>/VERSION bootstrap/ \
    && cd /<<PKGBUILDDIR>>/bootstrap/src \
    && /<<PKGBUILDDIR>>/debian/helpers/goenv.sh bash ./make.bash --no-banner \
    && export GOROOT_BOOTSTRAP=/<<PKGBUILDDIR>>/bootstrap; \
    fi \
    && cd /<<PKGBUILDDIR>>/src \
    && /<<PKGBUILDDIR>>/debian/helpers/goenv.sh bash ./make.bash --no-banner Building Go cmd/dist using /usr/lib/go-1.19. (go1.19.8 linux/amd64)
    Building Go toolchain1 using /usr/lib/go-1.19.
    Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
    Building Go toolchain2 using go_bootstrap and Go toolchain1.
    Building Go toolchain3 using go_bootstrap and Go toolchain2.
    Building packages and commands for linux/amd64.
    # rm bootstrap dir
    rm -rf /<<PKGBUILDDIR>>/bootstrap
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    debian/rules override_dh_auto_test-arch
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    set -ex; \
    cd src; \
    export PATH="/<<PKGBUILDDIR>>/bin:$PATH"; \
    export GO_TEST_TIMEOUT_SCALE=10; \
    eval "$(go tool dist env)"; \
    bash run.bash -k -no-rebuild;
    + cd src
    + export PATH=/<<PKGBUILDDIR>>/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    + export GO_TEST_TIMEOUT_SCALE=10
    + go tool dist env
    + eval GO111MODULE=""
    GOARCH="amd64"
    GOBIN="/<<PKGBUILDDIR>>/bin"
    GOCACHE="/<<PKGBUILDDIR>>/pkg/obj/go-build"
    GODEBUG=""
    GOENV="off"
    GOFLAGS=""
    GOHOSTARCH="amd64"
    GOHOSTOS="linux"
    GOOS="linux"
    GOPROXY="https://proxy.golang.org,direct"
    GOROOT="/<<PKGBUILDDIR>>"
    GOTMPDIR=""
    GOTOOLDIR="/<<PKGBUILDDIR>>/pkg/tool/linux_amd64"
    GOAMD64="v1"
    GOWORK="off"
    + GO111MODULE=
    + GOARCH=amd64
    + GOBIN=/<<PKGBUILDDIR>>/bin
    + GOCACHE=/<<PKGBUILDDIR>>/pkg/obj/go-build
    + GODEBUG=
    + GOENV=off
    + GOFLAGS=
    + GOHOSTARCH=amd64
    + GOHOSTOS=linux
    + GOOS=linux
    + GOPROXY=https://proxy.golang.org,direct
    + GOROOT=/<<PKGBUILDDIR>>
    + GOTMPDIR=
    + GOTOOLDIR=/<<PKGBUILDDIR>>/pkg/tool/linux_amd64
    + GOAMD64=v1
    + GOWORK=off
    + bash run.bash -k -no-rebuild

    ok archive/tar 0.108s
    ok archive/zip 0.048s
    ok bufio 0.042s
    ok bytes 0.066s
    ok compress/bzip2 0.025s
    ok compress/flate 0.414s
    ok compress/gzip 0.726s
    ok compress/lzw 0.003s
    ok compress/zlib 0.009s
    ok container/heap 0.002s
    ok container/list 0.001s
    ok container/ring 0.002s
    ok context 0.011s
    ok crypto 0.001s
    ok crypto/aes 0.009s
    ok crypto/cipher 0.005s
    ok crypto/des 0.003s
    ok crypto/dsa 0.002s
    ok crypto/ecdsa 0.004s
    ok crypto/ed25519 0.028s
    ok crypto/elliptic 0.005s
    ok crypto/hmac 0.002s
    ok crypto/internal/boring 0.001s
    ok crypto/internal/boring/bcache 0.108s
    ok crypto/internal/edwards25519 2.212s
    ok crypto/internal/edwards25519/field 1.895s
    ok crypto/internal/nistec 0.710s
    ok crypto/internal/nistec/fiat 0.001s [no tests to run]
    ok crypto/internal/subtle 0.001s
    ok crypto/md5 0.004s
    ok crypto/rand 0.013s
    ok crypto/rc4 0.013s
    ok crypto/rsa 0.051s
    ok crypto/sha1 0.010s
    ok crypto/sha256 0.002s
    ok crypto/sha512 0.003s
    ok crypto/subtle 0.002s
    --- FAIL: TestVerifyConnection (0.00s)
    --- FAIL: TestVerifyConnection/TLSv12 (0.00s)
    handshake_client_test.go:1721: RequireAndVerifyClientCert-FullHandshake: handshake failed: remote error: tls: bad certificate
    --- FAIL: TestVerifyConnection/TLSv13 (0.00s)
    handshake_client_test.go:1721: RequireAndVerifyClientCert-FullHandshake: handshake failed: remote error: tls: bad certificate
    --- FAIL: TestResumptionKeepsOCSPAndSCT (0.00s)
    --- FAIL: TestResumptionKeepsOCSPAndSCT/TLSv12 (0.00s)
    handshake_client_test.go:2512: handshake failed: remote error: tls: bad certificate
    --- FAIL: TestResumptionKeepsOCSPAndSCT/TLSv13 (0.00s)
    handshake_client_test.go:2512: handshake failed: remote error: tls: bad certificate
    FAIL
    FAIL crypto/tls 0.210s
    ok crypto/x509 0.231s
    ok database/sql 0.243s
    ok database/sql/driver 0.001s
    ok debug/buildinfo 0.001s
    ok debug/dwarf 0.009s
    ok debug/elf 0.016s
    ok debug/gosym 0.098s
    ok debug/macho 0.002s
    ok debug/pe 0.