mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
fix: ensure requirements check works for libc development versions (#202660)
This commit is contained in:
@@ -83,10 +83,10 @@ if [ -n "$(ldd --version | grep -v musl)" ]; then
|
||||
libc_real_path=$(readlink -f "$libc_path")
|
||||
if [ -x "$libc_real_path" ]; then
|
||||
# get version from executable
|
||||
libc_version=$($libc_real_path --version | sed -n 's/.*stable release version \([0-9]\+\.[0-9]\+\).*/\1/p')
|
||||
libc_version=$($libc_real_path --version | sed -n 's/.*release version \([0-9]\+\.[0-9]\+\).*/\1/p')
|
||||
else
|
||||
# .so is not executable on this host; try getting from strings
|
||||
libc_version=$(cat "$libc_real_path" | sed -n 's/.*stable release version \([0-9]\+\.[0-9]\+\).*/\1/p')
|
||||
libc_version=$(cat "$libc_real_path" | sed -n 's/.*release version \([0-9]\+\.[0-9]\+\).*/\1/p')
|
||||
fi
|
||||
if [ "$(printf '%s\n' "2.28" "$libc_version" | sort -V | head -n1)" = "2.28" ]; then
|
||||
found_required_glibc=1
|
||||
|
||||
Reference in New Issue
Block a user