• Bug#1103808: libcap2 FTCBFS: runs the host's go

    From Helmut Grohne@21:1/5 to All on Mon Apr 21 19:20:01 2025
    Source: libcap2
    Version: 1:2.75-6
    Severity: important
    Justification: architecture cross bootstrap regression
    Tags: patch
    User: debian-cross@lists.debian.org
    Usertags: ftcbfs
    User: helmutg@debian.org
    Usertags: rebootstrap

    Hi,

    libcap2 broke architecture cross bootstrap by adding a dependency on golang-any. That's not available early. It also doesn't have to be as
    it's only used for building arch:all packages whereas cross bootstrap
    performs an arch-only build.

    Concurrently, regular non-bootstrap cross builds are broken as the build
    tries to execute the host's go binary and that doesn't go well.

    We can easily fix both by skipping all go stuff in arch-only builds. I'm attaching a patch and hope you can fix this regression in trixie.

    Helmut

    diff --minimal -Nru libcap2-2.75/debian/changelog libcap2-2.75/debian/changelog --- libcap2-2.75/debian/changelog 2025-04-11 20:52:04.000000000 +0200
    +++ libcap2-2.75/debian/changelog 2025-04-21 18:32:37.000000000 +0200
    @@ -1,3 +1,10 @@
    +libcap2 (1:2.75-6.1) UNRELEASED; urgency=medium
    +
    + * Non-maintainer upload.
    + * Fix FTCBFS: Move go dependencies to B-D-I. (Closes: #-1)
    +
    + -- Helmut Grohne <helmut@subdivi.de> Mon, 21 Apr 2025 18:32:37 +0200
    +
    libcap2 (1:2.75-6) unstable; urgency=medium

    * Add cleaning for Golang build
    diff --minimal -Nru libcap2-2.75/debian/control libcap2-2.75/debian/control
    --- libcap2-2.75/debian/control 2025-04-11 20:52:04.000000000 +0200
    +++ libcap2-2.75/debian/control 2025-04-21 18:31:57.000000000 +0200
    @@ -4,11 +4,11 @@
    Maintainer: Christian Kastner <ckk@debian.org>
    Build-Depends: patchelf,
    debhelper-compat (= 13),
    - dh-golang,
    - golang-any,
    gperf (>= 3.1),
    indent,
    libpam0g-dev,
    +Build-Depends-Indep: dh-golang,
    + go