icedtea7-native: set default x11 PACKAGECONFIG from DISTRO_FEATURES
PATCH 1/1 icedtea7-native: set default x11 PACKAGECONFIG from DISTRO_FEATURES
If x11 is specified in DISTRO_FEATURES, then make it a default PACKAGECONFIG option when building icedtea7-native; otherwise, the libx11-native dependency won't be satisfied.
The recipe reads as though icedtea7-native can build completely without X11, but if the libx11-native headers are not installed on the host system, compile errors in multiple units because of a missing X11/Xlib.h.
In file included from ../../../src/share/native/sun/awt/../java2d/pipe/Region.h:34:0,
from ../../../src/share/native/sun/awt/../java2d/loops/GraphicsPrimitiveMgr.c:31:
../../../src/solaris/native/sun/awt/utility/rect.h:31:22: fatal error: X11/Xlib.h: No such file or directory
In this example, it appears that GraphicsPrimitiveMgr.c is supposed to be compiled even in headless mode, so the dependency still seems to be needed.
--- recipes-core/icedtea/icedtea7-native.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-core/icedtea/icedtea7-native.inc +1 -1
@@ -11,7 +11,7 @@ DEPENDS = "virtual/javac-native virtual/java-native classpath-native \ unzip-native make-native util-linux-native\ " -PACKAGECONFIG ??= "" +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" PACKAGECONFIG[x11] = ",--disable-headful,libx11-native xorgproto-native libxt-native libxext-native libxrender-native" OEMAKE_BUILD_HEADLESS_ONLY = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'BUILD_HEADLESS_ONLY=1', d)}"
Signature · 1 line
2.20.1
Hi Richard,
Can you take a look at this patch I sent back in February? I just ran into a similar error during do_configure while trying to build icedtea7-native from thud on a host without xorg-x11-proto-devel installed. I think this change should allow the X11 headers to build and be pulled from the appropriate -native packages during bitbake instead of requiring the host dependency.
Thank you,
Kyle
Quoted 46 lines · Kyle Russell
If x11 is specified in
DISTRO_FEATURES, then make it a default PACKAGECONFIG option when building icedtea7-native; otherwise, the libx11-native dependency won't be satisfied.The recipe reads as though icedtea7-native can build completely without X11, but if the libx11-native headers are not installed on the host system, compile errors in multiple units because of a missing
X11/Xlib.h.In file included from
../../../src/share/native/sun/awt/../java2d/pipe/Region.h:34:0,
from../../../src/share/native/sun/awt/../java2d/loops/GraphicsPrimitiveMgr.c:31:../../../src/solaris/native/sun/awt/utility/rect.h:31:22: fatal error:X11/Xlib.h: No such file or directoryIn this example, it appears that
GraphicsPrimitiveMgr.cis supposed to be compiled even in headless mode, so the dependency still seems to be needed.Signed-off-by Kyle Russell <[email protected]>--- recipes-core/icedtea/icedtea7-native.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)recipes-core/icedtea/icedtea7-native.inc +1
-1@@ -11,7 +11,7 @@ DEPENDS = "virtual/javac-native virtual/java-native classpath-native \ unzip-native make-native util-linux-native\ " -PACKAGECONFIG ??= "" +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11','', d)}"
PACKAGECONFIG[x11] = ",--disable-headful,libx11-native xorgproto-native
libxt-native libxext-native libxrender-native"
OEMAKE_BUILD_HEADLESS_ONLY= "${@bb.utils.contains('PACKAGECONFIG',
'x11', '', 'BUILD_HEADLESS_ONLY=1', d)}"
--
2.20.1
Hi,
this is a note to let you know that I've just added this patch to the master-next branch of the meta-java repository at
git://git.yoctoproject.org/meta-java
As soon as it has gone through some more testing it will likely be merged to the master branch.
If you have any questions, please let me know.
regards;Richard.L
Quoted 35 lines · Kyle Russell
If x11 is specified in
DISTRO_FEATURES, then make it a default PACKAGECONFIG option when building icedtea7-native; otherwise, the libx11-native dependency won't be satisfied.The recipe reads as though icedtea7-native can build completely without X11, but if the libx11-native headers are not installed on the host system, compile errors in multiple units because of a missing
X11/Xlib.h.In file included from
../../../src/share/native/sun/awt/../java2d/pipe/Region.h:34:0,from ../../../src/share/native/sun/awt/../java2d/loops/GraphicsPrimitiveMgr.c:31:
../../../src/solaris/native/sun/awt/utility/rect.h:31:22: fatal error:X11/Xlib.h: No such file or directoryIn this example, it appears that
GraphicsPrimitiveMgr.cis supposed to be compiled even in headless mode, so the dependency still seems to be needed.Signed-off-by Kyle Russell <[email protected]>--- recipes-core/icedtea/icedtea7-native.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)recipes-core/icedtea/icedtea7-native.inc +1
-1@@ -11,7 +11,7 @@ DEPENDS = "virtual/javac-native virtual/java-native classpath-native \ unzip-native make-native util-linux-native\ " -PACKAGECONFIG ??= "" +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" PACKAGECONFIG[x11] = ",--disable-headful,libx11-native xorgproto-native libxt-native libxext-native libxrender-native" OEMAKE_BUILD_HEADLESS_ONLY = "${@bb.utils.contains('PACKAGECONFIG', 'x11', '', 'BUILD_HEADLESS_ONLY=1', d)}"