Skip to content

Commit

Permalink
Patch OCaml instead of limits.h
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 authored and kit-ty-kate committed Nov 14, 2023
1 parent abe02fc commit b6dc7de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit b6dc7de

Please sign in to comment.