Skip to contentSkip to conversation

openjdk-7: 75b13-2.5.4: fix xawt build

PATCH In review Richard Leitner 5 participants 12 messages Jun 3, 2015 – Aug 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openjdk-7: 75b13-2.5.4: fix xawt build

The icedtea-jdk-nio-use-host-cc.patch disabled the build of xawt. Therefore all awt based java application which were run on X11 failed starting the GUI with an java.awt.HeadlessException.

This patch enables xawt again by adapting
icedtea-jdk-nio-use-host-cc.patch.

---
This patch was only tested with yocto-1.6.3 (daisy) on an armv7a cortexa9 with vfpv3d16. Please test it on further platforms!

This is my first patch to this mailinglist so hopefully I got everything right. If not please give me some feedback on what to improve for the next one ;-)

---
 .../icedtea-jdk-nio-use-host-cc.patch              | 22
----------------------
 1 file changed, 22 deletions(-)

diff --git a/recipes-core/openjdk/openjdk-7-75b13/icedtea-jdk-nio-use-host-cc.patch b/recipes-core/openjdk/openjdk-7-75b13/icedtea-jdk-nio-use-host-cc.patch index f966093..db2fc87 100644

recipes-core/openjdk/openjdk-7-75b13/icedtea-jdk-nio-use-host-cc.patch +0 -16
@@ -49,26 +49,4 @@ Index: openjdk/jdk/make/java/nio/Makefile
 -endif
 
  .PHONY: sources
-Index: openjdk/jdk/make/sun/Makefile
-===================================================================
---- openjdk/jdk/make/sun/Makefile	2013-07-25 09:10:09.000000000 -0700
-+++ openjdk/jdk/make/sun/Makefile	2013-10-01 21:32:01.625839149 -0700
-@@ -55,7 +55,7 @@
-     endif
-   endif
-   HEADLESS_SUBDIR = headless
--  XAWT_SUBDIR     = xawt gtk
-+  XAWT_SUBDIR     =
- endif
 
- ifeq ($(PLATFORM), macosx)
-@@ -87,7 +87,7 @@
- endif
- SUBDIRS_desktop    = audio $(RENDER_SUBDIR) image \
-                      $(LWAWT_PRE_SUBDIR) $(DISPLAY_LIBS) $(DGA_SUBDIR)

$(LWAWT_SUBDIR) \
-- jawt font jpeg cmm $(DISPLAY_TOOLS) beans
-+ font jpeg cmm $(DISPLAY_TOOLS) beans
- SUBDIRS_management = management
- SUBDIRS_misc = $(ORG_SUBDIR) rmi $(JDBC_SUBDIR) tracing
- SUBDIRS_tools = native2ascii serialver tools jconsole
-
\ No newline at end of file

Signature · 1 line
2.1.4
#1 lore raw

Hi,
any test results, comments or ideas for improvement on this?

regards,
Richard

Quoted 56 lines · Richard Leitner

The icedtea-jdk-nio-use-host-cc.patch disabled the build of xawt. Therefore all awt based java application which were run on X11 failed starting the GUI with an java.awt.HeadlessException.

This patch enables xawt again by adapting
icedtea-jdk-nio-use-host-cc.patch.

---
This patch was only tested with yocto-1.6.3 (daisy) on an armv7a cortexa9 with vfpv3d16. Please test it on further platforms!

This is my first patch to this mailinglist so hopefully I got everything right. If not please give me some feedback on what to improve for the next one ;-)

---
 .../icedtea-jdk-nio-use-host-cc.patch              | 22
----------------------
 1 file changed, 22 deletions(-)

diff --git a/recipes-core/openjdk/openjdk-7-75b13/icedtea-jdk-nio-use-host-cc.patch b/recipes-core/openjdk/openjdk-7-75b13/icedtea-jdk-nio-use-host-cc.patch index f966093..db2fc87 100644

recipes-core/openjdk/openjdk-7-75b13/icedtea-jdk-nio-use-host-cc.patch +0 -16
@@ -49,26 +49,4 @@ Index: openjdk/jdk/make/java/nio/Makefile
 -endif
 
  .PHONY: sources
-Index: openjdk/jdk/make/sun/Makefile
-===================================================================
---- openjdk/jdk/make/sun/Makefile	2013-07-25 09:10:09.000000000 -0700
-+++ openjdk/jdk/make/sun/Makefile	2013-10-01 21:32:01.625839149 -0700
-@@ -55,7 +55,7 @@
-     endif
-   endif
-   HEADLESS_SUBDIR = headless
--  XAWT_SUBDIR     = xawt gtk
-+  XAWT_SUBDIR     =
- endif
 
- ifeq ($(PLATFORM), macosx)
-@@ -87,7 +87,7 @@
- endif
- SUBDIRS_desktop    = audio $(RENDER_SUBDIR) image \
-                      $(LWAWT_PRE_SUBDIR) $(DISPLAY_LIBS) $(DGA_SUBDIR)

$(LWAWT_SUBDIR) \
-- jawt font jpeg cmm $(DISPLAY_TOOLS) beans
-+ font jpeg cmm $(DISPLAY_TOOLS) beans
- SUBDIRS_management = management
- SUBDIRS_misc = $(ORG_SUBDIR) rmi $(JDBC_SUBDIR) tracing
- SUBDIRS_tools = native2ascii serialver tools jconsole
-
\ No newline at end of file

#2 lore raw
In reply to Richard Leitner
Quoted 8 lines · Richard Leitner

The icedtea-jdk-nio-use-host-cc.patch disabled the build of xawt. Therefore all awt based java application which were run on X11 failed starting the GUI with an java.awt.HeadlessException.

This patch enables xawt again by adapting
icedtea-jdk-nio-use-host-cc.patch.

Quoted 8 lines

---
This patch was only tested with yocto-1.6.3 (daisy) on an armv7a cortexa9 with vfpv3d16. Please test it on further platforms!

This is my first patch to this mailinglist so hopefully I got everything right. If not please give me some feedback on what to improve for the next one ;-)
---

Sorry for the long time to get to this patch. I would like to ask if you could run a test in master so we avoid surprises. If you confirm it works I am fine in commiting it.

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
#3 lore raw

Hi,

Quoted 14 lines · Otavio Salvador
Quoted 12 lines · Richard Leitner

The icedtea-jdk-nio-use-host-cc.patch disabled the build of xawt. Therefore all awt based java application which were run on X11 failed starting the GUI with an java.awt.HeadlessException.

This patch enables xawt again by adapting
icedtea-jdk-nio-use-host-cc.patch.

---
This patch was only tested with yocto-1.6.3 (daisy) on an armv7a cortexa9 with vfpv3d16. Please test it on further platforms!

Quoted 9 lines
Quoted 4 lines

This is my first patch to this mailinglist so hopefully I got everything right. If not please give me some feedback on what to improve for the next one ;-)
---

Sorry for the long time to get to this patch. I would like to ask if you could run a test in master so we avoid surprises. If you confirm it works I am fine in commiting it.

Thank you for your feedback. I will test that patch today with the current master branches of meta-java, poky and meta-openembedded. I'll get back to you as soon as I have any results.

best regards,
Richard L

#4 lore raw
In reply to Otavio Salvador

Hello,

Quoted 14 lines · Otavio Salvador
Quoted 12 lines · Richard Leitner

The icedtea-jdk-nio-use-host-cc.patch disabled the build of xawt. Therefore all awt based java application which were run on X11 failed starting the GUI with an java.awt.HeadlessException.

This patch enables xawt again by adapting
icedtea-jdk-nio-use-host-cc.patch.

---
This patch was only tested with yocto-1.6.3 (daisy) on an armv7a cortexa9 with vfpv3d16. Please test it on further platforms!

Quoted 9 lines
Quoted 4 lines

This is my first patch to this mailinglist so hopefully I got everything right. If not please give me some feedback on what to improve for the next one ;-)
---

Sorry for the long time to get to this patch. I would like to ask if you could run a test in master so we avoid surprises. If you confirm it works I am fine in commiting it.

I successfully compiled and tested openjdk with the patch on an armv7a cortexa9 cpu with vfpv3d16 using following layers:

poky/meta{,-yocto}

	@ master (0f8d89ce66cfffccc9911d6c61470a585173b79d)

meta-java

	@ master (4aea395deed99b2725b56d4a86fb4712fcf504d7)
	+ my patch

meta-openembedded/meta-oe

	@ master (c12b9596afd236116b25ce26dbe0d793de9dc7ce)

best regards,
Richard L

#5 lore raw

Hello,
any updates on this patch?

best regards,
Richard L

Quoted 43 lines · Richard Leitner

Hello,

Quoted 14 lines · Otavio Salvador
Quoted 12 lines · Richard Leitner

The icedtea-jdk-nio-use-host-cc.patch disabled the build of xawt. Therefore all awt based java application which were run on X11 failed starting the GUI with an java.awt.HeadlessException.

This patch enables xawt again by adapting
icedtea-jdk-nio-use-host-cc.patch.

---
This patch was only tested with yocto-1.6.3 (daisy) on an armv7a cortexa9 with vfpv3d16. Please test it on further platforms!

Quoted 9 lines
Quoted 4 lines

This is my first patch to this mailinglist so hopefully I got everything right. If not please give me some feedback on what to improve for the next one ;-)
---

Sorry for the long time to get to this patch. I would like to ask if you could run a test in master so we avoid surprises. If you confirm it works I am fine in commiting it.

I successfully compiled and tested openjdk with the patch on an armv7a cortexa9 cpu with vfpv3d16 using following layers:

poky/meta{,-yocto}

	@ master (0f8d89ce66cfffccc9911d6c61470a585173b79d)

meta-java

	@ master (4aea395deed99b2725b56d4a86fb4712fcf504d7)
	+ my patch

meta-openembedded/meta-oe

	@ master (c12b9596afd236116b25ce26dbe0d793de9dc7ce)

best regards,
Richard L

#6 lore raw
Quoted 2 lines · Richard Leitner

Hello,
any updates on this patch?

The patch didn't apply so I asked you to rebase. Can you rebase and send?

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
#7 lore raw
Quoted 7 lines · Otavio Salvador
Quoted 2 lines · Richard Leitner

Hello,
any updates on this patch?

The patch didn't apply so I asked you to rebase. Can you rebase and send?

in addition please build for FSL ppc since that was original architecture where it failed when I did this patch

Quoted 9 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
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#8 lore raw
Quoted 4 lines · Khem Raj
Quoted 2 lines · Otavio Salvador

On Thu, Aug 6, 2015 at 4:25 AM, Richard Leitner
<[email protected]> wrote:

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

Hello,
any updates on this patch?

The patch didn't apply so I asked you to rebase. Can you rebase and send?

in addition please build for FSL ppc since that was original architecture where it failed when I did this patch

Ok, thanks for the input. I'll rebase and test during the weekend. Hopefully I have v2 patch at the beginning of next week.

regards,
Richard L

#9 lore raw
Quoted 15 lines · Richard Leitner
Quoted 4 lines · Khem Raj
Quoted 2 lines · Otavio Salvador

On Thu, Aug 6, 2015 at 4:25 AM, Richard Leitner
<[email protected]> wrote:

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

Hello,
any updates on this patch?

The patch didn't apply so I asked you to rebase. Can you rebase and send?

in addition please build for FSL ppc since that was original architecture where it failed when I did this patch

Quoted 6 lines

Ok, thanks for the input. I'll rebase and test during the weekend. Hopefully I have v2 patch at the beginning of next week.

regards,
Richard L

If you have the time, it would be nice if you could update it to the latest 2.5.6 release.

Bye Henning

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#10 lore raw
Quoted 8 lines · Henning Heinold
Quoted 4 lines · Richard Leitner

Ok, thanks for the input. I'll rebase and test during the weekend. Hopefully I have v2 patch at the beginning of next week.

If you have the time, it would be nice if you could update it to the latest 2.5.6 release.

According "Andrew's Blog" 2.5.6 was the last 2.5.x release [1]:
There will be one further release of the 2.5.x series, 2.5.6, for the July 2015 security updates, in tandem with 2.6.1, both coming in the next few days. In October, the 2.5.x branch will be rendered obsolete, with only the 2.6.x series being updated for that security update. Please use the intervening period to transition to the 2.6.x series.

Due to this fact I planned to update it to IcedTea 2.6.1 (2015-07-21). Are there any facts against the 2.6.x release?

regards,
Richard L

[1]
http://blog.fuseyism.com/index.php/2015/07/19/icedtea-2-6-0-for-openjdk-7-released/

#11 lore raw
Quoted 17 lines · Richard Leitner
Quoted 8 lines · Henning Heinold
Quoted 4 lines · Richard Leitner

Ok, thanks for the input. I'll rebase and test during the weekend. Hopefully I have v2 patch at the beginning of next week.

If you have the time, it would be nice if you could update it to the latest 2.5.6 release.

According "Andrew's Blog" 2.5.6 was the last 2.5.x release [1]:
There will be one further release of the 2.5.x series, 2.5.6, for the July 2015 security updates, in tandem with 2.6.1, both coming in the next few days. In October, the 2.5.x branch will be rendered obsolete, with only the 2.6.x series being updated for that security update. Please use the intervening period to transition to the 2.6.x series.

Quoted 8 lines

Due to this fact I planned to update it to IcedTea 2.6.1 (2015-07-21). Are there any facts against the 2.6.x release?

regards,
Richard L

[1]
http://blog.fuseyism.com/index.php/2015/07/19/icedtea-2-6-0-for-openjdk-7-released/

Not from me.

Bye Henning