Source: libpgm Version: 5.3.128~dfsg-2.1 Tags: patch User: [email protected] Usertags: cross-satisfiability
libpgm cannot be cross built from source, because it Build-Depends: python3. What it requests here is the host architecture Python interpreter, but installing it fails postinst, because it cannot be run to byte compile the standard library. What libpgm really wanted is running a build architecture Python interpreter for its version_generator.py. This amounts to annotating the dependency :native. I also note that a current sbuild build environment lacks devices such as /dev/rtc and /dev/hpet. Therefore, the relevant functionality is excluded from the build (even for native ones). I guess this is not what is desired and recommend also adding: ifeq ($(DEB_HOST_ARCH_OS),linux) export ac_cv_file__dev_hpet=yes export ac_cv_file__dev_rtc=yes export ac_cv_file__proc_cpuinfo=yes endif Doing so preseed the check results and makes the build opt into the relevant functionality. Of course doing so changes the build product. Helmut
diff -Nru libpgm-5.3.128~dfsg/debian/changelog libpgm-5.3.128~dfsg/debian/changelog --- libpgm-5.3.128~dfsg/debian/changelog 2024-02-28 17:16:37.000000000 +0100 +++ libpgm-5.3.128~dfsg/debian/changelog 2025-12-09 19:29:44.000000000 +0100 @@ -1,3 +1,10 @@ +libpgm (5.3.128~dfsg-2.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Annotate python3 build dependency :native (closes: #-1). + + -- Helmut Grohne <[email protected]> Tue, 09 Dec 2025 19:29:44 +0100 + libpgm (5.3.128~dfsg-2.1) unstable; urgency=medium * Non-maintainer upload. diff -Nru libpgm-5.3.128~dfsg/debian/control libpgm-5.3.128~dfsg/debian/control --- libpgm-5.3.128~dfsg/debian/control 2024-02-28 17:16:37.000000000 +0100 +++ libpgm-5.3.128~dfsg/debian/control 2025-12-09 19:28:57.000000000 +0100 @@ -1,7 +1,7 @@ Source: libpgm Priority: optional Maintainer: Laszlo Boszormenyi (GCS) <[email protected]> -Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 11), python3 +Build-Depends: dpkg-dev (>= 1.22.5), debhelper-compat (= 11), python3:native Standards-Version: 4.5.0 Section: libs Homepage: https://github.com/steve-o/openpgm

