[oe] [meta-java][PATCH] openjdk-8: Add update version and build number to the java binaries
Bernhard Dick
bernhard at bdick.de
Wed Jun 29 13:20:40 UTC 2016
The OpenJDK builds did not include the update version and build number
leading to problems when applications check for the minimum needed version.
This commit fixes it by adding the update version and build number to the
configure parameters.
Signed-off-by: Bernhard Dick <bernhard at bdick.de>
---
recipes-core/openjdk/openjdk-8-common.inc | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
index 3206ec4..70bd40c 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -229,3 +229,10 @@ JDK_ARCH = "${@get_jdk_arch(d)}"
export DEBUG_BINARIES = "true"
ALTERNATIVE_PRIORITY = "50"
+
+OPENJDK_UPDATE_VERSION = "${@bb.data.getVar('PV', d, 1).split('b')[0]}"
+OPENJDK_BUILD_NUMBER = "b${@bb.data.getVar('PV', d, 1).split('b')[1]}"
+EXTRA_OECONF_append = "\
+ --with-build-number=${OPENJDK_BUILD_NUMBER} \
+ --with-update-version=${OPENJDK_UPDATE_VERSION} \
+"
--
2.8.1
More information about the Openembedded-devel
mailing list