Build aarch64 Linux distributions on Debian 13 with a Debian 9 sysroot - #1241
Build aarch64 Linux distributions on Debian 13 with a Debian 9 sysroot#1241jjhelmus wants to merge 1 commit into
Conversation
Build aarch64 distributions on Debian Trixie while preserving glibc 2.17 compatibility through a Debian Stretch sysroot. Keep the host tools isolated from target libraries and remove sysroot flags from installed Python configuration.
|
This approach could also be applied to x86-64 with a Trixie build image and sysroot constructed from Jessie's Separating the build host from the target sysroot allows the LLVM package to be built for Trixie rather than an older Debian release. LLVM is a host tool, so it only needs to run in the modern build container. The GCC toolchain currently embedded in the LLVM package does need to be considered. It can likely be removed and replaced by Debian |
|
| # sysconfig would make downstream extension builds search a nonexistent root. | ||
| for flag in os.environ.get("EXTRA_TARGET_CFLAGS", "").split(): | ||
| if flag.startswith("--sysroot="): | ||
| replace_in_all(flag, "") |
There was a problem hiding this comment.
This actually misses the contents of lib/python3.14/_sysconfig_vars_*.json, it's just metadata though, sysconfig doesn't read it.
Use modern Debian 13 (Trixie) build containers to build Linux aarch64 distribution with a sysroot from Debian 9 (Stretch) to preserving compatibility with glibc 2.17.