All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-java][g0hl1n/wip-jdk8u242ga][PATCH] Fix building openjre-8 242
@ 2020-01-26 11:10 Jacob Kroon
  2020-01-26 11:21 ` Richard Leitner
  0 siblings, 1 reply; 9+ messages in thread
From: Jacob Kroon @ 2020-01-26 11:10 UTC (permalink / raw)
  To: openembedded-devel

Hi Richard,

I need something like this in order to build on my Fedora 31 host.
I'm using master branches of bitbake, oe-core, meta-openembedded.

Good thing is the crash I reported earlier seems to be fixed.

Cheers,
Jacob

Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
---
 recipes-core/openjdk/openjdk-8-release-common.inc   |  1 +
 recipes-core/openjdk/openjre-8_242.bb               |  2 +-
 .../openjdk/patches-openjdk-8/fix-build.patch       | 13 +++++++++++++
 3 files changed, 15 insertions(+), 1 deletion(-)
 create mode 100644 recipes-core/openjdk/patches-openjdk-8/fix-build.patch

diff --git a/recipes-core/openjdk/openjdk-8-release-common.inc b/recipes-core/openjdk/openjdk-8-release-common.inc
index a8a653b..bd1b9c0 100644
--- a/recipes-core/openjdk/openjdk-8-release-common.inc
+++ b/recipes-core/openjdk/openjdk-8-release-common.inc
@@ -9,6 +9,7 @@ PATCHES_URI = "\
     file://0008-autoconf-fix-shark-build-common.patch \
     file://0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch \
     file://0010-autoconf-remove-shell-variables-from-autoheader.patch \
+    file://fix-build.patch \
     ${HOTSPOT_UB_PATCH} \
     file://2001-jdk-comparison-between-pointer-and-integer.patch \
     file://2002-jdk-Allow-using-a-system-installed-libjpeg.patch \
diff --git a/recipes-core/openjdk/openjre-8_242.bb b/recipes-core/openjdk/openjre-8_242.bb
index 4ed2e6b..2c8a6a5 100644
--- a/recipes-core/openjdk/openjre-8_242.bb
+++ b/recipes-core/openjdk/openjre-8_242.bb
@@ -11,7 +11,7 @@ do_install() {
     cp -rp ${B}/images/j2re-image/* ${D}${JRE_HOME}
     chown -R root:root ${D}${JRE_HOME}
     install -m644 ${WORKDIR}/jvm.cfg  ${D}${JRE_HOME}/lib/${JDK_ARCH}/
-    find ${D}${JDK_HOME} -name "*.debuginfo" -exec rm {} \;
+    [ -d ${D}${JDK_HOME} ] && find ${D}${JDK_HOME} -name "*.debuginfo" -exec rm {} \;
 }
 
 FILES_${PN}_append = "\
diff --git a/recipes-core/openjdk/patches-openjdk-8/fix-build.patch b/recipes-core/openjdk/patches-openjdk-8/fix-build.patch
new file mode 100644
index 0000000..e35d0eb
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/fix-build.patch
@@ -0,0 +1,13 @@
+Index: jdk8u-jdk8u242-ga/jdk/make/gensrc/GensrcMisc.gmk
+===================================================================
+--- jdk8u-jdk8u242-ga.orig/jdk/make/gensrc/GensrcMisc.gmk
++++ jdk8u-jdk8u242-ga/jdk/make/gensrc/GensrcMisc.gmk
+@@ -76,7 +76,7 @@ $(eval $(call SetupNativeCompilation,BUI
+     INCLUDE_FILES := $(GENSRC_SOR_SRC_FILE), \
+     LANG := C, \
+     CC := $(BUILD_CC), \
+-    LDEXE := $(BUILD_LD), \
++    LDEXE := $(BUILD_CC), \
+     OBJECT_DIR := $(GENSRC_SOR_BIN), \
+     OUTPUT_DIR := $(GENSRC_SOR_BIN), \
+     PROGRAM := genSocketOptionRegistry))
-- 
2.24.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [meta-java][g0hl1n/wip-jdk8u242ga][PATCH] Fix building openjre-8 242
  2020-01-26 11:10 [meta-java][g0hl1n/wip-jdk8u242ga][PATCH] Fix building openjre-8 242 Jacob Kroon
@ 2020-01-26 11:21 ` Richard Leitner
  2020-01-26 11:26   ` Jacob Kroon
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Leitner @ 2020-01-26 11:21 UTC (permalink / raw)
  To: Jacob Kroon; +Cc: openembedded-devel

On Sun, Jan 26, 2020 at 12:10:35PM +0100, Jacob Kroon wrote:
> Hi Richard,
> 
> I need something like this in order to build on my Fedora 31 host.
> I'm using master branches of bitbake, oe-core, meta-openembedded.

Ok, then please just ignore the mail I sent some minutes ago ;-)

> 
> Good thing is the crash I reported earlier seems to be fixed.

Great!

I'll do some tests on my side and give you feedback afterwards.

Is it OK for you if i rename the "fix-build.patch" to something more
meaningful?

regards;rl

> 
> Cheers,
> Jacob
> 
> Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
> ---
>  recipes-core/openjdk/openjdk-8-release-common.inc   |  1 +
>  recipes-core/openjdk/openjre-8_242.bb               |  2 +-
>  .../openjdk/patches-openjdk-8/fix-build.patch       | 13 +++++++++++++
>  3 files changed, 15 insertions(+), 1 deletion(-)
>  create mode 100644 recipes-core/openjdk/patches-openjdk-8/fix-build.patch
> 
> diff --git a/recipes-core/openjdk/openjdk-8-release-common.inc b/recipes-core/openjdk/openjdk-8-release-common.inc
> index a8a653b..bd1b9c0 100644
> --- a/recipes-core/openjdk/openjdk-8-release-common.inc
> +++ b/recipes-core/openjdk/openjdk-8-release-common.inc
> @@ -9,6 +9,7 @@ PATCHES_URI = "\
>      file://0008-autoconf-fix-shark-build-common.patch \
>      file://0009-prevent-debuginfo-in-favour-of-openembedded-package-.patch \
>      file://0010-autoconf-remove-shell-variables-from-autoheader.patch \
> +    file://fix-build.patch \
>      ${HOTSPOT_UB_PATCH} \
>      file://2001-jdk-comparison-between-pointer-and-integer.patch \
>      file://2002-jdk-Allow-using-a-system-installed-libjpeg.patch \
> diff --git a/recipes-core/openjdk/openjre-8_242.bb b/recipes-core/openjdk/openjre-8_242.bb
> index 4ed2e6b..2c8a6a5 100644
> --- a/recipes-core/openjdk/openjre-8_242.bb
> +++ b/recipes-core/openjdk/openjre-8_242.bb
> @@ -11,7 +11,7 @@ do_install() {
>      cp -rp ${B}/images/j2re-image/* ${D}${JRE_HOME}
>      chown -R root:root ${D}${JRE_HOME}
>      install -m644 ${WORKDIR}/jvm.cfg  ${D}${JRE_HOME}/lib/${JDK_ARCH}/
> -    find ${D}${JDK_HOME} -name "*.debuginfo" -exec rm {} \;
> +    [ -d ${D}${JDK_HOME} ] && find ${D}${JDK_HOME} -name "*.debuginfo" -exec rm {} \;
>  }
>  
>  FILES_${PN}_append = "\
> diff --git a/recipes-core/openjdk/patches-openjdk-8/fix-build.patch b/recipes-core/openjdk/patches-openjdk-8/fix-build.patch
> new file mode 100644
> index 0000000..e35d0eb
> --- /dev/null
> +++ b/recipes-core/openjdk/patches-openjdk-8/fix-build.patch
> @@ -0,0 +1,13 @@
> +Index: jdk8u-jdk8u242-ga/jdk/make/gensrc/GensrcMisc.gmk
> +===================================================================
> +--- jdk8u-jdk8u242-ga.orig/jdk/make/gensrc/GensrcMisc.gmk
> ++++ jdk8u-jdk8u242-ga/jdk/make/gensrc/GensrcMisc.gmk
> +@@ -76,7 +76,7 @@ $(eval $(call SetupNativeCompilation,BUI
> +     INCLUDE_FILES := $(GENSRC_SOR_SRC_FILE), \
> +     LANG := C, \
> +     CC := $(BUILD_CC), \
> +-    LDEXE := $(BUILD_LD), \
> ++    LDEXE := $(BUILD_CC), \
> +     OBJECT_DIR := $(GENSRC_SOR_BIN), \
> +     OUTPUT_DIR := $(GENSRC_SOR_BIN), \
> +     PROGRAM := genSocketOptionRegistry))
> -- 
> 2.24.1
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-java][g0hl1n/wip-jdk8u242ga][PATCH] Fix building openjre-8 242
  2020-01-26 11:21 ` Richard Leitner
@ 2020-01-26 11:26   ` Jacob Kroon
  2020-01-26 20:03     ` Jacob Kroon
  0 siblings, 1 reply; 9+ messages in thread
From: Jacob Kroon @ 2020-01-26 11:26 UTC (permalink / raw)
  To: Richard Leitner; +Cc: openembedded-devel

On 1/26/20 12:21 PM, Richard Leitner wrote:
> On Sun, Jan 26, 2020 at 12:10:35PM +0100, Jacob Kroon wrote:
>> Hi Richard,
>>
>> I need something like this in order to build on my Fedora 31 host.
>> I'm using master branches of bitbake, oe-core, meta-openembedded.
> 
> Ok, then please just ignore the mail I sent some minutes ago ;-)
> 
>>
>> Good thing is the crash I reported earlier seems to be fixed.
> 
> Great!
> 
> I'll do some tests on my side and give you feedback afterwards.
> 
> Is it OK for you if i rename the "fix-build.patch" to something more
> meaningful?
> 

Yes, feel free to rename/rework anything here to your liking; this was 
just hacked together to get the build going.

Cheers,
Jacob


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-java][g0hl1n/wip-jdk8u242ga][PATCH] Fix building openjre-8 242
  2020-01-26 11:26   ` Jacob Kroon
@ 2020-01-26 20:03     ` Jacob Kroon
  2020-01-27  5:22       ` Richard Leitner
  0 siblings, 1 reply; 9+ messages in thread
From: Jacob Kroon @ 2020-01-26 20:03 UTC (permalink / raw)
  To: Richard Leitner; +Cc: openembedded-devel

On 1/26/20 12:26 PM, Jacob Kroon wrote:
> On 1/26/20 12:21 PM, Richard Leitner wrote:
>> On Sun, Jan 26, 2020 at 12:10:35PM +0100, Jacob Kroon wrote:
>>> Hi Richard,
>>>
>>> I need something like this in order to build on my Fedora 31 host.
>>> I'm using master branches of bitbake, oe-core, meta-openembedded.
>>
>> Ok, then please just ignore the mail I sent some minutes ago ;-)
>>
>>>
>>> Good thing is the crash I reported earlier seems to be fixed.
>>
>> Great!
>>
>> I'll do some tests on my side and give you feedback afterwards.
>>
>> Is it OK for you if i rename the "fix-build.patch" to something more
>> meaningful?
>>
> 
> Yes, feel free to rename/rework anything here to your liking; this was 
> just hacked together to get the build going.
> 
> Cheers,
> Jacob

Btw, as I mentioned my build host is an up2date Fedora 31, x86-64. Any 
idea why these errors aren't showing up on your test builds ?

Cheers,
Jacob


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-java][g0hl1n/wip-jdk8u242ga][PATCH] Fix building openjre-8 242
  2020-01-26 20:03     ` Jacob Kroon
@ 2020-01-27  5:22       ` Richard Leitner
  2020-02-05 13:20         ` Matthias Schoepfer
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Leitner @ 2020-01-27  5:22 UTC (permalink / raw)
  To: Jacob Kroon; +Cc: openembedded-devel

On Sun, Jan 26, 2020 at 09:03:45PM +0100, Jacob Kroon wrote:
> On 1/26/20 12:26 PM, Jacob Kroon wrote:

...

> 
> Btw, as I mentioned my build host is an up2date Fedora 31, x86-64. Any idea
> why these errors aren't showing up on your test builds ?

In my tests I only built the openjdk package, therefore the "find" issue
didn't trigger.

The linker errors were fixed in aarch32 [1] and aarch64 [2] upstream. I
just double-checked my tests and it seems I only built for those two
architectures... Time for me to rework my tests ;-)

So I will adapt and apply your PATCH and push it to the branch. Thanks
for your work!
If you have any further feedback/tests for the 242 update please feel
free to share ;-)

regards;rl

[1] http://hg.openjdk.java.net/aarch32-port/jdk8u/jdk/rev/4a51a4ac7fc2
[2] https://hg.openjdk.java.net/shenandoah/jdk8/jdk/rev/391be061dfc7

> 
> Cheers,
> Jacob


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-java][g0hl1n/wip-jdk8u242ga][PATCH] Fix building openjre-8 242
  2020-01-27  5:22       ` Richard Leitner
@ 2020-02-05 13:20         ` Matthias Schoepfer
  2020-02-06  9:24           ` Richard Leitner
  0 siblings, 1 reply; 9+ messages in thread
From: Matthias Schoepfer @ 2020-02-05 13:20 UTC (permalink / raw)
  To: openembedded-devel

Hi Richard and Jacob,

I just stumbled across the very same error, but on aarch64. I tried to 
switch to the wip-branch, but I get

  ParseError at 
/[...]/meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb:7: Could 
not inherit file classes/features_check.bbclass

I am on zeus...

Regards,

   Matthias

On 1/27/20 6:22 AM, Richard Leitner wrote:
> On Sun, Jan 26, 2020 at 09:03:45PM +0100, Jacob Kroon wrote:
>> On 1/26/20 12:26 PM, Jacob Kroon wrote:
> 
> ...
> 
>>
>> Btw, as I mentioned my build host is an up2date Fedora 31, x86-64. Any idea
>> why these errors aren't showing up on your test builds ?
> 
> In my tests I only built the openjdk package, therefore the "find" issue
> didn't trigger.
> 
> The linker errors were fixed in aarch32 [1] and aarch64 [2] upstream. I
> just double-checked my tests and it seems I only built for those two
> architectures... Time for me to rework my tests ;-)
> 
> So I will adapt and apply your PATCH and push it to the branch. Thanks
> for your work!
> If you have any further feedback/tests for the 242 update please feel
> free to share ;-)
> 
> regards;rl
> 
> [1] http://hg.openjdk.java.net/aarch32-port/jdk8u/jdk/rev/4a51a4ac7fc2
> [2] https://hg.openjdk.java.net/shenandoah/jdk8/jdk/rev/391be061dfc7
> 
>>
>> Cheers,
>> Jacob

-- 
Dr.-Ing. Matthias Schöpfer
matthias.schoepfer@googlemail.com


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-java][g0hl1n/wip-jdk8u242ga][PATCH] Fix building openjre-8 242
  2020-02-05 13:20         ` Matthias Schoepfer
@ 2020-02-06  9:24           ` Richard Leitner
  2020-02-06 10:24             ` Matthias Schoepfer
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Leitner @ 2020-02-06  9:24 UTC (permalink / raw)
  To: Matthias Schoepfer; +Cc: openembedded-devel

Hi Matthias,

On Wed, Feb 05, 2020 at 02:20:53PM +0100, Matthias Schoepfer via Openembedded-devel wrote:
> Hi Richard and Jacob,
> 
> I just stumbled across the very same error, but on aarch64. I tried to
> switch to the wip-branch, but I get
> 
>  ParseError at
> /[...]/meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb:7: Could not
> inherit file classes/features_check.bbclass
> 
> I am on zeus...

This seems legit as AFAIK features_check.bbclass was introduced after the zeus
release. For zeus you can replace it with distro_features_check.bbclass,
but please note that I haven't tested on zeus. I'm working on master.

Futhermore please use meta-java's master-next branch for testing as I will
remove the wip branch in the near future.

thanks for your testing!

regards;rl

> 
> Regards,
> 
>   Matthias
> 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-java][g0hl1n/wip-jdk8u242ga][PATCH] Fix building openjre-8 242
  2020-02-06  9:24           ` Richard Leitner
@ 2020-02-06 10:24             ` Matthias Schoepfer
  2020-02-06 11:35               ` Richard Leitner
  0 siblings, 1 reply; 9+ messages in thread
From: Matthias Schoepfer @ 2020-02-06 10:24 UTC (permalink / raw)
  To: Richard Leitner; +Cc: openembedded-devel

Hi Richard,

I "fixed" it by manually copying feature_check.bbclass into the layer. I 
can confirm, that your java8u242 works on aarch64 (even could get rid of 
some patches needed to compile on kernel 5.x)!

Is there anything planed to "backport" it to zeus branch of meta-java?

Thanks and Regards,

   Matthias

On 2/6/20 10:24 AM, Richard Leitner wrote:
> Hi Matthias,
> 
> On Wed, Feb 05, 2020 at 02:20:53PM +0100, Matthias Schoepfer via Openembedded-devel wrote:
>> Hi Richard and Jacob,
>>
>> I just stumbled across the very same error, but on aarch64. I tried to
>> switch to the wip-branch, but I get
>>
>>   ParseError at
>> /[...]/meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb:7: Could not
>> inherit file classes/features_check.bbclass
>>
>> I am on zeus...
> 
> This seems legit as AFAIK features_check.bbclass was introduced after the zeus
> release. For zeus you can replace it with distro_features_check.bbclass,
> but please note that I haven't tested on zeus. I'm working on master.
> 
> Futhermore please use meta-java's master-next branch for testing as I will
> remove the wip branch in the near future.
> 
> thanks for your testing!
> 
> regards;rl
> 
>>
>> Regards,
>>
>>    Matthias
>>

-- 
Dr.-Ing. Matthias Schöpfer
matthias.schoepfer@googlemail.com


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [meta-java][g0hl1n/wip-jdk8u242ga][PATCH] Fix building openjre-8 242
  2020-02-06 10:24             ` Matthias Schoepfer
@ 2020-02-06 11:35               ` Richard Leitner
  0 siblings, 0 replies; 9+ messages in thread
From: Richard Leitner @ 2020-02-06 11:35 UTC (permalink / raw)
  To: Matthias Schoepfer; +Cc: openembedded-devel

On Thu, Feb 06, 2020 at 11:24:34AM +0100, Matthias Schoepfer wrote:
> Hi Richard,
> 
> I "fixed" it by manually copying feature_check.bbclass into the layer. I can
> confirm, that your java8u242 works on aarch64 (even could get rid of some
> patches needed to compile on kernel 5.x)!
> 
> Is there anything planed to "backport" it to zeus branch of meta-java?

Yes, I'm definitely planning to backport the JDK updates to zeus and
warrior.

regards;rl

> 
> Thanks and Regards,
> 
>   Matthias
> 
> On 2/6/20 10:24 AM, Richard Leitner wrote:
> > Hi Matthias,
> > 
> > On Wed, Feb 05, 2020 at 02:20:53PM +0100, Matthias Schoepfer via Openembedded-devel wrote:
> > > Hi Richard and Jacob,
> > > 
> > > I just stumbled across the very same error, but on aarch64. I tried to
> > > switch to the wip-branch, but I get
> > > 
> > >   ParseError at
> > > /[...]/meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb:7: Could not
> > > inherit file classes/features_check.bbclass
> > > 
> > > I am on zeus...
> > 
> > This seems legit as AFAIK features_check.bbclass was introduced after the zeus
> > release. For zeus you can replace it with distro_features_check.bbclass,
> > but please note that I haven't tested on zeus. I'm working on master.
> > 
> > Futhermore please use meta-java's master-next branch for testing as I will
> > remove the wip branch in the near future.
> > 
> > thanks for your testing!
> > 
> > regards;rl
> > 
> > > 
> > > Regards,
> > > 
> > >    Matthias
> > > 
> 
> -- 
> Dr.-Ing. Matthias Schöpfer
> matthias.schoepfer@googlemail.com


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-02-06 11:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-26 11:10 [meta-java][g0hl1n/wip-jdk8u242ga][PATCH] Fix building openjre-8 242 Jacob Kroon
2020-01-26 11:21 ` Richard Leitner
2020-01-26 11:26   ` Jacob Kroon
2020-01-26 20:03     ` Jacob Kroon
2020-01-27  5:22       ` Richard Leitner
2020-02-05 13:20         ` Matthias Schoepfer
2020-02-06  9:24           ` Richard Leitner
2020-02-06 10:24             ` Matthias Schoepfer
2020-02-06 11:35               ` Richard Leitner

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.