On Sat, Oct 22, 2016 at 10:55:59AM +0200, Helmut Grohne wrote:
> python-defaults fails to cross build from source, because it requests
> the host architecture python via its Build-Depends. Those cannot be
> installed nor executed. Please consider applying the attached patch,
> which adds :any annotations and makes a cross build succeed.

Oh, I noticed that I was patching a generated file. Here is an updated
patch that makes it cross build after running the control-file target.

Helmut
diff --minimal -Nru python-defaults-2.7.11/debian/changelog 
python-defaults-2.7.11/debian/changelog
--- python-defaults-2.7.11/debian/changelog     2016-06-03 16:38:47.000000000 
+0200
+++ python-defaults-2.7.11/debian/changelog     2016-10-22 15:13:50.000000000 
+0200
@@ -1,3 +1,10 @@
+python-defaults (2.7.11-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Annotate python build dependencies with :any (closes: #-1).
+
+ -- Helmut Grohne <[email protected]>  Sat, 22 Oct 2016 15:13:29 +0200
+
 python-defaults (2.7.11-2) unstable; urgency=medium
 
   [ Scott Kitterman ]
diff --minimal -Nru python-defaults-2.7.11/debian/control.in 
python-defaults-2.7.11/debian/control.in
--- python-defaults-2.7.11/debian/control.in    2016-06-03 01:31:52.000000000 
+0200
+++ python-defaults-2.7.11/debian/control.in    2016-10-22 15:14:37.000000000 
+0200
@@ -5,8 +5,8 @@
 Uploaders: Scott Kitterman <[email protected]>, Piotr Ożarowski 
<[email protected]>, Barry Warsaw <[email protected]>
 Build-Depends: debhelper (>= 9~), @bd_i586@,
   lsb-release,
-  python-all,
-  @PVER@ (>= @PREVVER@),
+  python-all:any,
+  @PVER@:any (>= @PREVVER@),
   debiandoc-sgml,
 Standards-Version: 3.9.8
 Homepage: http://www.python.org/
diff --minimal -Nru python-defaults-2.7.11/debian/rules 
python-defaults-2.7.11/debian/rules
--- python-defaults-2.7.11/debian/rules 2016-06-03 01:31:29.000000000 +0200
+++ python-defaults-2.7.11/debian/rules 2016-10-22 15:11:35.000000000 +0200
@@ -30,7 +30,7 @@
 ma_allowed     = yes
 
 ifeq (,$(filter $(distrelease),lenny etch squeeze wheezy lucid maverick natty 
oneiric precise quantal raring saucy trusty))
-  bd_i586 = dpkg-dev (>= 1.17.11), python2.7 (>= 2.7.11-11)
+  bd_i586 = dpkg-dev (>= 1.17.11), python2.7:any (>= 2.7.11-11)
 endif
 
 

Reply via email to