Accepting request 702711 from multimedia:libs

- Added dav1d.armv6.patch (disables armv7 asm for armv6 builds)

OBS-URL: https://build.opensuse.org/request/show/702711
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dav1d?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2019-05-16 19:58:43 +00:00 committed by Git OBS Bridge
commit 00c3c74c5a
3 changed files with 26 additions and 1 deletions

18
dav1d.armv6.patch Normal file
View File

@ -0,0 +1,18 @@
--- a/tests/checkasm/checkasm.h
+++ b/tests/checkasm/checkasm.h
@@ -145,6 +145,7 @@ static inline uint64_t readtime(void) {
#define readtime readtime
#endif
#elif ARCH_ARM && !defined(_MSC_VER)
+#if __ARM_ARCH > 6
static inline uint64_t readtime(void) {
uint32_t cycle_counter;
/* This requires enabling user mode access to the cycle counter (which
@@ -156,6 +157,7 @@ static inline uint64_t readtime(void) {
}
#define readtime readtime
#endif
+#endif
/* Verifies that clobbered callee-saved registers
* are properly saved and restored */

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 13 19:48:51 UTC 2019 - olaf@aepfle.de
- Added dav1d.armv6.patch (disables armv7 asm for armv6 builds)
-------------------------------------------------------------------
Sat May 11 16:06:40 UTC 2019 - Luigi Baldoni <aloisio@gmx.com>

View File

@ -26,6 +26,8 @@ Group: Productivity/Multimedia/Video/Editors and Convertors
URL: https://code.videolan.org/videolan/dav1d
Source0: https://code.videolan.org/videolan/dav1d/-/archive/%{version}/dav1d-%{version}.tar.gz
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM dav1d.armv6.patch olaf@aepfle.de -- disable armv7 asm for armv6 builds
Patch0: dav1d.armv6.patch
BuildRequires: meson >= 0.47.0
BuildRequires: nasm
BuildRequires: pkgconfig
@ -60,7 +62,7 @@ Group: System/Libraries
%{name} is an AV1 decoder library.
%prep
%setup -q
%autosetup -p1
%build
%meson