cargo-binstall/crates
Jiahao XU 0fa315758b
feat detect-targets: Improve support of non-std glibc/musl (#1343)
* feat `detect-targets`: Improve support of non-std glibc/musl

Fixed #1329

 - Refactor: Create `linux::detect_alternative_targets` to reuse code
   from other targets
 - Run `/lib/ld-linux-{cpu_arch}.so.1 --version` for checking glibc
   support instead of running `ldd --version` since it could be non-std
   glibc installation and does not provide
   `/lib/ld-linux-{cpu_arch}.so.1`
 - Check for non-std glibc and add fallback target
   `{cpu_arch}-{distro_name}-linux-gnu{abi}`
 - Add `{cpu_arch}-{distro_name}-linux-musl{abi}` fallback for musl
   libc, specially for Alpine since it has a
   `/lib/ld-musl-{cpu_arch}.so.1`
 - For unknown libc flavor, check for the target provided before
   fallback to musl

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* feat `detect-targets`: Support glibc on musl target

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* feat `detect-targets`: Unify `Libc::{Gnu, Musl}` checks

since we can't really tell if we are on gnu or musl

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2023-09-02 23:19:34 +00:00
..
atomic-file-install release: atomic-file-install v1.0.0 (#1305) 2023-08-19 04:50:39 +00:00
bin feat: Improve resolution logging and verbose logging (#1341) 2023-09-02 09:38:24 +00:00
binstalk feat: Improve resolution logging and verbose logging (#1341) 2023-09-02 09:38:24 +00:00
binstalk-bins release: binstalk-bins v0.1.0 (#1319) 2023-08-24 07:57:10 +00:00
binstalk-downloader feat: Add more logging to binstalk-{downloader, registry} (#1340) 2023-09-02 09:38:27 +00:00
binstalk-fetchers release: binstalk-fetchers v0.1.0 (#1322) 2023-08-24 10:24:07 +00:00
binstalk-manifests release: binstalk-manifests v0.8.1 (#1317) 2023-08-24 05:30:01 +00:00
binstalk-registry feat: Add more logging to binstalk-{downloader, registry} (#1340) 2023-09-02 09:38:27 +00:00
binstalk-types release: binstalk-types v0.5.0 (#1175) 2023-06-26 12:27:56 +00:00
cargo-toml-workspace release: cargo-toml-workspace v1.0.0 (#1306) 2023-08-19 04:51:04 +00:00
detect-targets feat detect-targets: Improve support of non-std glibc/musl (#1343) 2023-09-02 23:19:34 +00:00
detect-wasi Bump tempfile from 3.4.0 to 3.5.0 (#967) 2023-03-30 02:49:38 +00:00
fs-lock Bump fs4 from 0.6.4 to 0.6.5 (#1112) 2023-06-01 04:02:01 +00:00
leon Fix clippy lint and format (#1328) 2023-08-25 08:53:50 +00:00
leon-macros release: leon v2.0.1 (#1172) 2023-06-26 05:10:30 +00:00
normalize-path release: normalize-path v0.2.1 (#1173) 2023-06-26 08:22:39 +00:00
simple-git release: simple-git v0.1.0 (#1318) 2023-08-24 05:29:13 +00:00