From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 27 May 2025 13:28:32 +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 1uJsTw-000ptF-2c for lore@lore.pengutronix.de; Tue, 27 May 2025 13:28:32 +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 1uJsTw-0004lq-GI; Tue, 27 May 2025 13:28:32 +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 1uJsTf-0004kh-7Q; Tue, 27 May 2025 13:28:15 +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 54RBOatC027119; Tue, 27 May 2025 13:28:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cab.de; h=cc :content-id:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= pp-2025; bh=DWKko7cauRAkht+PJiIjEw1JXRxqk01QfnOi34c9fVQ=; b=R3UE xrfFAa+hVyi7oXpgTxl0AJdXSOqqYX8qBDjZDGpy17lUbM7jvvz5HNlPM3uWpsfM jVD84r97nGIKN2JjHBTnShAs3X3UCd6/CxLxGGSzFTW7MvvLjGXAu6WCNFB+q9mp ZbA0TgpzABeyDPIZg87SpTrgj7BOobqdqyv8IlrpST/VeAeL/AQpWfSRzKOC2TcV 1wg8gX438Coo02VACHk0lsKStlhVLyhCKsHyH+j/Wme09B+f6zBbK/SlscColUUd RkYEE7XNDBA9zQI80tzg3EFZFeKnJ5w7IY6lRFEh8ozb8q41Uy4EgaVf3AxbBoV9 ie12QljcFn8loSTiXA== Received: from adranos.cab.de (adranos.cab.de [46.232.229.107]) by mx08-007fc201.pphosted.com (PPS) with ESMTPS id 46ut7k8uyj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 27 May 2025 13:28:13 +0200 (MEST) Received: from Adranos.cab.de (10.10.1.54) 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; Tue, 27 May 2025 13:28:23 +0200 Received: from Adranos.cab.de ([fe80::9298:8fc8:395c:3859]) by Adranos.cab.de ([fe80::9298:8fc8:395c:3859%7]) with mapi id 15.02.1748.010; Tue, 27 May 2025 13:28:23 +0200 To: Michael Olbrich Thread-Topic: [ptxdist] [PATCH] libgpiod: select HOST_SYSTEM_PYTHON3_DEV for Python bindings Thread-Index: AQHbyYHXQa8r8hyXoES0EJg5CYNLXrPjQ1qAgAL89wA= Date: Tue, 27 May 2025 11:28:23 +0000 Message-ID: References: <20250520122151.168894-1-m.heidelberg@cab.de> In-Reply-To: Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.100.0.11] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Authority-Analysis: v=2.4 cv=aKbwqa9m c=1 sm=1 tr=0 ts=6835a1cd cx=c_pps a=LmW7qmVeM6tFdl5svFU9Cg==:117 a=LmW7qmVeM6tFdl5svFU9Cg==:17 a=xqWC_Br6kY4A:10 a=s-1pHVT95-kA:10 a=kj9zAlcOel0A:10 a=dt9VzEwgFbYA:10 a=cWEMI8VVXCuq4b2jRnIA:9 a=CjuIK1q_8ugA:10 X-Proofpoint-ORIG-GUID: D8nUfrVN-bQFqE4JBkFpE97sylMvbcNV X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNTI3MDA5NCBTYWx0ZWRfX2vAP1i/OfauX ZFRhSv3b98X+SPISfzorzNPaf711O23UprmgDAZGxRjMdwEISwS2dEt+fsV+/YUlQJMBc8HX94N mY/J8ojguMepozCTUlHRhVWtjXQsiDG7QM1Ucq74QUivY/UMDF+hlP4uevngVyy+mlBVcgX3dBL U++8+pDGL8yQgqihq+Zpp8li0iWD1hnXZTGWK6S/X4MXTmkgSr5zlScpy5AcygcEjCKh3PEWr2g Xl3hJd1qdsBK889KEkjIptgTXLIW7HoyPXnAdkRR3ZuADCtb8h1NRYGhJG+y1qnNhVH+sPqqUZ3 WIVyvr7OF1Ypv2JK55d2A87yfqcPnbkx0TRSTkIfqdCYtMcQ+Q5bWhdITZmxDbCQGafmJm6PhyZ GtJU7pe1 X-Proofpoint-GUID: D8nUfrVN-bQFqE4JBkFpE97sylMvbcNV 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: 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: , From: Markus Heidelberg via ptxdist Reply-To: ptxdist@pengutronix.de Cc: Markus Heidelberg , 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 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 w= rote: > > python3-config has to exist, available in python3-dev Debian package. > >=20 > > Fixes the following error in libgpiod prepare stage: > >=20 > > checking for python3-config... false > > configure: error: python3-config not found - needed for python bindin= gs > >=20 > > Signed-off-by: Markus Heidelberg > > --- > > rules/libgpiod.in | 1 + > > 1 file changed, 1 insertion(+) > >=20 > > 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 >=20 > No, this is wrong. The python3-config should come from the Python we use = to > build stuff for the target, so host-python/python. >=20 > We do some hacky stuff to combine the host-python binary with target pyth= on > stuff to get a cross python to build stuff. Maybe that needs to be extend= ed > 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 Markus=