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

Bug 578426

Summary: dev-python/python-keystoneclient-2.3.1 fails to build
Product: Gentoo Linux Reporter: Carlos Konstanski <ckonstanski>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Carlos Konstanski 2016-03-28 03:47:00 UTC
python-keystoneclient-2.3.1 fails to build with the following error:

USE Flag 'doc' not in IUSE for dev-python/python-keystoneclient-2.3.1

This is because the USE flags have all been removed from this version of python--keystoneclient (previously "doc examples test"), but the rest of the ebuild assumes them to still be there:

python_prepare_all() {
    use doc && esetup.py build_sphinx
    sed -i '/^argparse/d' requirements.txt || die
    sed -i '/^hacking/d' test-requirements.txt || die
    distutils-r1_python_prepare_all
}

python_install_all() {
    use doc && local HTML_DOCS=( doc/build/html/. )
    use examples && local EXAMPLES=( examples/. )
    distutils-r1_python_install_all
}

I tried restoring the USE flags, but that just caused other errors. Apparently they were removed for a reason, but the rest of the ebuild was copied and pasted from the previous version, complete with code that depends on the USE flags.

Reproducible: Always
Comment 1 Tomáš Mózes 2016-03-28 05:52:34 UTC
Please re-sync the gentoo repository, according to git this should be fixed by now.