From 0be2e21e2d7e3ad170021ddf5ca82e634175324b Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 19 Sep 2013 11:25:47 +0000 Subject: Potential fix for install_deps.sh OSL build issues reported by users: run ldconfig immediately after lib compile (looks like OSL compile process needs boost libs...). --- build_files/build_environment/install_deps.sh | 34 +++++++++++---------------- 1 file changed, 14 insertions(+), 20 deletions(-) (limited to 'build_files/build_environment') diff --git a/build_files/build_environment/install_deps.sh b/build_files/build_environment/install_deps.sh index 7ca3855ba11..f35badf36a8 100755 --- a/build_files/build_environment/install_deps.sh +++ b/build_files/build_environment/install_deps.sh @@ -193,7 +193,6 @@ BOOST_SOURCE="http://sourceforge.net/projects/boost/files/boost/$BOOST_VERSION/b BOOST_VERSION_MIN="1.49" BOOST_FORCE_REBUILD=false BOOST_SKIP=false -_need_boost_ldconfig=false OCIO_VERSION="1.0.7" OCIO_SOURCE="https://github.com/imageworks/OpenColorIO/tarball/v$OCIO_VERSION" @@ -209,14 +208,12 @@ ILMBASE_SOURCE="http://download.savannah.nongnu.org/releases/openexr/ilmbase-$IL OPENEXR_FORCE_REBUILD=false OPENEXR_SKIP=false _with_built_openexr=false -_need_openexr_ldconfig=false OIIO_VERSION="1.1.10" OIIO_SOURCE="https://github.com/OpenImageIO/oiio/archive/Release-$OIIO_VERSION.tar.gz" OIIO_VERSION_MIN="1.1" OIIO_FORCE_REBUILD=false OIIO_SKIP=false -_need_oiio_ldconfig=false LLVM_VERSION="3.1" LLVM_VERSION_MIN="3.0" @@ -550,6 +547,17 @@ _create_inst_shortcut() { ln -s $_inst $_inst_shortcut } +# ldconfig +run_ldconfig() { + _lib_path="$INST/$1/lib" + _ldonf_path="/etc/ld.so.conf.d/$1.conf" + INFO "" + INFO "Running ldconfig for $1..." + sudo sh -c "echo \"$INST/boost/lib\" > /etc/ld.so.conf.d/boost.conf" + sudo /sbin/ldconfig # XXX OpenSuse does not include sbin in command path with sudo!!! + INFO "" +} + #### Build Python #### _init_python() { _src=$SRC/Python-$PYTHON_VERSION @@ -739,7 +747,7 @@ compile_Boost() { fi # Just always run it, much simpler this way! - _need_boost_ldconfig=true + run_ldconfig "boost" } #### Build OCIO #### @@ -1142,7 +1150,7 @@ EOF _with_built_openexr=true # Just always run it, much simpler this way! - _need_openexr_ldconfig=true + run_ldconfig "openexr" } #### Build OIIO #### @@ -1405,7 +1413,7 @@ EOF fi # Just always run it, much simpler this way! - _need_oiio_ldconfig=true + run_ldconfig "oiio" } #### Build LLVM #### @@ -3150,20 +3158,6 @@ else exit 1 fi -INFO "" -INFO "Running ldconfig..." -if [ $_need_boost_ldconfig == true ]; then - sudo sh -c "echo \"$INST/boost/lib\" > /etc/ld.so.conf.d/boost.conf" -fi -if [ $_need_oiio_ldconfig == true ]; then - sudo sh -c "echo \"$INST/oiio/lib\" > /etc/ld.so.conf.d/oiio.conf" -fi -if [ $_need_openexr_ldconfig == true ]; then - sudo sh -c "echo \"$INST/openexr/lib\" > /etc/ld.so.conf.d/openexr.conf" -fi -sudo /sbin/ldconfig # XXX OpenSuse does not include sbin in command path with sudo!!! -INFO "" - print_info | tee BUILD_NOTES.txt INFO "" INFO "This information has been written to BUILD_NOTES.txt" -- cgit v1.2.3