• Bug#1091497: golang-1.23: will FTBFS during trixie support period

    From Santiago Vila@21:1/5 to All on Thu Jan 2 12:40:01 2025
    forwarded 1091497 https://github.com/golang/go/issues/71089
    thanks

    El 29/12/24 a las 20:04, Shengjing Zhu escribió:
    Issues are forwarded at https://github.com/golang/go/issues

    Great. Forwarded now.

    (Should this report be reopened with lower severity?)

    Instead of disabling the test, is there a way to set a fixed time like
    the reproducing build?

    By coincidence, I've seen such technique being used just yesterday here:

    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1091842

    In the proposed update, datefudge is used. That's certainly simple and effective,
    but maybe more appropriate for a stable update where it's either too late to ask
    upstream for a fix, or the code in unstable has deviated too much
    from the code in stable for the backport to be easy to make.

    (Will probably look at it anyway, as I am also fighting expired certificates in the current stable).

    Thanks a lot.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Santiago Vila@21:1/5 to All on Thu Jan 2 12:50:01 2025
    reopen 1091497
    severity 1091497 important
    thanks

    Hi. They have replied to the github issue in less than 10 minutes :-)

    https://github.com/golang/go/issues/71089#issuecomment-2567625090

    (Somebody else already reported yesterday)

    Assuming that trixie will include golang-1.23, I'll try to backport
    the fix as they say and will post the patch here, so I'm reopening.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Santiago Vila@21:1/5 to All on Fri Dec 27 20:00:02 2024
    Package: src:golang-1.23
    Version: 1.23.4-1
    Tags: ftbfs trixie sid
    User: debian-qa@lists.debian.org
    Usertags: ftbfs-during-trixie-support-period

    Dear maintainer:

    During a rebuild of all packages in unstable in the year 2028, 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/go/internal/cfg/zdefaultcc.go src/go/build/zcgo.go src/runtime/internal/sys/zversion.go src/time/tzdata/zzipdata.go src/cmd/cgo/zdefaultcc.go src/cmd/internal/objabi/zbootstrap.go src/internal/buildcfg/zbootstrap.go
    # remove built objects
    rm -rf bin pkg
    # remove gopath
    rm -rf /<<PKGBUILDDIR>>/gopath/
    # 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.23.4-1" > VERSION
    cd /<<PKGBUILDDIR>>/src \
    && /<<PKGBUILDDIR>>/debian/helpers/goenv.sh bash ./make.bash --no-banner Building Go cmd/dist using /usr/lib/go-1.23. (go1.23.4 linux/amd64)
    Building Go toolchain1 using /usr/lib/go-1.23.
    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";
    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
    + 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.106s
    ok archive/zip 0.067s
    ok bufio 0.033s
    ok bytes 0.094s
    ok cmp 0.002s
    ok compress/bzip2 0.041s
    ok compress/flate 0.400s
    ok compress/gzip 0.697s
    ok compress/lzw 0.008s
    ok compress/zlib 0.009s
    ok container/heap 0.002s
    ok container/list 0.001s
    ok container/ring 0.001s
    ok context 0.016s
    ok crypto 0.285s
    ok crypto/aes 0.012s
    ok crypto/cipher 0.003s
    ok crypto/des 0.009s
    ok crypto/dsa 0.002s
    ok crypto/ecdh 0.025s
    ok crypto/ecdsa 0.017s
    ok crypto/ed25519 0.029s
    ok crypto/elliptic 0.004s
    ok crypto/hmac 0.004s
    ok crypto/internal/alias 0.002s
    ok crypto/internal/bigmod 0.026s
    ok crypto/internal/boring 0.001s
    ok crypto/internal/boring/bcache 0.089s
    ok crypto/internal/edwards25519 0.047s
    ok crypto/internal/edwards25519/field 0.008s
    ok crypto/internal/hpke 0.002s
    ok crypto/internal/mlkem768 0.159s
    ok crypto/internal/nistec 0.107s
    ok crypto/internal/nistec/fiat 0.001s [no tests to run]
    ok crypto/md5 0.003s
    ok crypto/rand 0.018s
    ok crypto/rc4 0.013s
    ok crypto/rsa 0.153s
    ok crypto/sha1 0.010s
    ok crypto/sha256 0.002s
    ok crypto/sha512 0.003s
    ok crypto/subtle 0.128s
    --- FAIL: TestVerifyConnection (0.00s)
    --- FAIL: TestVerifyConnection/TLSv12 (0.00s)
    handshake_client_test.go:1759: RequireAndVerifyClientCert-FullHandshake: handshake failed: server: remote error: tls: bad certificate
    client: tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2028-06-10T12:03:31Z is after 2025-01-01T00:00:00Z
    --- FAIL: TestVerifyConnection/TLSv13 (0.00s)
    handshake_client_test.go:1759: RequireAndVerifyClientCert-FullHandshake: handshake failed: server: remote error: tls: bad certificate
    client: tls: failed to verify certificate: x509: certificate has expired or is not yet valid: current time 2028-06-10T12:03:31Z is after 2025-01-01T00:00:00Z
    --- FAIL: TestResumptionKeepsOCSPAndSCT (0.00s)
    --- FAIL: TestResumptionKeepsOCSPAndSCT/TLSv12 (0.00s)
    handshake_client_test.go:2550: handshake failed: server: remote error: tls: bad certificate
    client: tls: failed to verify ce