From 19a02848a6b9518e82b1a1c0d1807b71e43214fe Mon Sep 17 00:00:00 2001 From: bailey Date: Wed, 1 Oct 2025 16:05:51 -0600 Subject: [PATCH 1/3] test rhel80 builds --- .github/docker/Dockerfile.glibc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/docker/Dockerfile.glibc b/.github/docker/Dockerfile.glibc index 2dc4991..6ca3120 100644 --- a/.github/docker/Dockerfile.glibc +++ b/.github/docker/Dockerfile.glibc @@ -1,4 +1,4 @@ -FROM ubuntu:noble AS build +FROM redhat/ubi8 AS build ARG NODE_VERSION=20.19.0 # Possible values: s390x, arm64, x64 From 108ec00f1b15ee0916be0d5b80894e502035a953 Mon Sep 17 00:00:00 2001 From: bailey Date: Thu, 2 Oct 2025 11:15:49 -0600 Subject: [PATCH 2/3] test for libc --- .github/docker/Dockerfile.glibc | 2 +- test/unit/glibc.test.ts | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 test/unit/glibc.test.ts diff --git a/.github/docker/Dockerfile.glibc b/.github/docker/Dockerfile.glibc index 6ca3120..5aeb434 100644 --- a/.github/docker/Dockerfile.glibc +++ b/.github/docker/Dockerfile.glibc @@ -10,7 +10,7 @@ ENV PATH=$PATH:/nodejs/bin WORKDIR /mongodb-client-encryption COPY . . -RUN apt-get -qq update && apt-get -qq install -y python3 build-essential git && ldd --version +RUN yum install -y python39 git make gcc-c++ RUN npm run install:libmongocrypt diff --git a/test/unit/glibc.test.ts b/test/unit/glibc.test.ts new file mode 100644 index 0000000..ad31b81 --- /dev/null +++ b/test/unit/glibc.test.ts @@ -0,0 +1,21 @@ +import { expect } from 'chai'; +import { execSync } from 'child_process'; + +describe('glibc requirements', function () { + let lddOutput: string; + beforeEach(function () { + if (process.platform !== 'linux') return this.skip(); + + try { + lddOutput = execSync('ldd --version', { encoding: 'utf8' }); + } catch { + this.skip(); + } + + return; + }); + + it('glibc is 2.28', function () { + expect(lddOutput).to.contain('2.28'); + }); +}); From 62420e50a3d7ec597f6889d2b64d1f54b8abf180 Mon Sep 17 00:00:00 2001 From: bailey Date: Thu, 2 Oct 2025 11:26:35 -0600 Subject: [PATCH 3/3] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b04ee8..e13b34b 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Only suitable for local development: Below are the platforms that are available as prebuilds on each github release. `prebuild-install` downloads these automatically depending on the platform you are running npm install on. -- Linux GLIBC 2.23 or later +- Linux GLIBC 2.28 or later - s390x - arm64 - x64