From 50341bd5fddf8fffc878e7f34a4145a053b3d0ca Mon Sep 17 00:00:00 2001 From: David Allsopp Date: Wed, 14 Dec 2022 14:40:07 +0000 Subject: [PATCH] Patch OCaml instead of limits.h --- release/Dockerfile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/Dockerfile.in b/release/Dockerfile.in index c34b5c114db..664f14aa957 100644 --- a/release/Dockerfile.in +++ b/release/Dockerfile.in @@ -4,7 +4,6 @@ FROM multiarch/alpine:%TARGET_TAG% LABEL Description="opam release builds" Vendor="OCamlPro" Version="1.0" RUN apk add gcc g++ make coreutils openssl -RUN sed -i -e '/ NGROUPS_MAX /s/32/65536/' /usr/include/limits.h RUN addgroup -S opam && adduser -S opam -G opam -s /bin/sh @@ -15,6 +14,7 @@ RUN tar xzf %OCAMLV%.tar.gz WORKDIR ocaml-%OCAMLV% RUN sed -i 's/gnueabi/*eabi/' configure RUN sed -i 's/musl/musl*/' configure +RUN sed -i -e 's/NGROUPS_MAX/65536/' otherlibs/unix/getgroups.c RUN ./configure %CONF% -prefix /usr/local RUN make "-j$(nproc)" && make install && rm -rf /root/ocaml-%OCAMLV% /root/ocaml-%OCAMLV%.tar.gz