Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705420 - x11-wm/openbox-3.6.1-r2 : pkg_setup(): No supported Python implementation in PYTHON_SINGLE_TARGET/PYTHON_TARGETS.
Summary: x11-wm/openbox-3.6.1-r2 : pkg_setup(): No supported Python implementation in ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LxQt maintainers
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2020-01-14 15:08 UTC by Enne Eziarc
Modified: 2020-03-28 13:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Add a USE=xdg check to pkg_setup (ebuild.patch,341 bytes, patch)
2020-01-14 15:08 UTC, Enne Eziarc
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enne Eziarc 2020-01-14 15:08:06 UTC
Created attachment 603268 [details, diff]
Add a USE=xdg check to pkg_setup

$PYTHON_REQUIRED_USE is gated behind USE=xdg here, but python-single-r1_pkg_setup is being run unconditionally resulting in an error even when python isn't enabled.
Comment 1 Guy 2020-02-03 20:53:25 UTC
How the 'python_single_target' and 'python_targets' work has (apparently) been changed with the latest version of portage.

You can work around this issue by explicitly setting the desired python version:

echo 'x11-rm/openbox python_single_target3_X' >> /etc/portage/package.use
---> where 'X' equals your desired version of dev-lang/python3. (6, 7 or 8).

I originally had PYTHON_SINGLE_TARGET="python3_6" set in /etc/portage/make.conf with a very short list of package overrides that still require python2_7. I had to completely change this around with the new portage changes.

BTW, the bug here is that the portage is supposed to tell you before the emerge happens that a there is no valid 'python_single_target' available. It should never have made it to the 'config' phase.
Comment 2 Larry the Git Cow gentoo-dev 2020-03-28 13:11:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21bdc12c53c76a92910a85d86f6706ac4f1eb99d

commit 21bdc12c53c76a92910a85d86f6706ac4f1eb99d
Author:     Jimi Huotari <chiitoo@gentoo.org>
AuthorDate: 2020-03-24 13:09:02 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-03-28 13:08:04 +0000

    x11-wm/openbox: use 'python-single-r1_pkg_setup' and sync 9999
    
    Also includes minor cosmetic changes, an update for the homepage,
    removal of unused eclass inherits, and a fix for installing the
    'Surreal Gentoo' theme for 9999.
    
    Closes: https://bugs.gentoo.org/705420
    Package-Manager: Portage-2.3.95, Repoman-2.3.21
    Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/15106
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 x11-wm/openbox/openbox-3.6.1-r3.ebuild | 28 ++++++++++++++-------
 x11-wm/openbox/openbox-9999.ebuild     | 46 +++++++++++++++++++++++-----------
 2 files changed, 50 insertions(+), 24 deletions(-)