Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 704520 - distutils_enable_sphinx() does not work in DISTUTILS_SINGLE_IMPL="1" ebuilds
Summary: distutils_enable_sphinx() does not work in DISTUTILS_SINGLE_IMPL="1" ebuilds
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-01-02 04:00 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2021-01-28 09:20 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 Arfrever Frehtes Taifersar Arahesis 2020-01-02 04:00:03 UTC
When DISTUTILS_SINGLE_IMPL is non-empty (i.e. python-single-r1.eclass is used), then distutils_enable_sphinx() would fail, because it tries to call python_gen_any_dep() which is not defined in python-single-r1.eclass (but is defined in python-any-r1.eclass and python-r1.eclass).


 * ERROR: category/package-version::repository failed (depend phase):
 *   External commands disallowed while sourcing ebuild: python_gen_any_dep 
 *                      dev-python/sphinx[${PYTHON_USEDEP}]
Comment 1 Larry the Git Cow gentoo-dev 2021-01-28 09:20:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0950b698411ea7ffbafe868d231b18181da77e28

commit 0950b698411ea7ffbafe868d231b18181da77e28
Author:     Andrew Ammerlaan <andrewammerlaan@riseup.net>
AuthorDate: 2021-01-16 13:27:00 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-01-28 09:20:05 +0000

    eclass/distutils-r1: fix distutils_enable_sphinx with DIS.._SINGLE_IMPL
    
    python-single-r1 does not have the python_gen_any_dep function
    use the python_gen_cond_dep instead
    
    Closes: https://bugs.gentoo.org/704520
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 eclass/distutils-r1.eclass | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)