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
|
|
@ -569,6 +569,8 @@ def test_libc_ver(self):
|
|||
(b'/aports/main/musl/src/musl-1.2.5.7', ('musl', '1.2.5.7')),
|
||||
(b'libc.musl.so.1', ('musl', '1')),
|
||||
(b'libc.musl-x86_64.so.1.2.5', ('musl', '1.2.5')),
|
||||
(b'ld-musl.so.1', ('musl', '1')),
|
||||
(b'ld-musl-x86_64.so.1.2.5', ('musl', '1.2.5')),
|
||||
(b'', ('', '')),
|
||||
):
|
||||
with open(filename, 'wb') as fp:
|
||||
|
|
@ -591,6 +593,10 @@ def test_libc_ver(self):
|
|||
b'libc.musl-x86_64.so.1.4.1\0libc.musl-x86_64.so.2.1.1\0libc.musl-x86_64.so.2.0.1',
|
||||
('musl', '2.1.1'),
|
||||
),
|
||||
(
|
||||
b'ld-musl-x86_64.so.1.4.1\0ld-musl-x86_64.so.2.1.1\0ld-musl-x86_64.so.2.0.1',
|
||||
('musl', '2.1.1'),
|
||||
),
|
||||
(b'no match here, so defaults are used', ('test', '100.1.0')),
|
||||
):
|
||||
with open(filename, 'wb') as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue