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)
committerLuca Boccassi <bluca@debian.org>
Thu, 15 Aug 2024 13:04:41 +0000 (14:04 +0100)
commit38caeac7680b3f7a81b741336f57f9b56d040297
tree9324480bfd186e21af65add7812e6a744b87cd79
parent2925fc2c6f4b13a2f098912fa3d44ad31e9f2cf0
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

(cherry picked from commit b75c13731ee0867a8d7889348fc8da1869af7551)
src/shared/base-filesystem.c