diff options
author | Alexey Ushakov <Alexey.Ushakov@jetbrains.com> | 2018-11-23 21:50:39 +0300 |
---|---|---|
committer | Alexey Ushakov <Alexey.Ushakov@jetbrains.com> | 2018-11-23 21:54:56 +0300 |
commit | bda55f26307160090eb9620e65ed962d87f09a3b (patch) | |
tree | eb987928d9ea9dde3ea07f88bf51116c5e5fb23c | |
parent | 2e227143ce430bbe8c8e126f095330e1607842e4 (diff) | |
download | jdk8u-bda55f26307160090eb9620e65ed962d87f09a3b.tar.gz |
JRE-1032 Evaluate reported OpenJDK vulnerabilities in IntelliJ IDEA Communityjb8u202-b1505jb8u202-b1504jb8u202-b1502jb8u202-b1500.1jb8u202-b1500jb8u202-b1495jb8u202-b1494jb8u202-b1493jb8u202-b1491jb8u202-b1490jb8u202-b1486jb8u202-b1483.59jb8u202-b1483.58jb8u202-b1483.57jb8u202-b1483.56jb8u202-b1483.55jb8u202-b1483.53jb8u202-b1483.52jb8u202-b1483.51jb8u202-b1483.49jb8u202-b1483.47jb8u202-b1483.45jb8u202-b1483.44jb8u202-b1483.43jb8u202-b1483.40jb8u202-b1483.4jb8u202-b1483.39jb8u202-b1483.38jb8u202-b1483.37jb8u202-b1483.36jb8u202-b1483.35jb8u202-b1483.34jb8u202-b1483.33jb8u202-b1483.32jb8u202-b1483.31jb8u202-b1483.30jb8u202-b1483.3jb8u202-b1483.29jb8u202-b1483.28jb8u202-b1483.27jb8u202-b1483.26jb8u202-b1483.24jb8u202-b1483.21jb8u202-b1483.2jb8u202-b1483.19jb8u202-b1483.18jb8u202-b1483.17jb8u202-b1483.1jb8u202-b1483jb8u202-b1480jb8u202-b1474jb8u202-b1472jb8u202-b1471jb8u202-b1470jb8u202-b1468jb8u202-b1467.3jb8u202-b1467.2jb8u202-b1467jb8u202-b1466jb8u202-b1465jb8u202-b1461jb8u202-b1460jb8u202-b1456jb8u202-b1455jb8u202-b1453jb8u202-b1452.4jb8u202-b1452jb8u202-b1427jb8u152-b1426jb8u152-b1425jb8u152-b1424jb8u152-b1423jb8u152-b1422jb8u152-b1421
Ported Xcode 9 build support to 8u202 build scripts
-rw-r--r-- | common/autoconf/flags.m4 | 7 | ||||
-rw-r--r-- | common/autoconf/generated-configure.sh | 17 | ||||
-rw-r--r-- | common/autoconf/toolchain.m4 | 4 |
3 files changed, 19 insertions, 9 deletions
diff --git a/common/autoconf/flags.m4 b/common/autoconf/flags.m4 index cd7fb89..ebb9303 100644 --- a/common/autoconf/flags.m4 +++ b/common/autoconf/flags.m4 @@ -388,7 +388,12 @@ AC_DEFUN_ONCE([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK], CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" elif test "x$TOOLCHAIN_TYPE" = xgcc; then - $2CXXSTD_CXXFLAG="-std=gnu++98" + $2CC_VER_STR=`${CC} -v 2>&1 | $GREP 'version'` + $2CC_VER_NUM_MAJOR=`echo ${$2CC_VER_STR} | $GREP 'version' | $SED 's/.* version@<:@ @:>@*\(@<:@0-9@:>@*\).*/\1/'` + if test \( `echo ${$2CC_VER_STR} | $GREP -c 'LLVM'` -eq "0" \) -a ${$2CC_VER_NUM_MAJOR} -lt "9" ; then + $2CXXSTD_CXXFLAG="-std=gnu++98" + fi + FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([[$]$2CXXSTD_CXXFLAG -Werror], [], [$2CXXSTD_CXXFLAG=""]) $2CXXFLAGS_JDK="${$2CXXFLAGS_JDK} ${$2CXXSTD_CXXFLAG}" diff --git a/common/autoconf/generated-configure.sh b/common/autoconf/generated-configure.sh index 411bd6c..c1b2912 100644 --- a/common/autoconf/generated-configure.sh +++ b/common/autoconf/generated-configure.sh @@ -3455,7 +3455,7 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # -# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -4342,7 +4342,7 @@ VS_SDK_PLATFORM_NAME_2017= #CUSTOM_AUTOCONF_INCLUDE # Do not change or remove the following line, it is needed for consistency checks: -DATE_WHEN_GENERATED=1540846365 +DATE_WHEN_GENERATED=1542996501 ############################################################################### # @@ -26682,7 +26682,7 @@ fi # Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'` XC_VERSION_PARTS=( ${XCODE_VERSION//./ } ) - if test ! "${XC_VERSION_PARTS[0]}" = "4"; then + if test ! "${XC_VERSION_PARTS[0]}" -ge 4; then as_fn_error $? "Xcode 4 is required to build JDK 8, the version found was $XCODE_VERSION. Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select." "$LINENO" 5 fi @@ -27842,7 +27842,7 @@ $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` # Check that this is likely to be GCC. - $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null + $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Apple LLVM version\|Free Software Foundation" > /dev/null if test $? -ne 0; then { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} @@ -29583,7 +29583,7 @@ $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` # Check that this is likely to be GCC. - $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null + $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Apple LLVM version\|Free Software Foundation" > /dev/null if test $? -ne 0; then { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} @@ -41333,7 +41333,12 @@ $as_echo "$ac_cv_c_bigendian" >&6; } CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" elif test "x$TOOLCHAIN_TYPE" = xgcc; then - CXXSTD_CXXFLAG="-std=gnu++98" + CC_VER_STR=`${CC} -v 2>&1 | $GREP 'version'` + CC_VER_NUM_MAJOR=`echo ${CC_VER_STR} | $GREP 'version' | $SED 's/.* version[ ]*\([0-9]*\).*/\1/'` + if test \( `echo ${CC_VER_STR} | $GREP -c 'LLVM'` -eq "0" \) -a ${CC_VER_NUM_MAJOR} -lt "9" ; then + CXXSTD_CXXFLAG="-std=gnu++98" + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } diff --git a/common/autoconf/toolchain.m4 b/common/autoconf/toolchain.m4 index e3a82c8..df02d8e 100644 --- a/common/autoconf/toolchain.m4 +++ b/common/autoconf/toolchain.m4 @@ -271,7 +271,7 @@ AC_DEFUN_ONCE([TOOLCHAIN_PRE_DETECTION], # Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'` XC_VERSION_PARTS=( ${XCODE_VERSION//./ } ) - if test ! "${XC_VERSION_PARTS[[0]]}" = "4"; then + if test ! "${XC_VERSION_PARTS[[0]]}" -ge 4; then AC_MSG_ERROR([Xcode 4 is required to build JDK 8, the version found was $XCODE_VERSION. Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select.]) fi @@ -422,7 +422,7 @@ AC_DEFUN([TOOLCHAIN_EXTRACT_COMPILER_VERSION], # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` # Check that this is likely to be GCC. - $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null + $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Apple LLVM version\|Free Software Foundation" > /dev/null if test $? -ne 0; then AC_MSG_NOTICE([The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler.]) AC_MSG_NOTICE([The result from running with --version was: "$COMPILER_VERSION"]) |