On Wed, Jun 5, 2024 at 4:27 AM hitachi303 <gentoo-u...@konstantinhansen.de> wrote: > > the news item lists in the save upgrade section those lines: > */* PYTHON_TARGETS: -* python3_11 python3_12 > */* PYTHON_SINGLE_TARGET: -* python3_11 > > This is mixing python 3.11 and 3.12 on the same system. This should be > working as well, shouldn't it?
Not only should this work, but it should be less likely to cause problems than the default upgrade process. The news item says as much. This is the configuration I'm currently running (except I did the next step and am setting python_single_taret to 3.12). When I get back from travelling in a week I will probably see what happens when I remove my package.use overrides. > Shouldn't portage be able to deal with > this, at least until python 3.11 gets deprecated? This should mostly work fine until 3.11 is removed. The issue is with python_single_target packages. Any particular package can only use one version of this, and if it has deps that use this setting those must match. If you're having issues, I would suggest either just waiting a few weeks and trying again, or following the gradual migration instructions. When switching the single target to 3.12 if you have some packages that don't work, then just override those packages in package.use. For example, I had this line in package.use: <=sys-devel/distcc-3.4-r3 PYTHON_SINGLE_TARGET: -* python3_11 distcc hadn't been updated when I did the migration a few weeks ago. So I told that package to use 3.11, but you'll note I put a version in the atom so that when it got updated it would automatically try the new version. A few packages had errors when they updated and in those cases I just updated the version in the override so that they would continue to work. In this case distcc -r4 added 3.12 support, and so now that package is on 3.12. This isn't a desktop-oriented system and I don't have a ton of python packages on it, but I had 5 overrides at one point. Now I'm down to zero. I haven't dropped 3.11 yet - I'm about to travel so that will wait until I get back. -- Rich