reinstall a port withut variants

Frank Schima macsforever2000 at macports.org
Tue Feb 1 11:40:02 PST 2011


On Feb 1, 2011, at 12:30 PM, Chris Jones wrote:

> I'm trying to reinstall a port without any variants, but it seems to keep remembering them and adding them back regardless .... i.e.
> 
> Chris-Jones-Macbook-Pro ~ > sudo port uninstall root at 5.28.00_0+builtin_ftgl+opengl+roofit+ssl+xml
> --->  Deactivating root @5.28.00_0+builtin_ftgl+opengl+roofit+ssl+xml
> --->  Cleaning root
> --->  Uninstalling root @5.28.00_0+builtin_ftgl+opengl+roofit+ssl+xml
> --->  Cleaning root
> Chris-Jones-Macbook-Pro ~ > sudo port clean --all root at 5.28.00_0+builtin_ftgl+opengl+roofit+ssl+xml
> --->  Cleaning root
> Chris-Jones-Macbook-Pro ~ > sudo port clean --all root
> --->  Cleaning root
> Chris-Jones-Macbook-Pro ~ > sudo port install root
> --->  Computing dependencies for root
> --->  Fetching root
> --->  Attempting to fetch root_v5.28.00.source.tar.gz from ftp://root.cern.ch/root/
> --->  Verifying checksum(s) for root
> --->  Extracting root
> --->  Configuring root
> --->  Building root
> --->  Staging root into destroot
> --->  Installing root @5.28.00_0+builtin_ftgl+opengl+roofit+ssl+xml
> --->  Activating root @5.28.00_0+builtin_ftgl+opengl+roofit+ssl+xml
> --->  Cleaning root
> 
> whats the correct way to get port to forget any knowledge it has of my previous variants for this port and install it without them ? ...

You did it correctly. When you specify no variants for an "install", only the default variants come with it. It is only the "upgrade" command that carries the previous variants along. For the root port +builtin_ftgl+opengl+roofit+ssl+xml are default variants. To see this, do a "port info root" and the variants with "[+]" next to them are default. If you really don't want the default variants, you would change all the "+" to "-". If you are referring to ticket #27962 [1], then I attempted to install root with the default variants. So "root @5.28.00_0+builtin_ftgl+opengl+roofit+ssl+xml". 


Cheers!
Frank

[1] <https://trac.macports.org/ticket/27962>


More information about the macports-users mailing list