From 05a334e05b31772583df26498c1c46020c3e0359 Mon Sep 17 00:00:00 2001 From: Jordan Crocker Date: Mon, 23 Nov 2026 15:13:13 +0000 Subject: [PATCH 1/2] Add PHP 8.5 support for excimer Builds excimer 1.2.7 from its source tag instead of `pecl install`. Excimer moved from PECL to PIE in 1.2.7, so PECL stops at 1.2.6; pinning the version also makes the build reproducible. Closes #655 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01L6cGkhCZHaodNMJigmq1PA --- layers/excimer/Dockerfile | 12 +++++++++++- layers/excimer/config.json | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/layers/excimer/Dockerfile b/layers/excimer/Dockerfile index 2fe3c165..ea9ee627 100644 --- a/layers/excimer/Dockerfile +++ b/layers/excimer/Dockerfile @@ -2,7 +2,17 @@ ARG PHP_VERSION ARG BREF_VERSION FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext -RUN pecl install excimer +# Excimer moved from PECL to PIE in 1.2.7, so PECL no longer has the latest release. +ENV EXCIMER_VERSION=1.2.7 +WORKDIR /tmp +RUN curl -Ls -o excimer.tar.gz https://github.com/wikimedia/mediawiki-php-excimer/archive/refs/tags/${EXCIMER_VERSION}.tar.gz && \ + tar xzf excimer.tar.gz && mv mediawiki-php-excimer-${EXCIMER_VERSION} excimer +WORKDIR /tmp/excimer +RUN phpize +RUN ./configure +RUN make -j $(nproc) +RUN make install + RUN cp `php-config --extension-dir`/excimer.so /tmp/excimer.so RUN echo 'extension=excimer.so' > /tmp/ext.ini diff --git a/layers/excimer/config.json b/layers/excimer/config.json index 2bf25de7..205ba218 100644 --- a/layers/excimer/config.json +++ b/layers/excimer/config.json @@ -2,6 +2,7 @@ "php": [ "82", "83", - "84" + "84", + "85" ] } From 3c31f63fbbea3ce3ea50a6c7a79defa9cbd3d686 Mon Sep 17 00:00:00 2001 From: Jordan Crocker Date: Mon, 23 Nov 2026 15:13:13 +0000 Subject: [PATCH 2/2] excimer: extract the source tarball without relying on its directory name Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01L6cGkhCZHaodNMJigmq1PA --- layers/excimer/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layers/excimer/Dockerfile b/layers/excimer/Dockerfile index ea9ee627..72a0ee01 100644 --- a/layers/excimer/Dockerfile +++ b/layers/excimer/Dockerfile @@ -5,8 +5,9 @@ FROM bref/build-php-$PHP_VERSION:$BREF_VERSION AS ext # Excimer moved from PECL to PIE in 1.2.7, so PECL no longer has the latest release. ENV EXCIMER_VERSION=1.2.7 WORKDIR /tmp -RUN curl -Ls -o excimer.tar.gz https://github.com/wikimedia/mediawiki-php-excimer/archive/refs/tags/${EXCIMER_VERSION}.tar.gz && \ - tar xzf excimer.tar.gz && mv mediawiki-php-excimer-${EXCIMER_VERSION} excimer +RUN mkdir excimer && \ + curl -fLs https://github.com/wikimedia/mediawiki-php-excimer/archive/refs/tags/${EXCIMER_VERSION}.tar.gz \ + | tar xz -C excimer --strip-components=1 WORKDIR /tmp/excimer RUN phpize RUN ./configure