Skip to content

[3.15] gh-159452: Run the regen-configure container as the invoking user (GH-159454) - #161680

Merged
itamaro merged 1 commit into
python:3.15from
miss-islington:backport-7b1bc41-3.15
Nov 9, 2026
Merged

itamaro merged 1 commit into
python:3.15from
miss-islington:backport-7b1bc41-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Tools/build/regen-configure.sh ran the Autoconf container as root, so
with a rootful Docker daemon the regenerated files and autom4te.cache
ended up owned by root. The stale cache broke subsequent runs and
couldn't be removed without sudo.

Run the container as the invoking user instead: --userns=keep-id for
Podman, -u UID:GID for rootful Docker. Rootless runtimes already map
container root to the invoking user and need nothing. Also remove
autom4te.cache before and after the run, using the same image, so an
existing root-owned cache gets cleaned up too.
(cherry picked from commit 7b1bc41)

Co-authored-by: Sendao Yan yansendao@126.com

…er (pythonGH-159454)

`Tools/build/regen-configure.sh` ran the Autoconf container as root, so
with a rootful Docker daemon the regenerated files and `autom4te.cache`
ended up owned by root. The stale cache broke subsequent runs and
couldn't be removed without sudo.

Run the container as the invoking user instead: `--userns=keep-id` for
Podman, `-u UID:GID` for rootful Docker. Rootless runtimes already map
container root to the invoking user and need nothing. Also remove
`autom4te.cache` before and after the run, using the same image, so an
existing root-owned cache gets cleaned up too.
(cherry picked from commit 7b1bc41)

Co-authored-by: Sendao Yan <yansendao@126.com>
@itamaro
itamaro merged commit deba4ea into python:3.15 Nov 9, 2026
54 checks passed
@miss-islington
miss-islington deleted the backport-7b1bc41-3.15 branch November 9, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants