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:
@@ -35,7 +35,14 @@ install_sunshine() {
|
||||
warn "sunshine-bin has unresolved shared library deps (rolling-Arch library drift)."
|
||||
warn "Falling back to the source build (AUR 'sunshine'). This takes ~5-10 minutes."
|
||||
ldd "$(command -v sunshine)" 2>/dev/null | grep 'not found' | sed 's/^/ /' >&2 || true
|
||||
as_root pacman -Rns --noconfirm sunshine-bin
|
||||
# Remove both sunshine-bin AND its sibling sunshine-bin-debug, otherwise
|
||||
# the source build's sunshine-debug package collides on
|
||||
# /usr/lib/debug/usr/bin/sunshine.debug.
|
||||
for stale in sunshine-bin-debug sunshine-bin; do
|
||||
if pacman -Qi "$stale" >/dev/null 2>&1; then
|
||||
as_root pacman -Rns --noconfirm "$stale"
|
||||
fi
|
||||
done
|
||||
SUNSHINE_PKG="sunshine"
|
||||
yay_install sunshine
|
||||
if ! sunshine_runtime_deps_ok; then
|
||||
|
||||
Reference in New Issue
Block a user