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

Bug 449708

Summary: ebuild: make "QA Notice: USE Flag 'nonexistent-iuse' not in IUSE" a fatal error in EAPI=5+
Product: Portage Development Reporter: Sergei Trofimovich (RETIRED) <slyfox>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: cynede
Priority: Normal Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 445274    

Description Sergei Trofimovich (RETIRED) gentoo-dev 2013-01-01 23:04:26 UTC
Let's consider small ebuild:

    EAPI=5
    
    DESCRIPTION="A test for missing flag in IUSE"
    HOMEPAGE="http://gentoo.org"
    
    LICENSE="GPL-2"
    SLOT="0"
    KEYWORDS=""
    IUSE=""
    
    RDEPEND=""
    DEPEND=""
    
    src_unpack() {
            use nonexistent-iuse || einfo "I have requested nonexistent flag"
    
            einfo "And still alive. Not good :]"
            mkdir "${S}"
    }

at best it shows there is suspicious unknown IUSE flag.
But there is no way to make that error fatal:

    ebuild foo-9999.ebuild clean prepare
    >>> Unpacking source...
     * QA Notice: USE Flag 'nonexistent-iuse' not in IUSE for app-portage/foo-9999
     * I have requested nonexistent flag
     * And still alive. Not good :]
    >>> Source unpacked in /subvolumes/var_tmp/portage/app-portage/foo-9999/work
    >>> Preparing source in /subvolumes/var_tmp/portage/app-portage/foo-9999/work/foo-9999 ...
    >>> Source prepared.

Would be nice to have that QA warning a fatal error in at least EAPI=5.
Such errors should be easy to fix in current ebuilds.

For previous EAPIs such behaviour would be too hostile due to
different in implicit IUSE rules (bug #447570 and bug #442830).
Comment 2 Zac Medico gentoo-dev 2013-01-10 15:38:01 UTC
This is fixed in 2.1.11.39 and 2.2.0_alpha150.