Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449708 - ebuild: make "QA Notice: USE Flag 'nonexistent-iuse' not in IUSE" a fatal error in EAPI=5+
Summary: ebuild: make "QA Notice: USE Flag 'nonexistent-iuse' not in IUSE" a fatal err...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 445274
  Show dependency tree
 
Reported: 2013-01-01 23:04 UTC by Sergei Trofimovich (RETIRED)
Modified: 2013-01-10 15:38 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 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.