[From nobody Sat Apr 25 22:27:08 2026
Received: (at submit) by bugs.debian.org; 19 Dec 2025 22:02:56 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.2 required=4.0 tests=BAYES_00,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,
 RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE,SPF_NONE,
 WORD_WITHOUT_VOWELS autolearn=no autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 36; hammy, 150; neutral, 102; spammy,
 0. spammytokens: hammytokens:0.000-+--python3,
 0.000-+--sk:dh_auto, 
 0.000-+--grohne, 0.000-+--Grohne, 0.000-+--HTo:N*Debian
Return-path: &lt;helmut@subdivi.de&gt;
Received: from isilmar-4.linta.de ([136.243.71.142]:60208)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;helmut@subdivi.de&gt;) id 1vWiYp-003o1d-1C
 for submit@bugs.debian.org; Fri, 19 Dec 2025 22:02:56 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=subdivi.de;
 s=k23.isilmar-4; t=1766181376;
 bh=ipw+Rxs/AAUt7e+bRzERfb6/y0Bw4sktk1BVSId/s40=;
 h=Date:From:To:Subject:From;
 b=Qb1FkUM1dlsnxtiqJCWkgHZSWmOxk2OhOQEevGiLKAY0NpRApK/fxI68vLqhDPRXG
 KEKIOzCFAnj2c0lEMte5pZ/wx+DeeWWxw4EBjvN2k3VJe2VZ2PmWxwdWJNNyyVbXFF
 xHj074DHuPgCWu+6Xrs1PuYsm/qmckKsVbF3V4M6Pj8/HNG4MNPqjhKdyezSzjT3vv
 DDi54rIDG77SFKhK5l8zQeDFjeys2mqTv86QNcBLj5317zyZBJPBG8AXkN+qDOiMbE
 kcspm7Uu88aZq3aK8bTO01DM04ZngS2bajD42OnlZjQLkzqpCdUCPDwu818KjAhMVW
 KsLvc8pmFeCBA==
Received: from isilmar-4.linta.de (isilmar.linta [10.0.0.1])
 by isilmar-4.linta.de (Postfix) with ESMTP id 489DB2009C0
 for &lt;submit@bugs.debian.org&gt;; Fri, 19 Dec 2025 21:56:16 +0000 (UTC)
Date: Wed, 17 Dec 2025 10:51:59 +0100
From: Helmut Grohne &lt;helmut@subdivi.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: libunity FTCBFS: multiple reasons
Message-ID: &lt;20251217095159.GA2044612@subdivi.de&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;Id0/z5v/RbAHTG93&quot;
Content-Disposition: inline
X-Reportbug-Version: 13.2.0
Delivered-To: submit@bugs.debian.org


--Id0/z5v/RbAHTG93
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: libunity
Version: 7.1.4+19.04.20190319-6.1
Tags: patch
User: debian-cross@lists.debian.org
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

--Id0/z5v/RbAHTG93
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment;
	filename=&quot;libunity_7.1.4+19.04.20190319-6.2.debdiff&quot;

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 &lt;helmut@subdivi.de&gt;  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 (&gt;= 0.4.90),
                libgirepository1.0-dev (&gt;= 0.10),
                libgtk-3-dev (&gt;= 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/ &amp;&amp; DESTDIR=../../debian/tmp make install &amp;&amp; cd ../..
 	dh_install -X.a -X.la -X.pyc -X.pyo
 	# rename the scope definition file (only if present, installed on arch: all)

--Id0/z5v/RbAHTG93--
]