From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 30 May 2025 15:25:48 +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 1uKzk4-001xN0-00 for lore@lore.pengutronix.de; Fri, 30 May 2025 15:25:48 +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 1uKzk3-0001jL-J7; Fri, 30 May 2025 15:25:47 +0200 Received: from mx08-007fc201.pphosted.com ([91.207.212.40]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uKzjm-0001fa-P9 for ptxdist@pengutronix.de; Fri, 30 May 2025 15:25:31 +0200 Received: from pps.filterd (m0456229.ppops.net [127.0.0.1]) by mx08-007fc201.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 54UDPTa8028869; Fri, 30 May 2025 15:25:29 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cab.de; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp-2025; bh=r1 w3KRUpXi+NVoBjomxH9cl1lsEG8/BljKBjcg2bdnE=; b=CUktfhFxLrb2cIxViU smnB2l8ejNgpelvutwXCVEugIg+5QcX4j0nr1Qr8FH4/7NqhDFSC4oPI8KZ74Jea FX6Gp/NZCF+YC2AH2mlKXRwwt4VMbX6eMucWQ5b2hrnIs1GjK15NInIbnIeevDMJ RGiCmeBGqQesPZggDK/Ux36yiZH0VEjiJ7duA7RXPajfw557rrXlbqTXWGtkUKKs hHhGuxAFns50zjNwPu0PScW7u2fDf032/B7gbEkIP3JAdzCanH5p6OqQvBrzpDbt 2bDB+zetUC5DTa+j6AfdMV4scxh+zLN2Wk4FTNB3rRJ1bs5QsRxbS6FIq6phke5b NQGg== Received: from adranos.cab.de (adranos.cab.de [46.232.229.107]) by mx08-007fc201.pphosted.com (PPS) with ESMTPS id 46ut7ka0xk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 30 May 2025 15:25:29 +0200 (MEST) Received: from KAN23-025.cab.de (10.100.0.38) by Adranos.cab.de (10.10.1.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Fri, 30 May 2025 15:25:42 +0200 To: Date: Fri, 30 May 2025 15:25:11 +0200 Message-ID: <20250530132511.150215-1-m.heidelberg@cab.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.100.0.38] X-ClientProxiedBy: Adranos.cab.de (10.10.1.54) To Adranos.cab.de (10.10.1.54) X-Authority-Analysis: v=2.4 cv=aKbwqa9m c=1 sm=1 tr=0 ts=6839b1c9 cx=c_pps a=LmW7qmVeM6tFdl5svFU9Cg==:117 a=LmW7qmVeM6tFdl5svFU9Cg==:17 a=6gx2k9LiueYA:10 a=dt9VzEwgFbYA:10 a=kt-9Bl-BUk94FFkFLrQA:9 X-Proofpoint-ORIG-GUID: RhlWQKrBRE8CAbwvKNp8fBU4SIOpkkOo X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNTMwMDExNyBTYWx0ZWRfX9ujuYj1KQjSQ uwy14/jDM6V2LnfRvkQATx9uaKvD12huo1xkJ2+KS+ij9XpNiCUp0W6EBxlGgrO1r2itT6fWZsj Xv6C7D1IpLOx/RP5uAaNE81xBzW+t75G7V/U6IcnHbSkMUbGAKmUL7ak3EUXWsrM4RwvMCgQOh2 ATVbnWp+kIWNTTZ8t4hMKuml0YBlW3tvl/AUcWH6iNgiEBhUdVrTPUmEWclc17VwHfrYyj/Y59I DPaVeGQ43lXv/JfWsmyd3A/Pj1nI25IkstiwreG8L16tK9+DMVtVwZVghlb3G2aTieHPXj4fJ88 cHkZPQfsdQRDXI2MuN/tfBEv3GvAbw85fORyZ+/wyfcvoDqtFAnkTEg4tkIfKDJoqHg6kCAvnc6 24jKVIhz X-Proofpoint-GUID: RhlWQKrBRE8CAbwvKNp8fBU4SIOpkkOo X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH v2] 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: , From: Markus Heidelberg via ptxdist 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 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 --- > So it would probably be better to just remove the python3-config check. > I'll submit a patch upstream and when accepted submit it to PTXdist. I submitted a patch upstream, but decided for the ac_cv_prog_has_python_config solution for PTXdist. It is less intrusive (no recreation of configure script necessary) and avoids a new dependency HOST_AUTOTOOLS_AUTOCONF_ARCHIVE because of this in configure.ac: # This needs autoconf-archive AX_CXX_COMPILE_STDCXX_17([ext], [mandatory]) rules/libgpiod.make | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rules/libgpiod.make b/rules/libgpiod.make index a77acf146..6272333b5 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 -- 2.43.0