Package: dh-python Version: 5.20220101 Severity: serious Affects: pynest2s pynest2s 4.13~beta-1 ftbfses on all architectures: https://buildd.debian.org/status/package.php?p=pynest2d
The reason is that pybuild "'double quotes'" the --builddirectory argument, making it a relative path since it doesn't start with /. Note how PKGBUILDDIR is duplicated: dh build-arch --buildsystem=pybuild --with python3 --with sip3 dh_update_autotools_config -a -O--buildsystem=pybuild dh_autoreconf -a -O--buildsystem=pybuild dh_auto_configure -a -O--buildsystem=pybuild I: pybuild base:237: dh_auto_configure --buildsystem=cmake --builddirectory="'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build'" -- [...] ... dh_auto_build -a -O--buildsystem=pybuild I: pybuild base:237: dh_auto_build --buildsystem=cmake --builddirectory="'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build'" -- cd '/<<BUILDDIR>>/pynest2d-4.13\~beta/.pybuild/cpython3_3.10/build' && make -j4 "INSTALL=install --strip-program=true" VERBOSE=1 make[1]: Entering directory '/<<PKGBUILDDIR>>/'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build'' (For whatever reason make is still happy with the borked path at that point...) ... /usr/bin/cmake -E touch /<<PKGBUILDDIR>>/'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build'/src/sippynest2dpart0.cpp [...] cmake -E touch: failed to update "/<<PKGBUILDDIR>>//<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build/src/sippynest2dpart0.cpp". I suspect the error is in /usr/share/dh-python/dhpython/build/plugin_cmake.py: return ('dh_auto_build --buildsystem=cmake' ' --builddirectory="{build_dir}"' If I replace "{build_dir}" by {build_dir} in that file, the build succeeds. Christoph