Package: newt Version: 0.52.23-1 Severity: serious Justification: fails to build from source (but built successfully in the past) Tags: ftbfs patch Usertags: rebootstrap
Dear Maintainer, the build option "nopython" was not respected in all cases. In rules exist a check for nopython in DEB_BUILD_PROFILES, but later in Makefile.in it will overritten by setting PYTHONVERS again. If libpython*-dev is not installed, the build breaks with Python.h: No such file or directory The fail was detected by cross builing, but also exist in native builds. # apt remove python3-all libpython3.11-dev libpython3.11-dbg python3-minimal # dpkg-buildpackage -B "-Pnocheck noinsttest noudeb nopython" -uc -us ... /bin/sh: 1: python3.11-config: not found /bin/sh: 1: python3.11-config: not found /bin/sh: 1: python3.11-config: not found /bin/sh: 1: python3.11-config: not found gcc -fPIC -D_GNU_SOURCE -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/tcl8.6 -g -O2 -ffile-prefix-map=/tmp/newt/newt-0.52.23=. -fstack-protector-strong -Wformat -Werror=format-security -DMARCH="x86_64-linux-gnu" -fPIC -c -o python3.11/snack.o snack.c snack.c:2:10: fatal error: Python.h: No such file or directory 2 | #include "Python.h" | ^~~~~~~~~~ compilation terminated. -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-16-amd64 (SMP w/2 CPU threads) Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/bash Init: unable to detect
newt-nopython.patch
Description: Binary data