From def53eb19588385b3a9378e9069e35188c30ad1d Mon Sep 17 00:00:00 2001 From: "Chris (SPG) McGee" Date: Fri, 8 Nov 2024 08:03:56 -0500 Subject: [PATCH] Add missing system packages needed for C++ on Debian 12, Fedora 39 While compiling swiftly on these new platforms there were missing headers and archives for Debian 12 and Fedora 39. Add these packages so that if the container is used to compile and link C++ code the necessary headers and archives are present. --- 5.10/debian/12/Dockerfile | 1 + 5.10/fedora/39/Dockerfile | 4 +++- 6.0/debian/12/Dockerfile | 1 + 6.0/fedora/39/Dockerfile | 4 +++- swift-ci/main/debian/12/Dockerfile | 3 ++- swift-ci/main/fedora/39/Dockerfile | 4 +++- 6 files changed, 13 insertions(+), 4 deletions(-) diff --git a/5.10/debian/12/Dockerfile b/5.10/debian/12/Dockerfile index 9dab3423..479d830a 100644 --- a/5.10/debian/12/Dockerfile +++ b/5.10/debian/12/Dockerfile @@ -18,6 +18,7 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap tzdata \ git \ gcc \ + libstdc++-12-dev \ && rm -r /var/lib/apt/lists/* # Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little diff --git a/5.10/fedora/39/Dockerfile b/5.10/fedora/39/Dockerfile index 90a5e19a..b24d3ca0 100644 --- a/5.10/fedora/39/Dockerfile +++ b/5.10/fedora/39/Dockerfile @@ -14,7 +14,9 @@ RUN yum -y install \ sqlite-devel \ libuuid-devel \ libxml2-devel \ - python3-devel + python3-devel \ + libstdc++-devel \ + libstdc++-static # Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little diff --git a/6.0/debian/12/Dockerfile b/6.0/debian/12/Dockerfile index e195a2b2..a5153528 100644 --- a/6.0/debian/12/Dockerfile +++ b/6.0/debian/12/Dockerfile @@ -18,6 +18,7 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap tzdata \ git \ gcc \ + libstdc++-12-dev \ && rm -r /var/lib/apt/lists/* # Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little diff --git a/6.0/fedora/39/Dockerfile b/6.0/fedora/39/Dockerfile index b6d2298b..66e7fade 100644 --- a/6.0/fedora/39/Dockerfile +++ b/6.0/fedora/39/Dockerfile @@ -14,7 +14,9 @@ RUN yum -y install \ sqlite-devel \ libuuid-devel \ libxml2-devel \ - python3-devel + python3-devel \ + libstdc++-devel \ + libstdc++-static # Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little diff --git a/swift-ci/main/debian/12/Dockerfile b/swift-ci/main/debian/12/Dockerfile index e4d04760..e2d90888 100644 --- a/swift-ci/main/debian/12/Dockerfile +++ b/swift-ci/main/debian/12/Dockerfile @@ -30,7 +30,8 @@ RUN apt-get -y update && apt-get -y install \ systemtap-sdt-dev \ tzdata \ uuid-dev \ - zip + zip \ + libstdc++-12-dev ARG SWIFT_PLATFORM=debian12 diff --git a/swift-ci/main/fedora/39/Dockerfile b/swift-ci/main/fedora/39/Dockerfile index e3d16d57..b607302d 100644 --- a/swift-ci/main/fedora/39/Dockerfile +++ b/swift-ci/main/fedora/39/Dockerfile @@ -25,7 +25,9 @@ RUN yum install -y \ cmake \ zip \ unzip \ - diffutils + diffutils \ + libstdc++-devel \ + libstdc++-static ARG SWIFT_PLATFORM=fedora39 ARG SWIFT_VERSION=5.10.1