base-filesystem: do not attempt to create a /lib64 -> /usr/lib/<tuple> symlink
authorLuca Boccassi <bluca@debian.org>
Sat, 3 Aug 2024 23:00:05 +0000 (00:00 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 4 Aug 2024 01:03:55 +0000 (10:03 +0900)
commitb75c13731ee0867a8d7889348fc8da1869af7551
tree0cef95a395eaed6a457aa39b66d1a0649c5f6cee
parentad723ca3e5bd41d2d884760375534910bb55d9b3
base-filesystem: do not attempt to create a /lib64 -> /usr/lib/<tuple> symlink

In multi-arch distributions (debian and derivatives) multiarch tuples under
/usr/lib are used, such as /usr/lib/x86_64-linux-gnu/ but the /lib64 symlink
should never point there, it should always point to /usr/lib64, as that's
how they are set up by distribution-specific tools.

https://packages.debian.org/bookworm/amd64/libc6-i386/filelist
https://packages.debian.org/bookworm/mipsel/libc6-mips64/filelist
https://salsa.debian.org/md/usrmerge/-/blob/master/convert-usrmerge?ref_type=heads#L295
https://salsa.debian.org/md/usrmerge/-/blob/master/convert-usrmerge?ref_type=heads#L517
http://bugs.debian.org/1076491

Fixes https://github.com/systemd/systemd/issues/33919
src/shared/base-filesystem.c