collectd: fix a floating dependence on openjdk
PATCH 1/1 collectd: fix a floating dependence on openjdk
From: Roy Li <[email protected]>
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
--- meta-oe/recipes-extended/collectd/collectd_5.5.0.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-extended/collectd/collectd_5.5.0.bb +1 -0
@@ -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"
Signature · 1 line
1.9.1
Quoted 6 lines · On Fri, Sep 11, 2015 at 05:24:43PM +0800, [email protected] wrote:
From: Roy Li <[email protected]>
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
Quoted 26 lines
Signed-off-by Roy Li <[email protected]>--- meta-oe/recipes-extended/collectd/collectd_5.5.0.bb | 1 + 1 file changed, 1 insertion(+)meta-oe/recipes-extended/collectd/collectd_5.5.0.bb +1
-0@@ -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"Signature · 7 lines
1.9.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]