package/glmark2: drm-glesv2 needs libdrm
PATCH v2 1/3 package/glmark2: drm-glesv2 needs libdrm
Fixes:
http://autobuild.buildroot.net/results/58a/58a498fac83cbb55b252ab54cd8db04570bb5ec9/
---
v2: moved libdrm select to main symbol (Yann)
package/glmark2/Config.in | 3 +++ package/glmark2/glmark2.mk | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
package/glmark2/Config.in +3 -0
@@ -7,6 +7,8 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2 depends on BR2_PACKAGE_HAS_LIBEGL depends on BR2_PACKAGE_HAS_LIBGLES depends on BR2_PACKAGE_HAS_UDEV + # libpthread-stubs -> libdrm + depends on BR2_TOOLCHAIN_HAS_THREADS select BR2_PACKAGE_GLMARK2_FLAVOR_ANY config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GL
@@ -63,6 +65,7 @@ config BR2_PACKAGE_GLMARK2 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14 depends on BR2_PACKAGE_GLMARK2_FLAVOR_ANY select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2 select BR2_PACKAGE_LIBPNG help glmark2 is an OpenGL 2.0 and ES 2.0 benchmark.
package/glmark2/glmark2.mk +1 -1
@@ -11,7 +11,7 @@ GLMARK2_LICENSE_FILES = COPYING COPYING.SGI GLMARK2_DEPENDENCIES = host-pkgconf jpeg libegl libpng ifeq ($(BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2),y) -GLMARK2_DEPENDENCIES += libgles udev +GLMARK2_DEPENDENCIES += libdrm libgles udev GLMARK2_FLAVORS += drm-glesv2 endif
Signature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/3 package/glmark2: fix selection of dependencies
Commit 9c068b4be8 (package/glmark2: fix wayland build) extended the set of required libraries for various "flavor" options by selecting those libraries from the blind options.
However, that option is true as soon as the requirements are met (the depends on), even when glmark2 itself is not enabled.
This means that extra libraries are pulled in to the build, even when not required.
We fix that by moving the actual selects to the main symbol, along with the proper conditions. This means that we have two lines that select wayland-protocols, under two different conditions; we could make that a single select, but the codition would need to be on two lines anyway, so meh...
---
Requested by Yann:
http://lists.busybox.net/pipermail/buildroot/2021-November/628389.html
package/glmark2/Config.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/glmark2/Config.in +2 -2
@@ -27,7 +27,6 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GLESV2 depends on BR2_PACKAGE_HAS_LIBGLES depends on BR2_PACKAGE_WAYLAND select BR2_PACKAGE_GLMARK2_FLAVOR_ANY - select BR2_PACKAGE_WAYLAND_PROTOCOLS config BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GL bool
@@ -36,7 +35,6 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GL depends on BR2_PACKAGE_HAS_LIBGL depends on BR2_PACKAGE_WAYLAND select BR2_PACKAGE_GLMARK2_FLAVOR_ANY - select BR2_PACKAGE_WAYLAND_PROTOCOLS config BR2_PACKAGE_GLMARK2_FLAVOR_X11_GLESV2 bool
@@ -68,6 +66,8 @@ config BR2_PACKAGE_GLMARK2 select BR2_PACKAGE_JPEG select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2 select BR2_PACKAGE_LIBPNG + select BR2_PACKAGE_WAYLAND_PROTOCOLS if BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GL + select BR2_PACKAGE_WAYLAND_PROTOCOLS if BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GLESV2 help glmark2 is an OpenGL 2.0 and ES 2.0 benchmark.
Signature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedRe: [Buildroot] [PATCH 3/3] package/glmark2: fix selection of dependencies
Bernd, All,
On 2021-11-13 10:30 +0100, Bernd Kuhls spake thusly:
Quoted 10 lines
Commit
9c068b4be8(package/glmark2: fix wayland build) extended the set of required libraries for various "flavor" options by selecting those libraries from the blind options.However, that option is true as soon as the requirements are met (the depends on), even when glmark2 itself is not enabled.
This means that extra libraries are pulled in to the build, even when not required.
Quoted 7 lines
We fix that by moving the actual selects to the main symbol, along with the proper conditions. This means that we have two lines that select wayland-protocols, under two different conditions; we could make that a single select, but the codition would need to be on two lines anyway, so meh...
Signed-off-by Bernd Kuhls <[email protected]>
Aha! I see you re-used my previous commit as-is. You even kept all my typoes! ;-)
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 43 lines
---
Requested by Yann:
http://lists.busybox.net/pipermail/buildroot/2021-November/628389.htmlpackage/glmark2/Config.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)package/glmark2/Config.in +2
-2@@ -27,7 +27,6 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GLESV2 depends on BR2_PACKAGE_HAS_LIBGLES depends on BR2_PACKAGE_WAYLAND select BR2_PACKAGE_GLMARK2_FLAVOR_ANY - select BR2_PACKAGE_WAYLAND_PROTOCOLS config BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GL bool@@ -36,7 +35,6 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GL depends on BR2_PACKAGE_HAS_LIBGL depends on BR2_PACKAGE_WAYLAND select BR2_PACKAGE_GLMARK2_FLAVOR_ANY - select BR2_PACKAGE_WAYLAND_PROTOCOLS config BR2_PACKAGE_GLMARK2_FLAVOR_X11_GLESV2 bool@@ -68,6 +66,8 @@ config BR2_PACKAGE_GLMARK2 select BR2_PACKAGE_JPEG select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2 select BR2_PACKAGE_LIBPNG + select BR2_PACKAGE_WAYLAND_PROTOCOLS if BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GL + select BR2_PACKAGE_WAYLAND_PROTOCOLS if BR2_PACKAGE_GLMARK2_FLAVOR_WAYLAND_GLESV2 help glmark2 is an OpenGL 2.0 and ES 2.0 benchmark.Signature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | 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 [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 3/3] package/glmark2: fix selection of dependencies
In reply to Bernd KuhlsQuoted 18 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernd" == Bernd Kuhls <[email protected]> writes:
Commit
9c068b4be8(package/glmark2: fix wayland build) extended the set of required libraries for various "flavor" options by selecting those libraries from the blind options.However, that option is true as soon as the requirements are met (the depends on), even when glmark2 itself is not enabled.
This means that extra libraries are pulled in to the build, even when not required.
We fix that by moving the actual selects to the main symbol, along with the proper conditions. This means that we have two lines that select wayland-protocols, under two different conditions; we could make that a single select, but the codition would need to be on two lines anyway, so meh...
Quoted 4 lines
Signed-off-by Bernd Kuhls <[email protected]>---
Requested by Yann:
http://lists.busybox.net/pipermail/buildroot/2021-November/628389.html
Committed to 2021.02.x and 2021.08.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/3 package/glmark2: drm-glesv2 needs libgbm
In reply to Bernd KuhlsFixes build error with defconfig from:
http://autobuild.buildroot.net/results/e393dbfba7c2989fe983df47ea0638c3ba62ae7a/
Checking for 'libdrm': yes
Checking for 'gbm' : not found
after http://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
was applied. Both patches are needed to fix the build error.
---
v2: no changes
package/glmark2/Config.in | 1 + package/glmark2/glmark2.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
package/glmark2/Config.in +1 -0
@@ -5,6 +5,7 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2 bool default y depends on BR2_PACKAGE_HAS_LIBEGL + depends on BR2_PACKAGE_HAS_LIBGBM depends on BR2_PACKAGE_HAS_LIBGLES depends on BR2_PACKAGE_HAS_UDEV # libpthread-stubs -> libdrm
package/glmark2/glmark2.mk +1 -1
@@ -11,7 +11,7 @@ GLMARK2_LICENSE_FILES = COPYING COPYING.SGI GLMARK2_DEPENDENCIES = host-pkgconf jpeg libegl libpng ifeq ($(BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2),y) -GLMARK2_DEPENDENCIES += libdrm libgles udev +GLMARK2_DEPENDENCIES += libdrm libgbm libgles udev GLMARK2_FLAVORS += drm-glesv2 endif
Signature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedRe: [Buildroot] [PATCH v2 2/3] package/glmark2: drm-glesv2 needs libgbm
Bernd, All,
On 2021-11-13 10:30 +0100, Bernd Kuhls spake thusly:
Quoted 10 lines
Fixes build error with defconfig from:
http://autobuild.buildroot.net/results/e393dbfba7c2989fe983df47ea0638c3ba62ae7a/Checking for 'libdrm': yes
Checking for 'gbm' : not foundafter http://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
was applied. Both patches are needed to fix the build error.Signed-off-by Bernd Kuhls <[email protected]>
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 39 lines
---
v2: no changespackage/glmark2/Config.in | 1 + package/glmark2/glmark2.mk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)package/glmark2/Config.in +1
-0@@ -5,6 +5,7 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2 bool default y depends on BR2_PACKAGE_HAS_LIBEGL + depends on BR2_PACKAGE_HAS_LIBGBM depends on BR2_PACKAGE_HAS_LIBGLES depends on BR2_PACKAGE_HAS_UDEV # libpthread-stubs -> libdrmpackage/glmark2/glmark2.mk +1
-1@@ -11,7 +11,7 @@ GLMARK2_LICENSE_FILES = COPYING COPYING.SGI GLMARK2_DEPENDENCIES = host-pkgconf jpeg libegl libpng ifeq ($(BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2),y) -GLMARK2_DEPENDENCIES += libdrm libgles udev +GLMARK2_DEPENDENCIES += libdrm libgbm libgles udev GLMARK2_FLAVORS += drm-glesv2 endifSignature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | 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 [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 2/3] package/glmark2: drm-glesv2 needs libgbm
In reply to Bernd KuhlsQuoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernd" == Bernd Kuhls <[email protected]> writes:
Fixes build error with defconfig from:
http://autobuild.buildroot.net/results/e393dbfba7c2989fe983df47ea0638c3ba62ae7a/Checking for 'libdrm': yes
Checking for 'gbm' : not found
Quoted 6 lines
after http://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
was applied. Both patches are needed to fix the build error.Signed-off-by Bernd Kuhls <[email protected]>---
v2: no changes
We don't have BR2_PACKAGE_HAS_LIBGBM / the virtual gbm package in 2021.02.x / 2021.08.x, so I have NOT applied this to the stable branches.
What is the solution here? Depend on mesa?
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
A message that is not in the archive (sent off-list or not yet received): 87h7catpaz.fsf__1784.76354792423$1637186493$gmane$org@dell.be.48ers.dk
Re: [Buildroot] [PATCH v2 2/3] package/glmark2: drm-glesv2 needs libgbm
Am Wed, 17 Nov 2021 23:01:08 +0100 schrieb Peter Korsgaard:
Quoted 5 lines
We don't have
BR2_PACKAGE_HAS_LIBGBM/ the virtual gbm package in 2021.02.x / 2021.08.x, so I have NOT applied this to the stable branches.What is the solution here? Depend on mesa?
Hi Peter,
yes, please pick http://patchwork.ozlabs.org/project/buildroot/patch/
[email protected]/
Regards, Bernd
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedBernd, All,
On 2021-11-13 10:30 +0100, Bernd Kuhls spake thusly:
Quoted 16 lines
Fixes:
http://autobuild.buildroot.net/results/58a/58a498fac83cbb55b252ab54cd8db04570bb5ec9/Signed-off-by Bernd Kuhls <[email protected]>---
v2: moved libdrm select to main symbol (Yann)package/glmark2/Config.in | 3 +++ package/glmark2/glmark2.mk | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)package/glmark2/Config.in +0
-0
package/glmark2/Config.in config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2 · line 11
Quoted 5 lines
package/glmark2/Config.in +2
-0@@ -7,6 +7,8 @@ config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2 depends on BR2_PACKAGE_HAS_LIBEGL depends on BR2_PACKAGE_HAS_LIBGLES depends on BR2_PACKAGE_HAS_UDEV + # libpthread-stubs -> libdrm + depends on BR2_TOOLCHAIN_HAS_THREADS
The comment to explain the dependency goes on the same line as the dependency.
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 31 lines
package/glmark2/Config.in +1
-0select BR2_PACKAGE_GLMARK2_FLAVOR_ANY config BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GL@@ -63,6 +65,7 @@ config BR2_PACKAGE_GLMARK2 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14 depends on BR2_PACKAGE_GLMARK2_FLAVOR_ANY select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2 select BR2_PACKAGE_LIBPNG help glmark2 is an OpenGL 2.0 and ES 2.0 benchmark.package/glmark2/glmark2.mk +1
-1@@ -11,7 +11,7 @@ GLMARK2_LICENSE_FILES = COPYING COPYING.SGI GLMARK2_DEPENDENCIES = host-pkgconf jpeg libegl libpng ifeq ($(BR2_PACKAGE_GLMARK2_FLAVOR_DRM_GLESV2),y) -GLMARK2_DEPENDENCIES += libgles udev +GLMARK2_DEPENDENCIES += libdrm libgles udev GLMARK2_FLAVORS += drm-glesv2 endifSignature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | 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 [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernd" == Bernd Kuhls <[email protected]> writes:
Fixes:
http://autobuild.buildroot.net/results/58a/58a498fac83cbb55b252ab54cd8db04570bb5ec9/Signed-off-by Bernd Kuhls <[email protected]>---
v2: moved libdrm select to main symbol (Yann)
Committed to 2021.02.x and 2021.08.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot