[packages/AviSynthPlus] - added x32 patch (disable JIT asm on x32)

qboosh qboosh at pld-linux.org
Mon May 27 21:24:27 CEST 2024


commit 91b79d4106f621e898855b20ef05797c881c3948
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon May 27 21:14:29 2024 +0200

    - added x32 patch (disable JIT asm on x32)

 AviSynthPlus-x32.patch | 16 ++++++++++++++++
 AviSynthPlus.spec      |  2 ++
 2 files changed, 18 insertions(+)
---
diff --git a/AviSynthPlus.spec b/AviSynthPlus.spec
index b4cf8fd..f22488e 100644
--- a/AviSynthPlus.spec
+++ b/AviSynthPlus.spec
@@ -12,6 +12,7 @@ Group:		Libraries
 #Source0Download: https://github.com/AviSynth/AviSynthPlus/releases
 Source0:	https://github.com/AviSynth/AviSynthPlus/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	e18f562c225aa04792f318a2d3039418
+Patch0:		%{name}-x32.patch
 URL:		https://github.com/AviSynth/AviSynthPlus
 BuildRequires:	DevIL-devel
 BuildRequires:	cmake >= 3.6.2
@@ -57,6 +58,7 @@ Dokumentacja API biblioteki AviSynthPlus.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 install -d build
diff --git a/AviSynthPlus-x32.patch b/AviSynthPlus-x32.patch
new file mode 100644
index 0000000..74f5422
--- /dev/null
+++ b/AviSynthPlus-x32.patch
@@ -0,0 +1,16 @@
+--- AviSynthPlus-3.7.3/avs_core/filters/exprfilter/exprfilter.cpp.orig	2023-07-16 02:44:05.000000000 +0200
++++ AviSynthPlus-3.7.3/avs_core/filters/exprfilter/exprfilter.cpp	2024-05-27 21:09:26.648184152 +0200
+@@ -102,11 +102,11 @@
+ #include "../../convert/convert_helper.h"
+ #include "avs/alignment.h"
+ 
+-#if (defined(_WIN64) && (defined(_M_AMD64) || defined(_M_X64))) || defined(__x86_64__)
++#if (defined(_WIN64) && (defined(_M_AMD64) || defined(_M_X64))) || (defined(__x86_64__) && defined(__LP64__))
+ #define JITASM64
+ #endif
+ 
+-#ifdef INTEL_INTRINSICS
++#if defined(INTEL_INTRINSICS) && !(defined(__x86_64__) && defined(__ILP32__))
+ #define VS_TARGET_CPU_X86
+ #endif
+ #ifdef AVS_WINDOWS
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/AviSynthPlus.git/commitdiff/91b79d4106f621e898855b20ef05797c881c3948



More information about the pld-cvs-commit mailing list