[oe] [meta-java][PATCH] openjdk-8: Add update version and build number to the java binaries

Dan McGregor danismostlikely at gmail.com
Thu Jun 30 13:31:39 UTC 2016


On 29 June 2016 at 07:20, Bernhard Dick <bernhard at bdick.de> wrote:
> 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
>

LGTM. I have/had a similar change locally I was going to push
alongside an update to OpenJDK.


> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list