由于缺少 pixman 依赖项,开罗 docker 构建失败

Cairo docker build fails due to missing pixman dependency

我正在升级 docker 图像我必须使用最新的 Cairo,cairo-1.17.2。 当我尝试构建它时,出现以下错误:

#12 8.793 checking for pixman... no
#12 8.801 checking whether cairo's image surface backend feature could be enabled... no 

(requires pixman-1 >= 0.36.0 https://cairographics.org/releases/)
#12 8.802 configure: error: mandatory image surface backend feature could not be enabled

docker文件是:

FROM node:10.15

RUN apt-get update  && apt-get install -y \
    python3 \
    python3-pip \
    python3-setuptools \
    wget \
    poppler-utils \
    jq \
    pdftk \
    ghostscript \
    ffmpeg \
    build-essential cmake libfontforge-dev wget \
    libpoppler-private-dev \
    pkg-config \
    cmake \
    make \
    gcc \
    g++ \
    libcairo-dev \
    libspiro-dev \
    libpng-dev \
    libjpeg-dev \
    libpoppler-dev \
    libpango1.0-dev \
    libfontforge-dev \
    poppler-data \
    openjdk-8-jre-headless \
    && pip3 install --upgrade pip \
    && apt-get clean

RUN pip3 --no-cache-dir install --upgrade awscli

WORKDIR /tmp

ADD lib/cairo-1.17.2.tar.xz /tmp
WORKDIR /tmp/cairo-1.17.2
RUN ./configure --prefix=/tmp/cairob && make && make install
RUN cp -r /tmp/cairob/lib/* /usr/lib/x86_64-linux-gnu/

我搜索了可能使用 apt-get 安装 pixman,但找不到。

请指教

https://lists.cairographics.org/archives/cairo/2020-December/029164.html and https://lists.cairographics.org/archives/cairo/2020-December/029165.html

基本上:我想您需要自己构建 pixman 或获取不太古老的基础图像。