• Bug#1103311: golang-github-schollz-closestmatch: FTBFS with the nocheck

    From Santiago Vila@21:1/5 to All on Wed Apr 16 14:30:03 2025
    Package: src:golang-github-schollz-closestmatch
    Version: 2.1.0-3
    Severity: important
    Tags: trixie sid ftbfs
    User: debian-qa@lists.debian.org
    Usertags: ftbfs-nocheck-profile

    Dear maintainer:

    During a rebuild of all packages in unstable using the nocheck build profile, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean --builddirectory=_build --buildsystem=golang --with=golang
    dh_auto_clean -O--builddirectory=_build -O--buildsystem=golang
    dh_autoreconf_clean -O--builddirectory=_build -O--buildsystem=golang
    dh_clean -O--builddirectory=_build -O--buildsystem=golang
    debian/rules binary
    dh binary --builddirectory=_build --buildsystem=golang --with=golang
    dh_update_autotools_config -O--builddirectory=_build -O--buildsystem=golang
    dh_autoreconf -O--builddirectory=_build -O--buildsystem=golang
    dh_auto_configure -O--builddirectory=_build -O--buildsystem=golang
    dh_auto_build -O--builddirectory=_build -O--buildsystem=golang
    cd _build && go install -trimpath -v -p 2 github.com/schollz/closestmatch github.com/schollz/closestmatch/levenshtein github.com/schollz/closestmatch/test
    internal/unsafeheader
    internal/goarch
    internal/cpu
    internal/abi
    internal/bytealg
    internal/byteorder
    internal/chacha8rand
    internal/coverage/rtcov
    internal/godebugs
    internal/goexperiment
    internal/goos
    internal/profilerecord
    internal/runtime/atomic
    internal/asan
    internal/msan
    internal/race
    internal/runtime/math
    internal/runtime/exithook
    internal/runtime/sys
    internal/runtime/syscall
    internal/runtime/maps
    internal/stringslite
    sync/atomic
    internal/sync
    math/bits
    unicode
    runtime
    unicode/utf8
    encoding
    math
    internal/itoa
    cmp
    internal/reflectlite
    sync
    errors
    iter
    io
    strconv
    bytes
    strings
    reflect
    bufio
    slices
    internal/oserror
    path
    internal/bisect
    internal/godebug
    syscall
    time
    encoding/binary
    internal/fmtsort
    io/fs
    internal/syscall/unix
    internal/poll
    internal/filepathlite
    internal/syscall/execenv
    internal/testlog
    internal/saferio
    os
    maps
    math/rand
    sort
    github.com/schollz/closestmatch/levenshtein github.com/schollz/closestmatch/test
    fmt
    encoding/gob
    github.com/schollz/closestmatch
    debian/rules override_dh_auto_test
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    dh_auto_test
    rm _build/src/github.com/*/*/test.txt
    rm: cannot remove '_build/src/github.com/*/*/test.txt': No such file or directory
    make[1]: *** [debian/rules:14: override_dh_auto_test] Error 1
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    make: *** [debian/rules:6: binary] Error 2
    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/202504/

    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 add an affects on src:golang-github-schollz-closestmatch, so that this is still
    visible in the BTS web page for this package.

    Notes:

    * When a package is built with the nocheck profile, it means:

    - DEB_BUILD_OPTIONS=nocheck
    (the tests should be skipped during the build)

    - DEB_BUILD_PROFILES=nocheck
    (Build-Depends marked <!nocheck> are not installed)

    - The contents of the package is allowed to be different than normal

    * This category of bugs was going to be RC for trixie, but
    according to the Release Managers it's a little bit late in the
    release cycle to introduce a bunch of RC bugs of this type.

    * In addition to the above, this package also fails when
    using DEB_BUILD_OPTIONS=nocheck alone. In this mode:

    - DEB_BUILD_OPTIONS=nocheck
    (the tests should be skipped during the build)

    - Build-Depends marked <!nocheck> are installed as normal

    - The contents of the package should not change compared
    to a regular build

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Santiago Vila@21:1/5 to All on Wed Apr 16 20:30:02 2025
    Clarification: Some text in the initial bug report was in error.

    In *both* modes of building (using profile build, or using
    only DEB_BUILD_OPTIONS=nocheck) the contents of the package
    is expected to be the same than the one from a regular build:

    https://wiki.debian.org/BuildProfileSpec#Profile_built_binary_packages

    (I'll change my template for the next time)
    (Apologies for the confusion)

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)