On Tue, Jul 18, 2023 at 10:55:53PM +0200, Johannes Schauer Marin Rodrigues 
wrote:
>...
> $ apt-cache show crossbuild-essential-mips64el  | grep Depends:
> Depends: gcc-mips64el-linux-gnuabi64 (>= 4:10.2) | gcc:mips64el, 
> g++-mips64el-linux-gnuabi64 (>= 4:10.2) | g++:mips64el, dpkg-cross
> 
> But other packages use the same thing. Why does it work there?

An alternative dependency might be in non-free or might not exist at all.

Package: box64
Architecture: amd64 arm64 ppc64el riscv64
Depends:
 libgcc-s1:amd64,
 libstdc++6:amd64,

A package must not assume that the user has other architectures enabled.

There is a general issue around such dependencies, and also the more 
specific problem that permitting cross-architecture dependencies would
also require checking that migrating a package for one architecture does
not break dependencies on other architectures.

For box64, using libgcc-s1-amd64-cross and libstdc++6-amd64-cross might 
be an option (untested).

cu
Adrian

Reply via email to