mlocati / docker-php-extension-installer

Easily install PHP extensions in Docker containers
MIT License
4.16k stars 378 forks source link

Temporary packages were not removed (repost) #944

Closed shinsenter closed 1 month ago

shinsenter commented 1 month ago

Version of install-php-extensions

v.2.2.19

Error description

Hello, thank you for creating a wonderful tool that simplifies the installation of PHP modules on Docker containers.

Recently, I tried using IPE for PHP 8.4-rc containers. I understand that IPE currently doesn't support this PHP version. The issue I'm facing is that while installing the Redis module with IPE fails (error log attached below), IPE does not remove the temporary packages.

Before: 105.9M  /

install-php-extensions v.2.2.19
#StandWithUkraine
### ERROR: Unsupported PHP version: 8.4 ###
Updating channel "pecl.php.net"
Channel "pecl.php.net" is up to date
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/aarch64/APKINDEX.tar.gz
v3.20.1-138-gdca7b7c7495 [https://dl-cdn.alpinelinux.org/alpine/v3.20/main]
v3.20.1-147-gcfcc957f2fc [https://dl-cdn.alpinelinux.org/alpine/v3.20/community]
OK: 24038 distinct packages available
### MARKING PRE-INSTALLED PACKAGES AS IN-USE ###
# Packages: zstd-libs
OK: 22 MiB in 38 packages
### INSTALLING REQUIRED PACKAGES ###
# Packages to be kept after installation: lz4-libs
# Packages to be used only for installation: m4 libbz2 perl autoconf libmd dpkg pkgconf dpkg-dev libmagic file libgcc libstdc++ libstdc++-dev jansson binutils libgomp libatomic gmp isl26 mpfr4 mpc1 gcc musl-dev g++ lz4-dev make re2c zstd zstd-dev
(1/30) Installing m4 (1.4.19-r3)
(2/30) Installing libbz2 (1.0.8-r6)
(3/30) Installing perl (5.38.2-r0)
(4/30) Installing autoconf (2.72-r0)
(5/30) Installing libgcc (13.2.1_git20240309-r0)
(6/30) Installing jansson (2.14-r4)
(7/30) Installing libstdc++ (13.2.1_git20240309-r0)
(8/30) Installing binutils (2.42-r0)
(9/30) Installing libmd (1.1.0-r0)
(10/30) Installing dpkg (1.22.6-r1)
(11/30) Installing pkgconf (2.2.0-r0)
(12/30) Installing dpkg-dev (1.22.6-r1)
(13/30) Installing libmagic (5.45-r1)
(14/30) Installing file (5.45-r1)
(15/30) Installing libstdc++-dev (13.2.1_git20240309-r0)
(16/30) Installing libgomp (13.2.1_git20240309-r0)
(17/30) Installing libatomic (13.2.1_git20240309-r0)
(18/30) Installing gmp (6.3.0-r1)
(19/30) Installing isl26 (0.26-r1)
(20/30) Installing mpfr4 (4.2.1-r0)
(21/30) Installing mpc1 (1.3.1-r1)
(22/30) Installing gcc (13.2.1_git20240309-r0)
(23/30) Installing musl-dev (1.2.5-r0)
(24/30) Installing g++ (13.2.1_git20240309-r0)
(25/30) Installing lz4-libs (1.9.4-r5)
(26/30) Installing lz4-dev (1.9.4-r5)
(27/30) Installing make (4.4.1-r2)
(28/30) Installing re2c (3.1-r0)
(29/30) Installing zstd (1.5.6-r0)
(30/30) Installing zstd-dev (1.5.6-r0)
Executing busybox-1.36.1-r29.trigger
OK: 275 MiB in 68 packages
### INSTALLING REMOTE MODULE redis ###
downloading redis-6.0.2.tgz ...
Starting to download redis-6.0.2.tgz (365,966 bytes)
..........................................................................done: 365,966 bytes
43 source files, building
running: phpize
Configuring for:
PHP Version:             8.4
PHP Api Version:         20230901
Zend Module Api No:      20230901
Zend Extension Api No:   420230901
enable igbinary serializer support? [no] : enable lzf compression support? [no] : enable zstd compression support? [no] : enable msgpack serializer support? [no] : enable lz4 compression? [no] : use system liblz4? [yes] : building in /tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2
running: /tmp/pear/temp/redis/configure --with-php-config=/usr/local/bin/php-config --enable-redis-igbinary=no --enable-redis-lzf=yes --enable-redis-zstd=yes --enable-redis-msgpack=no --enable-redis-lz4=yes --with-liblz4
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking how to run the C preprocessor... cc -E
checking for egrep -e... (cached) /bin/grep -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -Wl,-rpath,... yes
checking build system type... aarch64-unknown-linux-musl
checking host system type... aarch64-unknown-linux-musl
checking target system type... aarch64-unknown-linux-musl
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20230901
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable redis support... yes, shared
checking whether to enable sessions... yes
checking whether to enable json serializer support... yes
checking whether to enable igbinary serializer support... no
checking whether to enable msgpack serializer support... no
checking whether to enable lzf compression... yes
checking use system liblzf... no
checking whether to enable Zstd compression... yes
checking use system libzstd... yes
checking whether to enable lz4 compression... yes
checking use system liblz4... yes
checking for hash includes... /usr/local/include/php
checking for json includes... /usr/local/include/php
checking for redis json support... enabled
checking for redis igbinary support... disabled
checking for pkg-config... /usr/bin/pkg-config
checking for liblz4 using pkg-config... found version 1.9.4
checking for libzstd using pkg-config... found version 1.5.6
checking for git... no
checking for a sed that does not truncate output... /bin/sed
checking for ld used by cc... /usr/aarch64-alpine-linux-musl/bin/ld
checking if the linker (/usr/aarch64-alpine-linux-musl/bin/ld) is GNU ld... yes
checking for /usr/aarch64-alpine-linux-musl/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/aarch64-alpine-linux-musl/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating build directories
configure: creating Makefile
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
running: make -j10
/bin/sh /tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/libtool --tag=CC --mode=compile cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis.c -o redis.lo  -MMD -MF redis.dep -MT redis.lo
/bin/sh /tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/libtool --tag=CC --mode=compile cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis_commands.c -o redis_commands.lo  -MMD -MF redis_commands.dep -MT redis_commands.lo
/bin/sh /tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/libtool --tag=CC --mode=compile cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/library.c -o library.lo  -MMD -MF library.dep -MT library.lo
/bin/sh /tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/libtool --tag=CC --mode=compile cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis_session.c -o redis_session.lo  -MMD -MF redis_session.dep -MT redis_session.lo
/bin/sh /tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/libtool --tag=CC --mode=compile cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis_array.c -o redis_array.lo  -MMD -MF redis_array.dep -MT redis_array.lo
/bin/sh /tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/libtool --tag=CC --mode=compile cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis_array_impl.c -o redis_array_impl.lo  -MMD -MF redis_array_impl.dep -MT redis_array_impl.lo
/bin/sh /tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/libtool --tag=CC --mode=compile cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis_cluster.c -o redis_cluster.lo  -MMD -MF redis_cluster.dep -MT redis_cluster.lo
/bin/sh /tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/libtool --tag=CC --mode=compile cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/cluster_library.c -o cluster_library.lo  -MMD -MF cluster_library.dep -MT cluster_library.lo
/bin/sh /tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/libtool --tag=CC --mode=compile cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis_sentinel.c -o redis_sentinel.lo  -MMD -MF redis_sentinel.dep -MT redis_sentinel.lo
/bin/sh /tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/libtool --tag=CC --mode=compile cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf  -DHAVE_CONFIG_H  -g -O2 -D_GNU_SOURCE    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/sentinel_library.c -o sentinel_library.lo  -MMD -MF sentinel_library.dep -MT sentinel_library.lo
mkdir .libs
 cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis_commands.c -MMD -MF redis_commands.dep -MT redis_commands.lo  -fPIC -DPIC -o .libs/redis_commands.o
 cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis_session.c -MMD -MF redis_session.dep -MT redis_session.lo  -fPIC -DPIC -o .libs/redis_session.o
 cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis_array_impl.c -MMD -MF redis_array_impl.dep -MT redis_array_impl.lo  -fPIC -DPIC -o .libs/redis_array_impl.o
 cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/cluster_library.c -MMD -MF cluster_library.dep -MT cluster_library.lo  -fPIC -DPIC -o .libs/cluster_library.o
 cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis_cluster.c -MMD -MF redis_cluster.dep -MT redis_cluster.lo  -fPIC -DPIC -o .libs/redis_cluster.o
 cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/library.c -MMD -MF library.dep -MT library.lo  -fPIC -DPIC -o .libs/library.o
 cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis.c -MMD -MF redis.dep -MT redis.lo  -fPIC -DPIC -o .libs/redis.o
 cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis_array.c -MMD -MF redis_array.dep -MT redis_array.lo  -fPIC -DPIC -o .libs/redis_array.o
 cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/redis_sentinel.c -MMD -MF redis_sentinel.dep -MT redis_sentinel.lo  -fPIC -DPIC -o .libs/redis_sentinel.o
 cc -I. -I/tmp/pear/temp/redis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/php/ext -I/tmp/pear/temp/pear-build-defaultuser1o8ki2474sfk9pIkgOo/redis-6.0.2/liblzf -I/tmp/pear/temp/redis/liblzf -DHAVE_CONFIG_H -g -O2 -D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/redis/sentinel_library.c -MMD -MF sentinel_library.dep -MT sentinel_library.lo  -fPIC -DPIC -o .libs/sentinel_library.o
/tmp/pear/temp/redis/library.c:59:10: fatal error: ext/standard/php_rand.h: No such file or directory
   59 | #include <ext/standard/php_rand.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/tmp/pear/temp/redis/redis.c:30:10: fatal error: standard/php_random.h: No such file or directory
   30 | #include <standard/php_random.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:210: library.lo] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Makefile:204: redis.lo] Error 1
ERROR: `make -j10' failed

After: 556.8M   /

--> Temporary packages should be removed after all.

I would like to have an option that allows IPE to continue even if one of the package installations fails, and IPE should also clean up the temporary packages at the end of the process.

I look forward to the release of a new IPE version (#940) that supports PHP 8.4 soon.

Docker image

php:8.4-rc-cli-alpine

Minimal Dockerfile

FROM php:8.4-rc-cli-alpine

ARG IPE_SOURCE=https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions
ADD $IPE_SOURCE /usr/local/bin/

ENV IPE_ASPELL_LANGUAGES 'en'
ENV IPE_GD_WITHOUTAVIF '1'
ENV IPE_ICU_EN_ONLY '1'
ENV IPE_INSTANTCLIENT_BASIC '1'
ENV IPE_KEEP_SYSPKG_CACHE '0'
ENV IPE_LZF_BETTERCOMPRESSION '1'

RUN echo "Before: $(du -sh / 2>/dev/null)"
RUN chmod +x /usr/local/bin/install-php-extensions
RUN install-php-extensions redis || true
RUN php -m
RUN echo "After: $(du -sh / 2>/dev/null)"
mlocati commented 1 month ago

The system packages are not removed because the script fails to compile redis and stops its execution. This is not the case for supported packages in supported PHP versions.