Fix glibc detection on ubuntu 24.02 (#2143)

* Fix glibc detection on ubuntu 24.02

On ubuntu 24.02, glibc are installed in:

```
/usr/lib/aarch64-linux-gnu/libc.so.6
/usr/lib/aarch64-linux-gnu/libc.so
```

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Add tests for ubuntu-24.02-arm

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Fix CI: Add detect-targets-ubuntu-arm-test

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Bump ubuntu-20.04 to ubuntu-22.04

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

* Update outdated comment in detect-targets-ubuntu-arm-test in ci.yml

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2025-05-07 18:43:36 +10:00 committed by GitHub
parent 20e9b25913
commit 1394d1bbda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 3 deletions

View file

@ -52,6 +52,10 @@ pub(super) async fn detect_targets(target: String) -> Vec<String> {
format!("/lib64/{dirname}/{filename}"),
format!("/usr/lib/{dirname}/{filename}"),
format!("/usr/lib64/{dirname}/{filename}"),
format!("/usr/lib/{dirname}/libc.so.6"),
format!("/usr/lib64/{dirname}/libc.so.6"),
format!("/usr/lib/{dirname}/libc.so"),
format!("/usr/lib64/{dirname}/libc.so"),
]
.into_iter()
.map(|p| AutoAbortHandle(tokio::spawn(is_gnu_ld(p))))