From 8a923151cc470b0a8062fc32ae826e50827651fc Mon Sep 17 00:00:00 2001 From: Asseel Naji <60823794+Asseel-Naji@users.noreply.github.com> Date: Fri, 24 Jul 2026 09:49:29 +0300 Subject: [PATCH] fix(aur): depend on virtual python-pywhispercpp instead of -cpu (#579) The PKGBUILD hard-depends on python-pywhispercpp-cpu by name while optdepends tells GPU users to "replace" it with the -cuda variant. That swap is impossible in a normal pacman transaction: the -cuda package conflicts with -cpu but only provides the virtual python-pywhispercpp name, so removing -cpu breaks vocalinux's dependency and pacman aborts. The only workaround is pacman -Rdd, which leaves a broken dependency record that re-breaks on every vocalinux upgrade. All three AUR backend packages (-cpu, -cuda, -rocm) declare provides=('python-pywhispercpp'), so depending on the virtual name lets any variant satisfy the dependency. AUR helpers prompt for a provider on fresh installs, the standard Arch pattern for swappable backends. Claude-Session: https://claude.ai/code/session_01XAF9BkcSzwcMjTzkBxdx6k Co-authored-by: Claude Fable 5 --- packaging/aur/vocalinux/PKGBUILD | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packaging/aur/vocalinux/PKGBUILD b/packaging/aur/vocalinux/PKGBUILD index 31378af..bb108c1 100644 --- a/packaging/aur/vocalinux/PKGBUILD +++ b/packaging/aur/vocalinux/PKGBUILD @@ -19,7 +19,7 @@ depends=( 'gobject-introspection' 'python-cairo' 'python-pynput' - 'python-pywhispercpp-cpu' + 'python-pywhispercpp' 'python-pyaudio' 'portaudio' 'python-numpy' @@ -42,7 +42,9 @@ makedepends=( 'python-setuptools' ) optdepends=( - 'python-pywhispercpp-cuda: NVIDIA GPU (replace python-pywhispercpp-cpu)' + 'python-pywhispercpp-cpu: CPU-only whisper.cpp backend (default provider)' + 'python-pywhispercpp-cuda: NVIDIA GPU whisper.cpp backend' + 'python-pywhispercpp-rocm: AMD GPU whisper.cpp backend' 'python-onnxruntime: Silero VAD' 'xdotool: X11 injection fallback' )