[MacPorts] #21072: Cannot force a change to +universal

MacPorts noreply at macports.org
Thu Sep 3 19:48:08 PDT 2009


#21072: Cannot force a change to +universal
----------------------------------------------+-----------------------------
 Reporter:  michael-macports@…                |       Owner:  macports-tickets@…                   
     Type:  defect                            |      Status:  new                                  
 Priority:  Normal                            |   Milestone:                                       
Component:  ports                             |     Version:  1.8.0                                
 Keywords:  --enforce-variants                |        Port:                                       
----------------------------------------------+-----------------------------
 There is an option: "--enforce-variants".

 It only applies to upgrade. Not to install.

 It is useless. Watch:
 (NB: Sorry for double spacing. Neither <pre> nor <code> stop "line join".)

 Kleiman-ibook:~ michael$ sudo port install --enforce-variants  gtkglext
 +universal  gtk2 +universal openal +universal

 Error: install does not accept --enforce-variants

 Kleiman-ibook:~ michael$ sudo port upgrade --enforce-variants  gtkglext
 +universal  gtk2 +universal openal +universal

 Error: gtkglext is not installed

 Kleiman-ibook:~ michael$ port info gtkglext

 gtkglext @1.2.0, Revision 3 (devel)

 Variants:             universal

 Description:          OpenGL Extension to GTK

 Homepage:             http://sourceforge.net/projects/gtkglext/

 Library Dependencies: mesa, xorg-libXmu, gtk2

 Platforms:            macosx, darwin

 License:              unknown

 Maintainers:          jd at lifehertz.com

 Kleiman-ibook:~ michael$ sudo port upgrade --enforce-variants mesa
 +universal xorg-libXmu +universal gtk2 +universal

 Error: mesa is not installed

 How does something like this happen? Well, I've installed a bunch of X
 stuff for my own use, so none of the things were installed as +universal.

 Now I need to create a universal .dmg for a program that uses X stuff --
 no one else doing development has a PPC mac anymore, and most developers
 are on linux.

 In general, Macports has a design flaw -- if package X exists, it is
 assumed to satisfy any dependencies that the requiring package has, even
 if those dependencies require a different set of options. There does not
 seem to be a "I need package X with option Y enforced" declaration. Nor is
 there anything like "the +universal option to me requires the +universal
 option to all my children".

 Note that in general, the required names won't be constant -- one program
 might take "+darwin9", and require "+darwin" on some children.

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


More information about the macports-tickets mailing list