openjdk-8: fix rewrite QA warnings
PATCH 1/1 openjdk-8: fix rewrite QA warnings
Fix bitbake warnings from variable renaming like
Variable key FILES_${PN} (${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} ${sysconfdir} ${sharedstatedir} ${localstatedir} ${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*${SOLIBS} ${base_prefix}/lib/udev/rules.d ${prefix}/lib/udev/rules.d ${datadir}/${BPN} ${libdir}/${BPN}/* ${datadir}/pixmaps ${datadir}/applications ${datadir}/idl ${datadir}/omf ${datadir}/sounds ${libdir}/bonobo/servers) replaces original key FILES_openjre-8 ( ${JRE_HOME}/bin/[a-z]* ${JRE_HOME}/lib/[a-z]* ${JRE_HOME}/LICENSE ${JRE_HOME}/release ).It is caused by using FILES_${PN} and FILES_{JDKPN} or FILES_${JREPN}, respectively. Moving FILES_{JDKPN} to openjdk-8_%.bb and FILES_${JREPN} to openjre-8_%.bb to allow consequently use FILES_${PN}.
--- recipes-core/openjdk/openjdk-8-cross.inc | 133 +------------------------------ recipes-core/openjdk/openjdk-8_72b05.bb | 93 ++++++++++++++++++--- recipes-core/openjdk/openjre-8_72b05.bb | 46 +++++++++-- 3 files changed, 122 insertions(+), 150 deletions(-)
recipes-core/openjdk/openjdk-8-cross.inc +2 -131
@@ -1,8 +1,5 @@ -JDKPN = "openjdk-8" -JREPN = "openjre-8" - -JDK_HOME = "${libdir_jvm}/${JDKPN}" -JRE_HOME = "${libdir_jvm}/${JREPN}" +JDK_HOME = "${libdir_jvm}/openjdk-8" +JRE_HOME = "${libdir_jvm}/openjre-8" DEPENDS = "\ openjdk-8-native zip-native ant-native libxslt \
@@ -72,129 +69,3 @@ EXTRA_OEMAKE_append = '\ QUIETLY= \ images \ ' - -FILES_${JREPN}_append = "\ - ${JRE_HOME}/bin/[a-z]* \ - ${JRE_HOME}/lib/[a-z]* \ - ${JRE_HOME}/LICENSE \ - ${JRE_HOME}/release \ -" - -FILES_${JDKPN}_append = "\ - ${JDK_HOME}/bin/[a-z]* \ - ${JDK_HOME}/lib/[a-z]* \ - ${JDK_HOME}/jre/bin/[a-z]* \ - ${JDK_HOME}/jre/lib/[a-z]* \ - ${JDK_HOME}/LICENSE \ - ${JDK_HOME}/jre/LICENSE \ - ${JDK_HOME}/release \ -" - -FILES_${JDKPN}-dev_append = "\ - ${JDK_HOME}/include \ -" - -FILES_${JDKPN}-dbg_append = "\ - ${JDK_HOME}/bin/.debug/ \ - ${JDK_HOME}/lib/.debug/ \ - ${JDK_HOME}/lib/${JDK_ARCH}/.debug/ \ - ${JDK_HOME}/lib/${JDK_ARCH}/jli/.debug/ \ - ${JDK_HOME}/jre/bin/.debug/ \ - ${JDK_HOME}/jre/lib/.debug/ \ - ${JDK_HOME}/jre/lib/${JDK_ARCH}/.debug/ \ - ${JDK_HOME}/jre/lib/${JDK_ARCH}/jli/.debug/ \ - ${JDK_HOME}/jre/lib/${JDK_ARCH}/native_threads/.debug/ \ - ${JDK_HOME}/jre/lib/${JDK_ARCH}/server/.debug/ \ - ${JDK_HOME}/jre/lib/${JDK_ARCH}/headless/.debug/ \ - ${JDK_HOME}/jre/lib/${JDK_ARCH}/xawt/.debug/ \ - ${JDK_HOME}/jre/lib/${JDK_ARCH}/client/.debug/ \ -" - -FILES_${JREPN}-dbg_append = "\ - ${JRE_HOME}/bin/.debug/ \ - ${JRE_HOME}/lib/.debug/ \ - ${JRE_HOME}/lib/${JDK_ARCH}/.debug/ \ - ${JRE_HOME}/lib/${JDK_ARCH}/jli/.debug/ \ - ${JRE_HOME}/lib/${JDK_ARCH}/server/.debug/ \ -" - -FILES_${JDKPN}-demo = " ${JDK_HOME}/demo ${JDK_HOME}/sample " -RDEPENDS_${JDKPN}-demo = " ${JDKPN} " - -FILES_${JDKPN}-demo-dbg = "\ - ${JDK_HOME}/demo/jvmti/gctest/lib/.debug/ \ - ${JDK_HOME}/demo/jvmti/heapTracker/lib/.debug/ \ - ${JDK_HOME}/demo/jvmti/heapViewer/lib/.debug/ \ - ${JDK_HOME}/demo/jvmti/hprof/lib/.debug/ \ - ${JDK_HOME}/demo/jvmti/minst/lib/.debug/ \ - ${JDK_HOME}/demo/jvmti/mtrace/lib/.debug/ \ - ${JDK_HOME}/demo/jvmti/versionCheck/lib/.debug/ \ - ${JDK_HOME}/demo/jvmti/waiters/lib/.debug/ \ - ${JDK_HOME}/demo/jvmti/compiledMethodLoad/lib/.debug/ \ -" - -FILES_${JDKPN}-doc_append = "\ - ${JDK_HOME}/man \ - ${JDK_HOME}/ASSEMBLY_EXCEPTION \ - ${JDK_HOME}/THIRD_PARTY_README \ - ${JDK_HOME}/jre/ASSEMBLY_EXCEPTION \ - ${JDK_HOME}/jre/THIRD_PARTY_README \ -" -FILES_${JREPN}-doc_append = "\ - ${JRE_HOME}/man \ - ${JRE_HOME}/ASSEMBLY_EXCEPTION \ - ${JRE_HOME}/THIRD_PARTY_README \ -" - -FILES_${JDKPN}-source = " ${JDK_HOME}/src.zip " - -# Even though a vm is a hard dependency it is set as RRECOMMENDS so a single vm can get uninstalled: -# root@beaglebone:~/java# opkg remove openjdk-7-vm-shark -# No packages removed. -# Collected errors: -# * print_dependents_warning: Package openjdk-7-vm-shark is depended upon by packages: -# * print_dependents_warning: openjdk-7-java -# * print_dependents_warning: These might cease to work if package openjdk-7-vm-shark is removed. -#RRECOMMENDS_${JDKPN}-java = "java2-vm" - -# There is a symlink to a .so but this one is valid. -INSANE_SKIP_${JDKPN}-common = "dev-so" - -FILES_${JDKPN}-doc_append = "${JDK_HOME}/man" - -do_compile_append() { - find ${B}/images/j2sdk-image -name "*.jar" -print0 | \ - xargs -0 -n1 ${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native/bin/pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest - find ${B}/images/j2re-image -name "*.jar" -print0 | \ - xargs -0 -n1 ${STAGING_LIBDIR_NATIVE}/jvm/openjdk-8-native/bin/pack200 --repack --effort=9 --segment-limit=-1 --modification-time=latest --strip-debug -} - -do_install_jdk() { - rm -rf ${D}${JDK_HOME} - mkdir -p ${D}${JDK_HOME} - cp -rp ${B}/images/j2sdk-image/* ${D}${JDK_HOME} - install -m644 ${WORKDIR}/jvm.cfg ${D}${JDK_HOME}/jre/lib/${JDK_ARCH}/ - find ${D}${JDK_HOME} -name "*.debuginfo" -print0 | xargs -0 rm -} - -do_install_jre() { - rm -rf ${D}${JRE_HOME} - mkdir -p ${D}${JRE_HOME} - cp -rp ${B}/images/j2re-image/* ${D}${JRE_HOME} - install -m644 ${WORKDIR}/jvm.cfg ${D}${JRE_HOME}/lib/${JDK_ARCH}/ - find ${D}${JRE_HOME} -name "*.debuginfo" -print0 | xargs -0 rm -} - -inherit update-alternatives - -ALTERNATIVE_${JDKPN} = "java" -ALTERNATIVE_TARGET_${JDKPN} = "${JDK_HOME}/bin/java" - -ALTERNATIVE_${JREPN} = "java" -ALTERNATIVE_TARGET_${JREPN} = "${JRE_HOME}/bin/java" - -ALTERNATIVE_${JDKPN}-jdk = "javac" -ALTERNATIVE_TARGET_${JDKPN}-jdk = "${JDK_HOME}/bin/javac" - -ALTERNATIVE_LINK_NAME[java] = "${bindir}/java" -ALTERNATIVE_LINK_NAME[javac] = "${bindir}/javac"
recipes-core/openjdk/openjdk-8_72b05.bb +82 -11
108 lines not on this page · raw message
recipes-core/openjdk/openjre-8_72b05.bb +38 -8
58 lines not on this page · raw message
--
2.5.4 (Apple Git-61)
--
Jens Rehsack - [email protected]
Quoted 10 lines · Jens Rehsack
Fix bitbake warnings from variable renaming like
Variable key FILES_${PN} (${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} ${sysconfdir} ${sharedstatedir} ${localstatedir} ${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*${SOLIBS} ${base_prefix}/lib/udev/rules.d ${prefix}/lib/udev/rules.d ${datadir}/${BPN} ${libdir}/${BPN}/* ${datadir}/pixmaps ${datadir}/applications ${datadir}/idl ${datadir}/omf ${datadir}/sounds ${libdir}/bonobo/servers) replaces original key FILES_openjre-8 ( ${JRE_HOME}/bin/[a-z]* ${JRE_HOME}/lib/[a-z]* ${JRE_HOME}/LICENSE ${JRE_HOME}/release ).It is caused by using FILES_${PN} and FILES_{JDKPN} or FILES_${JREPN}, respectively. Moving FILES_{JDKPN} to openjdk-8_%.bb and FILES_${JREPN} to openjre-8_%.bb to allow consequently use FILES_${PN}.
Signed-off-by Jens Rehsack <[email protected]>
Looking at the proposed change, it seems it would be better to squash the JDK and JRE installation to a single recipe and do the proper split using the packaging.
Do you think this is reasonable?
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
Quoted 13 lines
Am 15.12.2015 um 13:31 schrieb Otavio Salvador <[email protected]>:
Quoted 9 lines · Jens Rehsack
Fix bitbake warnings from variable renaming like
Variable key FILES_${PN} (${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} ${sysconfdir} ${sharedstatedir} ${localstatedir} ${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*${SOLIBS} ${base_prefix}/lib/udev/rules.d ${prefix}/lib/udev/rules.d ${datadir}/${BPN} ${libdir}/${BPN}/* ${datadir}/pixmaps ${datadir}/applications ${datadir}/idl ${datadir}/omf ${datadir}/sounds ${libdir}/bonobo/servers) replaces original key FILES_openjre-8 ( ${JRE_HOME}/bin/[a-z]* ${JRE_HOME}/lib/[a-z]* ${JRE_HOME}/LICENSE ${JRE_HOME}/release ).It is caused by using FILES_${PN} and FILES_{JDKPN} or FILES_${JREPN}, respectively. Moving FILES_{JDKPN} to openjdk-8_%.bb and FILES_${JREPN} to openjre-8_%.bb to allow consequently use FILES_${PN}.
Quoted 7 lines
Quoted 1 line
Signed-off-by Jens Rehsack <[email protected]>Looking at the proposed change, it seems it would be better to squash the JDK and JRE installation to a single recipe and do the proper split using the packaging.
Do you think this is reasonable?
I split openjdk-8/openjre-8 because of weird behavior wrt.
PREFERRED_PROVIDER_java2-runtime = "openjdk-8-jre"
but I think with all the things I learned during packaging openjdk-8 and nqp/perl6 I can retry.
This will require lots of tests, so unfortunately it's unlikely to manage it this year - maybe even not before our planned HP1 update release.
Cheers
--
Jens Rehsack - [email protected]
Quoted 23 lines · Jens Rehsack
Quoted 13 lines
Am 15.12.2015 um 13:31 schrieb Otavio Salvador <[email protected]>:
Quoted 9 lines · Jens Rehsack
Fix bitbake warnings from variable renaming like
Variable key FILES_${PN} (${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} ${sysconfdir} ${sharedstatedir} ${localstatedir} ${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*${SOLIBS} ${base_prefix}/lib/udev/rules.d ${prefix}/lib/udev/rules.d ${datadir}/${BPN} ${libdir}/${BPN}/* ${datadir}/pixmaps ${datadir}/applications ${datadir}/idl ${datadir}/omf ${datadir}/sounds ${libdir}/bonobo/servers) replaces original key FILES_openjre-8 ( ${JRE_HOME}/bin/[a-z]* ${JRE_HOME}/lib/[a-z]* ${JRE_HOME}/LICENSE ${JRE_HOME}/release ).It is caused by using FILES_${PN} and FILES_{JDKPN} or FILES_${JREPN}, respectively. Moving FILES_{JDKPN} to openjdk-8_%.bb and FILES_${JREPN} to openjre-8_%.bb to allow consequently use FILES_${PN}.
Quoted 7 lines
Quoted 1 line
Signed-off-by Jens Rehsack <[email protected]>Looking at the proposed change, it seems it would be better to squash the JDK and JRE installation to a single recipe and do the proper split using the packaging.
Do you think this is reasonable?
I split openjdk-8/openjre-8 because of weird behavior wrt.
Quoted 8 lines
PREFERRED_PROVIDER_java2-runtime = "openjdk-8-jre"
but I think with all the things I learned during packaging openjdk-8 and nqp/perl6 I can retry.
This will require lots of tests, so unfortunately it's unlikely to manage it this year - maybe even not before our planned HP1 update release.
Right; it is not a problem and I think this could be merged as an intermediate solution, in meanwhile. However I think consolidating it into a single recipe would give us some benefits as: faster builds, single recipe to manage, removal of .inc file at all.
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
Quoted 32 lines
Am 15.12.2015 um 13:50 schrieb Otavio Salvador <[email protected]>:
Quoted 28 lines · Jens Rehsack
Quoted 13 lines
Am 15.12.2015 um 13:31 schrieb Otavio Salvador <[email protected]>:
Quoted 9 lines · Jens Rehsack
Fix bitbake warnings from variable renaming like
Variable key FILES_${PN} (${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} ${sysconfdir} ${sharedstatedir} ${localstatedir} ${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*${SOLIBS} ${base_prefix}/lib/udev/rules.d ${prefix}/lib/udev/rules.d ${datadir}/${BPN} ${libdir}/${BPN}/* ${datadir}/pixmaps ${datadir}/applications ${datadir}/idl ${datadir}/omf ${datadir}/sounds ${libdir}/bonobo/servers) replaces original key FILES_openjre-8 ( ${JRE_HOME}/bin/[a-z]* ${JRE_HOME}/lib/[a-z]* ${JRE_HOME}/LICENSE ${JRE_HOME}/release ).It is caused by using FILES_${PN} and FILES_{JDKPN} or FILES_${JREPN}, respectively. Moving FILES_{JDKPN} to openjdk-8_%.bb and FILES_${JREPN} to openjre-8_%.bb to allow consequently use FILES_${PN}.
Quoted 7 lines
Quoted 1 line
Signed-off-by Jens Rehsack <[email protected]>Looking at the proposed change, it seems it would be better to squash the JDK and JRE installation to a single recipe and do the proper split using the packaging.
Do you think this is reasonable?
I split openjdk-8/openjre-8 because of weird behavior wrt.
PREFERRED_PROVIDER_java2-runtime = "openjdk-8-jre"
but I think with all the things I learned during packaging openjdk-8 and nqp/perl6 I can retry.
Quoted 6 lines
Quoted 3 lines
This will require lots of tests, so unfortunately it's unlikely to manage it this year - maybe even not before our planned HP1 update release.
Right; it is not a problem and I think this could be merged as an intermediate solution, in meanwhile.
Would be great.
Quoted 3 lines
However I think consolidating it
into a single recipe would give us some benefits as: faster builds, single recipe to manage, removal of .inc file at all.
Dunno how reasonable it is to install openjre and openjdk on on target, so I don't see the faster builds. However - for dev or test targets:
*shrug* - I do my best to add no conflicts for most liberal use :)
Reducing .inc's is your favorite goal, isn't it? :D
Cheers
--
Jens Rehsack - [email protected]
Quoted 45 lines · Jens Rehsack
Quoted 32 lines
Am 15.12.2015 um 13:50 schrieb Otavio Salvador <[email protected]>:
Quoted 28 lines · Jens Rehsack
Quoted 13 lines
Am 15.12.2015 um 13:31 schrieb Otavio Salvador <[email protected]>:
Quoted 9 lines · Jens Rehsack
Fix bitbake warnings from variable renaming like
Variable key FILES_${PN} (${bindir}/* ${sbindir}/* ${libexecdir}/* ${libdir}/lib*${SOLIBS} ${sysconfdir} ${sharedstatedir} ${localstatedir} ${base_bindir}/* ${base_sbindir}/* ${base_libdir}/*${SOLIBS} ${base_prefix}/lib/udev/rules.d ${prefix}/lib/udev/rules.d ${datadir}/${BPN} ${libdir}/${BPN}/* ${datadir}/pixmaps ${datadir}/applications ${datadir}/idl ${datadir}/omf ${datadir}/sounds ${libdir}/bonobo/servers) replaces original key FILES_openjre-8 ( ${JRE_HOME}/bin/[a-z]* ${JRE_HOME}/lib/[a-z]* ${JRE_HOME}/LICENSE ${JRE_HOME}/release ).It is caused by using FILES_${PN} and FILES_{JDKPN} or FILES_${JREPN}, respectively. Moving FILES_{JDKPN} to openjdk-8_%.bb and FILES_${JREPN} to openjre-8_%.bb to allow consequently use FILES_${PN}.
Quoted 7 lines
Quoted 1 line
Signed-off-by Jens Rehsack <[email protected]>Looking at the proposed change, it seems it would be better to squash the JDK and JRE installation to a single recipe and do the proper split using the packaging.
Do you think this is reasonable?
I split openjdk-8/openjre-8 because of weird behavior wrt.
PREFERRED_PROVIDER_java2-runtime = "openjdk-8-jre"
but I think with all the things I learned during packaging openjdk-8 and nqp/perl6 I can retry.
Quoted 6 lines
Quoted 3 lines
This will require lots of tests, so unfortunately it's unlikely to manage it this year - maybe even not before our planned HP1 update release.
Right; it is not a problem and I think this could be merged as an intermediate solution, in meanwhile.
Would be great.
Quoted 3 lines
However I think consolidating it
into a single recipe would give us some benefits as: faster builds, single recipe to manage, removal of .inc file at all.
Quoted 5 lines
Dunno how reasonable it is to install openjre and openjdk on on target, so I don't see the faster builds. However - for dev or test targets:
*shrug* - I do my best to add no conflicts for most liberal use :)Reducing .inc's is your favorite goal, isn't it? :D
When we can consolidate things in a single recipe, most of time, it makes it easier to improve and hack. So it is something we should go after for sure.
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