From 8efc0212efb50784d26ef7644d91a6bb1705b4f3 Mon Sep 17 00:00:00 2001 From: openeuler_bot Date: Thu, 25 Sep 2025 00:04:33 +0000 Subject: [PATCH] 24.03-lts-sp2 update glibc to 2.42 --- Others/glibc/2.42/24.03-lts-sp2/Dockerfile | 31 ++++++++++++++++++++++ Others/glibc/README.md | 1 + Others/glibc/doc/image-info.yml | 1 + Others/glibc/meta.yml | 4 ++- 4 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 Others/glibc/2.42/24.03-lts-sp2/Dockerfile diff --git a/Others/glibc/2.42/24.03-lts-sp2/Dockerfile b/Others/glibc/2.42/24.03-lts-sp2/Dockerfile new file mode 100644 index 00000000..457f914d --- /dev/null +++ b/Others/glibc/2.42/24.03-lts-sp2/Dockerfile @@ -0,0 +1,31 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp2 +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/README.md b/Others/glibc/README.md index e0f21410..a9c1e356 100644 --- a/Others/glibc/README.md +++ b/Others/glibc/README.md @@ -20,6 +20,7 @@ Learn more about Glibc on [Glibc Website](https://sourceware.org/glibc/)⁠. The tag of each `glibc` docker image is consist of the version of `glibc` and the version of basic image. The details are as follows | Tag | Currently | Architectures | |----------|-------------|------------------| +|[2.42-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/glibc/2.42/24.03-lts-sp2/Dockerfile) | glibc 2.42 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[2.41-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/glibc/2.41/24.03-lts-sp1/Dockerfile)| glibc 2.41 on openEuler 24.03-LTS-SP1 | amd64, arm64 | # Usage diff --git a/Others/glibc/doc/image-info.yml b/Others/glibc/doc/image-info.yml index effeeb01..36e926d1 100644 --- a/Others/glibc/doc/image-info.yml +++ b/Others/glibc/doc/image-info.yml @@ -11,6 +11,7 @@ tags: | | Tag | Currently | Architectures | |----------|-------------|------------------| + |[2.42-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/glibc/2.42/24.03-lts-sp2/Dockerfile) | glibc 2.42 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[2.41-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/glibc/2.41/24.03-lts-sp1/Dockerfile)| glibc 2.41 on openEuler 24.03-LTS-SP1 | amd64, arm64 | download: | diff --git a/Others/glibc/meta.yml b/Others/glibc/meta.yml index e163e3a8..cf8ea60e 100644 --- a/Others/glibc/meta.yml +++ b/Others/glibc/meta.yml @@ -2,4 +2,6 @@ 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 + path: 2.42/24.03-lts-sp1/Dockerfile +2.42-oe2403sp2: + path: 2.42/24.03-lts-sp2/Dockerfile \ No newline at end of file -- Gitee