Package: src:lsb Version: 9.20161016 Severity: normal Tags: patch User: [email protected] Usertags: rebootstrap
lsb recently gained the architecture-dependent package lsb-compat. That means it has become relevant to cross building. Notably, that fails. Its Build-Depends: python3-all requests the host architecture python which can neither be executed nor installed. After fixing distro-info-data (#841648), all that is necessary for making lsb cross buildable is annotating that dependency with :any. While at it, I also implemented support for DEB_BUILD_OPTIONS=nocheck in the attached patch. Helmut
diff --minimal -Nru lsb-9.20161016/debian/changelog lsb-9.20161016+nmu1/debian/changelog --- lsb-9.20161016/debian/changelog 2016-10-16 15:55:46.000000000 +0200 +++ lsb-9.20161016+nmu1/debian/changelog 2016-10-22 09:09:57.000000000 +0200 @@ -1,3 +1,11 @@ +lsb (9.20161016+nmu1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Annotate Build-Depends: python3-all with :any. (Closes: #-1) + * Also support DEB_BUILD_OPTIONS=nocheck. + + -- Helmut Grohne <[email protected]> Fri, 21 Oct 2016 19:58:54 +0200 + lsb (9.20161016) unstable; urgency=medium * Introduce the new lsb-compat package, providing a limited compatibility diff --minimal -Nru lsb-9.20161016/debian/control lsb-9.20161016+nmu1/debian/control --- lsb-9.20161016/debian/control 2016-10-16 15:55:46.000000000 +0200 +++ lsb-9.20161016+nmu1/debian/control 2016-10-22 09:08:45.000000000 +0200 @@ -6,7 +6,7 @@ Build-Depends: debhelper (>> 9.0), po-debconf (>= 0.5.0), dpkg-dev (>= 1.10), - python3-all, + python3-all:any, dh-python, distro-info-data, X-Python3-Version: >= 3.4 diff --minimal -Nru lsb-9.20161016/debian/rules lsb-9.20161016+nmu1/debian/rules --- lsb-9.20161016/debian/rules 2016-10-16 15:55:46.000000000 +0200 +++ lsb-9.20161016+nmu1/debian/rules 2016-10-22 08:00:18.000000000 +0200 @@ -49,7 +49,11 @@ rm -rf __pycache__ rm -rf test/__pycache__ +ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) +override_dh_auto_test: +else override_dh_auto_test: $(PY3VERSIONS:%=test-python%) +endif test-python%: PATH=test/:$${PATH} PYTHONPATH=. python$* test/test_lsb_release.py -vv

