CyberShadow / aconfmgr

A configuration manager for Arch Linux
1.19k stars 41 forks source link

Duplicate "provides" packages are not uninstalled #144

Open MenacingPerson opened 2 years ago

MenacingPerson commented 2 years ago

General description of the problem:

So for example say you have xdg-desktop-portal{,-kde} installed and in config. If you also install xdg-desktop-portal-wlr (and mark it as dependency), it will not get uninstalled on the next aconfmgr apply.

Steps to reproduce the problem:

  1. Use the provided config and apply it
  2. Install xdg-desktop-portal-wlr (or any other flavour)
  3. Run aconfmgr apply.

Configuration:

AddPackage xdg-desktop-portal
AddPackage xdg-desktop-portal-kde

Expected result:

It should remove xdg-desktop-portal-wlr because that is not in the config.

Actual result:

It does not remove it, instead merely unpinning it if it was marked as explicit.

Log:

None

Additional context:

So basically, xdg-desktop-portal-{gnome,gtk,kde,wlr} are backends for xdg-desktop-portal. They can be installed side-by-side, and they all are indirect dependencies of xdg-desktop-portal since they all provide xdg-desktop-portal-impl. However, they do not conflict. So aconfmgr ignores all of them.

hvitoi commented 1 year ago

I faced this same issue with jdk{8,11,17}-openjdk