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

Bug 383901

Summary: gnome2.eclass: please use in_iuse() (from eutils)
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: EclassesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: arfrever.fta, esigra
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 262491, 383899    
Bug Blocks: 262490    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-09-21 09:33:44 UTC
PMS disallows lookups of ${IUSE} from eclasses (it is undefined what exactly is in there at that point). gnome2 uses that for gtk-doc magic and .la punting; both should be replaced by more explicit solutions.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-09-23 07:48:51 UTC
Ok, we decided to keep using IUSE like this, so please just migrate your has ${IUSE//magic} to in_iuse() from eutils.eclass.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2012-12-27 22:39:26 UTC
http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commitdiff;h=f3c55f4fd61a2abccd1d7c528d76804e45da88a9 
In the second hunk the following code can be used:
if ! use_if_iuse static-libs; then
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-12-27 22:54:55 UTC
updated in overlay.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2013-01-20 12:27:35 UTC
Commited to the tree a few days ago.