Skip to content

Commit 59a617b

Browse files
Radiergummiclaude
andcommitted
Install libtool wherever PIE builds extensions
PIE warns about missing libtoolize/glibtoolize on every invocation, cluttering the build logs of all variants: neither the Debian nor the Alpine PHPIZE_DEPS include libtool. Add it to the builder dependencies and to the dev stages' Xdebug install step in all three Dockerfiles. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d1810e0 commit 59a617b

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ RUN --mount=type=bind,from=pie,source=/pie,target=/usr/bin/pie \
5959
zlib1g-dev \
6060
libuv1-dev \
6161
libpq-dev \
62+
libtool \
6263
git \
6364
;
6465
# endregion
@@ -175,6 +176,15 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
175176
ln -sf "${PHP_INI_DIR}/php.ini-development" "${PHP_INI_DIR}/php.ini"
176177

177178
# region Install XDebug
179+
# libtool is required by PIE to build extensions
180+
export DEBIAN_FRONTEND=noninteractive
181+
apt-get update
182+
apt-get install \
183+
--yes \
184+
--no-install-recommends \
185+
libtool \
186+
;
187+
178188
# TODO: Switch to stable when available
179189
if php --version | grep -q "PHP 8\.5"; then
180190
pie install xdebug/xdebug:@alpha

alpine.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ RUN --mount=type=bind,from=pie,source=/pie,target=/usr/bin/pie \
4848
libuv-dev \
4949
curl-dev \
5050
pcre-dev \
51+
libtool \
5152
icu-dev \
5253
git \
5354
;
@@ -191,6 +192,7 @@ RUN --mount=type=bind,from=pie,source=/pie,target=/usr/bin/pie \
191192
--virtual .build-deps \
192193
${PHPIZE_DEPS} \
193194
linux-headers \
195+
libtool \
194196
;
195197

196198
# TODO: Switch to stable when available

frankenphp.Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
5959
zlib1g-dev \
6060
libuv1-dev \
6161
libpq-dev \
62+
libtool \
6263
git \
6364
;
6465
# endregion
@@ -185,6 +186,15 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
185186
ln -sf "${PHP_INI_DIR}/php.ini-development" "${PHP_INI_DIR}/php.ini"
186187

187188
# region Install XDebug
189+
# libtool is required by PIE to build extensions
190+
export DEBIAN_FRONTEND=noninteractive
191+
apt-get update
192+
apt-get install \
193+
--yes \
194+
--no-install-recommends \
195+
libtool \
196+
;
197+
188198
# TODO: Switch to stable when available
189199
if php --version | grep -q "PHP 8\.5"; then
190200
pie install xdebug/xdebug:@alpha

0 commit comments

Comments
 (0)