On Apr 14, 2010, at 19:33, Adam Dershowitz wrote: > Here is the problem...I am trying to install wine-devel, but many ports that > I have installed are not universal. So, each time I do: > sudo port install wine-devel > > I get things like this: > > Error: You cannot install wine-devel for the architecture(s) i386 because > Error: its dependency xorg-libXcursor only contains the architecture(s) > x86_64. > Error: > Error: Try rebuilding xorg-libXcursor (and all its dependencies) with > Error: the +universal variant by running > Error: > Error: sudo port upgrade --enforce-variants xorg-libXcursor +universal > Error: > Error: Target org.macports.configure returned: incompatible architectures in > dependencies > > > OK, no problem, so I do the upgrade, and then I get to the next one that is > not universal, so I have to keep watching and repeating. I will get there, > but I don't want to keep monitoring and repeating. > > Is there a command that will do something like, "upgrade to universal all > dependencies of wine-devel"? Or, even better, "install wine-devel and > upgrade all dependencies as necessary"?
Well, not built-in, but it wouldn't be too hard to script. Probably something like this would work: for p in $(port info --line --depends_lib wine-devel | sed 's/,/ /g') do sudo port upgrade --enforce-variants $(echo $p | sed 's/.*://') +universal done _______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
