From: Rainer Orth Date: Thu, 12 Sep 2019 14:50:32 +0000 (+0000) Subject: test-release.sh: Don't use chrpath on Solaris X-Git-Tag: llvmorg-11-init~9359 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0866dbfa1a8b36db16f58d1bd60688474d1b9474;p=platform%2Fupstream%2Fllvm.git test-release.sh: Don't use chrpath on Solaris When trying to run test-release.sh on Solaris 11.4 for 9.0.0 rc4, I failed initially because Solaris lacks chrpath. This patch accounts for that and allowed the run to continue. Tested on amd64-pc-solaris2.11 and sparcv9-sun-solaris2.11. Differential Revision: https://reviews.llvm.org/D67484 llvm-svn: 371741 --- diff --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh index 8f691cc..e00a41d 100755 --- a/llvm/utils/release/test-release.sh +++ b/llvm/utils/release/test-release.sh @@ -277,8 +277,11 @@ function check_program_exists() { fi } -if [ "$System" != "Darwin" ]; then +if [ "$System" != "Darwin" -a "$System" != "SunOS" ]; then check_program_exists 'chrpath' +fi + +if [ "$System" != "Darwin" ]; then check_program_exists 'file' check_program_exists 'objdump' fi @@ -444,7 +447,7 @@ function test_llvmCore() { # Clean RPATH. Libtool adds the build directory to the search path, which is # not necessary --- and even harmful --- for the binary packages we release. function clean_RPATH() { - if [ "$System" = "Darwin" ]; then + if [ "$System" = "Darwin" -o "$System" = "SunOS" ]; then return fi local InstallPath="$1"