I’ve tried, an I have failed:
Alire has too many assumptions “you are running a run of a mill Linux distribution” to get the detection of external components working.
For libgmp, it is this messy piece of TOML code
[[external]]
kind = "system"
[external.origin."case(distribution)"]
"debian|ubuntu" = ["libgmp-dev"]
arch = ["gmp"]
msys2 = ["mingw-w64-x86_64-gmp"]
"homebrew|macports" = ["gmp"]
"fedora|rhel|suse" = ["gmp-devel"]
gentoo = ["dev-libs/gmp"]
What you can do:
- Have a local copy of alire index
- Use
alr indexto point to your own local copy of the index first - Change
index/li/libgmp/libgmp-external.tomlfile to make sure the library gets detected on void (this can be hard to get it working)
If you are in a hurry and want a quick solution, just remove the libgmp = "*" dependency from the gnatcoll_gmp alire package:
(make sure to edit the right version, there is 24, 25, 26, …)