Skip to contentSkip to conversation

packagegroup-core-x11-xserver: use RRECOMMENDS for mesa-driver-swrast

PATCH In review Vincent Davis Jr 2 participants 6 messages Jan 1, 2024 – Jan 14, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 packagegroup-core-x11-xserver: use RRECOMMENDS for mesa-driver-swrast

When building qemux86-64 machine run into

nothing provides mesa-driver-swrast needed by
packagegroup-core-x11-xserver-1.0-r0.qemux86_64

mesa-driver-swrast package is add via the
PACKAGES_DYNAMIC variable, but gets included in
RDEPENDS of packagegroup-core-x11-xserver.

Put it in RRECOMMENDS so that error nolonger occurs.

---
 .../packagegroups/packagegroup-core-x11-xserver.bb           | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb +5 -0
index ebc1330055..c0473306ff 100644
@@ -10,13 +10,18 @@ inherit packagegroup features_check
 # rdepends on XSERVER
 REQUIRED_DISTRO_FEATURES = "x11"
 
+XSERVER_RECOMMENDS ??= ""
+
 XSERVER ?= "xserver-xorg \
             xf86-video-fbdev \
             xf86-video-modesetting \
             "
+
 XSERVERCODECS ?= ""
 
 RDEPENDS:${PN} = "\
     ${XSERVER} \
     ${XSERVERCODECS} \
     "
+
+RRECOMMENDS:${PN} = "${XSERVER_RECOMMENDS}"
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 machine-qemu: implement XSERVER_RECOMMENDS variable

When building qemux86-64 machine run into

nothing provides mesa-driver-swrast needed by
packagegroup-core-x11-xserver-1.0-r0.qemux86_64

The XSERVER_RECOMMENDS variable will put
mesa-driver-swrast into RRECOMMENDS of
packagegroup-core-x11-xserver.

This way error nolonger occurs.

---
 meta/conf/machine/include/qemu.inc | 6 +++++-
 meta/conf/machine/qemux86-64.conf  | 7 ++++++-
 meta/conf/machine/qemux86.conf     | 7 ++++++-
 3 files changed, 17 insertions(+), 3 deletions(-)
meta/conf/machine/include/qemu.inc +5 -1
index 14feb86790..6e97b94d47 100644
@@ -6,11 +6,15 @@ PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa"
 PREFERRED_PROVIDER_virtual/libgles3 ?= "mesa"
 
 XSERVER ?= "xserver-xorg \
-            ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast xserver-xorg-extension-glx', '', d)} \
+            ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'xserver-xorg-extension-glx', '', d)} \
             xf86-video-fbdev \
             xf86-video-modesetting \
             "
 
+XSERVER_RECOMMENDS ?= " \
+            ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast', '', d)} \
+            "
+
 MACHINE_FEATURES = "alsa bluetooth usbgadget screen vfat"
 
 MACHINEOVERRIDES =. "qemuall:"
meta/conf/machine/qemux86-64.conf +6 -1
index 14873a3b4f..ae9e581fc2 100644
@@ -23,7 +23,7 @@ SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1"
 # This is because gallium swrast driver was found to crash X server on startup in qemu x32.
 XSERVER = "xserver-xorg \
            ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', \
-           bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'mesa-driver-swrast xserver-xorg-extension-glx', d), '', d)} \
+           bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'xserver-xorg-extension-glx', d), '', d)} \
            xf86-video-cirrus \
            xf86-video-fbdev \
            xf86-video-vmware \
@@ -32,6 +32,11 @@ XSERVER = "xserver-xorg \
            xserver-xorg-module-libint10 \
            "
 
+XSERVER_RECOMMENDS = " \
+            ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', \
+            bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'mesa-driver-swrast', d), '', d)} \
+            "
+
 MACHINE_FEATURES += "x86 pci"
 
 MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
meta/conf/machine/qemux86.conf +6 -1
index 1e072e1ae2..e8a267734f 100644
@@ -20,7 +20,7 @@ KERNEL_IMAGETYPE = "bzImage"
 SERIAL_CONSOLES ?= "115200;ttyS0 115200;ttyS1"
 
 XSERVER = "xserver-xorg \
-           ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast xserver-xorg-extension-glx', '', d)} \
+           ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'xserver-xorg-extension-glx', '', d)} \
            xf86-video-cirrus \
            xf86-video-fbdev \
            xf86-video-vmware \
@@ -29,6 +29,11 @@ XSERVER = "xserver-xorg \
            xserver-xorg-module-libint10 \
            "
 
+XSERVER_RECOMMENDS = " \
+            ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', \
+            bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'mesa-driver-swrast', d), '', d)} \
+            "
+
 MACHINE_FEATURES += "x86 pci"
 
 MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "v86d"
Signature · 1 line
2.34.1
#2 lore raw
In reply to Vincent Davis Jr

How can the issue be reproduced? It’s not seen in standard configurations, so how did you run into the error?

Alex

Quoted 56 lines · Vincent Davis Jr

When building qemux86-64 machine run into

nothing provides mesa-driver-swrast needed by
packagegroup-core-x11-xserver-1.0-r0.qemux86_64

mesa-driver-swrast package is add via the
PACKAGES_DYNAMIC variable, but gets included in
RDEPENDS of packagegroup-core-x11-xserver.

Put it in RRECOMMENDS so that error nolonger occurs.

---
 .../packagegroups/packagegroup-core-x11-xserver.bb           | 5 +++++
 1 file changed, 5 insertions(+)
(quoted diff) +0 -0

packagegroup-core-x11-xserver.bb b/meta/recipes-graphics/packagegroups/ packagegroup-core-x11-xserver.bb
index ebc1330055..c0473306ff 100644

meta/recipes-graphics/packagegroups/packagegroup-core-x11-xserver.bb +5 -1
@@ -10,13 +10,18 @@ inherit packagegroup features_check
 # rdepends on XSERVER
 REQUIRED_DISTRO_FEATURES = "x11"
 
+XSERVER_RECOMMENDS ??= ""
+
 XSERVER ?= "xserver-xorg \
             xf86-video-fbdev \
             xf86-video-modesetting \
             "
+
 XSERVERCODECS ?= ""
 
 RDEPENDS:${PN} = "\
     ${XSERVER} \
     ${XSERVERCODECS} \
     "
+
+RRECOMMENDS:${PN} = "${XSERVER_RECOMMENDS}"
--

2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#193190):
https://lists.openembedded.org/g/openembedded-core/message/193190
Mute This Topic: https://lists.openembedded.org/mt/103471043/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Yea, I can try to find root cause. May just be my setup.

In my setup mesa-driver-swrast package doesn't exists or rather doesn't get generated which is why during rootfs creation the package manager opkg fails on me.

*Exact error:*

Quoted 11 lines

Solver encountered 1 problem(s):
Problem 1/1:
- package packagegroup-core-x11-1.0-r0.all requires packagegroup-core-x11-xserver, but none of the providers can be installed
- conflicting requests
- nothing provides mesa-driver-swrast needed by packagegroup-core-x11-xserver-1.0-r0.qemux86_64

Quoted 4 lines

Solution 1:
- do not ask to install a package providing packagegroup-core-x11

Can see that it doesn't exists with

Quoted 21 lines

*ls tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/**/mesa**

tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/core2-64/mesa-dbg_23.3.1-r0_core2-64.ipk

tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/core2-64/mesa-dev_23.3.1-r0_core2-64.ipk

tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/core2-64/mesa-megadriver_23.3.1-r0_core2-64.ipk

tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/core2-64/mesa-src_23.3.1-r0_core2-64.ipk

tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/core2-64/mesa-tools_23.3.1-r0_core2-64.ipk

tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/core2-64/mesa-vulkan-drivers_23.3.1-r0_core2-64.ipk

#4 lore raw

Perhaps you can set up plain poky, and compare Mesa builds with that? No one else is reporting the issue, and the changes are invasive, so I’d want to get to the bottom of it first.

Alex

Quoted 49 lines · Vincent Davis Jr

Yea, I can try to find root cause. May just be my setup.

In my setup mesa-driver-swrast package doesn't exists or rather doesn't get generated
which is why during rootfs creation the package manager opkg fails on me.

*Exact error:*

Solver encountered 1 problem(s):
Problem 1/1:
- package packagegroup-core-x11-1.0-r0.all requires
packagegroup-core-x11-xserver, but none of the providers can be installed
- conflicting requests
- nothing provides mesa-driver-swrast needed by
packagegroup-core-x11-xserver-1.0-r0.qemux86_64

Solution 1:
- do not ask to install a package providing packagegroup-core-x11

Can see that it doesn't exists with

*ls tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/**/mesa**

tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/core2-64/mesa-dbg_23.3.1-r0_core2-64.ipk

tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/core2-64/mesa-dev_23.3.1-r0_core2-64.ipk

tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/core2-64/mesa-megadriver_23.3.1-r0_core2-64.ipk

tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/core2-64/mesa-src_23.3.1-r0_core2-64.ipk

tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/core2-64/mesa-tools_23.3.1-r0_core2-64.ipk

tmp/work/qemux86_64-underview-linux/core-image-base/1.0/oe-rootfs-repo/core2-64/mesa-vulkan-drivers_23.3.1-r0_core2-64.ipk

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#193193):
https://lists.openembedded.org/g/openembedded-core/message/193193
Mute This Topic: https://lists.openembedded.org/mt/103471043/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

Hey just updating,

Best to mark this one as a non issue.

Everything I tried when I use poky resulted in a complete build.

Oddly enough however in my setup if you run

*MACHINE="qemux86-64" bitbake core-image-base*

this results in a complete build.

While running the above using my *build.sh* wrapper script results in

* Solver encountered 1 problem(s):
* Problem 1/1:
*   - package packagegroup-core-x11-1.0-r0.all requires packagegroup-core-x11-xserver, but none of the providers can be installed *   - conflicting requests
*   - nothing provides mesa-driver-swrast needed by packagegroup-core-x11-xserver-1.0-r0.qemux86_64
*
* Solution 1:
*   - do not ask to install a package providing packagegroup-core-x11

Probably something I'm doing inside *build.sh*. Still not clear, but I don't think this is an OE issue.