From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 27 May 2025 14:06:57 +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 1uJt57-000qTH-1Q for lore@lore.pengutronix.de; Tue, 27 May 2025 14:06:57 +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 1uJt57-0003Vv-6I; Tue, 27 May 2025 14:06:57 +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 1uJt4z-0003VI-NG; Tue, 27 May 2025 14:06:49 +0200 Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uJt4y-000Pgq-2k; Tue, 27 May 2025 14:06:48 +0200 Received: from mol by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1uJt4y-00CWRY-2R; Tue, 27 May 2025 14:06:48 +0200 Date: Tue, 27 May 2025 14:06:48 +0200 From: Michael Olbrich To: Markus Heidelberg Message-ID: <20250527120648.GN1537051@pengutronix.de> Mail-Followup-To: Markus Heidelberg , Markus Heidelberg via ptxdist References: <20250520122151.168894-1-m.heidelberg@cab.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-IRC: #ptxdist @freenode Subject: Re: [ptxdist] [PATCH] libgpiod: select HOST_SYSTEM_PYTHON3_DEV for Python bindings 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: Markus Heidelberg via ptxdist 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, May 27, 2025 at 11:28:23AM +0000, Markus Heidelberg wrote: > On Sun, May 25, 2025 at 03:50:17PM +0200, Michael Olbrich wrote: > > On Tue, May 20, 2025 at 02:21:51PM +0200, Markus Heidelberg via ptxdist wrote: > > > python3-config has to exist, available in python3-dev Debian package. > > > > > > Fixes the following error in libgpiod prepare stage: > > > > > > checking for python3-config... false > > > configure: error: python3-config not found - needed for python bindings > > > > > > Signed-off-by: Markus Heidelberg > > > --- > > > rules/libgpiod.in | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/rules/libgpiod.in b/rules/libgpiod.in > > > index 94bff5164..012223ff1 100644 > > > --- a/rules/libgpiod.in > > > +++ b/rules/libgpiod.in > > > @@ -6,6 +6,7 @@ menuconfig LIBGPIOD > > > select HOST_SYSTEM_PYTHON3 > > > select GCCLIBS_CXX if LIBGPIOD_CXX > > > select PYTHON3 if LIBGPIOD_PYTHON3 > > > + select HOST_SYSTEM_PYTHON3_DEV if LIBGPIOD_PYTHON3 > > > > No, this is wrong. The python3-config should come from the Python we use to > > build stuff for the target, so host-python/python. > > > > We do some hacky stuff to combine the host-python binary with target python > > stuff to get a cross python to build stuff. Maybe that needs to be extended > > so that libgpiod will find python3-config? > > I guess python3-config from sysroot-cross should be used, but there is > only python3.13-config. So I wonder whether > > A) there is a symlink (or copy) missing: > sysroot-cross/usr/bin/python3-config -> python3.13-config > > B) libgpiod's configure.ac has to be patched: > -python3-config > +python3.13-config Try adding ac_cv_prog_has_python_config=python3.13-config to LIBGPIOD_CONF_ENV. Does that help? Michael -- 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 |