Skip to content

debian: remove stale distutils override from py3dist-overrides - #68255

Merged
tchaikov merged 1 commit into
ceph:mainfrom
tchaikov:wip-debian-cleanups
Apr 8, 2026
Merged

tchaikov merged 1 commit into
ceph:mainfrom
tchaikov:wip-debian-cleanups

Conversation

@tchaikov

@tchaikov tchaikov commented Apr 8, 2026 •

Copy link
Copy Markdown
Contributor

distutils was deprecated in Python 3.10 (PEP 632) and removed in Python 3.12. The python3-distutils package no longer exists in Debian Trixie (Python 3.13) or Ubuntu 24.04+ (Python 3.12).

The only runtime reference was in debian/ceph-mgr.requires, already cleaned up by 3fb3f89. This override is now dead code, hence no installed file declares a runtime dependency on distutils, so dh_python3 never resolves it. Removing it prevents a latent uninstallable-dependency bug if distutils were accidentally reintroduced in a .requires file.

Fixes: https://tracker.ceph.com/issues/75901

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

distutils was deprecated in Python 3.10 (PEP 632) and removed in
Python 3.12. The `python3-distutils` package no longer exists in
Debian Trixie (Python 3.13) or Ubuntu 24.04+ (Python 3.12).

The only runtime reference was in `debian/ceph-mgr.requires`, already
cleaned up by 3fb3f89. This override is now dead code, hence no
installed file declares a runtime dependency on `distutils`, so
`dh_python3` never resolves it. Removing it prevents a latent
uninstallable-dependency bug if `distutils` were accidentally
reintroduced in a `.requires` file.

Fixes: https://tracker.ceph.com/issues/75901
Signed-off-by: Thomas Lamprecht <[email protected]>
Signed-off-by: Max R. Carrara <[email protected]>
Signed-off-by: Kefu Chai <[email protected]>
@tchaikov

tchaikov commented Apr 8, 2026

Copy link
Copy Markdown
Contributor Author

cc @ThomasLamprecht and @Aequitosh

@tchaikov
tchaikov requested a review from cbodley April 8, 2026 07:37
@tchaikov

tchaikov commented Apr 8, 2026

Copy link
Copy Markdown
Contributor Author

@cbodley Hi Casey, this is a follow-up to your #64386. It removes the now-stale distutils python3-distutils mapping from debian/py3dist-overrides, which was left behind when you cleaned up ceph-mgr.requires. Would you mind taking a look?

@tchaikov

tchaikov commented Apr 8, 2026

Copy link
Copy Markdown
Contributor Author

@tchaikov
tchaikov merged commit 958a7bf into ceph:main Apr 8, 2026
15 of 19 checks passed
@tchaikov
tchaikov deleted the wip-debian-cleanups branch April 8, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants