Hello,
Le 17/09/2021 à 15:28, Christoph Berg a écrit :
Re: Michel Dänzer
Package: llvm-12-tools
Version: 1:12.0.1~+rc4-1
Severity: normal
llvm-12-tools requires python3 packages from the same architecture. This
prevents installing llvm-12-tools (and by extension llvm-12-dev) for a foreign
architecture.
E.g. trying to install llvm-12-tools:i386 with aptitude gives:
llvm-12-tools:i386 : Depends: python3:i386 but it is not going to be installed
Depends: python3-yaml:i386 but it is not going to be
installed
See
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9833/diffs?commit_id=af0fde955c518447ccd92134517b4e69308e10b2#3f46a9fa9651371b76f0894b75d719a4c5659642_44_45
for how I had to work around this in Mesa's upstream CI.
(In buster it was still possible to install llvm-*-dev packages for foreign
architectures)
The fix for this question is "Depends: python3:any" I believe.
Different take on a related issue:
When cross-compiling, I cannot install clang-11 and llvm-11-dev for
the build-architecture when installing the host-architecture
postgresql-server-dev-13. I think the fix is annotating (some subset
of) the llvm packges with "Multi-Arch: allowed".
Please consider applying these fixes so clang can be used for
cross-compilation.
If you folks want to see progress on this, I would need help. (
https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/tree/12/debian )
I don't know how to test that properly (so, testcase which aren't rebuild
postgresql would be appredciated)
and I made too many mistakes in the past with
the multi-arch flag to trust myself :)
thanks,
S