8000 Add Debian Trixie (and remove Bullseye) by tianon · Pull Request #1042 · docker-library/python · GitHub
[go: up one dir, main page]

Skip to content

Add Debian Trixie (and remove Bullseye) #1042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tianon
Copy link
Member
@tianon tianon commented May 19, 2025

Closes #1041
Fixes #926

@tianon tianon marked this pull request as draft May 19, 2025 23:26
@tianon
Copy link
Member Author
tianon commented May 19, 2025

Opening to verify compilation -- we do not plan to support Debian Trixie officially until it is GA / released.

@tianon tianon mentioned this pull request May 19, 2025
@tianon
Copy link
Member Author
tianon commented May 19, 2025

oof, running into #926 (comment) -- not sure why that's persisted into the official builds this long 😕

@tianon
Copy link
Member Author
tianon commented May 20, 2025
$ dpkg-query --search '*lib/x86_64-linux-gnu/libbz2.so.1.0' '*lib/x86_64-linux-gnu/libc.so.6' '*lib/x86_64-linux-gnu/libcrypto.so.3' '*lib/x86_64-linux-gnu/libdb-5.3.so' '*lib/x86_64-linux-gnu/libffi.so.8' '*lib/x86_64-linux-gnu/libgdbm.so.6' '*lib/x86_64-linux-gnu/liblzma.so.5' '*lib/x86_64-linux-gnu/libm.so.6' '*lib/x86_64-linux-gnu/libncursesw.so.6' '*lib/x86_64-linux-gnu/libpanelw.so.6' '*lib/x86_64-linux-gnu/libreadline.so.8' '*lib/x86_64-linux-gnu/libsqlite3.so.0' '*lib/x86_64-linux-gnu/libssl.so.3' '*lib/x86_64-linux-gnu/libtinfo.so.6' '*lib/x86_64-linux-gnu/libuuid.so.1' '*lib/x86_64-linux-gnu/libz.so.1' '*lib/x86_64-linux-gnu/libzstd.so.1'
libbz2-1.0:amd64: /usr/lib/x86_64-linux-gnu/libbz2.so.1.0
libc6:amd64: /usr/lib/x86_64-linux-gnu/libc.so.6
libssl3t64:amd64: /usr/lib/x86_64-linux-gnu/libcrypto.so.3
libdb5.3t64:amd64: /usr/lib/x86_64-linux-gnu/libdb-5.3.so
libffi8:amd64: /usr/lib/x86_64-linux-gnu/libffi.so.8
libgdbm6t64:amd64: /usr/lib/x86_64-linux-gnu/libgdbm.so.6
liblzma5:amd64: /usr/lib/x86_64-linux-gnu/liblzma.so.5
libc6:amd64: /usr/lib/x86_64-linux-gnu/libm.so.6
libncursesw6:amd64: /usr/lib/x86_64-linux-gnu/libncursesw.so.6
libncursesw6:amd64: /usr/lib/x86_64-linux-gnu/libpanelw.so.6
diversion by libreadline8t64 from: /lib/x86_64-linux-gnu/libreadline.so.8
diversion by libreadline8t64 to: /lib/x86_64-linux-gnu/libreadline.so.8.usr-is-merged
libreadline8t64:amd64: /usr/lib/x86_64-linux-gnu/libreadline.so.8
libsqlite3-0:amd64: /usr/lib/x86_64-linux-gnu/libsqlite3.so.0
libssl3t64:amd64: /usr/lib/x86_64-linux-gnu/libssl.so.3
libtinfo6:amd64: /usr/lib/x86_64-linux-gnu/libtinfo.so.6
libuuid1:amd64: /usr/lib/x86_64-linux-gnu/libuuid.so.1
zlib1g:amd64: /usr/lib/x86_64-linux-gnu/libz.so.1
libzstd1:amd64: /usr/lib/x86_64-linux-gnu/libzstd.so.1

@daveisfera
Copy link

Opening to verify compilation -- we do not plan to support Debian Trixie officially until it is GA / released.

GA for Trixie is probably weeks or months away, so would be great to get this out sooner for testing.

@tianon
Copy link
Member Author
tianon commented May 20, 2025

Debian Bookworm hit "Hard Freeze" on 2023-03-12, "Full Freeze" on 2023-05-24, and wasn't GA until 2023-06-10, so I do think we've got a ways yet. We should absolutely fix the failures in this PR, and plan to, but we do not plan to officially release/support a non-GA version of Debian officially (especially since it's not officially supported by the Debian Security Team until GA).

Once it's building successfully, you'll be able to use something like docker buildx build --pull https://github.com/docker-library/python.git#refs/pull/1042/merge:3.13/slim-trixie to test this sooner.

@daveisfera
Copy link

Debian Bookworm hit "Hard Freeze" on 2023-03-12, "Full Freeze" on 2023-05-24, and wasn't GA until 2023-06-10, so I do think we've got a ways yet. We should absolutely fix the failures in this PR, and plan to, but we do not plan to officially release/support a non-GA version of Debian officially (especially since it's not officially supported by the Debian Security Team until GA).

If that same timing happens, then we're still 2-3 months from the release. Would love to start testing before that so feedback on any issues can be given to Python and Debian upstream.

Once it's building successfully, you'll be able to use something like docker buildx build --pull https://github.com/docker-library/python.git#refs/pull/1042/merge:3.13/slim-trixie to test this sooner.

That means it would have to be built/tested locally. I was hoping to be able to run it through standard CI and deployed testing environments.

@tianon
Copy link
Member Author
tianon commented May 20, 2025
$ dpkg-query --search '*lib/x86_64-linux-gnu/libbz2.so.1.0' '*lib/x86_64-linux-gnu/libc.so.6' '*lib/x86_64-linux-gnu/libcrypto.so.3' '*lib/x86_64-linux-gnu/libdb-5.3.so' '*lib/x86_64-linux-gnu/libffi.so.8' '*lib/x86_64-linux-gnu/libgdbm.so.6' '*lib/x86_64-linux-gnu/liblzma.so.5' '*lib/x86_64-linux-gnu/libm.so.6' '*lib/x86_64-linux-gnu/libncursesw.so.6' '*lib/x86_64-linux-gnu/libpanelw.so.6' '*lib/x86_64-linux-gnu/libreadline.so.8' '*lib/x86_64-linux-gnu/libsqlite3.so.0' '*lib/x86_64-linux-gnu/libssl.so.3' '*lib/x86_64-linux-gnu/libtinfo.so.6' '*lib/x86_64-linux-gnu/libuuid.so.1' '*lib/x86_64-linux-gnu/libz.so.1' '*lib/x86_64-linux-gnu/libzstd.so.1'
diversion by libreadline8t64 from: /lib/x86_64-linux-gnu/libreadline.so.8
diversion by libreadline8t64 to: /lib/x86_64-linux-gnu/libreadline.so.8.usr-is-merged
libreadline8t64:amd64: /usr/lib/x86_64-linux-gnu/libreadline.so.8

Hmm, maybe we can just ignore the diversions instead. 🤔

@tianon tianon force-pushed the trixie branch 4 times, most recently from 9113c8d to 9df07c8 Compare May 21, 2025 22:39
if rcVersion == "3.9" then "" else (
-}}
$(test "$gnuArch" != 'riscv64-linux-musl' && echo '--with-lto') \
$(test "${gnuArch%%-}" != 'riscv64' && echo '--with-lto') \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this %% syntax doens't seem to work for me, $(if ! echo "${gnuArch%%-}" | grep -q 'riscv64'; then echo '--with-lto' ; fi) does, but maybe there's a nicer way...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh, I missed the glob - it should be ${gnuArch%%-*} 🤦

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that works, thanks 👍🏿

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.

Trixie test builds Failed to build on debian:sid-slim
3 participants
0