[PATCH] D115046: [test-release.sh] Do not run chrpath on AIX.

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 3 08:03:15 PST 2021


amyk created this revision.
amyk added reviewers: tstellar, power-llvm-team.
amyk added a project: LLVM.
Herald added a subscriber: fedor.sergeev.
amyk requested review of this revision.

Upon testing the use of test-release.sh on AIX, the script initially fails because chrpath
is not present on AIX. This patch adds checks for AIX and allows the script to continue
running to completion.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115046

Files:
  llvm/utils/release/test-release.sh


Index: llvm/utils/release/test-release.sh
===================================================================
--- llvm/utils/release/test-release.sh
+++ llvm/utils/release/test-release.sh
@@ -307,7 +307,7 @@
   fi
 }
 
-if [ "$System" != "Darwin" -a "$System" != "SunOS" ]; then
+if [ "$System" != "Darwin" ] && [ "$System" != "SunOS" ] && [ "$System" != "AIX" ]; then
   check_program_exists 'chrpath'
 fi
 
@@ -457,7 +457,7 @@
 # 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" -o "$System" = "SunOS" ]; then
+  if [ "$System" = "Darwin" ] || [ "$System" = "SunOS" ] || [ "$System" = "AIX" ]; then
     return
   fi
   local InstallPath="$1"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115046.391650.patch
Type: text/x-patch
Size: 804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211203/4567d3c4/attachment.bin>


More information about the llvm-commits mailing list