Working on Prefix (trunk-based branch prefix) I noticed that the Packages file generated by portage in the PKGDIR doesn't include conditionals in the *DEPEND variables. An example is ghc: http://tinderbox.dev.gentoo.org/html/default-prefix/darwin/macos/10.4/ppc/ghc-6.6.1.html Observe it's DEPEND having among others: !kernel_Darwin? ( ≥=sys-devel/gcc-2.95.3 ) Now the Packages file shows something else: http://tinderbox.dev.gentoo.org/default-prefix/darwin/macos/10.4/ppc/Packages DEPEND: !dev-lang/ghc-bin >=sys-devel/gcc-2.95.3 ... It looks as if portage doesn't record the !useflag? ( ) construction, resulting in a in this case gcc dependency on Darwin/OSX which is not desirable. Unfortunately I can't easily find how this should be done correctly in portdb/bintree.py.
I should have added kernel_* and friends to IUSE. I fail.