[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57033] trunk/blender/build_files/ build_environment/install_deps.sh: Various fixes.

Bastien Montagne montagne29 at wanadoo.fr
Sun May 26 17:00:43 CEST 2013


Revision: 57033
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57033
Author:   mont29
Date:     2013-05-26 15:00:42 +0000 (Sun, 26 May 2013)
Log Message:
-----------
Various fixes. Tested with OpenSuse 12.3 (amd64).

Modified Paths:
--------------
    trunk/blender/build_files/build_environment/install_deps.sh

Modified: trunk/blender/build_files/build_environment/install_deps.sh
===================================================================
--- trunk/blender/build_files/build_environment/install_deps.sh	2013-05-26 12:02:29 UTC (rev 57032)
+++ trunk/blender/build_files/build_environment/install_deps.sh	2013-05-26 15:00:42 UTC (rev 57033)
@@ -730,15 +730,15 @@
 
     magic_compile_set boost-$BOOST_VERSION $boost_magic
 
-    # Just always run it, much simpler this way!
-    _need_boost_ldconfig=true
-
     cd $CWD
     INFO "Done compiling Boost-$BOOST_VERSION!"
   else
     INFO "Own Boost-$BOOST_VERSION is up to date, nothing to do!"
     INFO "If you want to force rebuild of this lib, use the --force-boost option."
   fi
+
+  # Just always run it, much simpler this way!
+  _need_boost_ldconfig=true
 }
 
 #### Build OCIO ####
@@ -1392,15 +1392,15 @@
 
     magic_compile_set oiio-$OIIO_VERSION $oiio_magic
 
-    # Just always run it, much simpler this way!
-    _need_oiio_ldconfig=true
-
     cd $CWD
     INFO "Done compiling OpenImageIO-$OIIO_VERSION!"
   else
     INFO "Own OpenImageIO-$OIIO_VERSION is up to date, nothing to do!"
     INFO "If you want to force rebuild of this lib, use the --force-oiio option."
   fi
+
+  # Just always run it, much simpler this way!
+  _need_oiio_ldconfig=true
 }
 
 #### Build LLVM ####
@@ -2894,7 +2894,9 @@
   INFO ""
   INFO "****WARNING****"
   INFO "If you are experiencing issues building Blender, _*TRY A FRESH, CLEAN BUILD FIRST*_!"
-  INFO "Often, changes in the libs built by this script, or in your distro package, cannot simply be handled simply, so..."
+  INFO "The same goes for install_deps itself, if you encounter issues, please first erase everything in $SRC and $INST"
+  INFO "(provided obviously you did not add anything yourself in those dirs!), and run install_deps.sh again!"
+  INFO "Often, changes in the libs built by this script, or in your distro package, cannot be handled simply, so..."
   INFO ""
   INFO ""
   INFO "If you're using CMake add this to your configuration flags:"
@@ -3074,13 +3076,13 @@
 
 INFO ""
 INFO "Running ldconfig..."
-if [ _need_boost_ldconfig == true ]; then
-  sudo sh -c 'echo "$INST/boost/lib" > /etc/ld.so.conf.d/boost.conf'
+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'
+if [ $_need_oiio_ldconfig == true ]; then
+  sudo sh -c "echo \"$INST/oiio/lib\" > /etc/ld.so.conf.d/oiio.conf"
 fi
-sudo ldconfig
+sudo /sbin/ldconfig  # XXX OpenSuse does not include sbin in command path with sudo!!!
 INFO ""
 
 print_info | tee BUILD_NOTES.txt




More information about the Bf-blender-cvs mailing list