[packages/whisper.cpp] - added x32 fix

qboosh qboosh at pld-linux.org
Mon Nov 23 07:01:09 CET 2026


commit 025208fc28da42f4bc0642da914ad7ef7e3cb1a7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Nov 23 07:01:09 2026 +0100

    - added x32 fix

 whisper.cpp-x32.patch | 20 ++++++++++++++++++++
 whisper.cpp.spec      |  2 ++
 2 files changed, 22 insertions(+)
---
diff --git a/whisper.cpp.spec b/whisper.cpp.spec
index 2f47c40..fbcc823 100644
--- a/whisper.cpp.spec
+++ b/whisper.cpp.spec
@@ -24,6 +24,7 @@ Group:		Libraries
 Source0:	https://github.com/ggml-org/whisper.cpp/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	53777520515dabd1076dd30bd13707b1
 Patch0:		%{name}-llama.patch
+Patch1:		%{name}-x32.patch
 URL:		https://github.com/ggml-org/whisper.cpp
 %{?with_sdl:BuildRequires:	SDL2-devel >= 2.0}
 %{?with_vulkan:BuildRequires:	Vulkan-Loader-devel}
@@ -80,6 +81,7 @@ Pliki nagłówkowe biblioteki whisper.cpp.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 # TODO:
diff --git a/whisper.cpp-x32.patch b/whisper.cpp-x32.patch
new file mode 100644
index 0000000..9ab0a01
--- /dev/null
+++ b/whisper.cpp-x32.patch
@@ -0,0 +1,20 @@
+--- whisper.cpp-1.9.5-build/examples/miniaudio.h.orig	2026-11-13 10:09:55.000000000 +0100
++++ whisper.cpp-1.9.5-build/examples/miniaudio.h	2026-11-22 21:37:32.429876568 +0100
+@@ -86280,7 +86280,7 @@ static MA_INLINE ma_uint32 ma_dr_flac__c
+     #endif
+ #else
+     #if defined(__GNUC__) || defined(__clang__)
+-        #if defined(MA_X64)
++        #if (defined(MA_X64) && defined(MA_64BIT))
+             {
+                 ma_uint64 r;
+                 __asm__ __volatile__ (
+@@ -86288,7 +86288,7 @@ static MA_INLINE ma_uint32 ma_dr_flac__c
+                 );
+                 return (ma_uint32)r;
+             }
+-        #elif defined(MA_X86)
++        #elif (defined(MA_X86) || (defined(MA_X64) && defined(MA_32BIT)))
+             {
+                 ma_uint32 r;
+                 __asm__ __volatile__ (
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/whisper.cpp.git/commitdiff/025208fc28da42f4bc0642da914ad7ef7e3cb1a7



More information about the pld-cvs-commit mailing list