Ticket #20649 (closed defect: duplicate)
Cannot uninstall port that was deleted from MacPorts due to phantom dependency
|Reported by:||gale@…||Owned by:||macports-tickets@…|
When a port with dependents is deleted from MacPorts, the system often ends up in the following kind of inconsistent state:
$ port list xorg-liblbxutil $
So it's not in MacPorts now.
$ port echo installed | grep xorg-liblb xorg-liblbxutil @1.0.1_1
But it's still installed. Let's uninstall it:
$ sudo port uninstall xorg-liblbxutil ---> Unable to uninstall xorg-liblbxutil 1.0.1_1, the following ports depend on it: ---> xorg-libs Error: port uninstall failed: Please uninstall the ports that depend on xorg-liblbxutil first.
We can't uninstall it, because of a dependency. But wait - xorg-libs depends on a port that is not in MacPorts?
$ port deps xorg-lib | grep xorg-liblbxutil $
Or does it? MacPorts seems very confused.