Build: install_deps add lib64 paths for ldconfig

Building deps on some systems will install to opt/lib/library/lib64
directories rather than opt/lib/library/lib. This adds additional
lib64 paths for ldconfig to ensure the libraries are found at
runtime.
This commit is contained in:
Nathan Craddock 2019-08-29 10:16:13 -06:00
parent 5c7852ef9c
commit 33cd0535a0
Notes: blender-bot 2023-02-14 03:13:26 +01:00
Referenced by issue #69510, Box Select does not update properties
Referenced by issue #69317, Newest Build 2.81 (29.08.2019 - 33cd0535a0)  is blocked by antivirus. Other 2.81 builds are still fine. Antivirus and its database is the same.
1 changed files with 2 additions and 1 deletions

View File

@ -1107,13 +1107,14 @@ _create_inst_shortcut() {
# ldconfig
run_ldconfig() {
_lib_path="$INST/$1/lib"
_lib64_path="$INST/$1/lib64"
_ldconf_path="/etc/ld.so.conf.d/$1.conf"
PRINT ""
if [ ! $SUDO ]; then
WARNING "--no-sudo enabled, impossible to run ldconfig for $1, you'll have to do it yourself..."
else
INFO "Running ldconfig for $1..."
$SUDO sh -c "echo \"$_lib_path\" > $_ldconf_path"
$SUDO sh -c "echo -e \"$_lib_path\n$_lib64_path\" > $_ldconf_path"
$SUDO /sbin/ldconfig # XXX OpenSuse does not include sbin in command path with sudo!!!
fi
PRINT ""