glibc: detect from "Free Software Foundation" not "gnu" (#44154)
which should be more generic
This commit is contained in:
parent
4108de1ce4
commit
b4aa2c3cab
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ def _libc_from_ldd(ldd: str) -> Optional["spack.spec.Spec"]:
|
||||||
except Exception:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if not re.search(r"\b(?:gnu|glibc|arm)\b", stdout, re.IGNORECASE):
|
if not re.search(r"\bFree Software Foundation\b", stdout):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
version_str = re.match(r".+\(.+\) (.+)", stdout)
|
version_str = re.match(r".+\(.+\) (.+)", stdout)
|
||||||
|
@ -75,7 +75,7 @@ def libc_from_dynamic_linker(dynamic_linker: str) -> Optional["spack.spec.Spec"]
|
||||||
return spec
|
return spec
|
||||||
except Exception:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
elif re.search(r"\b(?:gnu|glibc|arm)\b", stdout, re.IGNORECASE):
|
elif re.search(r"\bFree Software Foundation\b", stdout):
|
||||||
# output is like "ld.so (...) stable release version 2.33."
|
# output is like "ld.so (...) stable release version 2.33."
|
||||||
match = re.search(r"version (\d+\.\d+(?:\.\d+)?)", stdout)
|
match = re.search(r"version (\d+\.\d+(?:\.\d+)?)", stdout)
|
||||||
if not match:
|
if not match:
|
||||||
|
|
Loading…
Reference in a new issue