From deaba20e5cc269d64df11b1b2e4109b5bdaa5902 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 3 Apr 2012 20:33:58 +0000 Subject: [PATCH] SALOME 6.5.0 preparation: update script for tcl/tk (8.5.8) --- config_CentOS_5.5_64bit.xml | 2 +- config_Debian_4.0.xml | 2 +- config_Debian_4.0_64bit.xml | 2 +- config_Debian_5.0_64bit.xml | 2 +- config_Debian_6.0_64bit.xml | 2 +- config_Mandriva_2008.0.xml | 2 +- config_Mandriva_2008.0_64bit.xml | 2 +- config_Mandriva_2010.0.xml | 2 +- config_Mandriva_2010.0_64bit.xml | 2 +- config_Red_Hat_Enterprise_WS_4_64bit.xml | 2 +- config_Scientific_SL_5.1_64bit.xml | 2 +- config_files/{tcltk-8.5.8.sh => tcltk.sh} | 113 +++++++++------------- 12 files changed, 57 insertions(+), 78 deletions(-) rename config_files/{tcltk-8.5.8.sh => tcltk.sh} (57%) diff --git a/config_CentOS_5.5_64bit.xml b/config_CentOS_5.5_64bit.xml index a406404..b873d47 100755 --- a/config_CentOS_5.5_64bit.xml +++ b/config_CentOS_5.5_64bit.xml @@ -372,7 +372,7 @@ version="8.5.8" disable="false" installdiskspace="10765,28789,50385" - script="tcltk-8.5.8.sh"/> + script="tcltk.sh"/> + script="tcltk.sh"/> + script="tcltk.sh"/> + script="tcltk.sh"/> + script="tcltk.sh"/> + script="tcltk.sh"/> + script="tcltk.sh"/> + script="tcltk.sh"/> + script="tcltk.sh"/> + script="tcltk.sh"/> + script="tcltk.sh"/> ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <> ${PRODUCT_DIR}/CONFIGURE.LOG <> ${PRODUCT_DIR}/MAKE.LOG <> ${PRODUCT_DIR}/CONFIGURE.LOG <> ${PRODUCT_DIR}/MAKE.LOG < Common.mk.in -#cd ${PRODUCT_SRC_DIR}/tclx8.4.0_SRC/tcl/unix -#mv tclxConfig.sh.in tclxConfig.sh.in.orig -#sed -e 's/@DEFS@/ -DSTDC_HEADERS=1 -DNDEBUG=1 -DRETSIGTYPE=void /g' tclxConfig.sh.in.orig > tclxConfig.sh.in -#cd ${PRODUCT_SRC_DIR}/tclx8.4.0_SRC/tk/unix -#mv tkxConfig.sh.in tkxConfig.sh.in.orig -#sed -e 's/@DEFS@/ -DSTDC_HEADERS=1 -DNDEBUG=1 -DRETSIGTYPE=void /g' tkxConfig.sh.in.orig > tkxConfig.sh.in - -#cd ${PRODUCT_SRC_DIR}/tclx8.4.0_SRC/unix -#VRV - bug in a tclx configure -#chmod +w ./configure -#echo -e '/test "$no_create" = yes || ${CONFIG_SHELL-\/bin\/sh} $CONFIG_STATUS || exit 1\ns/test "$no_create" = yes || ${CONFIG_SHELL-\/bin\/sh} $CONFIG_STATUS || exit 1/test "$no_create" = yes || ${CONFIG_SHELL-\/bin\/sh} $CONFIG_STATUS || exit 0\nwq' | ed - configure -#INV - bug in a tclx configure +(cd ${PRODUCT_DIR}/bin; ln -fs wish${TK_VERSION} wish) +(cd ${PRODUCT_DIR}/lib; ln -fs libtk${TK_VERSION}.so libtk.so) +(cd ${PRODUCT_DIR}/lib; ln -fs libtkstub${TK_VERSION}.a libtkstub.a) -cd ${PRODUCT_SRC_DIR}/tclx8.4.0_SRC +cd ${PRODUCT_SRC_DIR}/tclx_${TCLX_VERSION}_SRC #INV - bug in a tclx configure -cp configure configure.orig && sed "s/relid'/relid/" configure.orig > configure -chmod 755 ./configure +chmod +w configure && sed -i "s/relid'/relid/" configure cat >> ${PRODUCT_DIR}/CONFIGURE.LOG <> ${PRODUCT_DIR}/MAKE.LOG <> ${PRODUCT_DIR}/MAKEINSTALLEXEC.LOG <> ${PRODUCT_DIR}/MAKEINSTALL.LOG < _tclConfig.sh -mv -f _tclConfig.sh tclConfig.sh -sed -e "s%${old_prefix}%${PRODUCT_DIR}%g" tkConfig.sh > _tkConfig.sh -mv -f _tkConfig.sh tkConfig.sh +sed -i "s%${old_prefix}%${PRODUCT_DIR}%g" tclConfig.sh +sed -i "s%${old_prefix}%${PRODUCT_DIR}%g" tkConfig.sh cd ${PRODUCT_DIR} - if test `uname -m` = "x86_64" ; then - if [ ! -h lib64 ]; then ln -s lib lib64; fi - fi +test `uname -m` = "x86_64" && test ! -e lib64 && ln -s lib lib64 # to generate environment scripts try_preinstalled @@ -257,7 +236,7 @@ export INSTALL_PRODUCTS=$7; shift REMOVE_SRC_TMP=$8; test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="tcltk-8.5.8" +export PRODUCT="tcltk-${TCL_VERSION}" export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}} export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC -- 2.39.2