r-builds/builder/Dockerfile.debian-11
Greg Lin 3d3918230c Include PCRE2 in R 3.x on Debian 11 for Pango support
In Debian 11, Pango now depends on PCRE2, so R 3.x will not be compiled with
Pango support if we hide PCRE2 to prevent R 3.5 and 3.6 from taking an unnecessary
dependency on PCRE2.

To check if R 3.x was compiled without Pango support, look for this line in the
configure output:

checking whether pkg-config knows about cairo and pango... no

Or in R, check if the "bitmapType" option defaults to "Xlib" instead of "Cairo":

> getOption("bitmapType")
"Xlib"
2022-03-21 16:21:25 -05:00

27 lines
679 B
Text

FROM debian:bullseye
ENV OS_IDENTIFIER debian-11
RUN set -x \
&& export DEBIAN_FRONTEND=noninteractive \
&& echo 'deb-src http://deb.debian.org/debian bullseye main' >> /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y gcc libcurl4-openssl-dev libicu-dev \
libopenblas-base libpcre2-dev make python3-pip ruby ruby-dev wget \
&& apt-get build-dep -y r-base
RUN pip3 install awscli
RUN chmod 0777 /opt
RUN gem install fpm
# Override the default pager used by R
ENV PAGER /usr/bin/pager
# R 3.x requires PCRE2 for Pango support on Debian 11
ENV INCLUDE_PCRE2_IN_R_3 yes
COPY package.debian-11 /package.sh
COPY build.sh .
ENTRYPOINT ./build.sh