* [Buildroot] [PATCH] mpv: fix X11 logic after bump to 0.25.0
@ 2017-05-08 13:32 Thomas Petazzoni
2017-05-08 19:10 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2017-05-08 13:32 UTC (permalink / raw)
To: buildroot
Between 0.24.0 and 0.25.0, mpv has changed its logic around the
detection/usage of X11 (in upstream commit
https://github.com/mpv-player/mpv/commit/927afa311d4a89b022305508acbf4e7325fe3928). Instead
of having fine grained option for x11, xext, xinerama, xscreensaver and
xrandr, mpv now requires all five libraries to be available in order to
enable X.org support.
Therefore, this commit adjusts the mpv packaging so that:
1. All necessary X11 libraries are selected if BR2_PACKAGE_XORG7 is
enabled. It would indeed be too cumbersome for the user to know that
all of x11, xext, xinerama, xscreensaver and xrandr are necessary in
order to have X.org support.
2. mpv.mk is simplified by enabling X.org support when
BR2_PACKAGE_XORG7 is enabled.
Fixes:
http://autobuild.buildroot.net/results/b470cfba451ce9ba648e3a2f3ae08429db8bdee9/
(--disable-xss was used to disable xscreensaver support, and this
option no longer exists)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/mpv/Config.in | 6 ++++++
package/mpv/mpv.mk | 33 +++++++--------------------------
2 files changed, 13 insertions(+), 26 deletions(-)
diff --git a/package/mpv/Config.in b/package/mpv/Config.in
index 6e115ae..ce6f367 100644
--- a/package/mpv/Config.in
+++ b/package/mpv/Config.in
@@ -12,6 +12,12 @@ config BR2_PACKAGE_MPV
select BR2_PACKAGE_ZLIB
# Select xkbcommon for wayland to avoid being mysterious
select BR2_PACKAGE_LIBXKBCOMMON if BR2_PACKAGE_WAYLAND
+ # Select all necessary X11 dependencies if X.org is enabled
+ 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_LIBXSCRNSAVER if BR2_PACKAGE_XORG7
+ select BR2_PACKAGE_XLIB_LIBXRANDR if BR2_PACKAGE_XORG7
help
mpv is a fork of mplayer2 and MPlayer. It shares some features
with the former projects while introducing many more.
diff --git a/package/mpv/mpv.mk b/package/mpv/mpv.mk
index 24ccf8c..37548c9 100644
--- a/package/mpv/mpv.mk
+++ b/package/mpv/mpv.mk
@@ -173,7 +173,7 @@ endif
# This requires one or more of the egl-drm, wayland, x11 backends
# For now we support wayland and x11
ifeq ($(BR2_PACKAGE_LIBVA),y)
-ifneq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_XLIB_LIBX11),)
+ifneq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_XORG7),)
MPV_CONF_OPTS += --enable-vaapi
MPV_DEPENDENCIES += libva
else
@@ -191,31 +191,12 @@ else
MPV_CONF_OPTS += --disable-wayland
endif
-# Base X11 support
-ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
-MPV_CONF_OPTS += --enable-x11 --disable-xss
-MPV_DEPENDENCIES += xlib_libX11
-# xext
-ifeq ($(BR2_PACKAGE_XLIB_LIBXEXT),y)
-MPV_CONF_OPTS += --enable-xext
-MPV_DEPENDENCIES += xlib_libXext
-else
-MPV_CONF_OPTS += --disable-xext
-endif
-# xinerama
-ifeq ($(BR2_PACKAGE_XLIB_LIBXINERAMA),y)
-MPV_CONF_OPTS += --enable-xinerama
-MPV_DEPENDENCIES += xlib_libXinerama
-else
-MPV_CONF_OPTS += --disable-xinerama
-endif
-# xrandr
-ifeq ($(BR2_PACKAGE_XLIB_LIBXRANDR),y)
-MPV_CONF_OPTS += --enable-xrandr
-MPV_DEPENDENCIES += xlib_libXrandr
-else
-MPV_CONF_OPTS += --disable-xrandr
-endif
+# Base X11 support. Config.in ensures that if BR2_PACKAGE_XORG7 is
+# enabled, xlib_libX11, xlib_libXext, xlib_libXinerama,
+# 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
# XVideo
ifeq ($(BR2_PACKAGE_XLIB_LIBXV),y)
MPV_CONF_OPTS += --enable-xv
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] mpv: fix X11 logic after bump to 0.25.0
2017-05-08 13:32 [Buildroot] [PATCH] mpv: fix X11 logic after bump to 0.25.0 Thomas Petazzoni
@ 2017-05-08 19:10 ` Peter Korsgaard
2017-05-08 19:23 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2017-05-08 19:10 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> Between 0.24.0 and 0.25.0, mpv has changed its logic around the
> detection/usage of X11 (in upstream commit
> https://github.com/mpv-player/mpv/commit/927afa311d4a89b022305508acbf4e7325fe3928). Instead
> of having fine grained option for x11, xext, xinerama, xscreensaver and
> xrandr, mpv now requires all five libraries to be available in order to
> enable X.org support.
> Therefore, this commit adjusts the mpv packaging so that:
> 1. All necessary X11 libraries are selected if BR2_PACKAGE_XORG7 is
> enabled. It would indeed be too cumbersome for the user to know that
> all of x11, xext, xinerama, xscreensaver and xrandr are necessary in
> order to have X.org support.
> 2. mpv.mk is simplified by enabling X.org support when
> BR2_PACKAGE_XORG7 is enabled.
> Fixes:
> +# Base X11 support. Config.in ensures that if BR2_PACKAGE_XORG7 is
> +# enabled, xlib_libX11, xlib_libXext, xlib_libXinerama,
> +# xlib_libXrandr, xlib_libXScrnSaver.
It sounds like something is missing from this sentence. I've changed it
to:
'if BR2_PACKAGE_XORG7 is enabled, so is xlib_libX11, ..'
And committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] mpv: fix X11 logic after bump to 0.25.0
2017-05-08 19:10 ` Peter Korsgaard
@ 2017-05-08 19:23 ` Thomas Petazzoni
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-05-08 19:23 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 08 May 2017 21:10:57 +0200, Peter Korsgaard wrote:
> > +# Base X11 support. Config.in ensures that if BR2_PACKAGE_XORG7 is
> > +# enabled, xlib_libX11, xlib_libXext, xlib_libXinerama,
> > +# xlib_libXrandr, xlib_libXScrnSaver.
>
> It sounds like something is missing from this sentence. I've changed it
> to:
>
> 'if BR2_PACKAGE_XORG7 is enabled, so is xlib_libX11, ..'
Yes, looks good. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-08 19:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-08 13:32 [Buildroot] [PATCH] mpv: fix X11 logic after bump to 0.25.0 Thomas Petazzoni
2017-05-08 19:10 ` Peter Korsgaard
2017-05-08 19:23 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox