View previous topic :: View next topic |
Author |
Message |
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Thu May 06, 2021 12:45 pm Post subject: Rebuilding packages 2 migrate 2 python 3.9 gives me issues |
|
|
Hi,
I just rebuid all packages needed to recompile in order to migrate from python 3.8 to python 3.9 using these instructions:
Code: |
First, enable both Python 3.8 and Python 3.9, and then run the upgrade
commands:
*/* PYTHON_TARGETS: -* python3_8 python3_9
*/* PYTHON_SINGLE_TARGET: -* python3_8
Then switch PYTHON_SINGLE_TARGET and run a second batch of upgrades:
*/* PYTHON_TARGETS: -* python3_8 python3_9
*/* PYTHON_SINGLE_TARGET: -* python3_9
Finally, switch to the final version and upgrade:
*/* PYTHON_TARGETS: -* python3_9
*/* PYTHON_SINGLE_TARGET: -* python3_9
Upgrade commands
================
The Python 3.8 cleanup requires that Python 3.8 is removed from complete
dependency trees in batch. If some of the installed packages using
an older Python version are not triaged for the upgrade, the package
manager will throw dependency conflicts. This makes it important that
the upgrade is carried via a --deep --changed-use @world upgrade,
as well as that any stray packages are removed prior to it, e.g.:
emerge --depclean
emerge -1vUD @world
emerge --depclean
|
( Upgrading via emerge -1vUD @world, then depcleaning, doing the next step then upgrading emerge -1vUD @world , depcleaning etc. )
Everthing worked wonderful, except now that i changed my make.conf to only be python targets 3.9, one package has unmet requirements:
my make.conf: https://gist.github.com/690267f3d6be1e054951c3ddd45be6e6
the error:
Code: |
byte@zeus ~ took 7s
❯ doas emerge --ask -1vUD @world
These are the packages that would be merged, in order:
Calculating dependencies |
!!! Problem resolving dependencies for app-admin/eclean-kernel from @selected
... done!
!!! The ebuild selected to satisfy "app-admin/eclean-kernel" has unmet requirements.
- app-admin/eclean-kernel-0.4.3::gentoo USE="" ABI_X86="(64)" PYTHON_TARGETS="-python3_7 -python3_8"
The following REQUIRED_USE flag constraints are unsatisfied:
any-of ( python_targets_python3_7 python_targets_python3_8 )
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
|
_________________ Having problems compiling since 2021 |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30917 Location: here
|
Posted: Thu May 06, 2021 12:53 pm Post subject: |
|
|
You should unmask a newer app-admin/eclean-kernel version because version 0.4.3 has no python3_9 support _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Thu May 06, 2021 12:55 pm Post subject: |
|
|
fedeliallalinea wrote: | You should unmask a newer app-admin/eclean-kernel version because version 0.4.3 has no python3_9 support |
Thanks, that worked, although now other packages (such as UFW ) are giving me the same thing.
What should I do? Keep 3.8 on the system until its all converted to 3.9? If so, how would I do that? _________________ Having problems compiling since 2021 |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30917 Location: here
|
Posted: Thu May 06, 2021 1:21 pm Post subject: |
|
|
I will wait until developers change python target in stable profile.
fullbyte wrote: | What should I do? Keep 3.8 on the system until its all converted to 3.9? If so, how would I do that? |
Now that you've already changed I wouldn't go back _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
sdauth Guru
Joined: 19 Sep 2018 Posts: 569 Location: Ásgarðr
|
Posted: Thu May 06, 2021 2:38 pm Post subject: |
|
|
fullbyte wrote: | What should I do? Keep 3.8 on the system until its all converted to 3.9? If so, how would I do that? |
You can either unmask packages with python3_9 available as fedeliallalinea said or you can also force the ones lacking python3_9 to remain on python3_8.
Example with current stable "eclean-kernel" (of course not needed as you already unmasked a recent version with python3_9)
Code: | echo "app-admin/eclean-kernel python_targets_python3_8" >> /etc/portage/package.use/python_upgrade |
Then when eclean-kernel is bumped, remove the entry from /etc/portage/package.use/python_upgrade
Personally, I'm waiting a few weeks, I still have too much packages lacking python3_9 on my stable gentoo. |
|
Back to top |
|
|
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Fri May 07, 2021 8:51 am Post subject: |
|
|
sdauth wrote: | fullbyte wrote: | What should I do? Keep 3.8 on the system until its all converted to 3.9? If so, how would I do that? |
You can either unmask packages with python3_9 available as fedeliallalinea said or you can also force the ones lacking python3_9 to remain on python3_8.
Example with current stable "eclean-kernel" (of course not needed as you already unmasked a recent version with python3_9)
Code: | echo "app-admin/eclean-kernel python_targets_python3_8" >> /etc/portage/package.use/python_upgrade |
Then when eclean-kernel is bumped, remove the entry from /etc/portage/package.use/python_upgrade
Personally, I'm waiting a few weeks, I still have too much packages lacking python3_9 on my stable gentoo. |
That's a good idea. _________________ Having problems compiling since 2021 |
|
Back to top |
|
|
|