From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 14 Jun 2024 09:22:38 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sI1Gg-005o4t-27 for lore@lore.pengutronix.de; Fri, 14 Jun 2024 09:22:38 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1sI1Gg-0005YU-9b; Fri, 14 Jun 2024 09:22:38 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sI1GN-0005YJ-6G; Fri, 14 Jun 2024 09:22:19 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sI1GM-002DKc-Pv; Fri, 14 Jun 2024 09:22:18 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sI1GM-002MHy-2R; Fri, 14 Jun 2024 09:22:18 +0200 Date: Fri, 14 Jun 2024 09:22:18 +0200 From: Michael Olbrich To: Lucas Stach Message-ID: References: <20240604063022.3272904-1-l.stach@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240604063022.3272904-1-l.stach@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [ptxdist] [PATCH] set install-lib path for host-system-python package installation X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On Tue, Jun 04, 2024 at 08:30:22AM +0200, Lucas Stach wrote: > 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 > --- > 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 This breaks other stuff: With this change host-system-python3 packages are now installend into .../usr/lib/system-python3/lib/ instead of .../usr/lib/system-python3/lib/lib/python3.xx/site-packages/ and are no longer found at runtime. What exactly are you trying to fix? Michael > > CROSS_MESON_USR := \ > --cross-file '${PTXDIST_MESON_CROSS_FILE}' \ > -- > 2.39.2 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |