commit: a757e440fa4ada01e9e025b4469f0f0cdcf4bfbe
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 23 08:05:34 2016 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Feb 23 08:05:34 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a757e440
profiles/prefix/linux/profile.bashrc: fix libc code parsing, bug #572902
profiles/prefix/linux/profile.bashrc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/profiles/prefix/linux/profile.bashrc
b/profiles/prefix/linux/profile.bashrc
index 693dd8e..9a48901 100644
--- a/profiles/prefix/linux/profile.bashrc
+++ b/profiles/prefix/linux/profile.bashrc
@@ -11,7 +11,9 @@ get_libc_vers_min() {
| cut -d. -f2
return
elif [[ -x /lib/libc.so.6 || -x /lib64/libc.so.6 ]] ; then
- /lib/libc.so.6 || lib64/libc.so.6 \
+ {
+ /lib/libc.so.6 || /lib64/libc.so.6
+ } 2>/dev/null \
| head -n1 \
| grep -o 'version 2\.[0-9]\+' \
| cut -d. -f2