]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Solaris specific fixes to nightly report.
authorIvo Raisr <ivosh@ivosh.net>
Sat, 9 Apr 2016 19:49:37 +0000 (19:49 +0000)
committerIvo Raisr <ivosh@ivosh.net>
Sat, 9 Apr 2016 19:49:37 +0000 (19:49 +0000)
Solaris libc is always tied to the Solaris release.
n-i-bz

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15855

nightly/bin/nightly

index 121e6a8b1fc96ad15d9cecdac8f4edfbe203681b..e53eda089733be94b04748327aeb453f0b3de8a4 100755 (executable)
@@ -224,21 +224,27 @@ vex_revision="`svn info valgrind-new/VEX | grep Revision | sed 's/Revision[ ]*:[
 gcc_version="`gcc --version 2> /dev/null | head -1`"
 gdb_version="`gdb --version 2> /dev/null | head -1`"
 as_version="`as --version 2> /dev/null | head -1`"
-libc_so="`ls -1 /lib/libc.so.* /lib64/libc.so.* /lib32/libc.so.* /lib/*-linux-gnu/libc.so.* 2>/dev/null | tail -1`"
-libc="unknown"
-if [ "x$libc_so" != "x" ]; then
-  if [ -e "$libc_so" -a -r "$libc_so" ]; then
-    libc="`$libc_so | head -1`"
+if [ `uname -o` = "Solaris" ]; then
+  libc="Solaris libc"
+else
+  libc_so="`ls -1 /lib/libc.so.* /lib64/libc.so.* /lib32/libc.so.* /lib/*-linux-gnu/libc.so.* 2>/dev/null | tail -1`"
+  libc="unknown"
+  if [ "x$libc_so" != "x" ]; then
+    if [ -e "$libc_so" -a -r "$libc_so" ]; then
+      libc="`$libc_so | head -1`"
+    fi
   fi
+  libc=`echo $libc | sed "s/, by Roland.*//"`
 fi
-libc=`echo $libc | sed "s/, by Roland.*//"`
 uname_stuff="`uname -mrs`"
 if [ -r /etc/os-release ]; then
   vendor_stuff="`. /etc/os-release; echo ${NAME} ${VERSION}`"
-elif which lsb_release 2>&1 > /dev/null; then
+elif which lsb_release >/dev/null 2>&1; then
   vendor_stuff="`lsb_release -sicr | xargs echo`"
 elif [ -e "/etc/issue.net" -a -r "/etc/issue.net" ]; then
   vendor_stuff="`cat /etc/issue.net | head -1`"
+elif [ -r /etc/release ]; then
+  vendor_stuff="`cat /etc/release | head -1`"
 else
   vendor_stuff="unknown"
 fi