Use Debian 13 build images for x86-64 Linux - #1254
Open
jjhelmus wants to merge 2 commits into
Open
Conversation
Build x86-64 distributions on Debian Trixie while preserving glibc 2.17 compatibility through a Debian Hessie sysroot. Keep the host tools isolated from target libraries and remove sysroot flags from installed Python configuration.
Contributor
Author
Contributor
Author
|
I looked into building the older version of
These seems like a option than can be considered but is not needed at this time. |
ewdurbin
approved these changes
Sep 8, 2026
ewdurbin
left a comment
Contributor
There was a problem hiding this comment.
👍🏼 with an alternative that goes back to trusted pinning over ignoring expired gpg keys.
i guess you could have both?
Comment on lines
+14
to
+25
| RUN mmdebstrap --variant=extract --mode=root \ | ||
| --skip=chroot/mount \ | ||
| --architectures=amd64 \ | ||
| --keyring=/usr/share/keyrings/debian-archive-removed-keys.gpg \ | ||
| --aptopt='Acquire::Check-Valid-Until "false"' \ | ||
| --aptopt='Acquire::Retries "5"' \ | ||
| --aptopt='Apt::Key::gpgvcommand "/usr/libexec/mmdebstrap/gpgvnoexpkeysig"' \ | ||
| --include=libc6,libc6-dev,linux-libc-dev,symlinks \ | ||
| jessie /sysroot \ | ||
| 'deb [signed-by=126C0D24BD8A2942CC7DF8AC7638D0442B90D010!] https://snapshot.debian.org/archive/debian/20230322T152120Z/ jessie main' \ | ||
| 'deb [signed-by=126C0D24BD8A2942CC7DF8AC7638D0442B90D010!] https://snapshot.debian.org/archive/debian/20230322T152120Z/ jessie-updates main' \ | ||
| 'deb [signed-by=D21169141CECD440F2EB8DDA9D6D8F6BC857C906!] https://snapshot.debian.org/archive/debian-security/20230322T152120Z/ jessie/updates main' |
Contributor
There was a problem hiding this comment.
If you add in the similar checksum validated pull from the other PR like:
{% for repository, suite, sha256 in [
('debian', 'jessie', '7240a1c6ce11c3658d001261e77797818e610f7da6c2fb1f98a24fdbf4e8d84c'),
('debian', 'jessie-updates', 'f61f27bd17de546264aa58f40f3aafaac7021e0ef69c17f6b1b4cd7664a037ec'),
('debian-security', 'jessie/updates', '3da1205c671e38db711a76403b27f1b3e0b84766edcf717a4b9daea9d4c693b2'),
] %}
ADD --checksum=sha256:{{ sha256 }} \
https://snapshot.debian.org/archive/{{ repository }}/20230322T152120Z/dists/{{ suite }}/main/binary-amd64/Packages.gz \
/pinned-jessie-lists/snapshot.debian.org_archive_{{ repository }}_20230322T152120Z_dists_{{ suite | replace('/', '_') }}_main_binary-amd64_Packages.gz
{% endfor %}
you could modify the mmdebstrap call like so and drop gpgv from the apt install
Suggested change
| RUN mmdebstrap --variant=extract --mode=root \ | |
| --skip=chroot/mount \ | |
| --architectures=amd64 \ | |
| --keyring=/usr/share/keyrings/debian-archive-removed-keys.gpg \ | |
| --aptopt='Acquire::Check-Valid-Until "false"' \ | |
| --aptopt='Acquire::Retries "5"' \ | |
| --aptopt='Apt::Key::gpgvcommand "/usr/libexec/mmdebstrap/gpgvnoexpkeysig"' \ | |
| --include=libc6,libc6-dev,linux-libc-dev,symlinks \ | |
| jessie /sysroot \ | |
| 'deb [signed-by=126C0D24BD8A2942CC7DF8AC7638D0442B90D010!] https://snapshot.debian.org/archive/debian/20230322T152120Z/ jessie main' \ | |
| 'deb [signed-by=126C0D24BD8A2942CC7DF8AC7638D0442B90D010!] https://snapshot.debian.org/archive/debian/20230322T152120Z/ jessie-updates main' \ | |
| 'deb [signed-by=D21169141CECD440F2EB8DDA9D6D8F6BC857C906!] https://snapshot.debian.org/archive/debian-security/20230322T152120Z/ jessie/updates main' | |
| RUN mmdebstrap --variant=extract --mode=root \ | |
| --skip=chroot/mount \ | |
| --skip=update \ | |
| --architectures=amd64 \ | |
| --aptopt='Acquire::Retries "5"' \ | |
| --setup-hook='cp /pinned-jessie-lists/* "$1/var/lib/apt/lists/"' \ | |
| --include=libc6,libc6-dev,linux-libc-dev,symlinks \ | |
| jessie /sysroot \ | |
| 'deb [trusted=yes] https://snapshot.debian.org/archive/debian/20230322T152120Z/ jessie main' \ | |
| 'deb [trusted=yes] https://snapshot.debian.org/archive/debian/20230322T152120Z/ jessie-updates main' \ | |
| 'deb [trusted=yes] https://snapshot.debian.org/archive/debian-security/20230322T152120Z/ jessie/updates main' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use modern Debian 13 (Trixie) build containers to build Linux x86-64 distribution with a sysroot from Debian 8 (Jessie) to preserving compatibility with glibc 2.17.
The
--sysrootflags are removed from sysconfig based off addition done in #1241.This similar to the approach in #1241 and #1253