From a0fdd17ec254ecaca28b40254e0679e24078c5e5 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 19 Mar 2023 19:11:00 +0100 Subject: [PATCH] package/mpv: fix x11 build xlib_libXpresent is needed with x11 to avoid the following build failure raised since bump to version 0.35.1 in commit 61ba55e9cce6884295e47fdf33554e6877bd0747 and https://github.com/mpv-player/mpv/commit/3d459832a88a9bd2835b339cf6ca98f84aad0115: Checking for X11: no ('x11 >= 1.0.0 xscrnsaver >= 1.0.0 xext >= 1.0.0 xinerama >= 1.0.0 xpresent >= 1.0.0 xrandr >= 1.2.0' not found) You manually enabled the feature 'x11', but the autodetection check failed. Fixes: - http://autobuild.buildroot.org/results/1aace6210ba966bb4979d935c08507b2a34e0460 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/mpv/Config.in | 1 + package/mpv/mpv.mk | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package/mpv/Config.in b/package/mpv/Config.in index 8efb353c33..5c32f593fe 100644 --- a/package/mpv/Config.in +++ b/package/mpv/Config.in @@ -26,6 +26,7 @@ config BR2_PACKAGE_MPV select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7 select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7 select BR2_PACKAGE_XLIB_LIBXINERAMA if BR2_PACKAGE_XORG7 + select BR2_PACKAGE_XLIB_LIBXPRESENT if BR2_PACKAGE_XORG7 select BR2_PACKAGE_XLIB_LIBXSCRNSAVER if BR2_PACKAGE_XORG7 select BR2_PACKAGE_XLIB_LIBXRANDR if BR2_PACKAGE_XORG7 help diff --git a/package/mpv/mpv.mk b/package/mpv/mpv.mk index e368b25736..cf37091186 100644 --- a/package/mpv/mpv.mk +++ b/package/mpv/mpv.mk @@ -205,7 +205,13 @@ endif # xlib_libXrandr, xlib_libXScrnSaver. ifeq ($(BR2_PACKAGE_XORG7),y) MPV_CONF_OPTS += --enable-x11 -MPV_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXinerama xlib_libXrandr xlib_libXScrnSaver +MPV_DEPENDENCIES += \ + xlib_libX11 \ + xlib_libXext \ + xlib_libXinerama \ + xlib_libXpresent \ + xlib_libXrandr \ + xlib_libXScrnSaver # XVideo ifeq ($(BR2_PACKAGE_XLIB_LIBXV),y) MPV_CONF_OPTS += --enable-xv