Source: libseccomp Version: 2.3.3-1 Severity: important Tags: patch User: helm...@debian.org Usertags: rebootstrap
libseccomp added Python bindings. That's nice, but it introduces a cycle unfortunately. We need libseccomp for systemd and systemd comes quite early as libsystemd-dev has quite a few reverse dependencies. Thus we need to build libseccomp before we built python. The attached patch implements that using the standard nopython build profile. I verified that the build profile is clean using reproducible builds. Please consider applying it soonish. Helmut
diff --minimal -Nru libseccomp-2.3.3/debian/changelog libseccomp-2.3.3/debian/changelog --- libseccomp-2.3.3/debian/changelog 2018-04-22 23:55:03.000000000 +0200 +++ libseccomp-2.3.3/debian/changelog 2018-04-27 18:33:50.000000000 +0200 @@ -1,3 +1,10 @@ +libseccomp (2.3.3-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Support the nopython build profile. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Fri, 27 Apr 2018 18:33:50 +0200 + libseccomp (2.3.3-1) unstable; urgency=medium * New upstream release. (Closes: #895417) diff --minimal -Nru libseccomp-2.3.3/debian/control libseccomp-2.3.3/debian/control --- libseccomp-2.3.3/debian/control 2018-04-22 23:33:25.000000000 +0200 +++ libseccomp-2.3.3/debian/control 2018-04-27 18:33:50.000000000 +0200 @@ -3,7 +3,7 @@ Priority: optional Maintainer: Kees Cook <k...@debian.org> Uploaders: Luca Bruno <lu...@debian.org>, Felix Geyer <fge...@debian.org> -Build-Depends: debhelper (>= 10~), linux-libc-dev, dh-python, python-all-dev, python3-all-dev, cython, cython3 +Build-Depends: debhelper (>= 10~), linux-libc-dev, dh-python <!nopython>, python-all-dev <!nopython>, python3-all-dev <!nopython>, cython <!nopython>, cython3 <!nopython> Standards-Version: 3.9.7 Homepage: https://github.com/seccomp/libseccomp Vcs-Git: https://salsa.debian.org/debian/libseccomp.git @@ -44,6 +44,7 @@ the supported architectures. Package: python-seccomp +Build-Profiles: <!nopython> Architecture: linux-any Multi-Arch: same Section: python @@ -54,6 +55,7 @@ prctl() syscall. Package: python3-seccomp +Build-Profiles: <!nopython> Architecture: linux-any Multi-Arch: same Section: python diff --minimal -Nru libseccomp-2.3.3/debian/rules libseccomp-2.3.3/debian/rules --- libseccomp-2.3.3/debian/rules 2018-04-22 23:54:43.000000000 +0200 +++ libseccomp-2.3.3/debian/rules 2018-04-27 18:33:47.000000000 +0200 @@ -8,8 +8,13 @@ export V=1 %: +ifeq ($(filter nopython,$(DEB_BUILD_PROFILES)),) dh $@ --with python2,python3 +else + dh $@ +endif +ifeq ($(filter nopython,$(DEB_BUILD_PROFILES)),) override_dh_auto_configure: dh_auto_configure -- --enable-python @@ -24,6 +29,7 @@ set -e && for pyver in `py3versions -s`; do \ dh_auto_install --sourcedirectory=src/python -- PYTHON=$$pyver; \ done +endif override_dh_auto_clean: dh_auto_clean