Re: [PATCH] Support :any architecture qualifiers for multiarch
* Steve Langasek <vorlon@debian.org>, 2013-09-18, 14:33:
On Wed, Sep 18, 2013 at 06:24:13PM +0200, Jakub Wilk wrote:
Following the “if it didn't happen on a mailing list, it didn't
happen”, I repeat here what I said on IRC:
12:26 < kwilk> So I rebuilt src:python-aalib, and I ended up these Depends: "python3:any (>= 3.3.2-2~), libaa1".
12:27 < kwilk> This is wrong; the package only works if the interpreter architecture is the same as libaa1 architecture.
12:27 < kwilk> Please revert this ":any" mess.
12:30 < kwilk> In general, just because a script or a module is pure-Python doesn't mean it doesn't care about interpreter's architecture.
12:30 < kwilk> And there's no way to determine automatically whether it cares or not.
Nonsense.
Yeah, right.
# dpkg --print-architecture
i386
# dpkg --print-foreign-architectures
amd64
# apt install liblas
[...]
# python -c 'import liblas; print liblas'
<module 'liblas' from '/usr/lib/python2.7/dist-packages/liblas/__init__.pyc'>
# apt install python:amd64
[...]
# python -c 'import liblas; print liblas'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/liblas/__init__.py", line 2, in <module>
from core import get_version
File "/usr/lib/python2.7/dist-packages/liblas/core.py", line 157, in <module>
las = ctypes.CDLL(lib_name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
OSError: liblas_c.so.2: wrong ELF class: ELFCLASS32
As a strawman, if there's a consensus that it's important to preserve
the capability to install jessie module packages on top of wheezy's
python, we could generate dependencies such as:
python:any (>= 2.7.5-5) | python (>= 2.6.6-3)
which I think would DTRT in all cases except where you try to
cross-install on top of the wheezy python, which is a negligible use
case.
The idea that cross-installabilty of python could justify less smooth
wheezy->jessie upgrades is not even remotely funny.
--
Jakub Wilk
Reply to: