Skip to content

Commit c215be2

Browse files
fix(NODE-7226): build glibc prebuilds on platforms with libc 2.28 (#281)
1 parent 2faa561 commit c215be2

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/docker/Dockerfile.glibc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:noble AS build
1+
FROM redhat/ubi8 AS build
22

33
# Possible values: s390x, arm64, x64
44
ARG NODE_ARCH
@@ -9,7 +9,9 @@ ENV PATH=$PATH:/nodejs/bin
99
WORKDIR /kerberos
1010
COPY . .
1111

12-
RUN apt-get -qq update && apt-get -qq install -y python3 build-essential libkrb5-dev && ldd --version
12+
RUN yum install -y python39 git make gcc-c++ krb5-devel
13+
14+
RUN if [[ $(ldd --version) =~ "2.28" ]]; then echo "using glibc 2.28"; else echo "glibc version is not 2.28. bailing..." && exit 1; fi
1315

1416
RUN node .github/scripts/build.mjs
1517

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ npm install kerberos
5959
Below are the platforms that are available as prebuilds on each github release.
6060
`prebuild-install` downloads these automatically depending on the platform you are running npm install on.
6161

62-
- Linux GLIBC 2.23 or later
62+
- Linux GLIBC 2.28 or later
6363
- s390x
6464
- arm64
6565
- x64

etc/README.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ npm install kerberos
5959
Below are the platforms that are available as prebuilds on each github release.
6060
`prebuild-install` downloads these automatically depending on the platform you are running npm install on.
6161

62-
- Linux GLIBC 2.23 or later
62+
- Linux GLIBC 2.28 or later
6363
- s390x
6464
- arm64
6565
- x64

0 commit comments

Comments
 (0)