Package: python-empy
Version: 3.3.2-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap
Control: affects -1 + src:sugar-artwork

sugar-artwork cannot be cross built, because its dependency on
python-empy is unsatisfiable. In general, Architecture: all packages can
never satisfy cross Build-Depends unless marked Multi-Arch: foreign. In
this case, all dependencies are already annotated :any except for the
explicit ones, but those should be dropped in favour of
${python*:Depends}. The maintainer scripts produce byte compiled .pyc
files, which are architecture-dependent, but their architecture matches
that of the installed python interpreter. Even foreign embedded
interpreters (very rare use case) work with a little startup penalty
(compiling modules every time). Thus the Multi-Arch: foreign marking
looks like a reasonable tradeoff. Please consider applying the attached
patch.

Helmut
diff --minimal -Nru empy-3.3.2/debian/changelog empy-3.3.2/debian/changelog
--- empy-3.3.2/debian/changelog 2014-10-12 13:41:04.000000000 +0200
+++ empy-3.3.2/debian/changelog 2018-03-21 17:16:00.000000000 +0100
@@ -1,3 +1,12 @@
+empy (3.3.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Mark all packages Multi-Arch: foreign. (Closes: #-1)
+  * Drop explicit interpreter dependencies: ${python*:Depends} already
+    contains them with a :any annotation.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 21 Mar 2018 17:16:00 +0100
+
 empy (3.3.2-1) unstable; urgency=medium
 
   * New upstream release
diff --minimal -Nru empy-3.3.2/debian/control empy-3.3.2/debian/control
--- empy-3.3.2/debian/control   2014-10-11 12:06:13.000000000 +0200
+++ empy-3.3.2/debian/control   2018-03-21 17:16:00.000000000 +0100
@@ -13,7 +13,8 @@
 
 Package: python-empy
 Architecture: all
-Depends: python, ${python:Depends}, ${misc:Depends}
+Multi-Arch: foreign
+Depends: ${python:Depends}, ${misc:Depends}
 Provides: ${python:Provides}
 Conflicts: python3-empy (<= 3.3-8)
 Description: templating system for Python (Python 2)
@@ -38,7 +39,8 @@
 
 Package: python3-empy
 Architecture: all
-Depends: python3, ${python3:Depends}, ${misc:Depends}
+Multi-Arch: foreign
+Depends: ${python3:Depends}, ${misc:Depends}
 Provides: ${python3:Provides}
 Conflicts: python-empy (<= 3.3-8)
 Description: templating system for Python (Python 3)
@@ -63,6 +65,7 @@
 Package: python-empy-doc
 Section: doc
 Architecture: all
+Multi-Arch: foreign
 Suggests: python-empy
 Depends: ${misc:Depends}
 Description: documentation for python-empy

Reply via email to