openjdk-8: Add update version and build number to the java binaries
PATCH 1/1 openjdk-8: Add update version and build number to the java binaries
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.
--- recipes-core/openjdk/openjdk-8-common.inc | 7 +++++++ 1 file changed, 7 insertions(+)
recipes-core/openjdk/openjdk-8-common.inc +7 -0
@@ -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} \ +"
Signature · 1 line
2.8.1
Quoted 26 lines · Bernhard Dick
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 <[email protected]>--- recipes-core/openjdk/openjdk-8-common.inc | 7 +++++++ 1 file changed, 7 insertions(+)recipes-core/openjdk/openjdk-8-common.inc +7
-1@@ -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} \ +" --
Quoted 2 lines
2.8.1
LGTM. I have/had a similar change locally I was going to push alongside an update to OpenJDK.
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Otavio Salvador
AppliedQuoted 6 lines · Bernhard Dick
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 <[email protected]>
I applied this on master; thanks for the patch.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750