Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733188 - sys-libs/ldb-2.0.1: missing use python conditional in pkg_setup
Summary: sys-libs/ldb-2.0.1: missing use python conditional in pkg_setup
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-07-19 04:36 UTC by Daniel M. Weeks
Modified: 2020-08-15 22:24 UTC (History)
2 users (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 Daniel M. Weeks 2020-07-19 04:36:07 UTC
Python dependencies appear conditioned on USE=python, however with USE=-python and PYTHON_SINGLE_TARGET="" the build fails:

 * No Python implementation selected for the build. Please set
 * the PYTHON_SINGLE_TARGET variable in your make.conf to one
 * of the following values:
 *
 * python3_6 python3_7 python3_8
 * ERROR: sys-libs/ldb-2.0.12::gentoo failed (setup phase):
 *   No supported Python implementation in PYTHON_SINGLE_TARGET.
 * 
 * Call stack:
 *                 ebuild.sh, line 125:  Called pkg_setup
 *         ldb-2.0.12.ebuild, line  53:  Called python-single-r1_pkg_setup
 *   python-single-r1.eclass, line 521:  Called python_setup
 *   python-single-r1.eclass, line 511:  Called die
 * The specific snippet of code:
 *              die "No supported Python implementation in PYTHON_SINGLE_TARGET."


Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2020-08-15 09:17:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42d6e353d6ff73e7c910cbc271e73ed9a3c2cff4

commit 42d6e353d6ff73e7c910cbc271e73ed9a3c2cff4
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2020-08-15 09:10:20 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-08-15 09:17:49 +0000

    sys-libs/ldb: Revbumps to improve python handling
    
    also disable distcc as it breaks build
    
    Closes: https://bugs.gentoo.org/726454
    Closes: https://bugs.gentoo.org/733188
    Package-Manager: Portage-3.0.2, Repoman-2.3.23
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 sys-libs/ldb/{ldb-2.0.12.ebuild => ldb-2.0.12-r1.ebuild} | 9 +++++++--
 sys-libs/ldb/{ldb-2.1.4.ebuild => ldb-2.1.4-r1.ebuild}   | 9 +++++++--
 sys-libs/ldb/{ldb-2.2.0.ebuild => ldb-2.2.0-r1.ebuild}   | 9 +++++++--
 3 files changed, 21 insertions(+), 6 deletions(-)
Comment 2 Brian Evans (RETIRED) gentoo-dev 2020-08-15 11:53:03 UTC
This bug is wrong.  Python is required for waf to run.  Disabling all the targets is a user error.
Comment 3 Larry the Git Cow gentoo-dev 2020-08-15 20:32:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e31cbf758673271ca84f5c65f004ca2236ada23

commit 8e31cbf758673271ca84f5c65f004ca2236ada23
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-08-15 20:31:49 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-08-15 20:31:49 +0000

    sys-libs/ldb: Require python at build-time unconditionally
    
    * waf requires setting up a valid python interpreter
      before calling waf-utils_src_configure.
    
    Closes: https://bugs.gentoo.org/733188
    Closes: https://bugs.gentoo.org/737238
    Closes: https://github.com/gentoo/gentoo/pull/17126
    Package-Manager: Portage-3.0.2, Repoman-2.3.23
    Signed-off-by: David Seifert <soap@gentoo.org>

 sys-libs/ldb/ldb-2.0.12-r1.ebuild | 8 +++++---
 sys-libs/ldb/ldb-2.1.4-r1.ebuild  | 8 +++++---
 sys-libs/ldb/ldb-2.2.0-r1.ebuild  | 8 +++++---
 3 files changed, 15 insertions(+), 9 deletions(-)
Comment 4 David Seifert gentoo-dev 2020-08-15 22:24:03 UTC
(In reply to Daniel M. Weeks from comment #0)
> Python dependencies appear conditioned on USE=python, however with
> USE=-python and PYTHON_SINGLE_TARGET="" the build fails:
> 
>  * No Python implementation selected for the build. Please set
>  * the PYTHON_SINGLE_TARGET variable in your make.conf to one
>  * of the following values:
>  *
>  * python3_6 python3_7 python3_8
>  * ERROR: sys-libs/ldb-2.0.12::gentoo failed (setup phase):
>  *   No supported Python implementation in PYTHON_SINGLE_TARGET.
>  * 
>  * Call stack:
>  *                 ebuild.sh, line 125:  Called pkg_setup
>  *         ldb-2.0.12.ebuild, line  53:  Called python-single-r1_pkg_setup
>  *   python-single-r1.eclass, line 521:  Called python_setup
>  *   python-single-r1.eclass, line 511:  Called die
>  * The specific snippet of code:
>  *              die "No supported Python implementation in
> PYTHON_SINGLE_TARGET."
> 
> 
> Reproducible: Always

This can't work, because waf requires the presence of a python interpreter to work.