sudo port install gdb problem

Ryan Schmidt ryandesign at
Sun Dec 1 16:49:11 PST 2013

On Dec 1, 2013, at 18:45, Brandon Allbery wrote:
> On Sun, Dec 1, 2013 at 7:44 PM, Ryan Schmidt wrote:
>> On Dec 1, 2013, at 18:38, Brandon Allbery wrote:
>> > On Sun, Dec 1, 2013 at 7:37 PM, Ryan Schmidt wrote:
>> >> Since +gcc47 is already in the installed variants, you may actually have to explicitly disable it:
>> >>
>> >>     sudo port upgrade --enforce-variants arpack +accelerate +openmpi -gcc47
>> >>
>> > Doesn't --enforce-variants mean "exactly these variants, no others”?
>> I think it means “add these variants to the ones I already selected”.
> I thought that was the default behavior.

The only thing that --enforce-variants changes is that MacPorts will rebuild a port that is not considered outdated. From port(1):

     Note that in selecting the variants to use in the upgraded build of the
     port, any variants specified on the command line take highest precedence,
     then the variants active in the latest installed version of the port, and
     finally the global variants specified in variants.conf, if any.  Note that
     upgrade will not normally rebuild a port only to change the selected vari-
     ants; you can either specify --enforce-variants, or deactivate the port
     and reinstall it with different variants.

More information about the macports-users mailing list