diff options
author | rillig <rillig@pkgsrc.org> | 2020-01-28 08:38:47 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2020-01-28 08:38:47 +0000 |
commit | bac73aad7948c7f89a21c36886fb061a5f3e0c41 (patch) | |
tree | 5ef823722b4cede135bb0e05e0c05491a0fc070c /mk/platform | |
parent | 3c6a19f302bf1417342c0995105f16683be89d47 (diff) | |
download | pkgsrc-bac73aad7948c7f89a21c36886fb061a5f3e0c41.tar.gz |
mk/platform/Linux: fix detection of GLIBC_VERSION on Debian
Running "/lib/x86_64-linux-gnu/libc.so.6 --version" on Debian unstable
inside WSL says:
GNU C Library (Debian GLIBC 2.29-9) stable release version 2.29.
In this case, there is a simple period, not a comma after the version
number.
Diffstat (limited to 'mk/platform')
-rw-r--r-- | mk/platform/Linux.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/platform/Linux.mk b/mk/platform/Linux.mk index 3c7a2be8807..fd383aba50b 100644 --- a/mk/platform/Linux.mk +++ b/mk/platform/Linux.mk @@ -1,4 +1,4 @@ -# $NetBSD: Linux.mk,v 1.82 2020/01/24 12:36:28 nia Exp $ +# $NetBSD: Linux.mk,v 1.83 2020/01/28 08:38:47 rillig Exp $ # # Variable definitions for the Linux operating system. @@ -171,7 +171,7 @@ CWRAPPERS_APPEND.ld+= -m elf_i386 . if exists(${_glibc_path}/libc.so.6) ## Use _CMD so the command only gets run when needed! _GLIBC_VERSION_CMD= ${_glibc_path}/libc.so.6 --version | \ - sed -ne's/^GNU C.*version \(.*\),.*$$/\1/p' + sed -ne's/^GNU C.*version \(.*\)[,.].*$$/\1/p' GLIBC_VERSION= ${_GLIBC_VERSION_CMD:sh} . endif .endfor |