[MacPorts] #19350: gtk2 variant dependecy

MacPorts noreply at macports.org
Fri Apr 17 13:13:12 PDT 2009


#19350: gtk2 variant dependecy
-----------------------------------+----------------------------------------
 Reporter:  frankalahan@…          |       Owner:  nox@…           
     Type:  defect                 |      Status:  new             
 Priority:  Normal                 |   Milestone:  Port Bugs       
Component:  ports                  |     Version:  1.7.1           
 Keywords:  no_x11 quartz          |        Port:  gtk2            
-----------------------------------+----------------------------------------
Changes (by devans@…):

  * keywords:  => no_x11 quartz


Comment:

 This is really an issue/misunderstanding about the port command itself
 rather than gtk2

 First, if you want to build gtk2 with quartz rendering then you need to
 use
 {{{
 port install gtk2 +no_x11 +quartz
 }}}

 as +no_x11 just says no X11 rendering and doesn't imply what you're going
 to use instead, +quartz says use quartz.

 Second, if you want to build gtk+ ports/applications using quartz
 rendering then you have to ensure that the port
 in question AND all of its dependencies are built with +no_x11 +quartz
 too.  Additionally, because +x11 and +quartz
 versions of ports may have common dependents, you cannot successfully mix
 ports built with +quartz and ports built
 with +x11 (the defacto default for most ports) in the same instance of
 MacPorts.

 You have to decide before installing any ports whether you are going use
 X11 rendering or quartz rendering in the
 instance of MacPorts that you are installing.  If you need both types of
 apps then you must install separate instances
 of MacPorts for each with different prefixes such as /opt/local for X11
 and /opt/quartz for quartz rendering.

 Installing multiple instances of MacPorts is described in the
 [http://guide.macports.org MacPorts Guide].

 Assuming you are installing a new +quartz instance from scratch, the
 easiest way to make sure that all ports
 are built +no_x11 +quartz is to add
 {{{
 +no_x11 +quartz
 }}}
 to the configuration file ${prefix}/etc/macports/variants.conf  where
 ${prefix} is the installation prefix for
 your MacPorts quartz instance.

 Then you can install gtk2 by using
 {{{
 sudo port install gtk2
 }}}
 and gtk2 and all its dependents will be built with +no_x11 +quartz and you
 should be in business.

 If you have already mixed +x11 and +quartz ports in the same instance,
 then you are in trouble and the only
 clean and certain way to recover is to remove all installed ports and
 start over as described above.
 {{{
 sudo port -f uninstall installed
 }}}

 I hope this helps.

-- 
Ticket URL: <http://trac.macports.org/ticket/19350#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list