Source: python3-defaults
Version: 3.6.7-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

python3-defaults fails to cross build from source. The dependency on
python3.7 asks for a host architecture instance and that typically fails
its postinst. What you really need here is the build architecture
Python. Annotating the dependency with :any is enough to make
python3-defaults cross build successfully. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru python3-defaults-3.6.7/debian/changelog 
python3-defaults-3.6.7/debian/changelog
--- python3-defaults-3.6.7/debian/changelog     2018-10-21 11:21:31.000000000 
+0200
+++ python3-defaults-3.6.7/debian/changelog     2018-11-04 20:00:08.000000000 
+0100
@@ -1,3 +1,10 @@
+python3-defaults (3.6.7-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Annotate python build dependencies with :any (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 04 Nov 2018 20:00:08 +0100
+
 python3-defaults (3.6.7-1) unstable; urgency=high
 
   * Really ship the policy in the python3 package, and update from the last
diff --minimal -Nru python3-defaults-3.6.7/debian/control 
python3-defaults-3.6.7/debian/control
--- python3-defaults-3.6.7/debian/control       2018-10-21 11:21:31.000000000 
+0200
+++ python3-defaults-3.6.7/debian/control       2018-11-04 19:59:29.000000000 
+0100
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Matthias Klose <d...@debian.org>
 Uploaders: Piotr Ożarowski <pi...@debian.org>
-Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.17.11), python3.7 (>= 
3.6.7-1~),
+Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.17.11), python3.7:any (>= 
3.6.7-1~),
   lsb-release,
   python3-minimal:any,
   python3-docutils,
diff --minimal -Nru python3-defaults-3.6.7/debian/rules 
python3-defaults-3.6.7/debian/rules
--- python3-defaults-3.6.7/debian/rules 2018-10-21 11:21:31.000000000 +0200
+++ python3-defaults-3.6.7/debian/rules 2018-11-04 20:00:01.000000000 +0100
@@ -28,7 +28,7 @@
 STDLIBVER   := 3.6.7-1~
 
 ifeq (,$(filter $(distrelease),lenny etch squeeze wheezy lucid maverick natty 
oneiric precise quantal raring saucy trusty))
-  bd_i586 = dpkg-dev (>= 1.17.11), python3.7 (>= 3.6.7-1~),
+  bd_i586 = dpkg-dev (>= 1.17.11), python3.7:any (>= 3.6.7-1~),
 else
   bd_i586 = dpkg-dev (>= 1.16.1~),
 endif

Reply via email to