Proper way to clean up dependencies?

Ryan Schmidt ryandesign at
Fri May 21 13:13:07 PDT 2010

On May 21, 2010, at 13:27, Michael_google gmail_Gersten wrote:

> I'd like to know what the proper, intended way to clean up dependencies is.
> Specifically, I started to install the new subversion. When I realized
> that it had other dependencies, I hit ctrl-C, checked them out, saw
> some important ones, and tried to reinstall as +universal. (I don't
> need svn as universal, but I  do need it's dependencies.)
> This failed; the first dependency had been fetched, and started
> configuration as non-universal. Having seen this before, I ran port
> clean.
> Running port clean on the main port does not clean the dependencies.
> That was a surprise.

Correct, cleaning a port cleans only that port, not any other ports.

> I would like to know the proper, intended way to clean a port
> completely -- including all dependencies -- to reinstall port X when
> it failed somewhere in one of the subports.

I guess you have to read the error message, figure out which port actually failed, and clean that port.

> Details follow:
> stbmac:~ Michael$ sudo port install subversion
> --->  Computing dependencies for subversion
> --->  Fetching apr
> --->  Attempting to fetch apr-1.4.2.tar.bz2 from
> --->  Verifying checksum(s) for apr
> --->  Extracting apr
> --->  Applying patches to apr
> --->  Configuring apr
> ^C
> stbmac:~ Michael$ port info subversion
> subversion @1.6.11 (devel)
> Variants:             bash_completion, darwin_7, disable_keychain,
>                      mac_os_x_server_mod_dav_svn, mod_dav_svn, no_bdb, no_neon,
>                      puredarwin, tools, unicode_path, universal
> Description:          Subversion (svn) is a version control system designed to
>                      be as similar to cvs(1) as possible, while fixing many
>                      outstanding problems with cvs(1).
> Homepage:   
> Library Dependencies: expat, neon, apr, apr-util, db46, sqlite3, gettext,
>                      libiconv, serf, cyrus-sasl2
> Platforms:            darwin
> License:              unknown
> Maintainers:          dluke at
> stbmac:~ Michael$ sudo port install subversion +universall
> ^C
> stbmac:~ Michael$ sudo port install subversion +universal
> --->  Computing dependencies for subversion
> Error: Requested variants "+universal" do not match original selection "".
> Please use the same variants again, perform 'port clean apr' or

Right, you have to "sudo port clean apr".

More information about the macports-users mailing list