|
Default makepkg.conf has OPTIONS=(debug strip), which produced a
sunsetr-debug split package alongside sunsetr. The split was inert,
the Rust release build emits no DWARF, and gdb-add-index would log
that there were no symbols to index. No user ever installed it
because the common AUR helpers install only the main package by
default.
Set options=('!debug') so makepkg stops creating the empty split
artifact. The main package is unaffected, the binary is still
stripped by makepkg's default strip option, and the AUR clone
produces one file instead of two.
Add replaces=('sunsetr-git-debug') for the variant-switch case. A
user upgrading from sunsetr-git, which historically produced a real
debug split with content, may have sunsetr-git-debug installed.
Switching to sunsetr through pacman's normal install path leaves
that orphan in place because sunsetr's conflicts only target the
main sunsetr-git package, not its debug sibling. The replaces line
hands pacman permission to drop the orphan as part of the upgrade
transaction.
|