Bug#1033421: newt: nopython not full respected
> >snack.c:2:10: fatal error: Python.h: No such file or directory > > 2 | #include "Python.h" > > | ^~ > >compilation terminated. > > This is actually interesting as the build continues despite the error > (which maybe RC itself). An easy way to reproduce is: > > sbuild --no-arch-all --profiles=nocheck,noinsttest,noudeb,nopython -d > unstable newt --host=arm64 --build amd64 Opened as new bug #1033465 with patch included.
Bug#1033421: newt: nopython not full respected
Control: severity -1 normal Failing to cross build is not release critical, updating the severity accordingly. Hi, * henrynmail-deb...@yahoo.com [2023-03-24 19:08]: 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. This is actually interesting as the build continues despite the error (which maybe RC itself). An easy way to reproduce is: sbuild --no-arch-all --profiles=nocheck,noinsttest,noudeb,nopython -d unstable newt --host=arm64 --build amd64 Cheers Jochen signature.asc Description: PGP signature
Bug#1033421: newt: nopython not full respected
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