Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197957 - Packages file doesn't include conditionals in *DEPEND
Summary: Packages file doesn't include conditionals in *DEPEND
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-03 13:33 UTC by Fabian Groffen
Modified: 2007-11-03 16:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2007-11-03 13:33:37 UTC
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.
Comment 1 Fabian Groffen gentoo-dev 2007-11-03 16:00:14 UTC
I should have added kernel_* and friends to IUSE.  I fail.