Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568092 - python-single-r1.eclass: python_gen_useflags broken with single impl in PYTHON_COMPAT
Summary: python-single-r1.eclass: python_gen_useflags broken with single impl in PYTHO...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-12 20:16 UTC by Michał Górny
Modified: 2017-03-10 16:05 UTC (History)
0 users

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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-12-12 20:16:29 UTC
Just noticed it. When PYTHON_COMPAT has only one impl, we don't emit python_single_target* flags for IUSE. However, python_gen_useflags still emits them resulting in broken ebuilds (no ebuilds in ::gentoo are affected by this atm).

Opening this as a reminder to myself.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-03-10 16:05:40 UTC
commit 3923a952a771f567bb620cac42c4c4f2415db8d2
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Sat Dec 12 23:12:10 2015
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Tue Dec 22 23:12:23 2015

    python-single-r1.eclass: Fix python_gen_* w/ single PYTHON_COMPAT impl
    
    Fix python_gen_useflags() and python_gen_cond_dep() to output correct
    flag name when only a single implementation is listed in PYTHON_COMPAT.
    In this case, the PYTHON_SINGLE_TARGET flags are not emitted
    and PYTHON_TARGETS are used directly instead.