File tree Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
10
10
- Update to PHP 8.2 (#411 )
11
11
- Add back a ` /sessions ` volume for sessions persistence (#399 )
12
12
- Support adding custom configurations in ` /etc/phpmyadmin/conf.d ` (#401 )
13
+ - Fix for debian 12 issue (#416 ) that caused libraries for extensions to be uninstalled
13
14
14
15
## [ 5.2.1] - 2023-02-08
15
16
Original file line number Diff line number Diff line change @@ -27,16 +27,20 @@ RUN set -ex; \
27
27
\
28
28
apt-mark auto '.*' > /dev/null; \
29
29
apt-mark manual $savedAptMark; \
30
- ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so \
30
+ extdir="$(php -r 'echo ini_get("extension_dir");')"; \
31
+ ldd "$extdir"/*.so \
31
32
| awk '/=>/ { print $3 }' \
33
+ | awk '{print $1} {system("realpath " $1)}' \
32
34
| sort -u \
33
35
| xargs -r dpkg-query -S \
34
36
| cut -d: -f1 \
35
37
| sort -u \
36
38
| xargs -rt apt-mark manual; \
37
39
\
38
40
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
39
- rm -rf /var/lib/apt/lists/*
41
+ rm -rf /var/lib/apt/lists/*; \
42
+ ldd "$extdir"/*.so | grep -qzv "=> not found" || (echo "Sanity check failed: missing libraries:"; ldd "$extdir"/*.so | grep " => not found"; exit 1); \
43
+ ldd "$extdir"/*.so | grep -q "libzip.so.* => .*/libzip.so.*" || (echo "Sanity check failed: libzip.so is not referenced"; ldd "$extdir"/*.so; exit 1);
40
44
41
45
# set recommended PHP.ini settings
42
46
# see https://secure.php.net/manual/en/opcache.installation.php
Original file line number Diff line number Diff line change @@ -27,16 +27,20 @@ RUN set -ex; \
27
27
\
28
28
apt-mark auto '.*' > /dev/null; \
29
29
apt-mark manual $savedAptMark; \
30
- ldd "$(php -r 'echo ini_get(" extension_dir");')" /*.so \
30
+ extdir="$(php -r 'echo ini_get(" extension_dir");')" ; \
31
+ ldd "$extdir" /*.so \
31
32
| awk '/=>/ { print $3 }' \
33
+ | awk '{print $1} {system("realpath " $1)}' \
32
34
| sort -u \
33
35
| xargs -r dpkg-query -S \
34
36
| cut -d: -f1 \
35
37
| sort -u \
36
38
| xargs -rt apt-mark manual; \
37
39
\
38
40
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
39
- rm -rf /var/lib/apt/lists/*
41
+ rm -rf /var/lib/apt/lists/*; \
42
+ ldd "$extdir" /*.so | grep -qzv "=> not found" || (echo "Sanity check failed: missing libraries:" ; ldd "$extdir" /*.so | grep " => not found" ; exit 1); \
43
+ ldd "$extdir" /*.so | grep -q "libzip.so.* => .*/libzip.so.*" || (echo "Sanity check failed: libzip.so is not referenced" ; ldd "$extdir" /*.so; exit 1);
40
44
41
45
# set recommended PHP.ini settings
42
46
# see https://secure.php.net/manual/en/opcache.installation.php
Original file line number Diff line number Diff line change @@ -27,16 +27,20 @@ RUN set -ex; \
27
27
\
28
28
apt-mark auto '.*' > /dev/null; \
29
29
apt-mark manual $savedAptMark; \
30
- ldd "$(php -r 'echo ini_get(" extension_dir");')" /*.so \
30
+ extdir="$(php -r 'echo ini_get(" extension_dir");')" ; \
31
+ ldd "$extdir" /*.so \
31
32
| awk '/=>/ { print $3 }' \
33
+ | awk '{print $1} {system("realpath " $1)}' \
32
34
| sort -u \
33
35
| xargs -r dpkg-query -S \
34
36
| cut -d: -f1 \
35
37
| sort -u \
36
38
| xargs -rt apt-mark manual; \
37
39
\
38
40
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
39
- rm -rf /var/lib/apt/lists/*
41
+ rm -rf /var/lib/apt/lists/*; \
42
+ ldd "$extdir" /*.so | grep -qzv "=> not found" || (echo "Sanity check failed: missing libraries:" ; ldd "$extdir" /*.so | grep " => not found" ; exit 1); \
43
+ ldd "$extdir" /*.so | grep -q "libzip.so.* => .*/libzip.so.*" || (echo "Sanity check failed: libzip.so is not referenced" ; ldd "$extdir" /*.so; exit 1);
40
44
41
45
# set recommended PHP.ini settings
42
46
# see https://secure.php.net/manual/en/opcache.installation.php
You can’t perform that action at this time.
0 commit comments