alire-project / alire

Command-line tool from the Alire project and supporting library
GNU General Public License v3.0
283 stars 49 forks source link

alr does not find Debian cross-toolchains #1193

Open pmunts opened 2 years ago

pmunts commented 2 years ago

Debian 11 (Bullseye) has a quite a few cross-toolchains in its package repository:

pmunts@PHILIPPI:~$ apt-cache search gnat-10 | egrep '^gnat'
gnat-10 - GNU Ada compiler
gnat-10-aarch64-linux-gnu - GNU Ada compiler
gnat-10-arm-linux-gnueabi - GNU Ada compiler
gnat-10-arm-linux-gnueabihf - GNU Ada compiler
gnat-10-i686-linux-gnu - GNU Ada compiler
gnat-10-powerpc64le-linux-gnu - GNU Ada compiler
gnat-10-s390x-linux-gnu - GNU Ada compiler
gnat-10-mips-linux-gnu - GNU Ada compiler
gnat-10-mips64-linux-gnuabi64 - GNU Ada compiler
gnat-10-mips64el-linux-gnuabi64 - GNU Ada compiler
gnat-10-mipsel-linux-gnu - GNU Ada compiler
gnat-10-mipsisa32r6-linux-gnu - GNU Ada compiler
gnat-10-mipsisa32r6el-linux-gnu - GNU Ada compiler
gnat-10-mipsisa64r6-linux-gnuabi64 - GNU Ada compiler
gnat-10-mipsisa64r6el-linux-gnuabi64 - GNU Ada compiler
gnat-10-alpha-linux-gnu - GNU Ada compiler
gnat-10-hppa-linux-gnu - GNU Ada compiler
gnat-10-m68k-linux-gnu - GNU Ada compiler
gnat-10-powerpc-linux-gnu - GNU Ada compiler
gnat-10-powerpc64-linux-gnu - GNU Ada compiler
gnat-10-riscv64-linux-gnu - GNU Ada compiler
gnat-10-sh4-linux-gnu - GNU Ada compiler
gnat-10-sparc64-linux-gnu - GNU Ada compiler
gnat-10-x86-64-linux-gnux32 - GNU Ada compiler
gnat-10-doc - documentation for the GNU Ada Compiler (gnat)

But alr search --full --external-detect gnat_ does not find any of these toolchains, neither before nor after one is installed.

The only workaround I have for now is to generate default.cgpr for a Debian cross-toolchain and manually copy it to an alr project directory.

mosteo commented 2 years ago

Right. Dedicated external definitions would be needed for those, which don't exist yet.