When only the prefix is set, different packages have different ideas
about were the libs should be installed (lib vs lib64) on multilib
systems. This causes issues later on when the package content is
copied into the sysroot, as it may be attempted to copy a directory
over a symlink. Set the lib install path explicitly, so all packages
maintain a consistent view.

Signed-off-by: Lucas Stach <[email protected]>
---
 rules/pre/Rules.make | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/rules/pre/Rules.make b/rules/pre/Rules.make
index f6b1900500b8..651660d78bea 100644
--- a/rules/pre/Rules.make
+++ b/rules/pre/Rules.make
@@ -254,7 +254,10 @@ CROSS_QMAKE_OPT := \
 
 CROSS_PYTHON_INSTALL := install --prefix=/usr
 HOST_PYTHON_INSTALL := install --prefix=/usr
-HOST_SYSTEM_PYTHON_INSTALL := install --prefix=/usr/lib/system-python3
+HOST_SYSTEM_PYTHON_INSTALL := \
+       install \
+       --prefix=/usr/lib/system-python3 \
+       --install-lib=/usr/lib/system-python3/lib
 
 CROSS_MESON_USR := \
        --cross-file '${PTXDIST_MESON_CROSS_FILE}' \
-- 
2.39.2


Reply via email to