From bed91c3b6e053b5c170f9a068dbc69369b4655d6 Mon Sep 17 00:00:00 2001 From: leigh123linux Date: Thu, 23 Mar 2017 11:11:27 +0000 Subject: [PATCH] Try to fix ppc build --- mpv.spec | 11 ++++++++++- ppc_fix.patch | 20 ++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 ppc_fix.patch diff --git a/mpv.spec b/mpv.spec index 8764f8e..e13959d 100644 --- a/mpv.spec +++ b/mpv.spec @@ -1,6 +1,6 @@ Name: mpv Version: 0.23.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Movie player playing most video formats and DVDs License: GPLv2+ URL: http://%{name}.io/ @@ -18,6 +18,12 @@ Patch1: mpv-do-not-fail-with-minor-ffmpeg-updates.patch Patch2: %{name}-old-ffmpeg.patch %endif +# Fix ppc as upstream refuse to fix the issue +# https://github.com/mpv-player/mpv/issues/3776 +%ifarch ppc64 ppc64le +Patch3: ppc_fix.patch +%endif + BuildRequires: pkgconfig(alsa) BuildRequires: desktop-file-utils BuildRequires: pkgconfig(dvdnav) @@ -159,6 +165,9 @@ fi %{_libdir}/pkgconfig/mpv.pc %changelog +* Thu Mar 23 2017 Leigh Scott - 0.23.0-4 +- Try to fix ppc build + * Mon Mar 20 2017 RPM Fusion Release Engineering - 0.23.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/ppc_fix.patch b/ppc_fix.patch new file mode 100644 index 0000000..47b66bc --- /dev/null +++ b/ppc_fix.patch @@ -0,0 +1,20 @@ +--- a/audio/out/ao_sdl.c ++++ b/audio/out/ao_sdl.c +@@ -28,7 +28,6 @@ + #include "options/m_option.h" + #include "osdep/timer.h" + +-#include + + struct priv + { +@@ -36,6 +35,8 @@ + + float buflen; + }; ++ ++#include + + static const int fmtmap[][2] = { + {AF_FORMAT_U8, AUDIO_U8}, +