* Re: [oe] [PATCH] openjdk-8: Convert do_unpack postfunc to _append
[not found] <16285DBF18FAF8F7.27500@lists.openembedded.org>
@ 2020-08-19 9:31 ` Jonatan Pålsson
2020-08-20 10:12 ` Richard Leitner
0 siblings, 1 reply; 5+ messages in thread
From: Jonatan Pålsson @ 2020-08-19 9:31 UTC (permalink / raw)
To: Jonatan Pålsson; +Cc: OpenEmbedded Devel List, richard.leitner
Ping
On Wed, Aug 5, 2020 at 2:05 PM Jonatan Pålsson via
lists.openembedded.org <jonatan.p=gmail.com@lists.openembedded.org>
wrote:
>
> archiver.bbclass will invoke do_unpack as a function (rather than a
> task) during do_unpack_and_patch. When invoked as a function, the
> postfuncs of do_unpack are not executed.
>
> Convert the postfuncs into an _append fragment on do_unpack instead.
>
> 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(-)
>
> diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
> index c78bb2a..123e896 100644
> --- a/recipes-core/openjdk/openjdk-8-common.inc
> +++ b/recipes-core/openjdk/openjdk-8-common.inc
> @@ -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
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [oe] [PATCH] openjdk-8: Convert do_unpack postfunc to _append
2020-08-19 9:31 ` [oe] [PATCH] openjdk-8: Convert do_unpack postfunc to _append Jonatan Pålsson
@ 2020-08-20 10:12 ` Richard Leitner
2020-08-20 13:25 ` Jonatan Pålsson
0 siblings, 1 reply; 5+ messages in thread
From: Richard Leitner @ 2020-08-20 10:12 UTC (permalink / raw)
To: Jonatan Palsson; +Cc: OpenEmbedded Devel List
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
On Wed, Aug 19, 2020 at 11:31:17AM +0200, Jonatan Palsson wrote:
> Ping
>
> On Wed, Aug 5, 2020 at 2:05 PM Jonatan Pålsson via
> lists.openembedded.org <jonatan.p=gmail.com@lists.openembedded.org>
> wrote:
> >
> > archiver.bbclass will invoke do_unpack as a function (rather than a
> > task) during do_unpack_and_patch. When invoked as a function, the
> > postfuncs of do_unpack are not executed.
> >
> > Convert the postfuncs into an _append fragment on do_unpack instead.
> >
> > 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(-)
> >
> > diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
> > index c78bb2a..123e896 100644
> > --- a/recipes-core/openjdk/openjdk-8-common.inc
> > +++ b/recipes-core/openjdk/openjdk-8-common.inc
> > @@ -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
> >
> >
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [oe] [PATCH] openjdk-8: Convert do_unpack postfunc to _append
2020-08-20 10:12 ` Richard Leitner
@ 2020-08-20 13:25 ` Jonatan Pålsson
2020-08-23 19:48 ` Robert Berger
0 siblings, 1 reply; 5+ messages in thread
From: Jonatan Pålsson @ 2020-08-20 13:25 UTC (permalink / raw)
To: Richard Leitner; +Cc: OpenEmbedded Devel List
Hi Robert,
On Thu, Aug 20, 2020 at 12:12 PM Richard Leitner
<richard.leitner@skidata.com> wrote:
>
> 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)).
Ah, I didn't see that. I've tested the patch from master-next now, and
it fixes my issues too.
Thanks!
>
> Would you please have a look at it and if applicable send a rebased
> (master-next) version?
>
> regards;rl
>
> On Wed, Aug 19, 2020 at 11:31:17AM +0200, Jonatan Palsson wrote:
> > Ping
> >
> > On Wed, Aug 5, 2020 at 2:05 PM Jonatan Pålsson via
> > lists.openembedded.org <jonatan.p=gmail.com@lists.openembedded.org>
> > wrote:
> > >
> > > archiver.bbclass will invoke do_unpack as a function (rather than a
> > > task) during do_unpack_and_patch. When invoked as a function, the
> > > postfuncs of do_unpack are not executed.
> > >
> > > Convert the postfuncs into an _append fragment on do_unpack instead.
> > >
> > > 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(-)
> > >
> > > diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
> > > index c78bb2a..123e896 100644
> > > --- a/recipes-core/openjdk/openjdk-8-common.inc
> > > +++ b/recipes-core/openjdk/openjdk-8-common.inc
> > > @@ -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
> > >
> > >
>
> --
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [oe] [PATCH] openjdk-8: Convert do_unpack postfunc to _append
2020-08-20 13:25 ` Jonatan Pålsson
@ 2020-08-23 19:48 ` Robert Berger
2020-08-24 6:22 ` Jonatan Pålsson
0 siblings, 1 reply; 5+ messages in thread
From: Robert Berger @ 2020-08-23 19:48 UTC (permalink / raw)
To: Jonatan Pålsson; +Cc: Richard Leitner, OpenEmbedded Devel List
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.
[1]
http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/commit/?h=master-next&id=b8e62679d99f57a5af4f2c59ac36bea5c7087d4f
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [oe] [PATCH] openjdk-8: Convert do_unpack postfunc to _append
2020-08-23 19:48 ` Robert Berger
@ 2020-08-24 6:22 ` Jonatan Pålsson
0 siblings, 0 replies; 5+ messages in thread
From: Jonatan Pålsson @ 2020-08-24 6:22 UTC (permalink / raw)
To: robert.berger.oe.devel; +Cc: Richard Leitner, OpenEmbedded Devel List
Hi Robert,
On Sun, Aug 23, 2020 at 9:48 PM robert.berger.oe.devel
<robert.berger.oe.devel@gmail.com> wrote:
>
> 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.
>
> [1]
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-java/commit/?h=master-next&id=b8e62679d99f57a5af4f2c59ac36bea5c7087d4f
>
> 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()?
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
>
> Regards,
>
> Robert
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-08-24 6:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <16285DBF18FAF8F7.27500@lists.openembedded.org>
2020-08-19 9:31 ` [oe] [PATCH] openjdk-8: Convert do_unpack postfunc to _append Jonatan Pålsson
2020-08-20 10:12 ` Richard Leitner
2020-08-20 13:25 ` Jonatan Pålsson
2020-08-23 19:48 ` Robert Berger
2020-08-24 6:22 ` Jonatan Pålsson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.