Source: libcap-ng
Version: 0.8.5-1
Severity: important
Justification: breaks architecture cross bootstrap
Tags: patch ftbfs
User: [email protected]
Usertags: rebootstrap

libcap-ng started to fail to build from source when enabling the
nopython build profile since some newly added python-specific code has
not been sufficiently conditionalized. I'm attaching a patch that makes
the problem obvious for your convenience.

Helmut
diff --minimal -Nru libcap-ng-0.8.5/debian/changelog 
libcap-ng-0.8.5/debian/changelog
--- libcap-ng-0.8.5/debian/changelog    2024-04-17 07:32:52.000000000 +0200
+++ libcap-ng-0.8.5/debian/changelog    2024-08-17 09:52:19.000000000 +0200
@@ -1,3 +1,10 @@
+libcap-ng (0.8.5-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS with nopython build profile. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sat, 17 Aug 2024 09:52:19 +0200
+
 libcap-ng (0.8.5-1) unstable; urgency=medium
 
   * New upstream release.
diff --minimal -Nru libcap-ng-0.8.5/debian/rules libcap-ng-0.8.5/debian/rules
--- libcap-ng-0.8.5/debian/rules        2024-04-17 07:32:52.000000000 +0200
+++ libcap-ng-0.8.5/debian/rules        2024-08-17 09:52:19.000000000 +0200
@@ -41,7 +41,9 @@
        # each other at install time.
        for V in $(PY3VERS); do \
                dh_auto_install --builddir=build-py$$V; \
-               mv ${CURDIR}/debian/tmp/usr/lib/python3 
${CURDIR}/debian/tmp/usr/lib/python$$V; \
+               if test "$$V" != dummy; then \
+                       mv ${CURDIR}/debian/tmp/usr/lib/python3 
${CURDIR}/debian/tmp/usr/lib/python$$V; \
+               fi; \
        done
 
        find $(CURDIR)/debian/tmp -name *.la -delete

Reply via email to