From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 12 Jun 2025 21:32:34 +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 1uPnf7-006bzb-3A for lore@lore.pengutronix.de; Thu, 12 Jun 2025 21:32:33 +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 1uPnf7-0007co-Ck; Thu, 12 Jun 2025 21:32:33 +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 1uPned-0005t7-T9; Thu, 12 Jun 2025 21:32:03 +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 1uPned-003Ai9-2H; Thu, 12 Jun 2025 21:32:03 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1uPned-009jo4-27; Thu, 12 Jun 2025 21:32:03 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Thu, 12 Jun 2025 21:32:03 +0200 Message-Id: <20250612193203.2321025-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250530132511.150215-1-m.heidelberg@cab.de> References: <20250530132511.150215-1-m.heidelberg@cab.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] libgpiod: override location of python3-config 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 Thanks, applied as 0b38f33360be9221c1bca62f7023ffdcb9a9c0e5. Michael [sent from post-receive hook] On Thu, 12 Jun 2025 21:32:03 +0200, Markus Heidelberg wrote: > It exists as python3.13-config (or whatever the minor version currently > is) in sysroot-cross directory. > > Fixes the following error in libgpiod prepare stage: > > checking for python3-config... false > configure: error: python3-config not found - needed for python bindings > > However, python3-config isn't used at all to build the Python bindings > and ac_cv_prog_has_python_config could be set to any value except > "false" to fix the error. > > Signed-off-by: Markus Heidelberg > Message-Id: <20250530132511.150215-1-m.heidelberg@cab.de> > Signed-off-by: Michael Olbrich > > diff --git a/rules/libgpiod.make b/rules/libgpiod.make > index a77acf146127..6272333b5613 100644 > --- a/rules/libgpiod.make > +++ b/rules/libgpiod.make > @@ -51,7 +51,9 @@ LIBGPIOD_CONF_OPT := \ > > LIBGPIOD_CONF_ENV := \ > $(CROSS_ENV) \ > - $(if $(PTXCONF_LIBGPIOD_PYTHON3), ac_cv_path_PYTHON=$(CROSS_PYTHON3)) > + $(if $(PTXCONF_LIBGPIOD_PYTHON3), \ > + ac_cv_path_PYTHON=$(CROSS_PYTHON3) \ > + ac_cv_prog_has_python_config=python$(PYTHON3_MAJORMINOR)-config) > > LIBGPIOD_LDFLAGS:= -Wl,-rpath-link,$(LIBGPIOD_DIR)/lib/.libs >