Bug 15766

Summary: BR2_PACKAGE_WESTON_XWAYLAND -- 12.0.1 -- fails to build::missing dependencies
Product: buildroot Reporter: Jose Angel Torres <jose>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: 2023.08   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: proposed preview patch, will not be able to be applied directly to mainline!

Description Jose Angel Torres 2023-09-11 06:26:31 UTC
Created attachment 9640 [details]
proposed preview patch, will not be able to be applied directly to mainline!

Hello,

This is my first time submitting a bug report for buildroot.
I have a few more on the way with patches in tow including this one.

Problem:
Weston 12.0.1 fails to build when BR2_PACKAGE_WESTON_XWAYLAND is selected. Despite proper dependencies being listed in Defconfig. 

Reason for failure:
Config.in for BR2_PACKAGE_WESTON_XWAYLAND does not select BR2_PACKAGE_XCB_UTIL and BR2_PACKAGE_XCB_UTIL_CURSOR. Additionally, weston.mk does not list xcb-util and xcb-util-cursor for dependencies of BR2_PACKAGE_WESTON_XWAYLAND.

Error Log Snippet:
"""
>>> weston 12.0.1 Configuring
...
...
Run-time dependency xcb-cursor found: NO (tried pkgconfig and cmake)

output/build/weston-12.0.1/tests/meson.build:317:2: ERROR: Problem encountered: xcb and xcb-cursor required for running xwayland tests
"""

Relevant DefConfig Snippet:
"""
BR2_PACKAGE_XCB_UTIL=y
BR2_PACKAGE_XCB_UTIL_CURSOR=y
BR2_PACKAGE_XCB_UTIL_IMAGE=y
BR2_PACKAGE_XCB_UTIL_RENDERUTIL=y
...
BR2_PACKAGE_WESTON=y
BR2_PACKAGE_WESTON_DEFAULT_WAYLAND=y
BR2_PACKAGE_WESTON_XWAYLAND=y
"""

Fix/Solution:
(See preview patch attached. Will not directly apply, will be sending a proper patch to the mailing list within the next day or so.)
Comment 1 Thomas Devoogdt 2024-04-05 14:03:21 UTC
Hi,


I also saw this,
pushed a patch for it:

https://patchwork.ozlabs.org/project/buildroot/patch/20240405140153.1625987-1-thomas@devoogdt.com/


Kr,

Thomas