mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-141600: Fix musl version detection on Void Linux (GH-141602)
This commit is contained in:
parent
c41fce08a5
commit
08477dbf30
4 changed files with 11 additions and 4 deletions
|
|
@ -197,7 +197,7 @@ def libc_ver(executable=None, lib='', version='', chunksize=16384):
|
|||
| (GLIBC_([0-9.]+))
|
||||
| (libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)
|
||||
| (musl-([0-9.]+))
|
||||
| (libc.musl(?:-\w+)?.so(?:\.(\d[0-9.]*))?)
|
||||
| ((?:libc\.|ld-)musl(?:-\w+)?.so(?:\.(\d[0-9.]*))?)
|
||||
""",
|
||||
re.ASCII | re.VERBOSE)
|
||||
|
||||
|
|
@ -236,7 +236,7 @@ def libc_ver(executable=None, lib='', version='', chunksize=16384):
|
|||
elif V(glibcversion) > V(ver):
|
||||
ver = glibcversion
|
||||
elif so:
|
||||
if lib != 'glibc':
|
||||
if lib not in ('glibc', 'musl'):
|
||||
lib = 'libc'
|
||||
if soversion and (not ver or V(soversion) > V(ver)):
|
||||
ver = soversion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue