Source: libunity Version: 7.1.4+19.04.20190319-6.1 Tags: patch User: [email protected] Usertags: cross-satisfiability ftcbfs
libunity fails to cross build from source for two distinct reasons. It Build-Depends on a host architecture python3 and python3-gi. Those packages cannot be installed for the host architecture as the Python interpreter would fail its postinst attempting byte compilation. The gi module is used by configure.ac to discover an architecture-independent override directory. Hence using the build architecture one is ok. It also has a separate build pass for Python during override_dh_auto_install. That step fails to pass --host to configure. The easiest way to fix that is using dh_auto_configure. I'm attaching a patch combining the necessary changes. Please consider applying it as doing so makes libunity cross buildable. Helmut
diff -Nru libunity-7.1.4+19.04.20190319/debian/changelog libunity-7.1.4+19.04.20190319/debian/changelog --- libunity-7.1.4+19.04.20190319/debian/changelog 2024-03-23 19:57:44.000000000 +0100 +++ libunity-7.1.4+19.04.20190319/debian/changelog 2025-12-17 10:04:34.000000000 +0100 @@ -1,3 +1,13 @@ +libunity (7.1.4+19.04.20190319-6.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Build-Depends on native Python. The gi overrides directory is + architecture-independent. + + Let dh_auto_configure pass --host to the Python build. + + -- Helmut Grohne <[email protected]> Wed, 17 Dec 2025 10:04:34 +0100 + libunity (7.1.4+19.04.20190319-6.1) unstable; urgency=medium * Non-maintainer upload diff -Nru libunity-7.1.4+19.04.20190319/debian/control libunity-7.1.4+19.04.20190319/debian/control --- libunity-7.1.4+19.04.20190319/debian/control 2024-03-23 19:57:44.000000000 +0100 +++ libunity-7.1.4+19.04.20190319/debian/control 2025-12-17 10:04:34.000000000 +0100 @@ -13,8 +13,8 @@ libdbusmenu-glib-dev (>= 0.4.90), libgirepository1.0-dev (>= 0.10), libgtk-3-dev (>= 3.4.1), - python3, - python3-gi, + python3:native, + python3-gi:native, gobject-introspection, xvfb, xauth, diff -Nru libunity-7.1.4+19.04.20190319/debian/rules libunity-7.1.4+19.04.20190319/debian/rules --- libunity-7.1.4+19.04.20190319/debian/rules 2024-03-23 19:57:44.000000000 +0100 +++ libunity-7.1.4+19.04.20190319/debian/rules 2025-12-17 10:04:34.000000000 +0100 @@ -17,7 +17,7 @@ override_dh_install: # install the python3 gir override file as well - PYTHON=python3 ./configure --prefix=/usr + PYTHON=python3 dh_auto_configure cd bindings/python/ && DESTDIR=../../debian/tmp make install && cd ../.. dh_install -X.a -X.la -X.pyc -X.pyo # rename the scope definition file (only if present, installed on arch: all)

