Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Python single target set to 3.11 and 3.12
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 262

PostPosted: Tue Jun 04, 2024 5:35 pm    Post subject: [SOLVED] Python single target set to 3.11 and 3.12 Reply with quote

When I tried a world upgrade today I was hit by the error message
Code:
!!! Problem resolving dependencies for app-crypt/yubikey-manager-qt
Dependency resolution took 3.26 s (backtrack: 0/20).

!!! The ebuild selected to satisfy "app-crypt/yubikey-manager-qt" has unmet requirements.
- app-crypt/yubikey-manager-qt-1.2.5::gentoo USE="" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_11 python3_12 -python3_10"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( python_single_target_python3_10 python_single_target_python3_11 python_single_target_python3_12 )
Obviously, it doesn't make sense to have more than one Python version set for python SINGLE target. Indeed, "emerge --info" shows
Code:
USE="..." PYTHON_SINGLE_TARGET="python3_12 python3_11" PYTHON_TARGETS="python3_12 python3_11" ...

Where does this come from? How do I debug from where portage picks up that insane setting?

Some weeks ago when there was the news that Gentoo is migrating to Python 3.12, I upgraded my "/etc/portage/package.use/python" to
Code:
*/* PYTHON_TARGETS: -* python3_11 python3_12
*/* PYTHON_SINGLE_TARGET: python3_11
as always to stay with Python 3.11 momentarily and allow for a smooth transition to 3.12. This is the only python related setting in "/etc/portage/".

Last edited by nagmat84 on Tue Jun 04, 2024 6:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2418

PostPosted: Tue Jun 04, 2024 5:52 pm    Post subject: Re: Python single target set to 3.11 and 3.12 simultaneously Reply with quote

nagmat84 wrote:

Where does this come from?


It can come from only one place:

Code:
grep -r -E "python3|PYTHON" /etc/portage


Best Regards,
Georgi
Back to top
View user's profile Send private message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 262

PostPosted: Tue Jun 04, 2024 6:02 pm    Post subject: Reply with quote

Code:
(desktop-build) server /etc/portage # grep -r -E "python3|PYTHON" /etc/portage
/etc/portage/package.use.avail/freecad:# required by media-gfx/freecad-0.20.2-r1::gentoo[gui,python_single_target_python3_10]
/etc/portage/package.use.avail/kicad:# required by sci-electronics/kicad-7.0.1::gentoo[python_single_target_python3_11]
/etc/portage/package.use.avail/kicad:# required by sci-electronics/kicad-7.0.1::gentoo[python_single_target_python3_11]
/etc/portage/package.use.avail/python:*/* PYTHON_TARGETS: -* python3_11 python3_12
/etc/portage/package.use.avail/python:*/* PYTHON_SINGLE_TARGET: python3_11
Note, the first three findings are comments.

I have already "grepped" in /etc/portage. That was the first thing I did.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2418

PostPosted: Tue Jun 04, 2024 6:04 pm    Post subject: Reply with quote

I think it should be:

Code:
*/* PYTHON_SINGLE_TARGET: -* python3_11


Best Regards,
Georgi
Back to top
View user's profile Send private message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 262

PostPosted: Tue Jun 04, 2024 6:13 pm    Post subject: Reply with quote

Yes, that did the trick.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22648

PostPosted: Tue Jun 04, 2024 6:23 pm    Post subject: Reply with quote

As a minor point, the corrected form that logrusx gave you is what the news item told you to use. You lost the -* on the single target line, and that is why your version failed.

Although the variable is named SINGLE_TARGET and is used that way in USE constraints, Portage has no inherent rule to recognize that you have set SINGLE_TARGET to have multiple values enabled.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum