提交 e258d52b 编写于 作者: E erikj

8074523: Windows native binaries have inconsistent 'Product version'

Reviewed-by: ihse, tbell
上级 946b60ad
...@@ -800,6 +800,7 @@ BOOT_RTJAR ...@@ -800,6 +800,7 @@ BOOT_RTJAR
JAVA_CHECK JAVA_CHECK
JAVAC_CHECK JAVAC_CHECK
COOKED_BUILD_NUMBER COOKED_BUILD_NUMBER
COOKED_JDK_UPDATE_VERSION
JDK_VERSION JDK_VERSION
COPYRIGHT_YEAR COPYRIGHT_YEAR
MACOSX_BUNDLE_ID_BASE MACOSX_BUNDLE_ID_BASE
...@@ -3878,7 +3879,7 @@ fi ...@@ -3878,7 +3879,7 @@ fi
#CUSTOM_AUTOCONF_INCLUDE #CUSTOM_AUTOCONF_INCLUDE
# Do not change or remove the following line, it is needed for consistency checks: # Do not change or remove the following line, it is needed for consistency checks:
DATE_WHEN_GENERATED=1430836833 DATE_WHEN_GENERATED=1433258489
############################################################################### ###############################################################################
# #
...@@ -11294,6 +11295,12 @@ fi ...@@ -11294,6 +11295,12 @@ fi
fi fi
# The cooked update version used to encode trailing letters in the update
# version into a trailing number. That is no longer needed, but need to
# keep the format in 8u for compatibility.
COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
...@@ -24194,10 +24201,10 @@ fi ...@@ -24194,10 +24201,10 @@ fi
-d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
-d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
-d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
-d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(COOKED_JDK_UPDATE_VERSION).\$(COOKED_BUILD_NUMBER)\" \
-d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
-d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
-d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(COOKED_JDK_UPDATE_VERSION),\$(COOKED_BUILD_NUMBER)\""
# lib.exe is used to create static libraries. # lib.exe is used to create static libraries.
# Extract the first word of "lib", so it can be a program name with args. # Extract the first word of "lib", so it can be a program name with args.
...@@ -531,6 +531,12 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_VERSION_NUMBERS], ...@@ -531,6 +531,12 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_VERSION_NUMBERS],
fi fi
AC_SUBST(JDK_VERSION) AC_SUBST(JDK_VERSION)
# The cooked update version used to encode trailing letters in the update
# version into a trailing number. That is no longer needed, but need to
# keep the format in 8u for compatibility.
COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
AC_SUBST(COOKED_JDK_UPDATE_VERSION)
COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
AC_SUBST(COOKED_BUILD_NUMBER) AC_SUBST(COOKED_BUILD_NUMBER)
]) ])
......
...@@ -167,6 +167,7 @@ USER_RELEASE_SUFFIX=@USER_RELEASE_SUFFIX@ ...@@ -167,6 +167,7 @@ USER_RELEASE_SUFFIX=@USER_RELEASE_SUFFIX@
# Different version strings generated from the above information. # Different version strings generated from the above information.
JDK_VERSION:=@JDK_VERSION@ JDK_VERSION:=@JDK_VERSION@
RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX) RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
COOKED_JDK_UPDATE_VERSION:=@COOKED_JDK_UPDATE_VERSION@
COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@ COOKED_BUILD_NUMBER:=@COOKED_BUILD_NUMBER@
# These variables need to be generated here so that MILESTONE and # These variables need to be generated here so that MILESTONE and
# JDK_BUILD_NUMBER can be overridden on the make command line. # JDK_BUILD_NUMBER can be overridden on the make command line.
......
...@@ -492,10 +492,10 @@ AC_DEFUN([TOOLCHAIN_SETUP_PATHS], ...@@ -492,10 +492,10 @@ AC_DEFUN([TOOLCHAIN_SETUP_PATHS],
-d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \
-d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \
-d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \
-d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(COOKED_JDK_UPDATE_VERSION).\$(COOKED_BUILD_NUMBER)\" \
-d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \
-d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \
-d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(COOKED_JDK_UPDATE_VERSION),\$(COOKED_BUILD_NUMBER)\""
# lib.exe is used to create static libraries. # lib.exe is used to create static libraries.
AC_CHECK_PROG([WINAR], [lib],[lib],,,) AC_CHECK_PROG([WINAR], [lib],[lib],,,)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册