Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 294996

Summary: [science overlay] sci-libs/opencascade should check USE in pkg_setup(), not src_compile()
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Andreas K. Hüttel <dilfridge>
Status: RESOLVED FIXED    
Severity: trivial CC: sci
Priority: High Keywords: InOverlay
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 :)