6831225: Upgrade JPRT jobs to use newer Linux 2.6 (e.g. Fedora 9)

Mon, 27 Apr 2009 20:15:44 -0700

author
ohair
date
Mon, 27 Apr 2009 20:15:44 -0700
changeset 73
e13a01c44efe
parent 72
b02d566c15a7
child 76
ffd09e767dfa

6831225: Upgrade JPRT jobs to use newer Linux 2.6 (e.g. Fedora 9)
Reviewed-by: tbell

make/jprt.config file | annotate | diff | comparison | revisions
make/jprt.properties file | annotate | diff | comparison | revisions
     1.1 --- a/make/jprt.config	Thu Apr 23 15:54:44 2009 -0700
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,379 +0,0 @@
     1.4 -#!echo "This is not a shell script"
     1.5 -#############################################################################
     1.6 -#
     1.7 -# Copyright 2006-2009 Sun Microsystems, Inc.  All Rights Reserved.
     1.8 -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.9 -#
    1.10 -# This code is free software; you can redistribute it and/or modify it
    1.11 -# under the terms of the GNU General Public License version 2 only, as
    1.12 -# published by the Free Software Foundation.  Sun designates this
    1.13 -# particular file as subject to the "Classpath" exception as provided
    1.14 -# by Sun in the LICENSE file that accompanied this code.
    1.15 -#
    1.16 -# This code is distributed in the hope that it will be useful, but WITHOUT
    1.17 -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.18 -# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.19 -# version 2 for more details (a copy is included in the LICENSE file that
    1.20 -# accompanied this code).
    1.21 -#
    1.22 -# You should have received a copy of the GNU General Public License version
    1.23 -# 2 along with this work; if not, write to the Free Software Foundation,
    1.24 -# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.25 -#
    1.26 -# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    1.27 -# CA 95054 USA or visit www.sun.com if you need additional information or
    1.28 -# have any questions.
    1.29 -#
    1.30 -#############################################################################
    1.31 -#
    1.32 -# JPRT shell configuration for building.
    1.33 -#
    1.34 -# Input environment variables:
    1.35 -#    ALT_BOOTDIR
    1.36 -#    ALT_SLASH_JAVA
    1.37 -#    ALT_JDK_IMPORT_PATH
    1.38 -#    OPENJDK
    1.39 -#    Windows Only:
    1.40 -#      PATH
    1.41 -#      VS71COMNTOOLS
    1.42 -#      PROCESSOR_IDENTIFIER
    1.43 -#      ROOTDIR
    1.44 -#
    1.45 -# Output variable settings:
    1.46 -#    make            Full path to GNU make
    1.47 -#    compiler_path   Path to compiler bin directory
    1.48 -#    compiler_name   Unique name of this compiler
    1.49 -#
    1.50 -# Output environment variables:
    1.51 -#    PATH
    1.52 -#    ALT_COMPILER_PATH
    1.53 -#    OPENJDK only:
    1.54 -#      ALT_CLOSED_JDK_IMPORT_PATH
    1.55 -#      ALT_JDK_DEVTOOLS_DIR
    1.56 -#    Windows Only:
    1.57 -#      ALT_MSDEVTOOLS_PATH
    1.58 -#      ALT_DEVTOOLS_PATH (To avoid the C:/UTILS default)
    1.59 -#      LIB
    1.60 -#      INCLUDE
    1.61 -#
    1.62 -# After JDK6, most settings will be found via ALT_SLASH_JAVA or
    1.63 -#   by way of other system environment variables. If this was JDK5
    1.64 -#   or an older JDK, you might need to export more ALT_* variables.
    1.65 -#
    1.66 -# On Windows AMD64, if MSSDK is not set, assumes Platform SDK is installed at:
    1.67 -#          C:/Program Files/Microsoft Platform SDK
    1.68 -#
    1.69 -#############################################################################
    1.70 -
    1.71 -#############################################################################
    1.72 -# Error
    1.73 -error() # message
    1.74 -{
    1.75 -  echo "ERROR: $1"
    1.76 -  exit 6
    1.77 -}
    1.78 -# Directory must exist
    1.79 -dirMustExist() # dir name
    1.80 -{
    1.81 -  if [ ! -d "$1" ] ; then
    1.82 -    error "Directory for $2 does not exist: $1"
    1.83 -  fi
    1.84 -}
    1.85 -# File must exist
    1.86 -fileMustExist() # dir name
    1.87 -{
    1.88 -  if [ ! -f "$1" ] ; then
    1.89 -    error "File for $2 does not exist: $1"
    1.90 -  fi
    1.91 -}
    1.92 -#############################################################################
    1.93 -
    1.94 -# Should be set by JPRT as the 3 basic inputs
    1.95 -bootdir="${ALT_BOOTDIR}"
    1.96 -slashjava="${ALT_SLASH_JAVA}"
    1.97 -jdk_import="${ALT_JDK_IMPORT_PATH}"
    1.98 -
    1.99 -# The /java/devtools items
   1.100 -jdk_devtools="${slashjava}/devtools"
   1.101 -share="${jdk_devtools}/share"
   1.102 -
   1.103 -# Needed for langtools, maybe other parts of the build
   1.104 -ANT_HOME="${share}/ant/latest"
   1.105 -export ANT_HOME
   1.106 -
   1.107 -# The 3 bin directories in common to all platforms
   1.108 -sharebin="${share}/bin"
   1.109 -antbin="${ANT_HOME}/bin"
   1.110 -
   1.111 -# Check input
   1.112 -dirMustExist "${bootdir}"         ALT_BOOTDIR
   1.113 -dirMustExist "${slashjava}"       ALT_SLASH_JAVA
   1.114 -dirMustExist "${jdk_import}"      ALT_JDK_IMPORT_PATH
   1.115 -dirMustExist "${ANT_HOME}"        ANT_HOME
   1.116 -
   1.117 -# If ALT_PREVIOUS_RELEASE_IMAGE not defined, set it to the bootdir area for
   1.118 -#    any possible image comparisons.
   1.119 -#    We assume bootdir is a previous jdk release image, valid for comparison
   1.120 -#    reasons.
   1.121 -if [ "${ALT_PREVIOUS_RELEASE_IMAGE}" = "" ] ; then
   1.122 -   ALT_PREVIOUS_RELEASE_IMAGE="${bootdir}"
   1.123 -   export ALT_PREVIOUS_RELEASE_IMAGE
   1.124 -fi
   1.125 -
   1.126 -# Use the JDK import for now (FIXME: use the binary plugs?)
   1.127 -if [ "${OPENJDK}" = true ] ; then
   1.128 -  ALT_CLOSED_JDK_IMPORT_PATH="${jdk_import}"
   1.129 -  export ALT_CLOSED_JDK_IMPORT_PATH
   1.130 -fi
   1.131 -
   1.132 -# Uses 'uname -s', but only expect SunOS or Linux, assume Windows otherwise.
   1.133 -osname=`uname -s`
   1.134 -if [ "${osname}" = SunOS ] ; then
   1.135 -   
   1.136 -    # SOLARIS: Sparc or X86
   1.137 -    osarch=`uname -p`
   1.138 -    if [ "${osarch}" = sparc ] ; then
   1.139 -	solaris_arch=sparc
   1.140 -    else
   1.141 -	solaris_arch=i386
   1.142 -    fi
   1.143 -
   1.144 -    # Get the compilers into path (make sure it matches ALT setting)
   1.145 -    if [ "${JPRT_SOLARIS_COMPILER_NAME}" != "" ] ; then
   1.146 -        compiler_name=${JPRT_SOLARIS_COMPILER_NAME}
   1.147 -    else
   1.148 -	compiler_name=SS12
   1.149 -    fi
   1.150 -    compiler_path=${jdk_devtools}/${solaris_arch}/SUNWspro/${compiler_name}/bin
   1.151 -    ALT_COMPILER_PATH="${compiler_path}"
   1.152 -    export ALT_COMPILER_PATH
   1.153 -    dirMustExist "${compiler_path}" ALT_COMPILER_PATH
   1.154 -    path4sdk=${compiler_path}:${sharebin}:${antbin}
   1.155 -
   1.156 -    # Add basic solaris system paths
   1.157 -    path4sdk=${path4sdk}:/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/bin:/usr/sfw/bin
   1.158 -
   1.159 -    # Get the previous JDK to be used to bootstrap the build
   1.160 -    path4sdk=${bootdir}/bin:${path4sdk}
   1.161 -
   1.162 -    # Find GNU make
   1.163 -    make=/usr/sfw/bin/gmake
   1.164 -    if [ ! -f ${make} ] ; then
   1.165 -	make=/opt/sfw/bin/gmake
   1.166 -	if [ ! -f ${make} ] ; then
   1.167 -	    make=${jdk_devtools}/${solaris_arch}/bin/gnumake
   1.168 -        fi 
   1.169 -    fi
   1.170 -    fileMustExist "${make}" make
   1.171 -
   1.172 -    # File creation mask
   1.173 -    umask 002
   1.174 -
   1.175 -elif [ "${osname}" = Linux ] ; then
   1.176 -   
   1.177 -    # LINUX: X86, AMD64
   1.178 -    osarch=`uname -m`
   1.179 -    if [ "${osarch}" = i686 ] ; then
   1.180 -	linux_arch=i586
   1.181 -    elif [ "${osarch}" = x86_64 ] ; then
   1.182 -	linux_arch=amd64
   1.183 -    fi
   1.184 -
   1.185 -    # Get the compilers into path (make sure it matches ALT setting)
   1.186 -    compiler_path=/usr/bin
   1.187 -    compiler_name=usr_bin
   1.188 -    ALT_COMPILER_PATH="${compiler_path}"
   1.189 -    export ALT_COMPILER_PATH
   1.190 -    dirMustExist "${compiler_path}" ALT_COMPILER_PATH
   1.191 -    path4sdk=${compiler_path}:${sharebin}:${antbin}
   1.192 -    
   1.193 -    # Add basic paths
   1.194 -    path4sdk=${path4sdk}:/usr/bin:/bin:/usr/sbin:/sbin
   1.195 -
   1.196 -    # Get the previous JDK to be used to bootstrap the build
   1.197 -    path4sdk=${bootdir}/bin:${path4sdk}
   1.198 -    
   1.199 -    # Find GNU make
   1.200 -    make=/usr/bin/make
   1.201 -    fileMustExist "${make}" make
   1.202 -
   1.203 -    umask 002
   1.204 -   
   1.205 -    # Linux platform may be old, use motif files from the devtools area
   1.206 -    if [ "${OPENJDK}" = true ] ; then
   1.207 -      ALT_JDK_DEVTOOLS_DIR="${jdk_devtools}"
   1.208 -      export ALT_JDK_DEVTOOLS_DIR
   1.209 -    fi
   1.210 -
   1.211 -
   1.212 -else
   1.213 -
   1.214 -    # Windows: Differs on CYGWIN vs. MKS, and the compiler available.
   1.215 -    #   Also, blanks in pathnames gives GNU make headaches, so anything placed
   1.216 -    #   in any ALT_* variable should be the short windows dosname.
   1.217 -   
   1.218 -    # WINDOWS: Install and use MKS or CYGWIN (should have already been done)
   1.219 -    #   Assumption here is that you are in a shell window via MKS or cygwin.
   1.220 -    #   MKS install should have defined the environment variable ROOTDIR.
   1.221 -    #   We also need to figure out which one we have: X86, AMD64
   1.222 -    if [ "`echo ${PROCESSOR_IDENTIFIER} | fgrep AMD64`" != "" ] ; then
   1.223 -	windows_arch=amd64
   1.224 -    else
   1.225 -	windows_arch=i586
   1.226 -    fi
   1.227 -    
   1.228 -    # We need to determine if we are running a CYGWIN shell or an MKS shell
   1.229 -    #    (if uname isn't available, then it will be unix_toolset=unknown)
   1.230 -    unix_toolset=unknown
   1.231 -    if [ "`uname -a | fgrep Cygwin`" = "" -a -d "${ROOTDIR}" ] ; then
   1.232 -        # We kind of assume ROOTDIR is where MKS is and it's ok
   1.233 -        unix_toolset=MKS
   1.234 -        mkshome=`dosname -s "${ROOTDIR}"`
   1.235 -	# Utility to convert to short pathnames without spaces
   1.236 -	dosname="${mkshome}/mksnt/dosname -s"
   1.237 -        # Most unix utilities are in the mksnt directory of ROOTDIR
   1.238 -        unixcommand_path="${mkshome}/mksnt"
   1.239 -        path4sdk="${sharebin};${antbin};${unixcommand_path}"
   1.240 -        dirMustExist "${unixcommand_path}" ALT_UNIXCOMMAND_PATH
   1.241 -	devtools_path="${jdk_devtools}/win32/bin"
   1.242 -	path4sdk="${devtools_path};${path4sdk}"
   1.243 -	# Normally this need not be set, but on Windows it's default is C:/UTILS
   1.244 -        ALT_DEVTOOLS_PATH="${devtools_path}"
   1.245 -	export ALT_DEVTOOLS_PATH
   1.246 -        dirMustExist "${devtools_path}" ALT_DEVTOOLS_PATH
   1.247 -        # Find GNU make
   1.248 -        make="${devtools_path}/gnumake.exe"
   1.249 -        fileMustExist "${make}" make
   1.250 -    elif [ "`uname -a | fgrep Cygwin`" != "" -a -f /bin/cygpath ] ; then
   1.251 -        # For CYGWIN, uname will have "Cygwin" in it, and /bin/cygpath should exist
   1.252 -        unix_toolset=CYGWIN
   1.253 -	# Utility to convert to short pathnames without spaces
   1.254 -	dosname="/usr/bin/cygpath -a -m -s"
   1.255 -        # Most unix utilities are in the /usr/bin
   1.256 -        unixcommand_path="/usr/bin"
   1.257 -        path4sdk="${sharebin};${antbin};${unixcommand_path}"
   1.258 -        dirMustExist "${unixcommand_path}" ALT_UNIXCOMMAND_PATH
   1.259 -        # Find GNU make
   1.260 -        make="${unixcommand_path}/make.exe"
   1.261 -        fileMustExist "${make}" make
   1.262 -    else
   1.263 -      echo "WARNING: Cannot figure out if this is MKS or CYGWIN"
   1.264 -    fi
   1.265 -
   1.266 -    # WINDOWS: Compiler setup (nasty part)
   1.267 -    #   NOTE: You can use vcvars32.bat to set PATH, LIB, and INCLUDE.
   1.268 -    #   NOTE: CYGWIN has a link.exe too, make sure the compilers are first
   1.269 -    if [ "${windows_arch}" = i586 ] ; then
   1.270 -        # 32bit Windows compiler settings
   1.271 -        # VisualStudio .NET 2003 VC++ 7.1 (VS71COMNTOOLS should be defined)
   1.272 -        vs_root=`${dosname} "${VS71COMNTOOLS}/../.."`
   1.273 -        # Fill in PATH, LIB, and INCLUDE (unset all others to make sure)
   1.274 -        msdev_root="${vs_root}/Common7/Tools"
   1.275 -        msdevtools_path="${msdev_root}/bin"
   1.276 -        vc7_root="${vs_root}/Vc7"
   1.277 -        compiler_path="${vc7_root}/bin"
   1.278 -        compiler_name=VS2003
   1.279 -        platform_sdk="${vc7_root}/PlatformSDK"
   1.280 -        # LIB and INCLUDE must use ; as a separator
   1.281 -        include4sdk="${vc7_root}/atlmfc/include"
   1.282 -        include4sdk="${include4sdk};${vc7_root}/include"
   1.283 -        include4sdk="${include4sdk};${platform_sdk}/include/prerelease"
   1.284 -        include4sdk="${include4sdk};${platform_sdk}/include"
   1.285 -        include4sdk="${include4sdk};${vs_root}/SDK/v1.1/include"
   1.286 -        lib4sdk="${vc7_root}/atlmfc/lib"
   1.287 -        lib4sdk="${lib4sdk};${vc7_root}/lib"
   1.288 -        lib4sdk="${lib4sdk};${platform_sdk}/lib/prerelease"
   1.289 -        lib4sdk="${lib4sdk};${platform_sdk}/lib"
   1.290 -        lib4sdk="${lib4sdk};${vs_root}/SDK/v1.1/lib"
   1.291 -        # Search path and DLL locating path
   1.292 -        #   WARNING: CYGWIN has a link.exe too, make sure compilers are first
   1.293 -        path4sdk="${vs_root}/Common7/Tools/bin;${path4sdk}"
   1.294 -	path4sdk="${vs_root}/SDK/v1.1/bin;${path4sdk}"
   1.295 -        path4sdk="${vs_root}/Common7/Tools;${path4sdk}"
   1.296 -	path4sdk="${vs_root}/Common7/Tools/bin/prerelease;${path4sdk}"
   1.297 -        path4sdk="${vs_root}/Common7/IDE;${path4sdk}"
   1.298 -	path4sdk="${compiler_path};${path4sdk}"
   1.299 -    elif [ "${windows_arch}" = amd64 ] ; then
   1.300 -        # AMD64 64bit Windows compiler settings
   1.301 -	if [ "${MSSDK}" != "" ] ; then
   1.302 -	    platform_sdk="${MSSDK}"
   1.303 -	else
   1.304 -	    platform_sdk=`${dosname} "C:/Program Files/Microsoft Platform SDK/"`
   1.305 -	fi
   1.306 -	compiler_path="${platform_sdk}/Bin/win64/x86/AMD64"
   1.307 -        compiler_name=VS2005_PSDK
   1.308 -	msdevtools_path="${platform_sdk}/Bin"
   1.309 -        # LIB and INCLUDE must use ; as a separator
   1.310 -        include4sdk="${platform_sdk}/Include"
   1.311 -	include4sdk="${include4sdk};${platform_sdk}/Include/crt/sys"
   1.312 -	include4sdk="${include4sdk};${platform_sdk}/Include/mfc"
   1.313 -	include4sdk="${include4sdk};${platform_sdk}/Include/atl"
   1.314 -	include4sdk="${include4sdk};${platform_sdk}/Include/crt"
   1.315 -        lib4sdk="${platform_sdk}/Lib/AMD64"
   1.316 -        lib4sdk="${lib4sdk};${platform_sdk}/Lib/AMD64/atlmfc"
   1.317 -        # Search path and DLL locating path
   1.318 -        #   WARNING: CYGWIN has a link.exe too, make sure compilers are first
   1.319 -        path4sdk="${platform_sdk}/bin;${path4sdk}"
   1.320 -        path4sdk="${compiler_path};${path4sdk}"
   1.321 -    fi
   1.322 -    # Export LIB and INCLUDE
   1.323 -    unset lib
   1.324 -    unset Lib
   1.325 -    LIB="${lib4sdk}"
   1.326 -    export LIB
   1.327 -    unset include
   1.328 -    unset Include
   1.329 -    INCLUDE="${include4sdk}"
   1.330 -    export INCLUDE
   1.331 -    # Set the ALT variable
   1.332 -    ALT_COMPILER_PATH=`${dosname} "${compiler_path}"`
   1.333 -    export ALT_COMPILER_PATH
   1.334 -    dirMustExist "${compiler_path}" ALT_COMPILER_PATH
   1.335 -    ALT_MSDEVTOOLS_PATH=`${dosname} "${msdevtools_path}"`
   1.336 -    export ALT_MSDEVTOOLS_PATH
   1.337 -    dirMustExist "${msdevtools_path}" ALT_MSDEVTOOLS_PATH
   1.338 -    
   1.339 -    # WINDOWS: Get the previous JDK to be used to bootstrap the build
   1.340 -    path4sdk="${bootdir}/bin;${path4sdk}"
   1.341 -
   1.342 -    # Turn all \\ into /, remove duplicates and trailing /
   1.343 -    slash_path="`echo ${path4sdk} | sed -e 's@\\\\@/@g' -e 's@//@/@g' -e 's@/$@@' -e 's@/;@;@g'`"
   1.344 -    
   1.345 -    # For windows, it's hard to know where the system is, so we just add this
   1.346 -    #    to PATH.
   1.347 -    path4sdk="${slash_path};${PATH}"
   1.348 -    
   1.349 -    # Convert path4sdk to cygwin style
   1.350 -    if [ "${unix_toolset}" = CYGWIN ] ; then
   1.351 -	path4sdk="`/usr/bin/cygpath -p ${path4sdk}`"
   1.352 -    fi
   1.353 -
   1.354 -    # Set special windows ALT variables
   1.355 -    ALT_ISHIELDDIR="C:/ishield802"
   1.356 -    export ALT_ISHIELDDIR
   1.357 -
   1.358 -    # Sponsors binaries
   1.359 -    ALT_SPONSOR1DIR=C:/sponsor_binaries
   1.360 -    export ALT_SPONSOR1DIR
   1.361 -    ALT_SPONSOR2DIR=C:/sponsor_binaries 
   1.362 -    export ALT_SPONSOR2DIR
   1.363 -
   1.364 -    # JPRT systems can never run msival2.exe, set this to avoid them
   1.365 -    SKIP_MSIVAL2=true
   1.366 -    export SKIP_MSIVAL2
   1.367 -    # Not easy to do
   1.368 -    SKIP_COMPARE_IMAGES=true
   1.369 -    export SKIP_COMPARE_IMAGES
   1.370 -
   1.371 -fi
   1.372 -
   1.373 -# Export PATH setting
   1.374 -PATH="${path4sdk}"
   1.375 -export PATH
   1.376 -
   1.377 -# Things we need to unset
   1.378 -unset LD_LIBRARY_PATH
   1.379 -unset LD_LIBRARY_PATH_32
   1.380 -unset LD_LIBRARY_PATH_64
   1.381 -unset JAVA_HOME
   1.382 -
     2.1 --- a/make/jprt.properties	Thu Apr 23 15:54:44 2009 -0700
     2.2 +++ b/make/jprt.properties	Mon Apr 27 20:15:44 2009 -0700
     2.3 @@ -32,8 +32,8 @@
     2.4  solaris_sparcv9_5.10,\
     2.5  solaris_i586_5.10,\
     2.6  solaris_x64_5.10,\
     2.7 -linux_i586,\
     2.8 -linux_x64,\
     2.9 +linux_i586_2.6,\
    2.10 +linux_x64_2.6,\
    2.11  windows_i586,\
    2.12  windows_x64
    2.13  

mercurial