From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sun, 25 May 2025 15:50:24 +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 1uJBk8-000CCQ-2d for lore@lore.pengutronix.de; Sun, 25 May 2025 15:50:24 +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 1uJBk8-00045x-HR; Sun, 25 May 2025 15:50:24 +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 1uJBk2-000438-A5; Sun, 25 May 2025 15:50:18 +0200 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) 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 1uJBk1-0005mm-20; Sun, 25 May 2025 15:50:17 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1uJBk1-003gVr-1q; Sun, 25 May 2025 15:50:17 +0200 Date: Sun, 25 May 2025 15:50:17 +0200 From: Michael Olbrich To: Markus Heidelberg via ptxdist Message-ID: 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: <20250520122151.168894-1-m.heidelberg@cab.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] 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 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 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? Michael > help > libgpiod is a library accompanied by a set of tools for > interacting with the Linux GPIO character device. > -- > 2.43.0 > > > -- 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 |