Clean up sunshine-bin-debug too when falling back to source build

When sunshine-bin trips the ldd check and we switch to the source build,
the prior install left sunshine-bin-debug behind. The source package
includes its own sunshine-debug which collides on
/usr/lib/debug/usr/bin/sunshine.debug, so pacman refuses the install.

Remove both sunshine-bin and sunshine-bin-debug before yay -S sunshine.
uninstall.sh similarly drops all four variants.
This commit is contained in:
2026-05-18 11:07:59 -06:00
parent 2f242ffb61
commit e18187362c
2 changed files with 10 additions and 2 deletions

View File

@@ -42,7 +42,8 @@ if loginctl show-user "$USER" -p Linger --value 2>/dev/null | grep -qx yes; then
fi
step "Removing packages"
for pkg in sunshine sunshine-bin; do
# Remove -debug siblings first so they don't collide with re-installation later.
for pkg in sunshine-debug sunshine-bin-debug sunshine sunshine-bin; do
if pacman -Qi "$pkg" >/dev/null 2>&1; then
as_root pacman -Rns --noconfirm "$pkg"
fi