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). Helmut
diff --minimal -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:05:11.000000000 +0200 +++ libcap-ng-0.7.7/debian/changelog 2016-10-15 16:13:07.000000000 +0200 @@ -1,3 +1,11 @@ +libcap-ng (0.7.7-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: make python-related Build-Depends cross-satisfiable + (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sat, 15 Oct 2016 16:08:55 +0200 + libcap-ng (0.7.7-3) unstable; urgency=high * Install libcap-ng so file to /lib (Closes: #829126, #828992) diff --minimal -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 2016-10-15 16:08:53.000000000 +0200 @@ -8,8 +8,10 @@ libattr1-dev, linux-kernel-headers, swig, - python-all-dev, - python3-dev + python-all-dev:any, + libpython-all-dev, + python3-dev:any, + libpython3-dev Standards-Version: 3.9.8 Section: libs X-Python-Version: >= 2.6