Update ldd|awk
to account for Bookworm's merged /usr
#1927
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Bookworm moved to UsrMerge by default. This means
/lib
is a symlink to/usr/lib
, so someldd
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 backward compatible with Buster and Bullseye based images.The same change was done for other Docker Official Images: docker-library/php#1416, docker-library/wordpress#834, docker-library/python#822.
Motivation and Context
Without this, the
node:*-bookworm-slim
images fail to build onarm32v7
(https://doi-janky.infosiftr.net/job/multiarch/job/arm32v7/job/node/):Testing Details
Just ran
docker build --platform linux/arm/v7 20/bookworm-slim/
to ensure that it did fix this issue.(Assuming a host with the correct platform or emulation, like automatically available in Docker Desktop)
Types of changes
Checklist