[Python-modules-team] Bug#912859: mark python3-distutils-extra Multi-Arch: foreign

Helmut Grohne helmut at subdivi.de
Sun Nov 4 16:27:41 GMT 2018


Package: python3-distutils-extra
Version: 2.41
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

python3-distutils-extra cannot satisfy cross Build-Depends from e.g.
python-apt. In general, Architecture: all packages can never satisfy
cross Build-Depends unless marked Multi-Arch: foreign. In this case, the
marking looks correct to me, but it is not entirely trivial to verify.
On the dependency side, there is intltool, which is already Multi-Arch:
foreign. Then there is python3:any, which is also fine due to the :any
annotation. Then it does have maintainer scripts for byte compilation.
That step producs architecture-dependent .pyc files, but those .pyc
files will work with whatever python3 was installed. So that should be
fine as well. If someone ever uses python3-distutils-extra with an
embedded interpreter, the corresponding .pyc files will be missing, but
that's likely a minor issue compared to the problems we solve by marking
it Multi-Arch: foreign. Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru python-distutils-extra-2.41/debian/changelog python-distutils-extra-2.41+nmu1/debian/changelog
--- python-distutils-extra-2.41/debian/changelog	2018-03-25 21:22:32.000000000 +0200
+++ python-distutils-extra-2.41+nmu1/debian/changelog	2018-11-04 17:22:53.000000000 +0100
@@ -1,3 +1,10 @@
+python-distutils-extra (2.41+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Mark all packages Multi-Arch: foreign. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 04 Nov 2018 17:22:53 +0100
+
 python-distutils-extra (2.41) unstable; urgency=medium
 
   * Update Vcs-* for the move to salsa.debian.org
diff --minimal -Nru python-distutils-extra-2.41/debian/control python-distutils-extra-2.41+nmu1/debian/control
--- python-distutils-extra-2.41/debian/control	2018-03-25 21:22:32.000000000 +0200
+++ python-distutils-extra-2.41+nmu1/debian/control	2018-11-04 17:22:51.000000000 +0100
@@ -23,6 +23,7 @@
 
 Package: python-distutils-extra
 Architecture: all
+Multi-Arch: foreign
 XB-Python-Version: ${python:Versions}
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, intltool
 Suggests: devscripts
@@ -38,6 +39,7 @@
 
 Package: python3-distutils-extra
 Architecture: all
+Multi-Arch: foreign
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, intltool
 Suggests: devscripts
 Description: enhancements to the Python3 build system


More information about the Python-modules-team mailing list