Many AUR packages now defaults to install a -debug counterpart of their package.
However when such a package is replaced by another conflicting one, the -debug package gets in the way as yay isn't removing it to install the new -debug one.
Reproduction Steps
yay -S [package conflicting with one on the computer and with a -debug one]
See the following issue
Expected behavior
It should also remove to replace the -debug counterpart.
Output
==> Finished making: foo 0.6.0-1 (Wed 11 Sep 2024 13:45:13 CEST)
==> Cleaning up...
loading packages...
resolving dependencies...
looking for conflicting packages...
:: foo-0.6.0-1 and foo-bar-0.6.0-5 are in conflict. Remove foo-bar? [y/N] Y
Packages (3) foo-bar-0.6.0-5 [removal] foo-0.6.0-1 foo-debug-0.6.0-1
Total Installed Size: 20.93 MiB
Net Upgrade Size: 3.81 MiB
:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring [##############################################] 100%
(2/2) checking package integrity [##############################################] 100%
(2/2) loading package files [##############################################] 100%
(2/2) checking for file conflicts [##############################################] 100%
error: failed to commit transaction (conflicting files)
foo-debug: /usr/lib/debug/usr/bin/foo.debug exists in filesystem (owned by foo-bar-debug)
Errors occurred, no packages were upgraded.
-> error installing: [/home/$USER/.cache/yay/foo/foo-0.6.0-1-x86_64.pkg.tar.zst /home/$USER/.cache/yay/foo/foo-debug-0.6.0-1-x86_64.pkg.tar.zst] - exit status 1
Affected Version
Describe the bug
Many AUR packages now defaults to install a
-debug
counterpart of their package. However when such a package is replaced by another conflicting one, the-debug
package gets in the way asyay
isn't removing it to install the new-debug
one.Reproduction Steps
yay -S [package conflicting with one on the computer and with a -debug one]
Expected behavior
It should also remove to replace the
-debug
counterpart.Output