From d7d2a9440b717d2b61941b9145e6bef7f7e9a154 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 20 Dec 2005 15:46:09 +0000 Subject: [PATCH] Merge bug fixes from SALOME_3_DS branch --- config_files/HappyDoc-r2_1.sh | 8 +++++--- config_files/Numeric-22.0.sh | 23 +++++++++++++++-------- config_files/Numeric-23.7.sh | 23 +++++++++++++++-------- config_files/VTK-4.2.6.sh | 24 +++++++++++++++--------- config_files/common.sh | 2 +- config_files/doxygen-1.3.7.sh | 2 +- config_files/msg2qm.sh | 3 +-- config_files/sip-4.1.sh | 2 +- config_files/tcltk-8.3.3.sh | 7 ++++--- config_files/tcltk-8.4.5.sh | 7 ++++--- 10 files changed, 62 insertions(+), 39 deletions(-) diff --git a/config_files/HappyDoc-r2_1.sh b/config_files/HappyDoc-r2_1.sh index ba6d1a0..03ad524 100755 --- a/config_files/HappyDoc-r2_1.sh +++ b/config_files/HappyDoc-r2_1.sh @@ -7,7 +7,6 @@ if [ "$?" -ne "0" ]; then fi happydoc 2&> /dev/null if [ "$?" -eq "0" ]; then - ver=`happydoc | grep "HappyDoc version 2.1"` ver=`happydoc | grep "HappyDoc version 2.1" | sort -u | awk '{print $NF}'` if [ "$ver" == "2.1" ]; then return 0 @@ -31,6 +30,7 @@ make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" try_native(){ happydoc="`find_in_path happydoc ${PATH}`" if [ -n "${happydoc}" ] ; then + ver=`happydoc | grep "HappyDoc version 2.1" | sort -u | awk '{print $NF}'` cat > ${INSTALL_WORK}/try_native.py </dev/null` + pythonpath=`dirname $pythonpath` + pythonpath=`dirname $pythonpath` tmp="${pythonpath} ${pythonpath} \${PYTHONPATH} ${PYTHONPATH}"; pythonpath=`sort_path ${tmp}` cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh </dev/null` +if [ -n "${numpath}" ] ; then + numpath=`dirname ${numpath}` + ver=`python -c 'import Numeric; print Numeric.__version__' 2>/dev/null | awk -F. '{v=0;for(i=1;i<=NF;i++)v=v*100+$i;print v}'` + if [ $ver -ge 2200 ] ; then + tmp="${numpath} ${numpath} \${PYTHONPATH} ${PYTHONPATH}"; + pythonpath=`sort_path ${tmp}` + cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh </dev/null` +if [ -n "${numpath}" ] ; then + numpath=`dirname ${numpath}` + ver=`python -c 'import Numeric; print Numeric.__version__' 2>/dev/null | awk -F. '{v=0;for(i=1;i<=NF;i++)v=v*100+$i;print v}'` + if [ $ver -ge 2307 ] ; then + tmp="${numpath} ${numpath} \${PYTHONPATH} ${PYTHONPATH}"; + pythonpath=`sort_path ${tmp}` + cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh </dev/null` + ret=`find $i -name $file -maxdepth 1 2>/dev/null` if [ -n "$ret" ] ; then ret=`echo $ret | sed -e"s%/\$file$%%g"` echo $ret diff --git a/config_files/doxygen-1.3.7.sh b/config_files/doxygen-1.3.7.sh index df29004..3857ff2 100755 --- a/config_files/doxygen-1.3.7.sh +++ b/config_files/doxygen-1.3.7.sh @@ -65,7 +65,7 @@ check_jb tar xfz ${SOURCE_DIR}/doxygen-1.3.7.tar.gz -C ${INSTALL_WORK} cd ${PRODUCT_WORK} makedir ${PRODUCT_DIR} # vsr: fix a bug on Mandrake-10.1: wrong qt library reference -sed -e "s/-lqt/-lqt-mt/g" ./tmake/lib/linux-g++/tmake.conf > ./tmake/lib/linux-g++/tmake.conf.new +sed -e "s/-lqt$/-lqt-mt/g" ./tmake/lib/linux-g++/tmake.conf > ./tmake/lib/linux-g++/tmake.conf.new mv ./tmake/lib/linux-g++/tmake.conf.new ./tmake/lib/linux-g++/tmake.conf # vsr: fix bug - configure fails on Red Hat 9 because of incorrect autodetect check for install tool # so it is necessary to put it directly diff --git a/config_files/msg2qm.sh b/config_files/msg2qm.sh index 42c4f2f..26b8f69 100755 --- a/config_files/msg2qm.sh +++ b/config_files/msg2qm.sh @@ -25,8 +25,7 @@ make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" try_native(){ msg2qmroot="`find_in_path msg2qm ${PATH}`" if [ -n "${msg2qmroot}" ] ; then - msg2qmroot=`cd ${msg2qmroot}/..; pwd` - tmp="\${msg2qmroot} ${MSG2QM_ROOT} \${PATH} ${PATH}"; + tmp="\${MSG2QM_ROOT} ${msg2qmroot} \${PATH} ${PATH}"; path=`sort_path ${tmp}` cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <