Your message dated Sat, 26 Apr 2025 08:50:40 +0000
with message-id <e1u8bfa-009hyu...@fasolo.debian.org>
and subject line Bug#1103808: fixed in libcap2 1:2.75-7
has caused the Debian Bug report #1103808,
regarding libcap2 FTCBFS: runs the host's go
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1103808: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103808
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: libcap2
Version: 1:2.75-6
Severity: important
Justification: architecture cross bootstrap regression
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs
User: helm...@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 <hel...@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 <c...@debian.org>
 Build-Depends: patchelf,
                debhelper-compat (= 13),
-               dh-golang,
-               golang-any,
                gperf (>= 3.1),
                indent,
                libpam0g-dev,
+Build-Depends-Indep: dh-golang,
+                     golang-any,
 Rules-Requires-Root: no
 Standards-Version: 4.7.0
 Homepage: https://sites.google.com/site/fullycapable/
diff --minimal -Nru libcap2-2.75/debian/rules libcap2-2.75/debian/rules
--- libcap2-2.75/debian/rules   2025-04-11 20:52:04.000000000 +0200
+++ libcap2-2.75/debian/rules   2025-04-21 18:32:33.000000000 +0200
@@ -37,8 +37,10 @@
        dh_auto_clean -- $(MAKE_ASSIGNMENTS)
        # The Golang build system does not appear to fully honor -B, so we need
        # two cleans
-       dh_auto_clean -B_build -O--buildsystem=golang
-       dh_auto_clean O--buildsystem=golang
+       set -e; if test -d _build; then \
+               dh_auto_clean -B_build -O--buildsystem=golang; \
+               dh_auto_clean O--buildsystem=golang; \
+       fi
        # Undo change of lookup (see override_dh_auto_build)
        sed -i -e 's,\./tcapsh-static,../progs/tcapsh-static,g' 
tests/libcap_launch_test.c
 
@@ -110,11 +112,11 @@
        kernel.org/pub/linux/libs/security/libcap/cap \
        kernel.org/pub/linux/libs/security/libcap/psx
 
-execute_after_dh_auto_configure:
+execute_after_dh_auto_configure-indep:
        dh_auto_configure -B_build -O--buildsystem=golang
 
-execute_after_dh_auto_install:
+execute_after_dh_auto_install-indep:
        dh_auto_install -B_build -O--buildsystem=golang
 
-execute_after_dh_auto_build:
+execute_after_dh_auto_build-indep:
        dh_auto_build -B_build -O--buildsystem=golang

--- End Message ---
--- Begin Message ---
Source: libcap2
Source-Version: 1:2.75-7
Done: Christian Kastner <c...@debian.org>

We believe that the bug you reported is fixed in the latest version of
libcap2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1103...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christian Kastner <c...@debian.org> (supplier of updated libcap2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 21 Apr 2025 20:42:52 +0200
Source: libcap2
Architecture: source
Version: 1:2.75-7
Distribution: unstable
Urgency: medium
Maintainer: Christian Kastner <c...@debian.org>
Changed-By: Christian Kastner <c...@debian.org>
Closes: 1103808
Changes:
 libcap2 (1:2.75-7) unstable; urgency=medium
 .
   [ Helmut Grohne ]
   * Fix FTCBFS: Move go dependencies to B-D-I. (Closes: #1103808)
Checksums-Sha1:
 989868840dd5848ee812792f70a0d0db3d12baae 2699 libcap2_2.75-7.dsc
 b79497c0abc398fcf1a8e060edb1010762c24808 22504 libcap2_2.75-7.debian.tar.xz
 557c1122264fdec489c7cee26f106aaee60281da 5909 libcap2_2.75-7_source.buildinfo
Checksums-Sha256:
 9e039642853668796dd9b34f4e4cfd5d07fb416d5f90143b4f03104e7f4cb96b 2699 
libcap2_2.75-7.dsc
 a284ed4c215f409f0894e494275b4e6e4140fa74f62a8bea3c414c12c4a9b636 22504 
libcap2_2.75-7.debian.tar.xz
 2814524527213163c0bcec433067d99b4c48518d15264cc41650c625d274e1eb 5909 
libcap2_2.75-7_source.buildinfo
Files:
 23bb5a62ed48579d50a5f0581634a49c 2699 libs optional libcap2_2.75-7.dsc
 9f521237f9417998ef37a2920ce2c295 22504 libs optional 
libcap2_2.75-7.debian.tar.xz
 511e168c3e58b5e5b334785b0aa02837 5909 libs optional 
libcap2_2.75-7_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAtFiEEQZ9+mkfDq5UZ8bCjOZU6N95Os2sFAmgMkygPHGNra0BkZWJp
YW4ub3JnAAoJEDmVOjfeTrNrKNwP/iB2IySa2lhccP65f5EJRxNC36iy+D8xeHHf
7KS7yxE5jWvOyiejHvQYnpWZ6UJ7YnJpaOvaWZivgRzJJudnWPuO/MwAD0FoXnGd
Xfuz7F6RxKPr7ao98rqQVA95ZKSP/uZKMbcXFQKRM9/Vw94LnVlUz/171i0AhiZ2
11WpQvPQS+AvXsEXi3/Q34I4qP7EyudSsigGikG5cm1E8Pju604P1o3oqBODeg8h
eLEzNFYiQwlWriEWRC/aSNoH4cX+p84Ycc/IqeTp37+n8RTZ0o0EvtCcryQriFPa
0LDmCysPCzj4DfFn4zTvwOqXdlgbGQ+CcHizCROPu81ZS+icEdf4B359CeZ5ZF9M
9dylUYhi9z6GJBQa++Zc5/m+9Pi40/doO/HGmMH6Qk3DhK43L11x9kr+RCzDadHf
5GRNdjg5WuGYLHVz1wHXp6FSZdbDaiPt0Uv/u9m3VmAsvCZEteGGBIXNf489ke14
5QrDN0DH4/OocovZ00aCSTGo64UHIf69+9xXdkiodYrzXeIIrjU1plN7WvVL4zuj
trG3MSw3m+Zkmiq8q1CkjOgTBj9P2PnsXJfV0uAhWYO1Qgp10elGlcqJNRYn88jJ
LpRs4aO07AVdeSUVzU0vNLpWDg75WZkImJ+v7iYFsUpmCC6vhIQFRAt1lGvsrtuT
1vaFrE+p
=aQKC
-----END PGP SIGNATURE-----

Attachment: pgpRzxdv9tDWy.pgp
Description: PGP signature


--- End Message ---

Reply via email to