From a015afec811128afc79ef28230d4b9ca9aabd867 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Fri, 11 Aug 2023 13:13:16 +0200 Subject: [PATCH] CI: Fix OSX 11 & 12 tarballs not containing dependencies The dependencies are under /opt/homebrew in the build machine that builds for OSX arm64, and under /usr/local in the other build machines. Signed-off-by: Paul Cercueil --- CI/azure/macos_tar_fixup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CI/azure/macos_tar_fixup.sh b/CI/azure/macos_tar_fixup.sh index a500de951..30f565383 100644 --- a/CI/azure/macos_tar_fixup.sh +++ b/CI/azure/macos_tar_fixup.sh @@ -29,7 +29,7 @@ ln -fs "../../../${libiioheader_loc}" usr/local/include/iio.h install_name_tool -add_rpath @loader_path/. "${libiio_loc}" # Copy dependent libs to local libs, and update rpath of dependencies -for each in $(otool -L "${libiio_loc}" |grep homebrew |cut -f2 | cut -d' ' -f1) ; do +for each in $(otool -L "${libiio_loc}" |grep '\/usr\/local\|homebrew' |cut -f2 | cut -d' ' -f1) ; do name=$(basename "${each}") cp "${each}" "${deps_dir}" chmod +w "${deps_dir}/${name}"