Closed marsante closed 1 year ago
Yeah, paths did change. Bookworm moved to UsrMerge by default. This means /lib
is a symlink to /usr/lib
, so some ldd
returned paths need to be adjusted so that Debian can figure out which package it belongs to (since the package will report /usr/lib...
now). The fix is in https://github.com/docker-library/php/pull/1416 (and also https://github.com/nodejs/docker-node/pull/1927) and is backwards compatible with Bullseye:
ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so \
- | awk '/=>/ { print $(NF-1) }' \
+ | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' \
| sort -u \
| xargs -r dpkg-query -S \
| cut -d: -f1 \
| sort -u \
| xargs -rt apt-mark manual; \
Thank you so much for your response. I hadn't seen the pull request. I will watch the evolution of the Dockerfile next time.
No worries, glad it was an easy fix.
Hi, since
8.2-apache
use Bookworm I have errors messages for some built PHP extensions when the entrypoint is executed :The Dockerfile :
The entrypoint :
The errors messages are fixed when I use
8.2-apache-bullseye
tag. Do you think the Path has changed on Bookworm ? I miss another thing ? Thanks for your reply