Opened 15 years ago
Closed 15 years ago
#21072 closed defect (invalid)
Cannot force a change to +universal
Reported by: | michael-macports@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.0 |
Keywords: | --enforce-variants | Cc: | michael-macports@… |
Port: |
Description
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@…
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.
Change History (2)
comment:1 Changed 15 years ago by michael-macports@…
Cc: | michael-macports@… added |
---|
comment:2 Changed 15 years ago by tobypeterson
Resolution: | → invalid |
---|---|
Status: | new → closed |
You obviously don't need --enforce-variants when installing, since there's nothing to enforce. The rest of your report is #126.
Cc Me!