Skip to contentSkip to conversation

openjdk-8: Add update version and build number to the java binaries

PATCH Applied Bernhard Dick 3 participants 3 messages Jun 29, 2016 – Jun 30, 2016

lore
Share & tools
lore
#0 lore raw

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
index 3206ec4..70bd40c 100644
@@ -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
#1 lore raw
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.

---
 recipes-core/openjdk/openjdk-8-common.inc | 7 +++++++
 1 file changed, 7 insertions(+)
recipes-core/openjdk/openjdk-8-common.inc +7 -1
index 3206ec4..70bd40c 100644
@@ -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

#2 lore raw
In reply to Bernhard Dick
Quoted 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.

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