>> % sudo port install py25-matplotlib +gtk ... >> I asked for the gtk variant. Why was the tkinter variant installed? Chris> py25-matplotlib does not provide a variant gtk (it provides a Chris> variant gtk2) and +tkinter is the default if no other variant is Chris> specified. Yet, amazingly, it didn't complain. Thanks, Skip
On Mar 6, 2008, at 9:12 PM, skip@pobox.com wrote:
% sudo port install py25-matplotlib +gtk ... I asked for the gtk variant. Why was the tkinter variant installed?
Chris> py25-matplotlib does not provide a variant gtk (it provides a Chris> variant gtk2) and +tkinter is the default if no other variant is Chris> specified.
Yet, amazingly, it didn't complain.
That's by design, one reason why is so that you can set variants that you always want selected (say +no_x11 or +ipv6) in your macports.conf file and it won't cause install failures for ports that don't have that variant defined. -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
Daniel> That's by design, one reason why is so that you can set variants Daniel> that you always want selected (say +no_x11 or +ipv6) in your Daniel> macports.conf file and it won't cause install failures for ports Daniel> that don't have that variant defined. Hmmm... That leads to a follow-on question. Can this macports.conf file be used to globally get all C/C++ code to be compiled with -g? If not, is there some way to do it once (not editing every portfile)? Thx, Skip
On 06 Mar, 2008, at 21:12, skip@pobox.com wrote:
% sudo port install py25-matplotlib +gtk ... I asked for the gtk variant. Why was the tkinter variant installed?
Chris> py25-matplotlib does not provide a variant gtk (it provides a Chris> variant gtk2) and +tkinter is the default if no other variant is Chris> specified.
Yet, amazingly, it didn't complain.
It doesn't complain because MacPorts allows variants to cascade to dependencies--for example, if you had nothing installed and specified "py25-matplotlib +gtk2 +quartz", then despite the lack of a "quartz" variant for py25-matplotlib, all other ports (e.g. gtk2) would be installed with it.
participants (3)
-
Chris Pickel
-
Daniel J. Luke
-
skip@pobox.com