From: vsr Date: Tue, 16 Apr 2013 14:04:57 +0000 (+0000) Subject: Minor changes X-Git-Tag: V7_2_0rc1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=51e3f513fe03c428518b002c0a9ebc4c0ac47cdc;p=tools%2Finstall.git Minor changes --- diff --git a/config_files/Python.sh b/config_files/Python.sh index 79e9576..11e3bf2 100755 --- a/config_files/Python.sh +++ b/config_files/Python.sh @@ -43,10 +43,10 @@ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <> ${PRODUCT_DIR}/MAKE.LOG </dev/null`" ] && [ -f ${d}/libGL.la ]; then @@ -658,6 +660,33 @@ echo "" return 1 } +fix_gl_libs(){ + local gllibdir="`where_gl_libs`" + if [ "$gllibdir" != "" ] ; then +#VSR: 02/04/2013 - next block is commented as it seems to be wrong :( libGL.la should not be ever mentioned +# if [ -f ${gllibdir}/libGL.la ] ; then +# libdir=`grep "libdir=" ${gllibdir}/libGL.la | sed -e "s%libdir='\(.*\)'%\1%"` +# if [ "`ls $libdir/libGL.so* 2>/dev/null`" ] ; then +# str_to_replace="${gllibdir}/libGL.la" +# fi +# fi + if [ "$str_to_replace" == "" ] ; then + str_to_replace="-L${gllibdir} -lGL" + fi + + la_files=`find . -name "*.la"` + for la_file in ${la_files} XXX ; do + if [ "${la_file}" = "XXX" ] ; then continue; fi + grep -e "libGL.la" ${la_file} >& /dev/null || grep -e "-lGL\b" ${la_file} >& /dev/null && + sed -e "s%-lGL\b%%g" \ + -e "s%[^[:space:]']*libGL.la[[:space:]]%%g" \ + -e "s%^dependency_libs='\(.*\)%dependency_libs='${str_to_replace} \1%" \ + ${la_file} > ${la_file}.new && \ + mv -f ${la_file}.new ${la_file} + done + fi +} + modif_la_files(){ ldir=$1 if [ -z "$ldir" ] || [ ! -d "$ldir" ]; then return 1; fi diff --git a/config_files/qt.sh b/config_files/qt.sh index e56a5c9..9715e9a 100755 --- a/config_files/qt.sh +++ b/config_files/qt.sh @@ -31,9 +31,9 @@ cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <& /dev/null if [ "$?" != "0" ] ; then - echo -n ".. Patching Qt sources: fix problem with gstreamer detection (WebKit)..." && \ - cd ${PRODUCT_SRC_DIR}/src/3rdparty/webkit/Source/WebCore && \ - sed -i "s%glib-2.0 gio-2.0 gstreamer-0.10%glib-2.0 gio-2.0 '\\\\'gstreamer-0.10 >= 0.10.28\\\\''%g" features.pri >& /dev/null + cd ${PRODUCT_SRC_DIR}/src/3rdparty/webkit/Source/WebCore + sed -i "s%glib-2.0 gio-2.0 gstreamer-0.10%glib-2.0 gio-2.0 '\\\\'gstreamer-0.10 >= 0.10.28\\\\''%g" features.pri fi fi @@ -115,9 +114,8 @@ fi # patch binaries local patch_webkit_deps=1 if [ "${patch_webkit_deps}" = "1" ] ; then - echo -n ".. Patching Qt binaries: fix wrong dependencies in libQtWebKit..." && \ - cd ${PRODUCT_DIR}/lib && \ - sed -i "s% -L../../WebCore/release%%g;s% -L../../JavaScriptCore/release%%g;s% -lwebcore%%g;s% -ljscore%%g" libQtWebKit.la >& /dev/null + cd ${PRODUCT_DIR}/lib + sed -i "s% -L../../WebCore/release%%g;s% -L../../JavaScriptCore/release%%g;s% -lwebcore%%g;s% -ljscore%%g" libQtWebKit.la >& /dev/null fi # to generate environment scripts diff --git a/config_files/tcltk.sh b/config_files/tcltk.sh index dcff6f9..5bc8a78 100755 --- a/config_files/tcltk.sh +++ b/config_files/tcltk.sh @@ -66,9 +66,9 @@ print_env_bin() cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <