Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932011 - sys-apps/policycoreutils: add python 3.12 support
Summary: sys-apps/policycoreutils: add python 3.12 support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: SE Linux Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-17 00:56 UTC by Federico Justus Denkena
Modified: 2024-06-06 13:49 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Justus Denkena 2024-05-17 00:56:05 UTC
The package should, as announced by mgorny, support being built with python3.12. The switch to 3.12 is scheduled to happen on 2024-06-01.
Comment 1 sanomiad 2024-06-02 16:57:14 UTC
+1

Unable to update due to the following:

-----------------SNIP------------------------------------
!!! Problem resolving dependencies for sys-apps/policycoreutils from @system
... done!
Dependency resolution took 1.10 s (backtrack: 0/20).


!!! The ebuild selected to satisfy "sys-apps/policycoreutils" has unmet requirements.
- sys-apps/policycoreutils-3.6::gentoo USE="(audit) pam (split-usr)" ABI_X86="(64)" PYTHON_TARGETS="-python3_10 -python3_11"

  The following REQUIRED_USE flag constraints are unsatisfied:
    any-of ( python_targets_python3_10 python_targets_python3_11 )

(dependency required by "@system" [set])
(dependency required by "@world" [argument])
-----------------SNIP------------------------------------

I already followed the recommended way from the news:

-------------------------SNIP-----------------------------------------
Safer upgrade procedure
=======================
A safer approach is to add Python 3.12 support to your system first,
and only then remove Python 3.11.  However, note that this involves two
rebuilds of all the affected packages, so it will take noticeably
longer.

First, enable both Python 3.11 and Python 3.12, and then run the upgrade
commands:

    */* PYTHON_TARGETS: -* python3_11 python3_12
    */* PYTHON_SINGLE_TARGET: -* python3_11

Then switch PYTHON_SINGLE_TARGET and run the second batch of upgrades:

    */* PYTHON_TARGETS: -* python3_11 python3_12
    */* PYTHON_SINGLE_TARGET: -* python3_12

Finally, switch to the final version and upgrade:

    */* PYTHON_TARGETS: -* python3_12
    */* PYTHON_SINGLE_TARGET: -* python3_12

You may wish to remove the target overrides after the defaults switch.
Alternatively, you can keep them to block the next automatic upgrade
to Python 3.13, and upgrade manually then.


Upgrade commands
================
The Python 3.11 cleanup requires that Python 3.11 is removed from
the 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
--------------------------------------SNIP---------------------------
Comment 2 toon 2024-06-05 09:11:54 UTC
This ticket has the status RESOLVED FIXED.
However, the fix has been reverted one hour later, so this ticket should be reopened.

https://gitweb.gentoo.org/repo/gentoo.git/commit/sys-apps/policycoreutils/policycoreutils-3.6.ebuild?id=323439c579bb530217935cfdc9e741b0a1cff36e
Comment 3 Larry the Git Cow gentoo-dev 2024-06-06 13:49:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cc6da709ad4d69b7e5e231fe3b388c8d3a8b1fc

commit 3cc6da709ad4d69b7e5e231fe3b388c8d3a8b1fc
Author:     Kenton Groombridge <concord@gentoo.org>
AuthorDate: 2024-06-06 13:32:09 +0000
Commit:     Kenton Groombridge <concord@gentoo.org>
CommitDate: 2024-06-06 13:44:52 +0000

    sys-apps/policycoreutils: enable py3.12
    
    Closes: https://bugs.gentoo.org/932011
    Signed-off-by: Kenton Groombridge <concord@gentoo.org>

 sys-apps/policycoreutils/policycoreutils-3.6.ebuild  | 2 +-
 sys-apps/policycoreutils/policycoreutils-9999.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)