Opened 11 years ago
Last modified 11 years ago
#39423 new defect
Uninstalling replaced port with dependents has to be forced
Reported by: | graziosi.angelo@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.1.3 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt), jmroot (Joshua Root), mkae (Marko Käning), cooljeanius (Eric Gallager), p3k (Tobi Schäfer), jqm12@… | |
Port: |
Description
Today:
$ sudo port selfupdate $ sudo port outdated The following installed ports are outdated: graphite2 1.2.2_0 < 1.2.3_0 gzip 1.5_0 < 1.6_0 $ sudo port upgrade outdated [...] ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> No broken files found. $ sudo port installed inactive The following ports are currently installed: glib2 @2.36.2_1 graphite2 @1.2.2_0 gzip @1.5_0 librsvg @2.36.4_1 py27-distribute @0.6.45_0 root @5.34.07_0+avahi+fftw3+fitsio+graphviz+gsl+ldap+minuit2+mysql55+odbc+opengl+postgresql92+pythia+python32+qt_mac+roofit+ruby+soversion+ssl+tmva+xml+xrootd $ sudo port uninstall inactive ---> Uninstalling librsvg @2.36.4_1 ---> Cleaning librsvg ---> Uninstalling glib2 @2.36.2_1 ---> Cleaning glib2 ---> Uninstalling graphite2 @1.2.2_0 ---> Cleaning graphite2 ---> Uninstalling gzip @1.5_0 ---> Cleaning gzip ---> Unable to uninstall py27-distribute @0.6.45_0, the following ports depend on it: ---> py27-nose @1.2.1_1 Error: org.macports.uninstall for port py27-distribute returned: Please uninstall the ports that depend on py27-distribute first. Please see the log file for port py27-distribute for details: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_py27-distribute_0.6.45_0/py27-distribute/main.log Warning: Failed to execute portfile from registry for py27-distribute @0.6.45_0 ---> Unable to uninstall py27-distribute @0.6.45_0, the following ports depend on it: ---> py27-nose @1.2.1_1 Error: port uninstall failed: Please uninstall the ports that depend on py27-distribute first.
Just out of curiosity, I tried:
$ sudo port uninstall py27-nose Password: ---> Unable to uninstall py27-nose @1.2.1_1, the following ports depend on it: ---> py27-numpy @1.7.1_0 Error: org.macports.uninstall for port py27-nose returned: Please uninstall the ports that depend on py27-nose first. Please see the log file for port py27-nose for details: /opt/local/var/macports/logs/_opt_local_var_macports_registry_portfiles_py27-nose_1.2.1_1/py27-nose/main.log Warning: Failed to execute portfile from registry for py27-nose @1.2.1_1 ---> Unable to uninstall py27-nose @1.2.1_1, the following ports depend on it: ---> py27-numpy @1.7.1_0 Error: port uninstall failed: Please uninstall the ports that depend on py27-nose first.
So, how we fix all that?
TIA,
Angelo.
Change History (10)
comment:1 Changed 11 years ago by graziosi.angelo@…
comment:2 Changed 11 years ago by frozencemetery (Robbie Harwood)
I just had this issue with py27-hgsvn, and resolved it in the same manner Angelo did. It would be really nice if instead of just dumping the errors
Error: py27-distribute is obsolete, please install py27-setuptools instead
and then
Error: org.macports.uninstall for port py27-distribute returned: Please uninstall the ports that depend on py27-distribute first.
MacPorts could explain that the actual solution is to reinstall the relevant ports, or better yet, handle the issue itself.
comment:3 Changed 11 years ago by larryv (Lawrence Velázquez)
Cc: | jmr@… added |
---|---|
Keywords: | inactive distribute nose removed |
Port: | py-distribute added; py27-distribute removed |
Summary: | Problems uninstalling inactive port (py27-distribute @0.6.45_0) → py27-distribute @0.6.45_0: Problems uninstalling inactive py-distribute |
comment:4 Changed 11 years ago by jmroot (Joshua Root)
Component: | ports → base |
---|---|
Port: | py-distribute removed |
Summary: | py27-distribute @0.6.45_0: Problems uninstalling inactive py-distribute → Uninstalling replaced port with dependents has to be forced |
comment:10 Changed 11 years ago by jqm12@…
Replying to jqm12@…:
Cc Me!
I checked info of py27-nose and did not show any library dependency to py27-distribute. So, I decided to forced uninstall of py27-distribute and py26-distribute, then uninstall inactive. Hope did not broke the dependency tree.
Note: See
TracTickets for help on using
tickets.
It seems that there was a problem when I sent this ticket.. Anyway I have fixed forcing the uninstall of py27-nose, reinstalling it, and finally uninstalling the inactive ports..
Ciao,