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 <[email protected]>
> ---
>  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 |

Reply via email to