buildroot: dyld workaround also on ppc64le

The workaround of manually linking /lib64 -> /usr/lib64 inside the
container that is needed on s390 is also required on ppc64 because
here the dynamic linker is set to /lib64/ld64.so.2 and the /lib64
link is not created.
This commit is contained in:
Christian Kellner 2019-12-11 16:33:21 +01:00 committed by Lars Karlitski
parent 575039db29
commit d1d27567e8

View file

@ -39,10 +39,11 @@ class BuildRoot:
raise
self.mounts.append(target)
if platform.machine() == "s390x":
if platform.machine() == "s390x" or platform.machine() == "ppc64le":
# work around a combination of systemd not creating the link from
# /lib64 -> /usr/lib64 (see systemd issue #14311) and the dynamic
# linker is being set to (/lib/ld64.so.1 -> /lib64/ld64.so.1)
# on s390x or /lib64/ld64.so.2 on ppc64le
# Therefore we manually create the link before calling nspawn
os.symlink("/usr/lib64", f"{self.root}/lib64")