Your message dated Wed, 13 Nov 2024 16:50:15 +0000
with message-id <[email protected]>
and subject line Bug#1061246: fixed in newt 0.52.24-4
has caused the Debian Bug report #1061246,
regarding newt FTCBFS: uses the wrong python-config
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1061246: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061246
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: newt
Version: 0.52.24-2
User: [email protected]
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
--- newt-0.52.24.orig/Makefile.in
+++ newt-0.52.24/Makefile.in
@@ -49,6 +49,7 @@
datadir = @datadir@
datarootdir = @datarootdir@
mandir = @mandir@
+ac_tool_prefix = @ac_tool_prefix@
man1dir = $(mandir)/man1
pkgconfigdir = $(libdir)/pkgconfig
instroot ?= $(DESTDIR)
@@ -85,7 +86,7 @@
_snack.$(SOEXT): snack.c $(LIBNEWTSH)
@[ -n "$(PYTHONVERS)" ] && for ver in $(PYTHONVERS) $(PYTHONDBG); do \
- pyconfig=$$ver-config; \
+ pyconfig=`command -v $(ac_tool_prefix)$$ver-config || echo $$ver-config`; \
mkdir -p $$ver; \
PCFLAGS=`$$pyconfig --cflags`; \
PIFLAGS=`$$pyconfig --includes`; \
--- newt-0.52.24.orig/configure.ac
+++ newt-0.52.24/configure.ac
@@ -77,6 +77,7 @@
AC_MSG_RESULT([$PYTHONVERS])
fi
AC_SUBST([PYTHONVERS])
+AC_SUBST([ac_tool_prefix])
AC_ARG_WITH([tcl], [ --without-tcl do not compile whiptcl.so])
if test "x$with_tcl" = "xno"; then
--- End Message ---
--- Begin Message ---
Source: newt
Source-Version: 0.52.24-4
Done: Alastair McKinstry <[email protected]>
We believe that the bug you reported is fixed in the latest version of
newt, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Alastair McKinstry <[email protected]> (supplier of updated newt package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Wed, 13 Nov 2024 15:52:04 +0000
Source: newt
Architecture: source
Version: 0.52.24-4
Distribution: unstable
Urgency: medium
Maintainer: Alastair McKinstry <[email protected]>
Changed-By: Alastair McKinstry <[email protected]>
Closes: 1061246
Changes:
newt (0.52.24-4) unstable; urgency=medium
.
* Rebuild for python3.13 support.
* Close old bugs: #1025163, #1033421
* cross.patch: FIx FTCBFS with wrong python-config. Closes: #1061246:
Checksums-Sha1:
c2a56324fa0ea0dd6ba94ecf1c8613890e3147f8 2459 newt_0.52.24-4.dsc
4d9328020d24d293147aa82cee9fd73913c388a7 40396 newt_0.52.24-4.debian.tar.xz
Checksums-Sha256:
651b739e2ecc79e3abb1d7c052354210c6234cf9050c2df01a53e0b1e440cd43 2459
newt_0.52.24-4.dsc
50ae44ed005658b77c4175d0f9b293edf07e9ad45f9a2177e527492c3b16969d 40396
newt_0.52.24-4.debian.tar.xz
Files:
5b78a62f0f2a7fa2bbaa25364ed02b7e 2459 devel optional newt_0.52.24-4.dsc
3649bd72fc3237783bee30b6be97d0f2 40396 devel optional
newt_0.52.24-4.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEgjg86RZbNHx4cIGiy+a7Tl2a06UFAmc01e4ACgkQy+a7Tl2a
06Xh8w//Yo89yrND1GgNkxvEx5S/Po72dMX+g8rrZXw4sxlKHyA2KScy4ICveRFn
m86gSb1rysM2oJMYHJ3xunB7v94kyjpMTQ7kFEzIS01dH9CMqnS0GKzIiulsT+Wz
sFT3OQFHGLwcWb4Dh7YeIoI4FA2Yoe4Nz3AO81x5pvpeDviPdgGRaJk3TFF8XP5v
5SV8iCyJNkQi5wxF3cZ98Z3+ZVbbE4U73FcS5Ewq6mpqF+Zcq4stF6E4e16Hty/t
QY+V2MZeY7MCkrcUPk1hNyYBq0UJ+uRO1/nYmxK1BAQEvTDNlIAjY4XulZ0L1TOs
u3eVj/xg8vSL1+5RuZUAg4c2MFHsXY5tC2VxZhMFnbD2sMu09vD1GoJQIXghzEq2
jyNy3yDW+dwK7aV8yZJAu3KHw2MmtfibOqOBgMEe88/4iuLIWKl6gVXdLga5k9cv
qBBHf2Hd5oEr5FM/W+oqjR8M4C0C35CLdqUKJccu3cpilPJvgK4GhCagi5KncF0o
B38q0KFOzlFUIqvQfrOgzVDvvjKUdl4ZSQs/O2q7qmTVa42NoiOR7bhZphQiNRi+
POAW1GJtMoFugBPYbW0hZedP5h4sk+Z0RCtWShMDDfPLQnOL767d56hHKoiHKRd5
3by5qt4gf/OF8+yjAx6+2PnGRC/+8BvO6nwc3d1COLrOi5tMSM8=
=kiUI
-----END PGP SIGNATURE-----
pgpc4yYRzE0zm.pgp
Description: PGP signature
--- End Message ---