Source: libgpiod Version: 1.4.1-3 Severity: wishlist Tags: patch It would be useful to be able to build libgpiod without python bindings. Doing so can simplify cross building if one doesn't need the bindings. The standard way to do that is using the nopython build profile. Please consider applying the attached patch. It happens to also fix the current FTBFS.
Helmut
diff --minimal -Nru libgpiod-1.4.1/debian/changelog libgpiod-1.4.1/debian/changelog --- libgpiod-1.4.1/debian/changelog 2019-09-10 11:02:05.000000000 +0200 +++ libgpiod-1.4.1/debian/changelog 2020-02-12 06:21:14.000000000 +0100 @@ -1,3 +1,10 @@ +libgpiod (1.4.1-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Support the nopython build profile. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Wed, 12 Feb 2020 06:21:14 +0100 + libgpiod (1.4.1-3) unstable; urgency=medium * d/control: diff --minimal -Nru libgpiod-1.4.1/debian/control libgpiod-1.4.1/debian/control --- libgpiod-1.4.1/debian/control 2019-09-10 10:50:54.000000000 +0200 +++ libgpiod-1.4.1/debian/control 2020-02-12 06:21:14.000000000 +0100 @@ -5,11 +5,12 @@ Build-Depends: debhelper-compat (= 12), autoconf-archive, automake, + dh-sequence-python3 <!nopython>, help2man, pkg-config, m4, - python3-dev, - python3-setuptools + python3-dev <!nopython>, + python3-setuptools <!nopython> Standards-Version: 4.4.0 Build-Depends-Indep: doxygen Homepage: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git @@ -83,6 +84,7 @@ This package contains the gpiod binary tools. Package: python3-libgpiod +Build-Profiles: <!nopython> Section: python Architecture: linux-any Depends: ${shlibs:Depends}, diff --minimal -Nru libgpiod-1.4.1/debian/rules libgpiod-1.4.1/debian/rules --- libgpiod-1.4.1/debian/rules 2019-04-08 10:33:56.000000000 +0200 +++ libgpiod-1.4.1/debian/rules 2020-02-12 06:21:11.000000000 +0100 @@ -9,12 +9,13 @@ DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU) %: - dh $@ --with python3 --exclude=.la + dh $@ --exclude=.la override_dh_auto_configure: dh_auto_configure -- \ --enable-tools=yes \ - --enable-bindings-python --enable-bindings-cxx \ + --$(if $(filter nopython,$(DEB_BUILD_PROFILES)),dis,en)able-bindings-python \ + --enable-bindings-cxx \ $(NULL) # Architecture: all only: build the doxygen documentation

