Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294996 - [science overlay] sci-libs/opencascade should check USE in pkg_setup(), not src_compile()
Summary: [science overlay] sci-libs/opencascade should check USE in pkg_setup(), not s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Andreas K. Hüttel
URL:
Whiteboard:
Keywords: InOverlay
Depends on:
Blocks:
 
Reported: 2009-11-28 18:47 UTC by Michał Górny
Modified: 2011-03-06 20:24 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2009-11-28 18:47:25 UTC
Current ebuild for opencascade does report incorrect USEflags in src_compile() along with preparing configure arguments. This has the disadvantage that all those checks are performed after unpacking and preparing the sources, which takes a lot of time.

I think that such checks, especially X<->opengl one, should be performed within pkg_setup() instead of src_compile(), so that with incorrect USEflags the emerge process would fail or could be aborted without wasting a lot of time on unpacking the package.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2011-03-06 20:24:40 UTC
1) it's in the main tree now
2) I changed that code when I moved it :)