Changeset 22029


Ignore:
Timestamp:
08/31/17 00:52:19 (8 years ago)
Author:
dlcheng
Message:

CHG: Patch for windows builds to fix ar-lib and m4 installation.

Location:
issm/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/externalpackages/autotools/install-win.sh

    r22023 r22029  
    6464# compiler.
    6565patch ./install/bin/automake < ./patches/automake.patch
     66
     67# This patch is for ar-lib, and removes carriage return characters that cause
     68# commands to overwrite themselves and be misinterpreted during linking on
     69# Cygwin Windows.
     70patch ./install/share/automake-1.14/ar-lib < ./patches/ar-lib.patch
  • issm/trunk/jenkins/jenkins.sh

    r21973 r22029  
    1010#Server URI
    1111SERVER='https://ross.ics.uci.edu:8080'
     12#SERVER='http://ross.ics.uci.edu:8080'
    1213
    1314#Get configuration
     
    2930MATLAB_TEST=0
    3031PYTHON_TEST=0
     32JAVASCRIPT_TEST=0
    3133
    3234#source configuration script
     
    5860        #Process html page and get the list of files that has changed (tricky...)
    5961        #cat changes | grep '="The file was modified"' | sed -e 's/.*<\/td><td><a>\(.*\)<\/a><\/td><td>.*/\1/' > $ISSM_DIR/TEMP
    60         cat changes | grep 'document_edit' |sed -e 's/document_edit.png/document_edit.png\
    61                 /g' | sed -e 's/.*<\/a><\/td><td>\(.*\)<\/td><\/tr>.*/\1/' | grep -v 'document_edit.png' > $ISSM_DIR/TEMP
     62        #cat changes | grep 'document_edit' |sed -e 's/document_edit.png/document_edit.png\
     63                #/g' | sed -e 's/.*<\/a><\/td><td>\(.*\)<\/td><\/tr>.*/\1/' | grep -v 'document_edit.png' > $ISSM_DIR/TEMP
     64        cat changes  | tr " " "\n" | grep trunk |  sed -e 's/.*<a>\(.*\)<\/a>.*/\1/' > $ISSM_DIR/TEMP
    6265
    6366        #Print list of files
     
    124127echo "<testsuite tests=\"$NUMPACKAGES\">" > $EXTERNAL_TEST_FILE
    125128
    126 # Need a source here for when builds start midway through installation of
    127 # externalpackages.
     129# Need a source here for when builds start midway through installation of externalpackages.
    128130source $ISSM_DIR/etc/environment.sh
     131
     132if [ "$OS" == "win" ]; then
     133        echo " == WINDOWS ENVIRONMENT DETECTED =="
     134        source $ISSM_DIR/externalpackages/windows/windows_environment.sh
     135fi
    129136
    130137EXTERNALPACKAGES_FAILED=0;
     
    140147
    141148        #install if requested or if previous install has not been successful
    142         if [ "$ISSM_EXTERNALPACKAGES" == "yes" ] || [ ! -d ./install ] || [ ! "$(ls -A ./install)" ]; then
     149        if [ "$ISSM_EXTERNALPACKAGES" == "yes" ] || [ ! -d ./install -a ! -d ./install-javascript ] || ([ -d ./install ] && [ ! "$(ls -A ./install)" ]) || ([ -d ./install-javascript ] && [ ! "$(ls -A ./install-javascript)" ]); then
    143150                echo "======================================================";
    144151                echo "       Installing $PACKAGENAME                        ";
     
    146153
    147154                ./$PACKAGEINST &> compil.log
    148                 if [ $? -ne 0 ]; then
     155                if [ $? -ne 0 ] && [ "$PACKAGENAME" != "boost" ]; then
    149156                        echo "======================================================";
    150157                        echo "    ERROR: installation of $PACKAGENAME failed        ";
     
    180187fi
    181188
     189# Source here to include any newly installed externalpackages on the path.
    182190source $ISSM_DIR/etc/environment.sh
    183191
    184 if [ "$OS" == "win" ]
    185 then
     192if [ "$OS" == "win" ]; then
    186193        echo " == WINDOWS ENVIRONMENT DETECTED =="
    187194        source $ISSM_DIR/externalpackages/windows/windows_environment.sh
    188195fi
     196
     197#Set CXX/CC flags for JS runs after exnteralpackages to avoid conflicts during their compilation
     198CXX_PREVIOUS=$CXX
     199CC_PREVIOUS=$CC
     200if [ $JAVASCRIPT_TEST -eq 1 ]; then
     201        export CXX=em++
     202        export CC=emcc
     203        source $ISSM_DIR/externalpackages/emscripten/install/emsdk_env.sh
     204fi
     205
    189206#}}}
    190207#ISSM compilation yes/no                (ISSM_COMPILATION) {{{
     
    200217                make distclean
    201218                ./scripts/automakererun.sh
     219                if [ $? -ne 0 ]; then
     220                        echo "autoreconf failed!"
     221                        exit 1
     222                fi
    202223                eval "./configure $ISSM_CONFIG"
     224                if [ $? -ne 0 ]; then
     225                        echo "ISSM configuration failed (see options below)"
     226                        echo $ISSM_CONFIG
     227                        echo "ISSM configuration failed!"
     228                        exit 1
     229                fi
    203230        fi
    204231
     
    226253fi
    227254#}}}
     255
     256#Restore CXX/CC to their previous values
     257export CXX=$CXX_PREVIOUS
     258export CC=$CC_PREVIOUS
    228259
    229260#matlab tests
Note: See TracChangeset for help on using the changeset viewer.