diff --git a/crates/rattler_virtual_packages/src/libc.rs b/crates/rattler_virtual_packages/src/libc.rs index 80c8be823..e3248df34 100644 --- a/crates/rattler_virtual_packages/src/libc.rs +++ b/crates/rattler_virtual_packages/src/libc.rs @@ -58,7 +58,7 @@ fn try_detect_libc_version() -> Result, DetectLibCErro #[cfg(any(test, unix))] fn parse_glibc_ldd_version(input: &str) -> Result, DetectLibCError> { static GNU_LIBC_RE: once_cell::sync::Lazy = once_cell::sync::Lazy::new(|| { - regex::Regex::new("(?mi)(?:glibc|gentoo|gnu libc).*?([0-9]+(:?.[0-9]+)*)$").unwrap() + regex::Regex::new("(?mi)(?:glibc|gentoo|gnu libc|solus).*?([0-9]+(:?.[0-9]+)*)$").unwrap() }); if let Some(version_match) = GNU_LIBC_RE @@ -105,5 +105,9 @@ mod test { parse_glibc_ldd_version("ldd (GNU libc) 2.31").unwrap(), Some(Version::from_str("2.31").unwrap()) ); + assert_eq!( + parse_glibc_ldd_version("ldd (Solus) 2.39").unwrap(), + Some(Version::from_str("2.39").unwrap()) + ); } }