View previous topic :: View next topic |
Author |
Message |
nagmat84 Apprentice
Joined: 27 Mar 2007 Posts: 262
|
Posted: Tue Jun 04, 2024 5:35 pm Post subject: [SOLVED] Python single target set to 3.11 and 3.12 |
|
|
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 |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2418
|
Posted: Tue Jun 04, 2024 5:52 pm Post subject: Re: Python single target set to 3.11 and 3.12 simultaneously |
|
|
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 |
|
|
nagmat84 Apprentice
Joined: 27 Mar 2007 Posts: 262
|
Posted: Tue Jun 04, 2024 6:02 pm Post subject: |
|
|
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 |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2418
|
Posted: Tue Jun 04, 2024 6:04 pm Post subject: |
|
|
I think it should be:
Code: | */* PYTHON_SINGLE_TARGET: -* python3_11 |
Best Regards,
Georgi |
|
Back to top |
|
|
nagmat84 Apprentice
Joined: 27 Mar 2007 Posts: 262
|
Posted: Tue Jun 04, 2024 6:13 pm Post subject: |
|
|
Yes, that did the trick. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22648
|
Posted: Tue Jun 04, 2024 6:23 pm Post subject: |
|
|
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 |
|
|
|