[oe] [PATCH] collectd: fix a floating dependence on openjdk

Martin Jansa martin.jansa at gmail.com
Tue Sep 15 13:52:59 UTC 2015


On Fri, Sep 11, 2015 at 05:24:43PM +0800, rongqing.li at windriver.com wrote:
> From: Roy Li <rongqing.li at windriver.com>
> 
> 1. fix a floating dependence on openjdk
> 2. fix the host contamination, since the default value of java home
> is /usr/lib/jvm:
>    warning: library search path "/usr/lib/jvm/jre-1.7.0/lib/amd64/server" is unsafe for cross-compilation

Does it need native dependency as well when enabled?

Without this patch one of my jenkins world builds was stuck (for many
hours calling /usr/lib/jvm/default-java/bin/java until I've killed that
process to unstuck whole build:

| make[3]: Leaving directory `/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/collectd/5.5.0-r0/build/src'
| make[2]: Leaving directory `/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/collectd/5.5.0-r0/build/src'
| make[1]: Leaving directory `/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/collectd/5.5.0-r0/build/src'
| Making all in bindings
| make[1]: Entering directory `/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/collectd/5.5.0-r0/build/bindings'
| Making all in java
| make[2]: Entering directory `/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/collectd/5.5.0-r0/build/bindings/java'
| /usr/lib/jvm/default-java/bin/javac -d "." "/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/collectd/5.5.0-r0/collectd-5.5.0/bindings/java/org/collectd/api"/*.java
| #
| [thread 47538775656192 also had an error]
| # There is insufficient memory for the Java Runtime Environment to continue.
| # pthread_getattr_np
| # An error report file with more information is saved as:
| # /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/collectd/5.5.0-r0/build/bindings/java/hs_err_pid29126.log
| make[2]: *** [java-build-stamp] Terminated
| make[2]: Leaving directory `/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/collectd/5.5.0-r0/build/bindings/java'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/collectd/5.5.0-r0/build/bindings'
| make: *** [all-recursive] Error 1
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/jenkins/oe/world/shr-core/tmp-glibc/work/core2-64-oe-linux/collectd/5.5.0-r0/temp/log.do_compile.6936)
NOTE: recipe collectd-5.5.0-r0: task do_compile: Failed

> 
> Signed-off-by: Roy Li <rongqing.li at windriver.com>
> ---
>  meta-oe/recipes-extended/collectd/collectd_5.5.0.bb | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta-oe/recipes-extended/collectd/collectd_5.5.0.bb b/meta-oe/recipes-extended/collectd/collectd_5.5.0.bb
> index 55d7b38..6a3476f 100644
> --- a/meta-oe/recipes-extended/collectd/collectd_5.5.0.bb
> +++ b/meta-oe/recipes-extended/collectd/collectd_5.5.0.bb
> @@ -25,6 +25,7 @@ SYSTEMD_SERVICE_${PN} = "collectd.service"
>  FPLAYOUT ?= "--with-fp-layout=nothing"
>  
>  PACKAGECONFIG ??= ""
> +PACKAGECONFIG[openjdk] = "--with-java=${STAGING_DIR_TARGET}${libdir}/jvm,--without-java,openjdk-7"
>  PACKAGECONFIG[snmp] = "--enable-snmp,--disable-snmp --with-libnetsnmp=no,net-snmp"
>  PACKAGECONFIG[libmemcached] = "--with-libmemcached,--without-libmemcached,libmemcached"
>  PACKAGECONFIG[iptables] = "--enable-iptables,--disable-iptables,iptables"
> -- 
> 1.9.1
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20150915/6c02fafb/attachment-0002.sig>


More information about the Openembedded-devel mailing list