From d5353480b05503dd5b446bf2d8384aaad466b375 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 19 Mar 2021 09:29:41 +0100 Subject: extra/dav1d: patched no-SSE2, no-SSE on i686 and i486 --- extra/dav1d/PKGBUILD | 21 +++++++++++++++++++++ extra/dav1d/dav1d-0.8.2-sse2-asm.patch | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 extra/dav1d/dav1d-0.8.2-sse2-asm.patch (limited to 'extra/dav1d') diff --git a/extra/dav1d/PKGBUILD b/extra/dav1d/PKGBUILD index 3ae2f1fd..2ea6149f 100644 --- a/extra/dav1d/PKGBUILD +++ b/extra/dav1d/PKGBUILD @@ -1,3 +1,24 @@ +# disable SSE2 on i686 and i486 +source_i486=('dav1d-0.8.2-sse2-asm.patch') +sha512sums_i486=('65d133b750888ce854fdad2f068430ae1920db135eaf9b8ec4d372ecb074e3eef6833f50f17e758cc8f69f4845b873fb96d744c03f75a34af0dd0ad8dbd413e3') +source_i686=('dav1d-0.8.2-sse2-asm.patch') +sha512sums_i686=('65d133b750888ce854fdad2f068430ae1920db135eaf9b8ec4d372ecb074e3eef6833f50f17e758cc8f69f4845b873fb96d744c03f75a34af0dd0ad8dbd413e3') +if [ "$CARCH" == 'i686' ] || [ "$CARCH" == 'i486' ]; then + eval "$( + { + declare -f prepare || \ + printf 'prepare() {\n}\n' + } \ + | sed ' + $i patch -p1 -i "$srcdir/dav1d-0.8.2-sse2-asm.patch" + ' + declare -f build | \ + sed ' + s|arch-meson|arch-meson -Denable_asm=false -Denable_avx512=false |g + ' + )" +fi + # graphviz needs tons of libraries we don't have yet on i486 if [ "${CARCH}" = "i486" ]; then makedepends=(${makedepends[@]//graphviz/}) diff --git a/extra/dav1d/dav1d-0.8.2-sse2-asm.patch b/extra/dav1d/dav1d-0.8.2-sse2-asm.patch new file mode 100644 index 00000000..6c4bdbaf --- /dev/null +++ b/extra/dav1d/dav1d-0.8.2-sse2-asm.patch @@ -0,0 +1,22 @@ +diff -rauN dav1d-0.8.2/meson.build dav1d-0.8.2-sse2-asm-patch/meson.build +--- dav1d-0.8.2/meson.build 2021-02-21 23:53:26.261634600 +0100 ++++ dav1d-0.8.2-sse2-asm-patch/meson.build 2021-03-19 09:12:45.991939117 +0100 +@@ -250,12 +250,12 @@ + '-Werror=missing-prototypes', + '-Wshorten-64-to-32', + ] +- if host_machine.cpu_family() == 'x86' +- optional_arguments += [ +- '-msse2', +- '-mfpmath=sse', +- ] +- endif ++# if host_machine.cpu_family() == 'x86' ++# optional_arguments += [ ++# '-msse2', ++# '-mfpmath=sse', ++# ] ++# endif + else + optional_arguments += [ + '-wd4028', # parameter different from declaration -- cgit v1.2.3-70-g09d2