Source: lz4
Version: 1.9.2-1
Severity: important
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: cross-satisfiability

lz4 fails to install its build dependency on the host architecture
python3 during cross compilation. There are two ways to fix this and the
attached patch combines both:
 * It really wants to run python3 (rather than say build a python3
   extension), so it should request the build architecture python3. This
   is done by annotating the dependency with :any (or :native).
 * The dependency is only used for running build-time tests. During
   cross compilation, we cannot run such tests and they're thus disabled
   via DEB_BUILD_OPTIONS=nocheck. Thus the dependency is unnecessary
   here and should be tagged <!nocheck> accordingly.

The severity of this bug is important, because cross building lz4 is
required for bootstrapping a new architecture as systemd build depends
on it. Please fix this bug soon.

Helmut
diff --minimal -Nru lz4-1.9.2/debian/changelog lz4-1.9.2/debian/changelog
--- lz4-1.9.2/debian/changelog  2019-10-29 11:19:36.000000000 +0100
+++ lz4-1.9.2/debian/changelog  2019-11-11 20:24:03.000000000 +0100
@@ -1,3 +1,10 @@
+lz4 (1.9.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Annotate the python3 dependency. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 11 Nov 2019 20:24:03 +0100
+
 lz4 (1.9.2-1) unstable; urgency=medium
 
   * New upstream release. (Closes: #943680)
diff --minimal -Nru lz4-1.9.2/debian/control lz4-1.9.2/debian/control
--- lz4-1.9.2/debian/control    2019-10-29 11:19:36.000000000 +0100
+++ lz4-1.9.2/debian/control    2019-11-11 20:23:58.000000000 +0100
@@ -1,7 +1,7 @@
 Source: lz4
 Priority: optional
 Maintainer: Nobuhiro Iwamatsu <iwama...@debian.org>
-Build-Depends: debhelper (>= 9.0.0), python3
+Build-Depends: debhelper (>= 9.0.0), python3:any <!nocheck>
 Standards-Version: 4.1.0
 Section: utils
 Homepage: https://github.com/Cyan4973/lz4

Reply via email to