Re: [oe] State of Java on OE
Op 22-04-17 om 00:25 schreef Steven Osborn: > Is anyone using Java on OE devices right now? Me! > meta-java - no release branches. Seems to only be focused on master. > I've had trouble even finding a revision that will compile on Morty. koen@beast:/build/v2016.12$ cat .repo/manifests/default.xml | grep java That generates an openjdk-8 good enough to run jenkins on x86-64, no idea about other archs. regards, Koen > > meta-oracle-java has a Morty branch, but the URI for the binaries is bad > so it fails to install. > > Overall it seems like Java is not a very favored or platform at the > moment. > > -- Steven Osborn http://lolsborn.com > -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
[oe] [meta-browser][PATCH] chromium: show progress for do_compile
This was stolen from meta-oe / meson.bbclass - chromium uses ninja for build too. Signed-off-by: Andreas Müller --- recipes-browser/chromium/chromium-browser.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-browser/chromium/chromium-browser.inc b/recipes-browser/chromium/chromium-browser.inc index 598e9f2..bf1964f 100644 --- a/recipes-browser/chromium/chromium-browser.inc +++ b/recipes-browser/chromium/chromium-browser.inc @@ -203,6 +203,8 @@ do_configure_append() { } +do_compile[progress] = "outof:^\[(\d+)/(\d+)\]\s+" + do_compile() { # build with ninja ninja -C ${S}/out/${CHROMIUM_BUILD_TYPE} ${PARALLEL_MAKE} chrome chrome_sandbox \ -- 2.9.3 -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [oe] [meta-browser][PATCH] chromium: show progress for do_compile
Sweet! -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
[oe] [meta-java][PATCH 0/5] Fix some issues of openjdk-8/openjre-8 headful build
From: Ming Liu This patch series fix some issues, so the openjdk-8/openjre-8 now can build with X11 system (headful). Ming Liu (5): openjdk-8-cross.inc: change a dependency alsa-lib-native to alsa-lib openjdk-8-cross.inc: fix wrong sysroot path openjdk-8-cross.inc: tweak PACKAGECONFIG default value openjdk-8/openjre-8: merge some redundant code openjdk-8-cross.inc: fix a libpng build issue recipes-core/openjdk/openjdk-8-cross.inc | 32 +++--- recipes-core/openjdk/openjdk-8_102b14.bb | 14 -- recipes-core/openjdk/openjre-8_102b14.bb | 14 -- .../openjdk8-fix-libpng-neon-build.patch | 29 4 files changed, 57 insertions(+), 32 deletions(-) create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-libpng-neon-build.patch -- 2.7.4 -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
[oe] [meta-java][PATCH 3/5] openjdk-8-cross.inc: tweak PACKAGECONFIG default value
From: Ming Liu When x11, alsa is being set in DISTRO_FEATURES, the users might expect openjdk build with the related options as well. For instance, they might be confused when the openjdk is still built as headless but x11 is actually enabled from system aspect. With this patch, the end users still can choose build openjdk without these options by overriding PACKAGECONFIG. Two small fixes are also needed to let openjdk build with x11: - Add libxtst to DEPENDS. - Pass ac_x_includes and ac_x_libraries to configure command. Signed-off-by: Ming Liu --- recipes-core/openjdk/openjdk-8-cross.inc | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc index 11e98b5..3973fcf 100644 --- a/recipes-core/openjdk/openjdk-8-cross.inc +++ b/recipes-core/openjdk/openjdk-8-cross.inc @@ -15,8 +15,12 @@ PRIVATE_LIBS = "\ libsctp.so libsplashscreen.so libsunec.so libunpack.so libverify.so libzip.so \ " -PACKAGECONFIG ??= "repack" -PACKAGECONFIG[x11] = "--with-x,,libx11 xproto libxt libxext libxrender" +PACKAGECONFIG ??= " \ +repack \ +${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 cups', '', d)} \ +${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \ +" +PACKAGECONFIG[x11] = "--with-x,,libx11 xproto libxt libxext libxrender libxtst" PACKAGECONFIG[cups] = "--with-cups,,cups" PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib" @@ -31,6 +35,11 @@ PACKAGECONFIG[shark] = "--with-jvm-variants=zeroshark,,llvm3.5," PACKAGECONFIG[repack] = ",,," +CACHED_CONFIGUREVARS = " \ +${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'ac_x_includes=${STAGING_INCDIR}', '', d)} \ +${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'ac_x_libraries=${STAGING_LIBDIR}', '', d)} \ +" + require openjdk-8-common.inc JAVA_HOME[unexport] = "1" -- 2.7.4 -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
[oe] [meta-java][PATCH 1/5] openjdk-8-cross.inc: change a dependency alsa-lib-native to alsa-lib
From: Ming Liu For cross compiling, it should DEPENDS on alsa-lib instead of alsa-lib-native. Signed-off-by: Ming Liu --- recipes-core/openjdk/openjdk-8-cross.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc index 47fe35d..b328395 100644 --- a/recipes-core/openjdk/openjdk-8-cross.inc +++ b/recipes-core/openjdk/openjdk-8-cross.inc @@ -18,7 +18,7 @@ PRIVATE_LIBS = "\ PACKAGECONFIG ??= "repack" PACKAGECONFIG[x11] = "--with-x,,libx11 xproto libxt libxext libxrender" PACKAGECONFIG[cups] = "--with-cups,,cups" -PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native" +PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib" PACKAGECONFIG[jce] = "--enable-unlimited-crypto,," -- 2.7.4 -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
[oe] [meta-java][PATCH 4/5] openjdk-8/openjre-8: merge some redundant code
From: Ming Liu A identical PATCHES_URI_append is being set both in openjdk-8 and openjre-8, merge them into openjdk-8-cross.inc. Signed-off-by: Ming Liu --- recipes-core/openjdk/openjdk-8-cross.inc | 14 ++ recipes-core/openjdk/openjdk-8_102b14.bb | 14 -- recipes-core/openjdk/openjre-8_102b14.bb | 14 -- 3 files changed, 14 insertions(+), 28 deletions(-) diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc index 3973fcf..247438f 100644 --- a/recipes-core/openjdk/openjdk-8-cross.inc +++ b/recipes-core/openjdk/openjdk-8-cross.inc @@ -1,6 +1,20 @@ JDK_HOME = "${libdir_jvm}/openjdk-8" JRE_HOME = "${libdir_jvm}/openjre-8" +# some patches extracted from http://cr.openjdk.java.net/~rkennke/shark-build-hotspot/webrev.01/hotspot.patch +# reported via http://mail.openjdk.java.net/pipermail/build-dev/2015-January/013972.html +# by Roman Kennke (rkennke at redhat.com) +PATCHES_URI_append = "\ +file://openjdk8-restrict-to-staging-dir.patch;apply=no \ +file://openjdk8-fix-shark-build.patch;apply=no \ +file://openjdk8-fix-shark-stdc++11.patch;apply=no \ +file://openjdk8-fix-assembler-flag-handling-in-makefile.patch;apply=no \ +file://openjdk8-fix-adlc-flags.patch;apply=no \ +file://openjdk8-silence-d_fortify_source-warning.patch;apply=no \ +file://openjdk8-fix-zero-mode-crash.patch;apply=no \ +file://openjdk8-add-missing-linker-flags.patch;apply=no \ +" + DEPENDS = "\ openjdk-8-native zip-native ant-native libxslt \ jpeg libpng krb5 libffi fontconfig freetype \ diff --git a/recipes-core/openjdk/openjdk-8_102b14.bb b/recipes-core/openjdk/openjdk-8_102b14.bb index 210c897..efed329 100644 --- a/recipes-core/openjdk/openjdk-8_102b14.bb +++ b/recipes-core/openjdk/openjdk-8_102b14.bb @@ -1,20 +1,6 @@ require openjdk-8-release-102b14.inc require openjdk-8-cross.inc -# some patches extracted from http://cr.openjdk.java.net/~rkennke/shark-build-hotspot/webrev.01/hotspot.patch -# reported via http://mail.openjdk.java.net/pipermail/build-dev/2015-January/013972.html -# by Roman Kennke (rkennke at redhat.com) -PATCHES_URI_append = "\ -file://openjdk8-restrict-to-staging-dir.patch;apply=no \ -file://openjdk8-fix-shark-build.patch;apply=no \ -file://openjdk8-fix-shark-stdc++11.patch;apply=no \ -file://openjdk8-fix-assembler-flag-handling-in-makefile.patch;apply=no \ -file://openjdk8-fix-adlc-flags.patch;apply=no \ -file://openjdk8-silence-d_fortify_source-warning.patch;apply=no \ -file://openjdk8-fix-zero-mode-crash.patch;apply=no \ -file://openjdk8-add-missing-linker-flags.patch;apply=no \ -" - do_install() { rm -rf ${D}${JDK_HOME} mkdir -p ${D}${JDK_HOME} diff --git a/recipes-core/openjdk/openjre-8_102b14.bb b/recipes-core/openjdk/openjre-8_102b14.bb index 88160e1..f47c62c 100644 --- a/recipes-core/openjdk/openjre-8_102b14.bb +++ b/recipes-core/openjdk/openjre-8_102b14.bb @@ -1,20 +1,6 @@ require openjdk-8-release-102b14.inc require openjdk-8-cross.inc -# some patches extracted from http://cr.openjdk.java.net/~rkennke/shark-build-hotspot/webrev.01/hotspot.patch -# reported via http://mail.openjdk.java.net/pipermail/build-dev/2015-January/013972.html -# by Roman Kennke (rkennke at redhat.com) -PATCHES_URI_append = "\ -file://openjdk8-restrict-to-staging-dir.patch;apply=no \ -file://openjdk8-fix-shark-build.patch;apply=no \ -file://openjdk8-fix-shark-stdc++11.patch;apply=no \ -file://openjdk8-fix-assembler-flag-handling-in-makefile.patch;apply=no \ -file://openjdk8-fix-adlc-flags.patch;apply=no \ -file://openjdk8-silence-d_fortify_source-warning.patch;apply=no \ -file://openjdk8-fix-zero-mode-crash.patch;apply=no \ -file://openjdk8-add-missing-linker-flags.patch;apply=no \ -" - do_install() { rm -rf ${D}${JRE_HOME} mkdir -p ${D}${JRE_HOME} -- 2.7.4 -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
[oe] [meta-java][PATCH 5/5] openjdk-8-cross.inc: fix a libpng build issue
From: Ming Liu JDK/JRE fails to build for ARM NEON machines, due to a undefined symbol in libpng, as follows: | build/jdk/objs/libsplashscreen/pngrutil.o: In function `png_init_filter_functions': | jdk/src/share/native/sun/awt/libpng/pngrutil.c:4002: undefined reference to `png_init_filter_functions_neon' This is a known issue already fixed in openjdk upstream, back-port the fix. Signed-off-by: Ming Liu --- recipes-core/openjdk/openjdk-8-cross.inc | 1 + .../openjdk8-fix-libpng-neon-build.patch | 29 ++ 2 files changed, 30 insertions(+) create mode 100644 recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-libpng-neon-build.patch diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc index 247438f..ad3a44d 100644 --- a/recipes-core/openjdk/openjdk-8-cross.inc +++ b/recipes-core/openjdk/openjdk-8-cross.inc @@ -13,6 +13,7 @@ PATCHES_URI_append = "\ file://openjdk8-silence-d_fortify_source-warning.patch;apply=no \ file://openjdk8-fix-zero-mode-crash.patch;apply=no \ file://openjdk8-add-missing-linker-flags.patch;apply=no \ +file://openjdk8-fix-libpng-neon-build.patch;apply=no \ " DEPENDS = "\ diff --git a/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-libpng-neon-build.patch b/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-libpng-neon-build.patch new file mode 100644 index 000..dd6d8e3 --- /dev/null +++ b/recipes-core/openjdk/patches-openjdk-8/openjdk8-fix-libpng-neon-build.patch @@ -0,0 +1,29 @@ +# HG changeset patch +# User enevill +# Date 1430816900 0 +# Tue May 05 09:08:20 2015 + +# Node ID 88d2b7d7285281d41bcff45af0dd983b0f72811e +# Parent 51f5501a54a62aceed6342e7ea3a9a3c67f3885d +8078245: AARCH64: JDK fails to build due to undefined symbol in libpng +Summary: Add -DPNG_ARM_NEON_OPT=0 to LIBSPLASHSCREEN_CFLAGS flags +Reviewed-by: dholmes, ihse, erikj + +Upstream-Status: Backport + +Signed-off-by: Ming Liu +--- + jdk/make/lib/Awt2dLibraries.gmk |2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git jdk/make/lib/Awt2dLibraries.gmk jdk/make/lib/Awt2dLibraries.gmk +--- jdk/make/lib/Awt2dLibraries.gmk jdk/make/lib/Awt2dLibraries.gmk +@@ -1205,7 +1205,7 @@ ifndef BUILD_HEADLESS_ONLY + LIBSPLASHSCREEN_DIRS += $(JDK_TOPDIR)/src/macosx/native/sun/awt/splashscreen + endif + +- LIBSPLASHSCREEN_CFLAGS := -DSPLASHSCREEN -DPNG_NO_MMX_CODE \ ++ LIBSPLASHSCREEN_CFLAGS := -DSPLASHSCREEN -DPNG_NO_MMX_CODE -DPNG_ARM_NEON_OPT=0 \ + $(foreach dir, $(LIBSPLASHSCREEN_DIRS), -I$(dir)) + + ifeq ($(OPENJDK_TARGET_OS), macosx) -- 2.7.4 -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel
[oe] [meta-java][PATCH 2/5] openjdk-8-cross.inc: fix wrong sysroot path
From: Ming Liu The '--with-sys-root' should be set to ${STAGING_DIR_HOST} but not ${STAGING_DIR}. Signed-off-by: Ming Liu --- recipes-core/openjdk/openjdk-8-cross.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc index b328395..11e98b5 100644 --- a/recipes-core/openjdk/openjdk-8-cross.inc +++ b/recipes-core/openjdk/openjdk-8-cross.inc @@ -42,7 +42,7 @@ SRC_URI_append = "\ EXTRA_OECONF_append = "\ --with-jobs=${@java_get_parallel_make(d)} \ \ ---with-sys-root=${STAGING_DIR} \ +--with-sys-root=${STAGING_DIR_HOST} \ --with-tools-dir=${STAGING_DIR_NATIVE} \ --with-boot-jdk=${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native \ --with-cacerts-file=${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native/jre/lib/security/cacerts \ -- 2.7.4 -- ___ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel