#1078620 golang-github-russellhaering-goxmldsig: will FTBFS during forky support period

#1078620#5
Date:
2024-08-13 18:06:45 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable in the year 2028, your package failed to build:
--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --buildsystem=golang --with=golang
    dh_update_autotools_config -O--buildsystem=golang
    dh_autoreconf -O--buildsystem=golang
    dh_auto_configure -O--buildsystem=golang
    dh_auto_build -O--buildsystem=golang
	cd obj-x86_64-linux-gnu && go install -trimpath -v -p 2 github.com/russellhaering/goxmldsig github.com/russellhaering/goxmldsig/etreeutils github.com/russellhaering/goxmldsig/types
internal/unsafeheader
internal/goarch
internal/cpu
internal/abi
internal/bytealg
internal/chacha8rand
internal/coverage/rtcov
internal/godebugs
internal/goexperiment
internal/goos
runtime/internal/atomic
runtime/internal/math
runtime/internal/sys
runtime/internal/syscall
internal/race
sync/atomic
runtime
unicode
unicode/utf8
math/bits
math
crypto/internal/alias
crypto/subtle
internal/itoa
crypto/internal/boring/sig
cmp
slices
container/list
unicode/utf16
vendor/golang.org/x/crypto/cryptobyte/asn1
internal/nettrace
vendor/golang.org/x/crypto/internal/alias
encoding
internal/reflectlite
sync
internal/testlog
internal/bisect
errors
sort
io
bytes
hash
strconv
crypto/internal/randutil
internal/oserror
syscall
crypto
reflect
internal/syscall/unix
time
internal/poll
encoding/binary
internal/fmtsort
crypto/cipher
internal/safefilepath
internal/syscall/execenv
path
io/fs
crypto/internal/boring
internal/godebug
os
math/rand
strings
crypto/sha1
crypto/sha256
fmt
context
crypto/aes
crypto/des
crypto/internal/edwards25519/field
math/big
crypto/internal/nistec/fiat
embed
crypto/internal/nistec
crypto/rand
crypto/internal/bigmod
crypto/internal/boring/bbig
crypto/ecdh
crypto/rsa
crypto/elliptic
crypto/sha512
encoding/asn1
crypto/internal/edwards25519
crypto/ed25519
crypto/hmac
crypto/md5
vendor/golang.org/x/crypto/cryptobyte
crypto/rc4
crypto/dsa
encoding/hex
crypto/x509/pkix
crypto/ecdsa
encoding/base64
encoding/pem
vendor/golang.org/x/net/dns/dnsmessage
internal/singleflight
internal/intern
net/netip
runtime/cgo
net/url
path/filepath
vendor/golang.org/x/crypto/chacha20
vendor/golang.org/x/crypto/internal/poly1305
vendor/golang.org/x/sys/cpu
vendor/golang.org/x/crypto/chacha20poly1305
vendor/golang.org/x/crypto/hkdf
bufio
encoding/xml
net
github.com/beevik/etree
github.com/jonboulle/clockwork
github.com/russellhaering/goxmldsig/etreeutils
github.com/russellhaering/goxmldsig/types
regexp/syntax
regexp
crypto/x509
crypto/tls
github.com/russellhaering/goxmldsig
    dh_auto_test -O--buildsystem=golang
	cd obj-x86_64-linux-gnu && go test -vet=off -v -p 2 github.com/russellhaering/goxmldsig github.com/russellhaering/goxmldsig/etreeutils github.com/russellhaering/goxmldsig/types
?   	github.com/russellhaering/goxmldsig/etreeutils	[no test files]
?   	github.com/russellhaering/goxmldsig/types	[no test files]
=== RUN   TestExcC14N10
--- PASS: TestExcC14N10 (0.00s)
=== RUN   TestExcC14N10WithComments
--- PASS: TestExcC14N10WithComments (0.00s)
=== RUN   TestC14N11
--- PASS: TestC14N11 (0.00s)
=== RUN   TestC14N11WithComments
--- PASS: TestC14N11WithComments (0.00s)
=== RUN   TestXmldocC14N10Exclusive
--- PASS: TestXmldocC14N10Exclusive (0.00s)
=== RUN   TestXmldocC14N11
--- PASS: TestXmldocC14N11 (0.00s)
=== RUN   TestNestedExcC14N11
--- PASS: TestNestedExcC14N11 (0.00s)
=== RUN   TestExcC14nDefaultNamespace
--- PASS: TestExcC14nDefaultNamespace (0.00s)
=== RUN   TestExcC14nWithPrefixList
--- PASS: TestExcC14nWithPrefixList (0.00s)
=== RUN   TestExcC14nRedeclareDefaultNamespace
--- PASS: TestExcC14nRedeclareDefaultNamespace (0.00s)
=== RUN   TestSign
--- PASS: TestSign (0.03s)
=== RUN   TestSignErrors
--- PASS: TestSignErrors (0.01s)
=== RUN   TestSignNonDefaultID
--- PASS: TestSignNonDefaultID (0.02s)
=== RUN   TestDigest
--- PASS: TestDigest (0.00s)
=== RUN   TestTransform
--- PASS: TestTransform (0.00s)
=== RUN   TestValidateWithEmptySignatureReference
     validate_test.go:204:
         	Error Trace:	/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/github.com/russellhaering/goxmldsig/validate_test.go:204
         	Error:      	Received unexpected error:
         	            	Cert is not valid at this time
         	Test:       	TestValidateWithEmptySignatureReference
--- FAIL: TestValidateWithEmptySignatureReference (0.00s)
=== RUN   TestValidateWithValid
--- PASS: TestValidateWithValid (0.00s)
=== RUN   TestValidateWithModified
--- PASS: TestValidateWithModified (0.00s)
=== RUN   TestValidateWithModifiedAndSignatureEdited
--- PASS: TestValidateWithModifiedAndSignatureEdited (0.00s)
=== RUN   TestMapPathAndRemove
--- PASS: TestMapPathAndRemove (0.00s)
FAIL
FAIL	github.com/russellhaering/goxmldsig	0.065s
FAIL
dh_auto_test: error: cd obj-x86_64-linux-gnu && go test -vet=off -v -p 2 github.com/russellhaering/goxmldsig github.com/russellhaering/goxmldsig/etreeutils github.com/russellhaering/goxmldsig/types returned exit code 1
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary 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/ftbfs-future/

About the archive rebuild: This is an effort to keep trixie free from FTBFS bugs
during its lifetime as a supported distribution, as explained here:

https://lists.debian.org/debian-devel/2024/05/msg00414.html

(While they are not yet, please note that the bugs will be RC for trixie)

The build was made 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.

#1078620#14
Date:
2025-08-21 20:55:55 UTC
From:
To:
retitle 1078620 golang-github-russellhaering-goxmldsig: will FTBFS during forky support period
thanks

Hello.

Since this package is not present in trixie, I'm repurposing the old
bug for forky (instead of opening a new one).

When fixing this in unstable, targeted for forky, please ensure
that the package will build from source at least for three years
after the release of forky, which we can estimate as 2 years
after the release of trixie, i.e. 2030-08-09.

Thanks.