Skip to content
Snippets Groups Projects

CI: Suppress unnecessary warnings from commands on MacOS

Merged Ammar Nejati requested to merge suppressWarnings into r21
All threads resolved!
2 files
+ 7
7
Compare changes
  • Side-by-side
  • Inline
Files
2
  • da3df648
    The `install_name_tool` warnings about the invalidation of the MacOS code signature are discarded:
    ```
    install_name_tool: warning: changes being made to the file will invalidate the code signature in <filename>
    ```
    
    There is no way to prevent that, as the library RPATHs must be changed to build
    the MacOS package.
    
    Resolves issue #578
@@ -289,7 +289,7 @@ for bin in $pkgbins; do
ref_new="$libname"
# prepend with library rel. path, if any
[[ ! -z $librelpth ]] && ref_new="$librelpth/$ref_new"
install_name_tool "$bin" -change "$abspth0" "@rpath/$ref_new"
install_name_tool "$bin" -change "$abspth0" "@rpath/$ref_new" | grep -v "invalidate the code signature"
# make a proper RPATH to refer to the library within the package
# eg. '@loader_path/../Frameworks/Qt/'
rpath="@loader_path/"$(find_rpath "$bindir" "$libdir" "$librelpth")
@@ -343,7 +343,7 @@ for bin in $pkgbins; do
# eg. RPATHS for 'lib/libA.dylib': ../Library , ../Frameworks/Qt
if [[ ! -z $rpaths_bin_tr ]]; then
# eg. install_name_tool libA.so -add_rpath RPATH1 -add_rpath RPATH2 ...
eval install_name_tool $bin -add_rpath ${rpaths_bin_tr// / -add_rpath }
eval install_name_tool $bin -add_rpath ${rpaths_bin_tr// / -add_rpath } | grep -v "invalidate the code signature"
fi
done
Loading