From f31bad7e31f6728af66a8f85cddc6634409acfdf Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 20 May 2018 11:25:59 +0200 Subject: extra/mplayer: patch for sigcontext still needed, why does it fail!?! --- extra/mplayer/PKGBUILD | 9 +++++++++ extra/mplayer/mplayer-38101-sigcontext.patch | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 extra/mplayer/PKGBUILD create mode 100644 extra/mplayer/mplayer-38101-sigcontext.patch (limited to 'extra') diff --git a/extra/mplayer/PKGBUILD b/extra/mplayer/PKGBUILD new file mode 100644 index 00000000..eea2ca1a --- /dev/null +++ b/extra/mplayer/PKGBUILD @@ -0,0 +1,9 @@ +source+=(mplayer-38101-sigcontext.patch) +sha512sums+=('2f93d29f1d817a64104cad7153988583443932e6bb6d147747a1af5c7a76d24da0f3305466d43e803012dd31d89cb17e8c7cb7b19d2896165fa74cc06da346e0') + +eval "$( + declare -f prepare | \ + sed ' + /patch/a patch -Np1 -i ../mplayer-38101-sigcontext.patch + ' +)" diff --git a/extra/mplayer/mplayer-38101-sigcontext.patch b/extra/mplayer/mplayer-38101-sigcontext.patch new file mode 100644 index 00000000..31e2d4c8 --- /dev/null +++ b/extra/mplayer/mplayer-38101-sigcontext.patch @@ -0,0 +1,11 @@ +diff -rauN mplayer-38101/cpudetect.c mplayer-38101-sigcontext-patch/cpudetect.c +--- mplayer-38101/cpudetect.c 2018-05-17 11:15:24.975263641 +0200 ++++ mplayer-38101-sigcontext-patch/cpudetect.c 2018-05-17 12:04:52.811930307 +0200 +@@ -38,6 +38,7 @@ + #include + #include + #elif defined(__linux__) ++#define __USE_MISC // for struct struct sigcontext + #include + #elif defined(__MINGW32__) || defined(__CYGWIN__) + #include -- cgit v1.2.3-70-g09d2