Skip to contentSkip to conversation

openjdk-8-cross.inc: tweak PACKAGECONFIG default value

PATCH In review [email protected] 2 participants 2 messages Apr 19, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openjdk-8-cross.inc: tweak PACKAGECONFIG default value

From: Ming Liu <[email protected]>

When x11, cups, alsa is being set in DISTRO_FEATURES, the users might expect openjdk build with the related options as well. For instance, they might be confused when the openjdk is still built as headless but x11 is actually enabled from system aspect.

With this patch, the end users still can choose build openjdk without these options by overriding PACKAGECONFIG.

---
 recipes-core/openjdk/openjdk-8-cross.inc | 7 +++++++
 1 file changed, 7 insertions(+)
recipes-core/openjdk/openjdk-8-cross.inc +7 -0
index 47fe35d..34e1de4 100644
@@ -16,6 +16,13 @@ PRIVATE_LIBS = "\
 "
 
 PACKAGECONFIG ??= "repack"
+PACKAGECONFIG ?? = " \
+    repack \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'cups', 'cups', '', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
+"
+
 PACKAGECONFIG[x11] = "--with-x,,libx11 xproto libxt libxext libxrender"
 PACKAGECONFIG[cups] = "--with-cups,,cups"
 PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native"
Signature · 1 line
2.7.4
#1 lore raw

Hi,

Quoted 20 lines · On Wed, Apr 19, 2017 at 05:59:34AM +0200, [email protected] wrote:

From: Ming Liu <[email protected]>

When x11, cups, alsa is being set in DISTRO_FEATURES, the users might expect openjdk build with the related options as well. For instance, they might be confused when the openjdk is still built as headless but x11 is actually enabled from system aspect.

With this patch, the end users still can choose build openjdk without these options by overriding PACKAGECONFIG.

---
 recipes-core/openjdk/openjdk-8-cross.inc | 7 +++++++
 1 file changed, 7 insertions(+)
recipes-core/openjdk/openjdk-8-cross.inc +0 -0
index 47fe35d..34e1de4 100644

recipes-core/openjdk/openjdk-8-cross.inc PRIVATE_LIBS = "\ · line 16

Quoted 1 line
recipes-core/openjdk/openjdk-8-cross.inc +0 -0
@@ -16,6 +16,13 @@ PRIVATE_LIBS = "\
 "

Please remove this line:

recipes-core/openjdk/openjdk-8-cross.inc PRIVATE_LIBS = "\ · line 22

Quoted 5 lines
recipes-core/openjdk/openjdk-8-cross.inc +4 -0
 PACKAGECONFIG ??= "repack"
+PACKAGECONFIG ?? = " \
+    repack \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'cups', 'cups', '', d)} \

Is "cups" a valid distro feature in any reference distributions ?

recipes-core/openjdk/openjdk-8-cross.inc PRIVATE_LIBS = "\ · line 28

Quoted 6 lines
recipes-core/openjdk/openjdk-8-cross.inc +3 -0
+    ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
+"
+
 PACKAGECONFIG[x11] = "--with-x,,libx11 xproto libxt libxext libxrender"
 PACKAGECONFIG[cups] = "--with-cups,,cups"
 PACKAGECONFIG[alsa] = "--with-alsa,,alsa-lib-native"

Best Regards,
Maxin