From e9da59ebe007d85f1728c50f143b92932d4b7672 Mon Sep 17 00:00:00 2001 From: openeuler_bot Date: Sun, 17 Aug 2025 02:04:07 +0000 Subject: [PATCH] 24.03-lts-sp1 update glibc to 2.42 --- Others/glibc/2.42/24.03-lts-sp1/Dockerfile | 31 ++++++++++++++++++++++ Others/glibc/meta.yml | 3 +++ 2 files changed, 34 insertions(+) create mode 100644 Others/glibc/2.42/24.03-lts-sp1/Dockerfile diff --git a/Others/glibc/2.42/24.03-lts-sp1/Dockerfile b/Others/glibc/2.42/24.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..dda6de2a --- /dev/null +++ b/Others/glibc/2.42/24.03-lts-sp1/Dockerfile @@ -0,0 +1,31 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM ${BASE} as BUILDER +ARG VERSION=2.42 + +RUN dnf update -y && \ + dnf install -y \ + bison \ + gcc \ + gcc-c++ \ + make \ + wget \ + xz \ + && dnf clean all \ + && rm -rf /var/cache/dnf/* + +WORKDIR /opt + +RUN wget https://mirrors.tuna.tsinghua.edu.cn/gnu/glibc/glibc-${VERSION}.tar.xz \ + && tar -xvf glibc-${VERSION}.tar.xz \ + && rm -f glibc-${VERSION}.tar.xz + +WORKDIR /opt/glibc-${VERSION}/build + +RUN ../configure --prefix=/usr/local/glibc && \ + make -j$(nproc) && \ + make install + +FROM ${BASE} +COPY --from=BUILDER /usr/local/glibc /usr/local/glibc +WORKDIR /usr/local/glibc +CMD ["./bin/ldd", "--version"] diff --git a/Others/glibc/meta.yml b/Others/glibc/meta.yml index 4283be59..e163e3a8 100644 --- a/Others/glibc/meta.yml +++ b/Others/glibc/meta.yml @@ -1,2 +1,5 @@ 2.41-oe2403sp1: path: 2.41/24.03-lts-sp1/Dockerfile + +2.42-oe2403sp1: + path: 2.42/24.03-lts-sp1/Dockerfile \ No newline at end of file -- Gitee