From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Markus Heidelberg <m.heidelberg@cab.de>
Subject: Re: [ptxdist] [APPLIED] libgpiod: override location of python3-config
Date: Thu, 12 Jun 2025 21:32:03 +0200 [thread overview]
Message-ID: <20250612193203.2321025-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20250530132511.150215-1-m.heidelberg@cab.de>
Thanks, applied as 0b38f33360be9221c1bca62f7023ffdcb9a9c0e5.
Michael
[sent from post-receive hook]
On Thu, 12 Jun 2025 21:32:03 +0200, Markus Heidelberg <m.heidelberg@cab.de> 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 <m.heidelberg@cab.de>
> Message-Id: <20250530132511.150215-1-m.heidelberg@cab.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> 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
>
prev parent reply other threads:[~2025-06-12 19:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-20 12:21 [ptxdist] [PATCH] libgpiod: select HOST_SYSTEM_PYTHON3_DEV for Python bindings Markus Heidelberg via ptxdist
2025-05-25 13:50 ` Michael Olbrich
2025-05-27 11:28 ` Markus Heidelberg via ptxdist
2025-05-27 12:06 ` Michael Olbrich
2025-05-28 14:49 ` Markus Heidelberg via ptxdist
2025-05-30 13:25 ` [ptxdist] [PATCH v2] libgpiod: override location of python3-config Markus Heidelberg via ptxdist
2025-06-12 19:32 ` Michael Olbrich [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250612193203.2321025-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=m.heidelberg@cab.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox