CI: install python3-dev explicitly in the Ubuntu container images - #81
Merged
Conversation
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.
The weekly
containersworkflow failed on 2026-09-06 (run 34023141569) in theoshmpi_ubuntuandsos_ubuntujobs.pip install .dies while compiling the cffi module:None of the Ubuntu Dockerfiles install
python3-dev. The headers used to arrive indirectly: on Ubuntu 26.04 (currentubuntu:latest)python3-piponly Recommendspython3-dev, and apt honored that as long as the whole chain (python3-dev→python3.14-dev→libpython3.14-dev→zlib1g-dev→zlib1g (= same version)) could be added without touching packages already in the base image. On 2026-08-31 a zlib security update (CVE-2026-27171) was published, sozlib1g-devnow requires upgrading the preinstalledzlib1g. apt does not upgrade installed packages to satisfy a Recommends, so it silently dropspython3-dev(the build log showsRecommended packages: python3-dev) and the extension no longer builds. The Aug 30 (green) and Sep 6 (red) runs used the same base image digest and the same Python packages; only zlib differs.osss_ubuntuandoshmem_ubuntustill pass becauselibpmix-devpullspython3-devin as a hard dependency. The Fedora images already installpython3-develexplicitly.Fix: add
python3-devto the apt line in all four Ubuntu Dockerfiles. As a hard dependency it makes apt upgradezlib1gwhen needed, so the headers get installed even whenubuntu:latesthas not yet been rebuilt with the latest library updates.