Opened 13 years ago

Closed 13 years ago

#33480 closed enhancement (wontfix)

Unable to uninstall a package witch have several dependence.

Reported by: mparchet@… Owned by: macports-tickets@…
Priority: Low Milestone:
Component: base Version:
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hello,

When I would like to uninstall any package witch has several dependance sutch as speex, macport show me an error message such as :

For example with speex.

sudo port uninstall speex
Password:
Warning: xcodebuild exists but failed to execute
--->  Unable to uninstall speex @1.2rc1_0, the following ports depend on it:
--->  	ffmpeg @0.7.8_0
Error: Target org.macports.uninstall returned: Please uninstall the ports that depend on speex first.

In my opinion, macport should compute all dependance and show a message sutch as :

Below, here is the package dependance.

Packages list

If you want verily to uninstall this package, all the dependence will also be uninstalled.

Do you want to continue ?

Note : The dependance is been installed if you install a package bat you can't uninstall it or it's very difficult.

This issus also occured on macport 2.0.3.

Can you fix this issues quickly ?

Best regards

mparchet

Change History (6)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsbase
Keywords: uninstall package removed
Priority: HighLow
Type: defectenhancement
Version: 2.0.4

This sounds like a change we are unlikely to make.

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

I believe you can already do what you want by running:

sudo port uninstall rdependentof:speex speex

If you want to see the list of ports that will be uninstalled by this command before running it, you can run:

port installed rdependentof:speex speex

comment:4 Changed 13 years ago by drkp (Dan Ports)

Or port uninstall --follow-dependents speex

comment:5 Changed 13 years ago by mparchet@…

Tank you very much it seems work.

Best regards

Battant

comment:6 Changed 13 years ago by neverpanic (Clemens Lang)

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.