Hi,

Yes, I'm willing to apply this.

Alastair

On 20/01/2024 20:35, Helmut Grohne wrote:
Source: newt
Version: 0.52.24-2
User: debian-cr...@lists.debian.org
Usertags: ftcbfs
Tags: patch upstream

Hi,

thanks for quickly fixing the error trapping. newt also fails to cross
build from source, because it fails finding some Python stuff. This is
rooted in Makefile.in hard coding the build architecture python-config,
which works badly when combined with a host architecture compiler.

Fixing this is rather tricky. In principle, we'd want to use
AC_PATH_TOOL to disocver python-config, but it really is
python$ver-config and we cannot loop over all available Python versions
and call AC_PATH_TOOL for each as AC_PATH_TOOL needs to know the program
name at autoconf time rather than at configure time. So what I'm
proposing here is to emulate AC_PATH_TOOL in the Makefile.in by passing
ac_tool_prefix to the Makefile.in and there trying the prefixed
python-config before the plain one. In a cross build, the prefixed one
will be selected and things work. When the prefixed one does is not
exist, it'll fall back to the unprefixed one and work as before.

Is that something you're willing to apply? Do you have other ideas for
solving this?

Helmut

--
Alastair McKinstry,
GPG: 82383CE9165B347C787081A2CBE6BB4E5D9AD3A5
ph: +353 87 6847928 e: alast...@mckinstry.ie, im: @alastair:mckinstry.ie

Reply via email to