package/vulkan-loader: fix x11 handling
PATCH v2 1/1 package/vulkan-loader: fix x11 handling
Fix the following build failure raised since the addition of the package in commit 6aa1bc31678ff9f8013084fda34b9f941cc63fc3:
In file included from /home/buildroot/autobuild/run/instance-3/output-1/build/vulkan-loader-1.3.262/loader/extension_manual.h:24,
from /home/buildroot/autobuild/run/instance-3/output-1/build/vulkan-loader-1.3.262/loader/extension_manual.c:23:
/home/buildroot/autobuild/run/instance-3/output-1/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/vulkan/vulkan.h:71:10: fatal error: X11/extensions/Xrandr.h: No such file or directory
71 | #include <X11/extensions/Xrandr.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~Fixes:
- http://autobuild.buildroot.org/results/55ddfd44393e3bcc2f25bad2f9ecb7e1b142a985
---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Drop select
package/vulkan-loader/vulkan-loader.mk | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)
package/vulkan-loader/vulkan-loader.mk +9 -6
@@ -26,13 +26,16 @@ endif ifeq ($(BR2_PACKAGE_LIBXCB),y) VULKAN_LOADER_DEPENDENCIES += libxcb -VULKAN_LOADER_CONF_OPTS += \ - -DBUILD_WSI_XCB_SUPPORT=ON \ - -DBUILD_WSI_XLIB_SUPPORT=ON +VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_XCB_SUPPORT=ON else -VULKAN_LOADER_CONF_OPTS += \ - -DBUILD_WSI_XCB_SUPPORT=OFF \ - -DBUILD_WSI_XLIB_SUPPORT=OFF +VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_XCB_SUPPORT=OFF +endif + +ifeq ($(BR2_PACKAGE_XLIB_LIBX11)$(BR2_PACKAGE_XLIB_LIBXRANDR),yy) +VULKAN_LOADER_DEPENDENCIES += xlib_libX11 xlib_libXrandr +VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_XLIB_SUPPORT=ON +else +VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_XLIB_SUPPORT=OFF endif ifeq ($(BR2_PACKAGE_WAYLAND),y)
Signature · 6 lines
2.40.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
All;
Quoted 51 lines · Fabrice Fontaine
Fix the following build failure raised since the addition of the package in commit
6aa1bc31678ff9f8013084fda34b9f941cc63fc3:In file included from
/home/buildroot/autobuild/run/instance-3/output-1/build/vulkan-loader-1.3.262/loader/extension_manual.h:24,from /home/buildroot/autobuild/run/instance-3/output-1/build/vulkan-loader-1.3.262/loader/extension_manual.c:23: /home/buildroot/autobuild/run/instance-3/output-1/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/vulkan/vulkan.h:71:10: fatal error: X11/extensions/Xrandr.h: No such file or directory 71 | #include <X11/extensions/Xrandr.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~Fixes:
- http://autobuild.buildroot.org/results/55ddfd44393e3bcc2f25bad2f9ecb7e1b142a985Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Drop selectpackage/vulkan-loader/vulkan-loader.mk | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)package/vulkan-loader/vulkan-loader.mk +9
-7@@ -26,13 +26,16 @@ endif ifeq ($(BR2_PACKAGE_LIBXCB),y) VULKAN_LOADER_DEPENDENCIES += libxcb -VULKAN_LOADER_CONF_OPTS += \ - -DBUILD_WSI_XCB_SUPPORT=ON \ - -DBUILD_WSI_XLIB_SUPPORT=ON +VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_XCB_SUPPORT=ON else -VULKAN_LOADER_CONF_OPTS += \ - -DBUILD_WSI_XCB_SUPPORT=OFF \ - -DBUILD_WSI_XLIB_SUPPORT=OFF +VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_XCB_SUPPORT=OFF +endif + +ifeq ($(BR2_PACKAGE_XLIB_LIBX11)$(BR2_PACKAGE_XLIB_LIBXRANDR),yy) +VULKAN_LOADER_DEPENDENCIES += xlib_libX11 xlib_libXrandr +VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_XLIB_SUPPORT=ON +else +VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_XLIB_SUPPORT=OFF endif ifeq ($(BR2_PACKAGE_WAYLAND),y) --2.40.1
Quoted 4 lines
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedFabrice, All,
On 2023-09-21 18:48 +0200, Fabrice Fontaine spake thusly:
Quoted 9 lines
Fix the following build failure raised since the addition of the package in commit
6aa1bc31678ff9f8013084fda34b9f941cc63fc3:In file included from
/home/buildroot/autobuild/run/instance-3/output-1/build/vulkan-loader-1.3.262/loader/extension_manual.h:24,from /home/buildroot/autobuild/run/instance-3/output-1/build/vulkan-loader-1.3.262/loader/extension_manual.c:23: /home/buildroot/autobuild/run/instance-3/output-1/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/vulkan/vulkan.h:71:10: fatal error: X11/extensions/Xrandr.h: No such file or directory 71 | #include <X11/extensions/Xrandr.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 4 lines
Fixes:
- http://autobuild.buildroot.org/results/55ddfd44393e3bcc2f25bad2f9ecb7e1b142a985Signed-off-by Fabrice Fontaine <[email protected]>
Applied to master, thanks.
Your commits always contain the description of the failure (which is mildly interesting), but often lacks the actual reason for the change.
In this case, it would have been interesting to state that xcb and xlib support are orthogonal, but that for xlib, xrandr is also required, as Adam noticed in his commit log [0].
I totally forgot to amend the commit before I push, though, sorry...
[0] https://lore.kernel.org/buildroot/[email protected]/
Regards,
Yann E. MORIN.
Quoted 41 lines
---
Changes v1 -> v2 (after review of Thomas Petazzoni):
- Drop selectpackage/vulkan-loader/vulkan-loader.mk | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)package/vulkan-loader/vulkan-loader.mk +9
-6@@ -26,13 +26,16 @@ endif ifeq ($(BR2_PACKAGE_LIBXCB),y) VULKAN_LOADER_DEPENDENCIES += libxcb -VULKAN_LOADER_CONF_OPTS += \ - -DBUILD_WSI_XCB_SUPPORT=ON \ - -DBUILD_WSI_XLIB_SUPPORT=ON +VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_XCB_SUPPORT=ON else -VULKAN_LOADER_CONF_OPTS += \ - -DBUILD_WSI_XCB_SUPPORT=OFF \ - -DBUILD_WSI_XLIB_SUPPORT=OFF +VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_XCB_SUPPORT=OFF +endif + +ifeq ($(BR2_PACKAGE_XLIB_LIBX11)$(BR2_PACKAGE_XLIB_LIBXRANDR),yy) +VULKAN_LOADER_DEPENDENCIES += xlib_libX11 xlib_libXrandr +VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_XLIB_SUPPORT=ON +else +VULKAN_LOADER_CONF_OPTS += -DBUILD_WSI_XLIB_SUPPORT=OFF endif ifeq ($(BR2_PACKAGE_WAYLAND),y)Signature · 6 lines
2.40.1 _______________________________________________ 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 18 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Fabrice, All,
On 2023-09-21 18:48 +0200, Fabrice Fontaine spake thusly:Quoted 9 lines
Fix the following build failure raised since the addition of the package in commit
6aa1bc31678ff9f8013084fda34b9f941cc63fc3:In file included from
/home/buildroot/autobuild/run/instance-3/output-1/build/vulkan-loader-1.3.262/loader/extension_manual.h:24,
from/home/buildroot/autobuild/run/instance-3/output-1/build/vulkan-loader-1.3.262/loader/extension_manual.c:23:/home/buildroot/autobuild/run/instance-3/output-1/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/vulkan/vulkan.h:71:10: fatal error:X11/extensions/Xrandr.h: No such file or directory 71 | #include <X11/extensions/Xrandr.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~Quoted 4 lines
Fixes:
- http://autobuild.buildroot.org/results/55ddfd44393e3bcc2f25bad2f9ecb7e1b142a985Signed-off-by Fabrice Fontaine <[email protected]>
Quoted 8 lines
Applied to master, thanks.
Your commits always contain the description of the failure (which is mildly interesting), but often lacks the actual reason for the change.
In this case, it would have been interesting to state that xcb and xlib support are orthogonal, but that for xlib, xrandr is also required, as Adam noticed in his commit log [0].
Committed to 2023.11.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot