Control: tags -1 + pending

Hi,

2016-10-15 16:20 Helmut Grohne:
Source: libcap-ng
Version: 0.7.7-3
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

libcap-ng fails to cross build from source, because its dependencies
require installing a host architecture python, whose postinst fails.
Indeed, libcap-ng should not request a host architecture python but only
request a host architecture python-dev. The attached patch fixes those
dependencies and makes libcap-ng cross build including the python
extensions.

This patch conflicts with my patch in #831362, but the conflict is
pretty simple to resolve. The patches fix orthogonal issues:
* This one allows cross building full libcap-ng.
* #831362 allows building libcap-ng without python (cross or native).

This package is quite important for bootstrapping new architectures and
it's a real annoyance to have to edit out the dependencies for Python in
preliminary stages.

I am submitting an NMU to delayed/15, debdiff attached, with the
combined patches (please Helmut double-check if this is the final form
that it was intended).

If you want me to cancel the NMU just ask.

(BTW, I checked that there are no related lintian warnings that were
mentioned in #831362).


Cheers.
--
Manuel A. Fernandez Montecelo <manuel.montez...@gmail.com>
diff -Nru libcap-ng-0.7.7/debian/changelog libcap-ng-0.7.7/debian/changelog
--- libcap-ng-0.7.7/debian/changelog    2016-07-03 21:04:40.000000000 +0200
+++ libcap-ng-0.7.7/debian/changelog    2017-09-25 00:43:37.000000000 +0200
@@ -1,3 +1,15 @@
+libcap-ng (0.7.7-3.1) unstable; urgency=medium
+
+  [ Manuel A. Fernandez Montecelo ]
+  * Non-maintainer upload.
+
+  [ Helmut Grohne ]
+  * Add nopython build profile (Closes: #831362)
+  * Fix FTCBFS: make python-related Build-Depends cross-satisfiable
+    (Closes: #840848)
+
+ -- Manuel A. Fernandez Montecelo <m...@debian.org>  Mon, 25 Sep 2017 00:43:37 
+0200
+
 libcap-ng (0.7.7-3) unstable; urgency=high
 
   * Install libcap-ng so file to /lib (Closes: #829126, #828992)
diff -Nru libcap-ng-0.7.7/debian/control libcap-ng-0.7.7/debian/control
--- libcap-ng-0.7.7/debian/control      2016-04-26 11:00:49.000000000 +0200
+++ libcap-ng-0.7.7/debian/control      2017-09-25 00:42:55.000000000 +0200
@@ -3,13 +3,15 @@
 Maintainer: Pierre Chifflier <pol...@debian.org>
 Build-Depends: debhelper (>= 9),
     dh-autoreconf,
-    dh-python,
+    dh-python <!nopython>,
     autotools-dev,
     libattr1-dev,
     linux-kernel-headers,
-    swig,
-    python-all-dev,
-    python3-dev
+    swig <!nopython>,
+    libpython-all-dev <!nopython>,
+    libpython3-dev <!nopython>,
+    python-all-dev:any <!nopython>,
+    python3-dev:any <!nopython>
 Standards-Version: 3.9.8
 Section: libs
 X-Python-Version: >= 2.6
@@ -65,6 +67,7 @@
 Section: python
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Build-Profiles: <!nopython>
 Description: Python bindings for libcap-ng
  This library implements the user-space interfaces to the POSIX
  1003.1e capabilities available in Linux kernels.  These capabilities are
@@ -81,6 +84,7 @@
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}
 Provides: ${python3:Provides}
+Build-Profiles: <!nopython>
 Description: Python3 bindings for libcap-ng
  This library implements the user-space interfaces to the POSIX
  1003.1e capabilities available in Linux kernels.  These capabilities are
diff -Nru libcap-ng-0.7.7/debian/rules libcap-ng-0.7.7/debian/rules
--- libcap-ng-0.7.7/debian/rules        2016-07-03 20:55:34.000000000 +0200
+++ libcap-ng-0.7.7/debian/rules        2017-09-25 00:36:53.000000000 +0200
@@ -8,6 +8,11 @@
 
 export DEB_BUILD_HARDENING=1
 
+ifneq ($(filter nopython,$(DEB_BUILD_PROFILES)),)
+override_dh_auto_configure:
+       dh_auto_configure -- --without-python --without-python3
+endif
+
 override_dh_install:
        mkdir -p $(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH) && \
        mv $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/lib*.so.0* 
$(CURDIR)/debian/tmp/lib/$(DEB_HOST_MULTIARCH)/; \
@@ -24,5 +29,8 @@
        :
 
 %:
+ifeq ($(filter nopython,$(DEB_BUILD_PROFILES)),)
        dh $@ --with=python2,python3,autoreconf
-
+else
+       dh $@ --with=autoreconf
+endif

Reply via email to