Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/mesa3d-demos: fix glx-detection without glvnd
@ 2023-07-12 17:13 Bernd Kuhls
  2023-07-12 18:42 ` Yann E. MORIN
  0 siblings, 1 reply; 3+ messages in thread
From: Bernd Kuhls @ 2023-07-12 17:13 UTC (permalink / raw)
  To: buildroot; +Cc: Spenser Gilliland

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/4621046326

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 ...eson-fix-glx-detection-without-glvnd.patch | 47 +++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 package/mesa3d-demos/0002-meson-fix-glx-detection-without-glvnd.patch

diff --git a/package/mesa3d-demos/0002-meson-fix-glx-detection-without-glvnd.patch b/package/mesa3d-demos/0002-meson-fix-glx-detection-without-glvnd.patch
new file mode 100644
index 0000000000..37a60efdd7
--- /dev/null
+++ b/package/mesa3d-demos/0002-meson-fix-glx-detection-without-glvnd.patch
@@ -0,0 +1,47 @@
+From e16117fc92688d76a042ad2c590c77d5a987a4ac Mon Sep 17 00:00:00 2001
+From: Erik Faye-Lund <erik.faye-lund@collabora.com>
+Date: Fri, 24 Mar 2023 13:31:58 +0100
+Subject: [PATCH] meson: fix glx-detection without glvnd
+
+When build without GLVND, Mesa provides GLX as a part of libGL, just
+like XQuartz does on MacOS. There's nothing really macOS specific about
+this fallback, so let's drop the condition.
+
+And just for good measure, let's add in dep_gl as a dependency for
+the header-check here, in case some one decides to install libGL outside
+of the default include directory.
+
+Fixes: 34300551 ("meson: explicitly check for glx dependency")
+Closes: https://gitlab.freedesktop.org/mesa/demos/-/issues/36
+Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
+
+Upstream: https://gitlab.freedesktop.org/mesa/demos/-/commit/e16117fc92688d76a042ad2c590c77d5a987a4ac
+
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
+---
+ meson.build | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index c1853f94..bc3278e1 100644
+--- a/meson.build
++++ b/meson.build
+@@ -99,10 +99,11 @@ if not dep_glu.found() and host_machine.system() != 'darwin'
+ endif
+ 
+ dep_glx = dependency('glx', required: false, disabler : true)
+-if not dep_glx.found() and host_machine.system() == 'darwin'
+-  # xquartz doesn't have a glx.pc, but it does have the header. And all the
+-  # symbols reside in libGL, so let's just use that.
+-  if cc.check_header('GL/glx.h', dependencies: dep_x11)
++if not dep_glx.found()
++  # Both Mesa build without GLVND and XQuartz lacks a glx.pc, but does
++  # provide the header. And all the symbols reside in libGL, so let's
++  # just use that.
++  if cc.check_header('GL/glx.h', dependencies: [dep_x11, dep_gl])
+     dep_glx = dep_gl
+   endif
+ endif
+-- 
+GitLab
+
-- 
2.39.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/mesa3d-demos: fix glx-detection without glvnd
  2023-07-12 17:13 [Buildroot] [PATCH 1/1] package/mesa3d-demos: fix glx-detection without glvnd Bernd Kuhls
@ 2023-07-12 18:42 ` Yann E. MORIN
  2023-07-13  7:25   ` Romain Naour
  0 siblings, 1 reply; 3+ messages in thread
From: Yann E. MORIN @ 2023-07-12 18:42 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: Spenser Gilliland, buildroot

Bernd, All,

On 2023-07-12 19:13 +0200, Bernd Kuhls spake thusly:
> Fixes:
> https://gitlab.com/buildroot.org/buildroot/-/jobs/4621046326
> 
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  ...eson-fix-glx-detection-without-glvnd.patch | 47 +++++++++++++++++++
>  1 file changed, 47 insertions(+)
>  create mode 100644 package/mesa3d-demos/0002-meson-fix-glx-detection-without-glvnd.patch
> 
> diff --git a/package/mesa3d-demos/0002-meson-fix-glx-detection-without-glvnd.patch b/package/mesa3d-demos/0002-meson-fix-glx-detection-without-glvnd.patch
> new file mode 100644
> index 0000000000..37a60efdd7
> --- /dev/null
> +++ b/package/mesa3d-demos/0002-meson-fix-glx-detection-without-glvnd.patch
> @@ -0,0 +1,47 @@
> +From e16117fc92688d76a042ad2c590c77d5a987a4ac Mon Sep 17 00:00:00 2001
> +From: Erik Faye-Lund <erik.faye-lund@collabora.com>
> +Date: Fri, 24 Mar 2023 13:31:58 +0100
> +Subject: [PATCH] meson: fix glx-detection without glvnd
> +
> +When build without GLVND, Mesa provides GLX as a part of libGL, just
> +like XQuartz does on MacOS. There's nothing really macOS specific about
> +this fallback, so let's drop the condition.
> +
> +And just for good measure, let's add in dep_gl as a dependency for
> +the header-check here, in case some one decides to install libGL outside
> +of the default include directory.
> +
> +Fixes: 34300551 ("meson: explicitly check for glx dependency")
> +Closes: https://gitlab.freedesktop.org/mesa/demos/-/issues/36
> +Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
> +
> +Upstream: https://gitlab.freedesktop.org/mesa/demos/-/commit/e16117fc92688d76a042ad2c590c77d5a987a4ac
> +
> +Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> +---
> + meson.build | 9 +++++----
> + 1 file changed, 5 insertions(+), 4 deletions(-)
> +
> +diff --git a/meson.build b/meson.build
> +index c1853f94..bc3278e1 100644
> +--- a/meson.build
> ++++ b/meson.build
> +@@ -99,10 +99,11 @@ if not dep_glu.found() and host_machine.system() != 'darwin'
> + endif
> + 
> + dep_glx = dependency('glx', required: false, disabler : true)
> +-if not dep_glx.found() and host_machine.system() == 'darwin'
> +-  # xquartz doesn't have a glx.pc, but it does have the header. And all the
> +-  # symbols reside in libGL, so let's just use that.
> +-  if cc.check_header('GL/glx.h', dependencies: dep_x11)
> ++if not dep_glx.found()
> ++  # Both Mesa build without GLVND and XQuartz lacks a glx.pc, but does
> ++  # provide the header. And all the symbols reside in libGL, so let's
> ++  # just use that.
> ++  if cc.check_header('GL/glx.h', dependencies: [dep_x11, dep_gl])
> +     dep_glx = dep_gl
> +   endif
> + endif
> +-- 
> +GitLab
> +
> -- 
> 2.39.2
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/mesa3d-demos: fix glx-detection without glvnd
  2023-07-12 18:42 ` Yann E. MORIN
@ 2023-07-13  7:25   ` Romain Naour
  0 siblings, 0 replies; 3+ messages in thread
From: Romain Naour @ 2023-07-13  7:25 UTC (permalink / raw)
  To: Yann E. MORIN, Bernd Kuhls; +Cc: Spenser Gilliland, buildroot

Hello Bernd,

Le 12/07/2023 à 20:42, Yann E. MORIN a écrit :
> Bernd, All,
> 
> On 2023-07-12 19:13 +0200, Bernd Kuhls spake thusly:
>> Fixes:
>> https://gitlab.com/buildroot.org/buildroot/-/jobs/4621046326
>>
>> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> 
> Applied to master, thanks.

Thanks for the patch!

Best regards,
Romain


> 
> Regards,
> Yann E. MORIN.
> 
>> ---
>>  ...eson-fix-glx-detection-without-glvnd.patch | 47 +++++++++++++++++++
>>  1 file changed, 47 insertions(+)
>>  create mode 100644 package/mesa3d-demos/0002-meson-fix-glx-detection-without-glvnd.patch
>>
>> diff --git a/package/mesa3d-demos/0002-meson-fix-glx-detection-without-glvnd.patch b/package/mesa3d-demos/0002-meson-fix-glx-detection-without-glvnd.patch
>> new file mode 100644
>> index 0000000000..37a60efdd7
>> --- /dev/null
>> +++ b/package/mesa3d-demos/0002-meson-fix-glx-detection-without-glvnd.patch
>> @@ -0,0 +1,47 @@
>> +From e16117fc92688d76a042ad2c590c77d5a987a4ac Mon Sep 17 00:00:00 2001
>> +From: Erik Faye-Lund <erik.faye-lund@collabora.com>
>> +Date: Fri, 24 Mar 2023 13:31:58 +0100
>> +Subject: [PATCH] meson: fix glx-detection without glvnd
>> +
>> +When build without GLVND, Mesa provides GLX as a part of libGL, just
>> +like XQuartz does on MacOS. There's nothing really macOS specific about
>> +this fallback, so let's drop the condition.
>> +
>> +And just for good measure, let's add in dep_gl as a dependency for
>> +the header-check here, in case some one decides to install libGL outside
>> +of the default include directory.
>> +
>> +Fixes: 34300551 ("meson: explicitly check for glx dependency")
>> +Closes: https://gitlab.freedesktop.org/mesa/demos/-/issues/36
>> +Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
>> +
>> +Upstream: https://gitlab.freedesktop.org/mesa/demos/-/commit/e16117fc92688d76a042ad2c590c77d5a987a4ac
>> +
>> +Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
>> +---
>> + meson.build | 9 +++++----
>> + 1 file changed, 5 insertions(+), 4 deletions(-)
>> +
>> +diff --git a/meson.build b/meson.build
>> +index c1853f94..bc3278e1 100644
>> +--- a/meson.build
>> ++++ b/meson.build
>> +@@ -99,10 +99,11 @@ if not dep_glu.found() and host_machine.system() != 'darwin'
>> + endif
>> + 
>> + dep_glx = dependency('glx', required: false, disabler : true)
>> +-if not dep_glx.found() and host_machine.system() == 'darwin'
>> +-  # xquartz doesn't have a glx.pc, but it does have the header. And all the
>> +-  # symbols reside in libGL, so let's just use that.
>> +-  if cc.check_header('GL/glx.h', dependencies: dep_x11)
>> ++if not dep_glx.found()
>> ++  # Both Mesa build without GLVND and XQuartz lacks a glx.pc, but does
>> ++  # provide the header. And all the symbols reside in libGL, so let's
>> ++  # just use that.
>> ++  if cc.check_header('GL/glx.h', dependencies: [dep_x11, dep_gl])
>> +     dep_glx = dep_gl
>> +   endif
>> + endif
>> +-- 
>> +GitLab
>> +
>> -- 
>> 2.39.2
>>
>> _______________________________________________
>> buildroot mailing list
>> buildroot@buildroot.org
>> https://lists.buildroot.org/mailman/listinfo/buildroot
> 

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2023-07-13  7:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-12 17:13 [Buildroot] [PATCH 1/1] package/mesa3d-demos: fix glx-detection without glvnd Bernd Kuhls
2023-07-12 18:42 ` Yann E. MORIN
2023-07-13  7:25   ` Romain Naour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox