openjdk-8: Convert do_unpack postfunc to _append
A message that is not in the archive (sent off-list or not yet received): [email protected]
Ping
Quoted 51 lines · Jonatan Pålsson via lists.openembedded.org
archiver.bbclass will invoke
do_unpackas a function (rather than a task) duringdo_unpack_and_patch. When invoked as a function, the postfuncs ofdo_unpackare not executed.Convert the postfuncs into an
_appendfragment ondo_unpackinstead.Fixes:
.. snip ..
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Patch 1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch does not apply (enforce with -f)
ERROR: Logfile of failure stored in: .. snip .. /build/tmp/work/x86_64-linux/openjdk-8-native/252-r0/temp/log.do_unpack_and_patch.220625
ERROR: Task (.. snip .. /sources/openembedded-core/meta-java/recipes-core/openjdk/openjdk-8-native_252.bb:do_unpack_and_patch) failed with exit code '1'--- recipes-core/openjdk/openjdk-8-common.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)recipes-core/openjdk/openjdk-8-common.inc +7
-4@@ -46,6 +46,13 @@ do_unpack_delete_X11_wrappers() { find ${S}/jdk/src/solaris/classes/sun/awt/X11 -maxdepth 1 -name '*.java' -delete } +do_unpack_append() { + bb.build.exec_func('do_unpack_extract_submodules', d) + + if not bb.utils.filter('PACKAGECONFIG', 'x11', d): + bb.build.exec_func('do_unpack_delete_X11_wrappers', d) +} + def package_config_option_cleanup(d): distro_x11 = bb.utils.contains('DISTRO_FEATURES', 'x11', True, False, d) distro_alsa = bb.utils.contains('DISTRO_FEATURES', 'alsa', True, False, d)@@ -155,9 +162,6 @@ def jdk_configure_options(d): options = package_config_option_cleanup(d) return options[3] -do_unpack[postfuncs] += "do_unpack_extract_submodules" -do_unpack[postfuncs] += "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'do_unpack_delete_X11_wrappers', d)}" - export DEBUG_BINARIES = "true" ALTERNATIVE_PRIORITY = "50" --2.26.1
Hi,
thanks for your patch!
Unfortunately we already have a similar one in master-next (commit b8e6267 (WORKDIR and ARCHIVER_WORKDIR support, 2020-05-09)).
Would you please have a look at it and if applicable send a rebased (master-next) version?
regards;rl
Quoted 56 lines · Jonatan Palsson
Ping
Quoted 51 lines · Jonatan Pålsson via lists.openembedded.org
archiver.bbclass will invoke
do_unpackas a function (rather than a task) duringdo_unpack_and_patch. When invoked as a function, the postfuncs ofdo_unpackare not executed.Convert the postfuncs into an
_appendfragment ondo_unpackinstead.Fixes:
.. snip ..
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Patch 1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch does not apply (enforce with -f)
ERROR: Logfile of failure stored in: .. snip .. /build/tmp/work/x86_64-linux/openjdk-8-native/252-r0/temp/log.do_unpack_and_patch.220625
ERROR: Task (.. snip .. /sources/openembedded-core/meta-java/recipes-core/openjdk/openjdk-8-native_252.bb:do_unpack_and_patch) failed with exit code '1'--- recipes-core/openjdk/openjdk-8-common.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)recipes-core/openjdk/openjdk-8-common.inc +7
-4@@ -46,6 +46,13 @@ do_unpack_delete_X11_wrappers() { find ${S}/jdk/src/solaris/classes/sun/awt/X11 -maxdepth 1 -name '*.java' -delete } +do_unpack_append() { + bb.build.exec_func('do_unpack_extract_submodules', d) + + if not bb.utils.filter('PACKAGECONFIG', 'x11', d): + bb.build.exec_func('do_unpack_delete_X11_wrappers', d) +} + def package_config_option_cleanup(d): distro_x11 = bb.utils.contains('DISTRO_FEATURES', 'x11', True, False, d) distro_alsa = bb.utils.contains('DISTRO_FEATURES', 'alsa', True, False, d)@@ -155,9 +162,6 @@ def jdk_configure_options(d): options = package_config_option_cleanup(d) return options[3] -do_unpack[postfuncs] += "do_unpack_extract_submodules" -do_unpack[postfuncs] += "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'do_unpack_delete_X11_wrappers', d)}" - export DEBUG_BINARIES = "true" ALTERNATIVE_PRIORITY = "50" --2.26.1
Signature · 9 lines
Richard Leitner Hardware R&D / Senior Embedded Linux Engineer SKIDATA | Driving Your Digital Future SKIDATA GmbH Untersbergstraße 40 | 5083 Grödig/Salzburg | Austria [t] +43-6246-888-4245 | [m] +43-664-88616370 [w] www.skidata.com
Hi Robert,
Quoted 5 lines · Richard Leitner
Hi,
thanks for your patch!
Unfortunately we already have a similar one in master-next (commit b8e6267 (WORKDIR andARCHIVER_WORKDIRsupport, 2020-05-09)).
Ah, I didn't see that. I've tested the patch from master-next now, and it fixes my issues too.
Thanks!
Quoted 74 lines
Would you please have a look at it and if applicable send a rebased (master-next) version?
regards;rl
Quoted 51 lines · Jonatan Palsson
Ping
Quoted 46 lines · Jonatan Pålsson via lists.openembedded.org
archiver.bbclass will invoke
do_unpackas a function (rather than a task) duringdo_unpack_and_patch. When invoked as a function, the postfuncs ofdo_unpackare not executed.Convert the postfuncs into an
_appendfragment ondo_unpackinstead.Fixes:
.. snip ..
No file to patch. Skipping patch.
1 out of 1 hunk ignored
Patch 1001-hotspot-fix-crash-on-JNI_CreateJavaVM.patch does not apply (enforce with -f)
ERROR: Logfile of failure stored in: .. snip .. /build/tmp/work/x86_64-linux/openjdk-8-native/252-r0/temp/log.do_unpack_and_patch.220625
ERROR: Task (.. snip .. /sources/openembedded-core/meta-java/recipes-core/openjdk/openjdk-8-native_252.bb:do_unpack_and_patch) failed with exit code '1'--- recipes-core/openjdk/openjdk-8-common.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)recipes-core/openjdk/openjdk-8-common.inc +7
-3@@ -46,6 +46,13 @@ do_unpack_delete_X11_wrappers() { find ${S}/jdk/src/solaris/classes/sun/awt/X11 -maxdepth 1 -name '*.java' -delete } +do_unpack_append() { + bb.build.exec_func('do_unpack_extract_submodules', d) + + if not bb.utils.filter('PACKAGECONFIG', 'x11', d): + bb.build.exec_func('do_unpack_delete_X11_wrappers', d) +} + def package_config_option_cleanup(d): distro_x11 = bb.utils.contains('DISTRO_FEATURES', 'x11', True, False, d) distro_alsa = bb.utils.contains('DISTRO_FEATURES', 'alsa', True, False, d)@@ -155,9 +162,6 @@ def jdk_configure_options(d): options = package_config_option_cleanup(d) return options[3] -do_unpack[postfuncs] += "do_unpack_extract_submodules" -do_unpack[postfuncs] += "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'do_unpack_delete_X11_wrappers', d)}" - export DEBUG_BINARIES = "true"Quoted 5 lines
Quoted 5 lines
recipes-core/openjdk/openjdk-8-common.inc +0
-1ALTERNATIVE_PRIORITY = "50" --2.26.1
--
Richard Leitner
Hardware R&D / Senior Embedded Linux EngineerSKIDATA | Driving Your Digital Future
SKIDATA GmbH
Untersbergstraße 40 | 5083 Grödig/Salzburg | Austria
[t] +43-6246-888-4245 | [m] +43-664-88616370
[w] www.skidata.com
Hi Jonatan,
I am the author of this patch[1] which I guess fixes your issue as well. I didn't check yet if it's happy with the new functionality of the archiver class in dunfell.
You use do_unpack_append() while I use do_patch_prepend(). Otherwise it's pretty much the same.
Do you see any reason why do_unpack_append() might be preferable over do_patch_prepend()?
Regards,
Robert
Hi Robert,
Quoted 7 lines · robert.berger.oe.devel
Hi Jonatan,
I am the author of this patch[1] which I guess fixes your issue as well. I didn't check yet if it's happy with the new functionality of the archiver class in dunfell.
Quoted 8 lines
You use
do_unpack_append()while I usedo_patch_prepend(). Otherwise it's pretty much the same.Do you see any reason why
do_unpack_append()might be preferable overdo_patch_prepend()?
No, not really. I picked do_unpack_append since the original functionality was a postfunc on do_unpack (which I suppose is quite close to doing an _append). Latching on to do_patch as in your patch should work as well I believe.
I've backported your patch to the system I am using, and it seems to work well there aswell, so I am happy to continue with that track! :-)
Best regards,
Jonatan
Quoted 7 lines
Regards,
Robert