All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [Poky] Do install append to mesa does nothing in scarthgap
@ 2024-04-20 22:39 joseph.mills
  2024-04-20 22:41 ` joseph.mills
  0 siblings, 1 reply; 5+ messages in thread
From: joseph.mills @ 2024-04-20 22:39 UTC (permalink / raw
  To: yocto-patches


[-- Attachment #1.1: Type: text/plain, Size: 591 bytes --]

Line of code does nothing because the upstream code of mesa has changed.

https://git.yoctoproject.org/poky/tree/meta/recipes-graphics/mesa/mesa.inc?h=scarthgap#n31

That line shows the replacement of #elif defined(__unix__) && defined(EGL_NO_X11)

This has changed upstream to #elif defined(USE_X11)

Upstream (kirkstone)

https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-24.0.2/include/EGL/eglplatform.h?ref_type=tags#L112

Upstream (kirkstone'ish)

https://gitlab.freedesktop.org/mesa/mesa/-/blob/58ad6e52d1983785e951726f6940aa30e46bc462/include/EGL/eglplatform.h#L125

[-- Attachment #1.2: Type: text/html, Size: 1032 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: mesa-nox11-egl-upstream-changes.patch --]
[-- Type: text/x-diff; name="mesa-nox11-egl-upstream-changes.patch", Size: 897 bytes --]

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 6e96190084..36a16d3b2b 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -32,7 +32,7 @@ do_install:append() {
   # sed can't find EGL/eglplatform.h as it doesn't get installed when glvnd enabled.
   # So, check if EGL/eglplatform.h exists before running sed.
   if ${@bb.utils.contains('PACKAGECONFIG', 'egl', 'true', 'false', d)} && [ -f ${D}${includedir}/EGL/eglplatform.h ]; then
-      sed -i -e 's/^#elif defined(__unix__) && defined(EGL_NO_X11)$/#elif defined(__unix__) \&\& defined(EGL_NO_X11) || ${@bb.utils.contains('PACKAGECONFIG', 'x11', '0', '1', d)}/' ${D}${includedir}/EGL/eglplatform.h
+      sed -i -e 's/^#elif defined(USE_X11)$/#elif ${@bb.utils.contains('PACKAGECONFIG', 'x11', '1', '0', d)}/' ${D}${includedir}/EGL/eglplatform.h
   fi
 }
 

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

end of thread, other threads:[~2024-04-22 12:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-20 22:39 [Poky] Do install append to mesa does nothing in scarthgap joseph.mills
2024-04-20 22:41 ` joseph.mills
2024-04-22  9:23   ` [yocto-patches] " Quentin Schulz
2024-04-22  9:23     ` Quentin Schulz
2024-04-22 12:59     ` joseph.mills

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.