chore: patch rhel10 build files
All checks were successful
ci/crow/manual/build/13 Pipeline was successful
ci/crow/manual/build/11 Pipeline was successful
ci/crow/manual/build/10 Pipeline was successful
ci/crow/manual/build/1 Pipeline was successful
ci/crow/manual/build/9 Pipeline was successful
ci/crow/manual/build/6 Pipeline was successful
ci/crow/manual/build/12 Pipeline was successful
ci/crow/manual/build/14 Pipeline was successful
ci/crow/manual/build/7 Pipeline was successful
ci/crow/manual/build/2 Pipeline was successful
ci/crow/manual/build/5 Pipeline was successful
ci/crow/manual/build/8 Pipeline was successful
ci/crow/manual/build/4 Pipeline was successful
ci/crow/manual/build/3 Pipeline was successful

This commit is contained in:
Patrick Schratz 2025-06-30 16:35:46 +02:00
commit f869bd86ed
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -1,4 +1,4 @@
FROM almalinux:10
FROM rockylinux/rockylinux:10
ENV OS_IDENTIFIER rhel-10
@ -59,7 +59,9 @@ RUN curl -LO "https://github.com/goreleaser/nfpm/releases/download/v2.18.1/nfpm_
RUN chmod 0777 /opt
# Configure flags for RHEL 9 that don't use the defaults in build.sh
# Configure flags for RHEL 10 that don't use the defaults in build.sh
# Since RHEL 9 with the R 4.3.0 release, RHEL/Fedora now uses FlexiBLAS as the
# default BLAS/LAPACK, which provides a native BLAS switching mechanism and matches EPEL.
ENV CONFIGURE_OPTIONS="\
--enable-R-shlib \
--with-tcltk \
@ -68,26 +70,25 @@ ENV CONFIGURE_OPTIONS="\
--with-system-valgrind-headers \
--with-tcl-config=/usr/lib64/tclConfig.sh \
--with-tk-config=/usr/lib64/tkConfig.sh \
--enable-prebuilt-html"
--enable-prebuilt-html \
--with-blas=flexiblas \
--with-lapack=flexiblas"
# RHEL 9 doesn't have the inconsolata font, so override the defaults.
# RHEL 10 doesn't have the inconsolata font, so override the defaults.
# This may be removed if RHEL ever adds the texlive-inconsolata package from Fedora.
# Or check `dnf provides '*/inconsolata.sty'` for a package that provides it.
# https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Making-the-manuals
ENV R_RD4PDF="times,hyper"
# Make sure that patching Java does not break R.
# R's default JAVA_HOME path includes the exact Java version on CentOS/RHEL, which
# R's default JAVA_HOME path includes the exact Java version on RHEL, which
# requires users to run `R CMD javareconf` even on minor/patch upgrades. Use the
# major version symlink to avoid this.
# https://cran.r-project.org/doc/manuals/r-release/R-admin.html#Java-support
# https://solutions.posit.co/envs-pkgs/using-rjava/
ENV JAVA_HOME=/usr/lib/jvm/jre-11-openjdk
ENV JAVA_HOME=/usr/lib/jvm/jre-21-openjdk
# R 3.x requires PCRE2 for Pango support on RHEL 9
ENV INCLUDE_PCRE2_IN_R_3 yes
COPY package.rhel-9 /package.sh
COPY package.rhel-10 /package.sh
COPY build.sh .
COPY patches /patches
ENTRYPOINT ./build.sh