* [Buildroot] [PATCH 1/2] package/mesa3d-demos: needs C++
@ 2023-07-09 7:55 Bernd Kuhls
2023-07-09 7:55 ` [Buildroot] [PATCH 2/2] package/mesa3d-demos: bump version to 9.0.0 Bernd Kuhls
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Bernd Kuhls @ 2023-07-09 7:55 UTC (permalink / raw)
To: buildroot; +Cc: Spenser Gilliland, Romain Naour
Reference:
https://gitlab.freedesktop.org/mesa/demos/-/blob/main/meson.build#L21
Fixes:
http://autobuild.buildroot.net/results/90e/90e98fa0f37462cadea0fcbff9feabad5554587d/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
package/mesa3d-demos/Config.in | 4 ++++
package/piglit/Config.in | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/package/mesa3d-demos/Config.in b/package/mesa3d-demos/Config.in
index b716cf5799..2947915c92 100644
--- a/package/mesa3d-demos/Config.in
+++ b/package/mesa3d-demos/Config.in
@@ -1,5 +1,6 @@
config BR2_PACKAGE_MESA3D_DEMOS
bool "mesa3d-demos"
+ depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_PACKAGE_HAS_LIBGL || BR2_PACKAGE_HAS_LIBGLES \
|| BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBOPENVG
select BR2_PACKAGE_LIBGLEW if BR2_PACKAGE_XORG7 && BR2_PACKAGE_HAS_LIBGL
@@ -10,3 +11,6 @@ config BR2_PACKAGE_MESA3D_DEMOS
OpenGL demos from the Mesa 3D project.
http://mesa3d.org
+
+comment "mesa3d-demos needs a toolchain with C++"
+ depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/piglit/Config.in b/package/piglit/Config.in
index 5e957a555a..22d1c7c28e 100644
--- a/package/piglit/Config.in
+++ b/package/piglit/Config.in
@@ -6,7 +6,7 @@ config BR2_PACKAGE_PIGLIT
BR2_PACKAGE_WAFFLE_SUPPORTS_WAYLAND || \
BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL || \
BR2_PACKAGE_WAFFLE_SUPPORTS_GBM
- depends on BR2_INSTALL_LIBSTDCPP # python-numpy
+ depends on BR2_INSTALL_LIBSTDCPP # mesa3d-demos, python-numpy
depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_HAS_LIBGL
select BR2_PACKAGE_LIBPNG
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] package/mesa3d-demos: bump version to 9.0.0
2023-07-09 7:55 [Buildroot] [PATCH 1/2] package/mesa3d-demos: needs C++ Bernd Kuhls
@ 2023-07-09 7:55 ` Bernd Kuhls
2023-07-09 16:45 ` [Buildroot] [PATCH 1/2] package/mesa3d-demos: needs C++ Thomas Petazzoni via buildroot
2023-07-17 13:05 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Bernd Kuhls @ 2023-07-09 7:55 UTC (permalink / raw)
To: buildroot; +Cc: Spenser Gilliland, Romain Naour
Release notes:
https://lists.freedesktop.org/archives/mesa-announce/2023-March/000711.html
Rebased patch, switched tarball to xz.
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
...s-makes-opengl-an-optional-component.patch | 28 +++++++++++--------
package/mesa3d-demos/mesa3d-demos.hash | 6 ++--
package/mesa3d-demos/mesa3d-demos.mk | 6 ++--
3 files changed, 23 insertions(+), 17 deletions(-)
diff --git a/package/mesa3d-demos/0001-demos-makes-opengl-an-optional-component.patch b/package/mesa3d-demos/0001-demos-makes-opengl-an-optional-component.patch
index e51b6f1a2a..af929003db 100644
--- a/package/mesa3d-demos/0001-demos-makes-opengl-an-optional-component.patch
+++ b/package/mesa3d-demos/0001-demos-makes-opengl-an-optional-component.patch
@@ -9,6 +9,8 @@ This patch is a port of [1] for the new meson build system.
https://git.busybox.net/buildroot/tree/package/mesa3d-demos/0001-demos-makes-opengl-an-optional-component.patch?h=2022.08
Signed-off-by: Julien Olivain <ju.o@free.fr>
+[Bernd: rebased for version 9.0.0]
+Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
meson.build | 19 ++++++++++++-------
meson_options.txt | 1 +
@@ -20,7 +22,7 @@ diff --git a/meson.build b/meson.build
index e1968fab..a15699d6 100644
--- a/meson.build
+++ b/meson.build
-@@ -38,7 +38,10 @@ add_project_arguments(
+@@ -39,7 +39,10 @@ add_project_arguments(
dep_m = cc.find_library('m', required : false)
dep_winmm = cc.find_library('winmm', required : false)
@@ -30,30 +32,34 @@ index e1968fab..a15699d6 100644
+ add_project_arguments('-DEGL_NO_X11=1', language: 'c')
+endif
+ dep_epoll = dependency('epoll-shim', required : false)
dep_gles1 = dependency('glesv1_cm', required : get_option('gles1'))
- dep_gles2 = dependency('glesv2', required : get_option('gles2'))
-@@ -75,13 +78,15 @@ endif
+@@ -87,15 +87,17 @@
dep_threads = dependency('threads')
--dep_glu = dependency('glu', required : dep_x11.found())
--if not dep_glu.found()
+-dep_glu = dependency('glu', required : false)
+-# GLU is part of OpenGL.Framework
+-if not dep_glu.found() and host_machine.system() != 'darwin'
- _glu_name = 'GLU'
- if host_machine.system() == 'windows'
- _glu_name = 'glu32'
+if dep_gl.found()
-+ dep_glu = dependency('glu', required : dep_x11.found())
-+ if not dep_glu.found()
++ dep_glu = dependency('glu', required : false)
++ # GLU is part of OpenGL.Framework
++ if not dep_glu.found() and host_machine.system() != 'darwin'
+ _glu_name = 'GLU'
+ if host_machine.system() == 'windows'
+ _glu_name = 'glu32'
+ endif
-+ dep_glu = cc.find_library(_glu_name, has_headers: 'GL/glu.h')
++ dep_glu = cc.find_library(_glu_name, has_headers: 'GL/glu.h',
++ required : dep_x11.found())
endif
-- dep_glu = cc.find_library(_glu_name, has_headers: 'GL/glu.h')
+- dep_glu = cc.find_library(_glu_name, has_headers: 'GL/glu.h',
+- required : dep_x11.found())
endif
- # GBM is needed for EGL on KMS
+ dep_glx = dependency('glx', required: false, disabler : true)
diff --git a/meson_options.txt b/meson_options.txt
index ddadd2e3..f5405698 100644
--- a/meson_options.txt
@@ -64,7 +70,7 @@ index ddadd2e3..f5405698 100644
+option('gl', type : 'feature')
option('gles1', type : 'feature')
option('gles2', type : 'feature')
- option('osmesa', type : 'feature')
+ option('glut', type : 'feature')
diff --git a/src/egl/meson.build b/src/egl/meson.build
index d1846921..42bf8ecd 100644
--- a/src/egl/meson.build
diff --git a/package/mesa3d-demos/mesa3d-demos.hash b/package/mesa3d-demos/mesa3d-demos.hash
index b0cfb88816..cdf9adb3fd 100644
--- a/package/mesa3d-demos/mesa3d-demos.hash
+++ b/package/mesa3d-demos/mesa3d-demos.hash
@@ -1,3 +1,3 @@
-# From https://lists.freedesktop.org/archives/mesa-announce/2022-May/000677.html
-sha256 cea2df0a80f09a30f635c4eb1a672bf90c5ddee0b8e77f4d70041668ef71aac1 mesa-demos-8.5.0.tar.bz2
-sha512 df6a7f09638ca389d6e8bc569e599dcc59c9aa280bcfb95976d83e5cd3edfe74bb3a31f0953956dc16faa540ee5b09990e3377e1341d836fc527e50ace6e60b8 mesa-demos-8.5.0.tar.bz2
+# From https://lists.freedesktop.org/archives/mesa-announce/2023-March/000711.html
+sha256 3046a3d26a7b051af7ebdd257a5f23bfeb160cad6ed952329cdff1e9f1ed496b mesa-demos-9.0.0.tar.xz
+sha512 af33ef72a521416e39d93370b2b4ccb768f08084c9e4c0aa62868210d9465c858e5cb8e5d23952295a3073946f609eb8723ee60b39dd9fb6696c4e45aafbb2c1 mesa-demos-9.0.0.tar.xz
diff --git a/package/mesa3d-demos/mesa3d-demos.mk b/package/mesa3d-demos/mesa3d-demos.mk
index 5f7fe8e24d..29cb00bb8a 100644
--- a/package/mesa3d-demos/mesa3d-demos.mk
+++ b/package/mesa3d-demos/mesa3d-demos.mk
@@ -4,9 +4,9 @@
#
################################################################################
-MESA3D_DEMOS_VERSION = 8.5.0
-MESA3D_DEMOS_SOURCE = mesa-demos-$(MESA3D_DEMOS_VERSION).tar.bz2
-MESA3D_DEMOS_SITE = https://archive.mesa3d.org/demos/$(MESA3D_DEMOS_VERSION)
+MESA3D_DEMOS_VERSION = 9.0.0
+MESA3D_DEMOS_SOURCE = mesa-demos-$(MESA3D_DEMOS_VERSION).tar.xz
+MESA3D_DEMOS_SITE = https://archive.mesa3d.org/demos
MESA3D_DEMOS_DEPENDENCIES = host-pkgconf
MESA3D_DEMOS_LICENSE = MIT
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/mesa3d-demos: needs C++
2023-07-09 7:55 [Buildroot] [PATCH 1/2] package/mesa3d-demos: needs C++ Bernd Kuhls
2023-07-09 7:55 ` [Buildroot] [PATCH 2/2] package/mesa3d-demos: bump version to 9.0.0 Bernd Kuhls
@ 2023-07-09 16:45 ` Thomas Petazzoni via buildroot
2023-07-17 13:05 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-07-09 16:45 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: Spenser Gilliland, Romain Naour, buildroot
On Sun, 9 Jul 2023 09:55:42 +0200
Bernd Kuhls <bernd@kuhls.net> wrote:
> Reference:
> https://gitlab.freedesktop.org/mesa/demos/-/blob/main/meson.build#L21
>
> Fixes:
> http://autobuild.buildroot.net/results/90e/90e98fa0f37462cadea0fcbff9feabad5554587d/
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> package/mesa3d-demos/Config.in | 4 ++++
> package/piglit/Config.in | 2 +-
> 2 files changed, 5 insertions(+), 1 deletion(-)
Both applied. For the version bump, I see the patch does not have an
Upstream: tag. Has is been submitted upstream? If not, why?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/2] package/mesa3d-demos: needs C++
2023-07-09 7:55 [Buildroot] [PATCH 1/2] package/mesa3d-demos: needs C++ Bernd Kuhls
2023-07-09 7:55 ` [Buildroot] [PATCH 2/2] package/mesa3d-demos: bump version to 9.0.0 Bernd Kuhls
2023-07-09 16:45 ` [Buildroot] [PATCH 1/2] package/mesa3d-demos: needs C++ Thomas Petazzoni via buildroot
@ 2023-07-17 13:05 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2023-07-17 13:05 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: Spenser Gilliland, Romain Naour, buildroot
>>>>> "Bernd" == Bernd Kuhls <bernd@kuhls.net> writes:
> Reference:
> https://gitlab.freedesktop.org/mesa/demos/-/blob/main/meson.build#L21
> Fixes:
> http://autobuild.buildroot.net/results/90e/90e98fa0f37462cadea0fcbff9feabad5554587d/
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Committed to 2023.02.x and 2023.05.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-07-17 13:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-09 7:55 [Buildroot] [PATCH 1/2] package/mesa3d-demos: needs C++ Bernd Kuhls
2023-07-09 7:55 ` [Buildroot] [PATCH 2/2] package/mesa3d-demos: bump version to 9.0.0 Bernd Kuhls
2023-07-09 16:45 ` [Buildroot] [PATCH 1/2] package/mesa3d-demos: needs C++ Thomas Petazzoni via buildroot
2023-07-17 13:05 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox