Skip to content

fix: arm64 prebuild missing libexpat.so.1#2556

Open
martonperei wants to merge 1 commit intoAutomattic:prebuildsfrom
martonperei:fix/arm64-prebuild-missing-libexpat
Open

fix: arm64 prebuild missing libexpat.so.1#2556
martonperei wants to merge 1 commit intoAutomattic:prebuildsfrom
martonperei:fix/arm64-prebuild-missing-libexpat

Conversation

@martonperei
Copy link

On arm64, /etc/ld.so.conf.d/aarch64-linux-gnu.conf sorts before libc.conf, causing ldconfig to prefer /lib/aarch64-linux-gnu over /usr/local/lib. This means lddtree resolves libexpat.so.1 to the system copy in /lib/, which bundle.sh then filters out.

On x86, libc.conf (containing /usr/local/lib) sorts first by coincidence, so the locally-built libexpat is preferred and bundled.

Fix by adding 00-local.conf to ensure /usr/local/lib always takes priority regardless of architecture.

On arm64, /etc/ld.so.conf.d/aarch64-linux-gnu.conf sorts before
libc.conf, causing ldconfig to prefer /lib/aarch64-linux-gnu over
/usr/local/lib. This means lddtree resolves libexpat.so.1 to the
system copy in /lib/, which bundle.sh then filters out.

On x86, libc.conf (containing /usr/local/lib) sorts first by
coincidence, so the locally-built libexpat is preferred and bundled.

Fix by adding 00-local.conf to ensure /usr/local/lib always takes
priority regardless of architecture.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant