From 1fed1a6c754245977fa828a281d5d7cd977c8c8d Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Thu, 9 Apr 2026 20:40:46 +0200 Subject: [PATCH] package/kodi: fix wayland build Fixes wayland-related build error: make[4]: *** No rule to make target '/usr/share/waylandpp/protocols/presentation-time.xml', needed by 'wayland-extra-protocols.hpp'. Stop. by adding a configure parameter pointing to STAGING_DIR. The build error was not recorded by the autobuilders and can be reproduced by this defconfig: BR2_x86_64=y BR2_TOOLCHAIN_EXTERNAL=y BR2_PER_PACKAGE_DIRECTORIES=y BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_PACKAGE_KODI=y BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SOFTPIPE=y BR2_PACKAGE_MESA3D_OPENGL_EGL=y BR2_PACKAGE_MESA3D_OPENGL_ES=y BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_PYTHON3_PY_ONLY=y BR2_PACKAGE_WAYLAND=y LibreELEC added this configure parameter seven years ago: https://github.com/LibreELEC/LibreELEC.tv/commit/d19ab98bf324364bf36b7c2d630524267dfaaa01 so a backport to LTS branches should be considered. Signed-off-by: Bernd Kuhls Signed-off-by: Arnout Vandecappelle --- package/kodi/kodi.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk index 0c177a94dd..f82d5c0eb5 100644 --- a/package/kodi/kodi.mk +++ b/package/kodi/kodi.mk @@ -126,7 +126,8 @@ endif ifeq ($(BR2_PACKAGE_KODI_PLATFORM_SUPPORTS_WAYLAND),y) KODI_CONF_OPTS += \ -DPC_WAYLANDPP_SCANNER=$(HOST_DIR)/bin/wayland-scanner \ - -DPC_WAYLANDPP_SCANNER_FOUND=ON + -DPC_WAYLANDPP_SCANNER_FOUND=ON \ + -DWAYLANDPP_PROTOCOLS_DIR=$(STAGING_DIR)/usr/share/waylandpp/protocols KODI_CORE_PLATFORM_NAME += wayland KODI_DEPENDENCIES += libxkbcommon waylandpp endif