From 10db0c99cee79a8466f4fc5cbb4a0ac912cb2ded Mon Sep 17 00:00:00 2001 From: Moctar Date: Wed, 17 Jul 2024 14:56:03 +0200 Subject: [PATCH] PHRAS-4086 upgrade poppler for pdftotext-exception --- Dockerfile | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 349e220..f683af5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,7 @@ ENV PHPIZE_DEPS \ g++ \ gcc \ libc-dev \ + cmake \ make \ pkg-config \ re2c @@ -50,7 +51,6 @@ ENV PHRASEANET_DEPS \ mcrypt \ unoconv \ unzip \ - poppler-utils \ libreoffice-base-core \ libreoffice-impress \ libreoffice-calc \ @@ -81,11 +81,22 @@ ENV PHRASEANET_DEPS \ libfreetype6-dev \ libldap2-dev \ libdc1394-dev \ - nano + nano \ + libfontconfig-dev \ + libnss3-dev \ + libgpgmepp-dev \ + qt6-base-dev \ + qtbase5-dev \ + libnss3-dev \ + libgpgmepp-dev \ + libcairo2-dev \ + libboost-dev # persistent / runtime deps + RUN set -eux; \ - apt-get update; \ + echo "deb http://deb.debian.org/debian bullseye-backports main" > /etc/apt/sources.list.d/backport.list \ + && apt-get update; \ apt-get install -y --no-install-recommends \ $PHPIZE_DEPS \ ca-certificates \ @@ -94,6 +105,20 @@ RUN set -eux; \ $PHRASEANET_DEPS \ ; \ rm -rf /var/lib/apt/lists/* + +RUN set -eux; \ + mkdir /tmp/poppler \ + && cd /tmp/poppler \ + && wget https://poppler.freedesktop.org/poppler-23.12.0.tar.xz \ + && tar -xvf poppler-23.12.0.tar.xz \ + && cd poppler-23.12.0 \ + && mkdir build \ + && cd build \ + && git clone git://git.freedesktop.org/git/poppler/test \ + && cmake -DENABLE_LIBCURL=OFF -DENABLE_GPGME=OFF -DTESTDATADIR=./test -DCMAKE_INSTALL_MANDIR:PATH=/usr/local/share/man .. \ + && make \ + && make install + RUN set -eux; \ mkdir /tmp/icu \ && cd /tmp/icu \