[From nobody Sun Jun 14 22:07:05 2026
Received: (at submit) by bugs.debian.org; 3 Dec 2025 05:19:04 +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=-31.7 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_CONTROL_AFFECTS,BODY_INCLUDES_CONTROL_REASSIGN,
 BODY_INCLUDES_CONTROL_RETITLE,DATE_IN_PAST_06_12,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE,
 WORD_WITHOUT_VOWELS autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 14; hammy, 150; neutral, 112; spammy,
 0. spammytokens: hammytokens:0.000-+--grohne, 0.000-+--Grohne,
 0.000-+--H*Ad:N*Bug, 0.000-+--H*Ad:N*Tracking, 0.000-+--HTo:N*Debian
Return-path: &lt;helmut@subdivi.de&gt;
Received: from isilmar-4.linta.de ([136.243.71.142]:39036)
 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 1vQfGV-00AXGy-09
 for submit@bugs.debian.org; Wed, 03 Dec 2025 05:19:04 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=subdivi.de;
 s=k23.isilmar-4; t=1764739135;
 bh=gfrdtNAj+gfU5vO76IJSRnMBQAJh5zG/et9H9PFz1oU=;
 h=Date:From:To:Subject:From;
 b=De952g0hHDOosbrek3ElhuqWyyRAXwdsXwcTn76JGmPbXY010C7RZ4dIP/cV7zcHa
 2NHUJ2SbOi+M33itsaNFwQxNMkfPvyDloHhy7ytKxC9dgQAdkqv4BK7bVD8xHkBrs1
 nq+OcfuyC6Z1o5sTG5oLhgoOVi0bdj8cvMw8pvW+qUb3rYPmP+yTuY7+mEh6rvE2l2
 tB1kn68jXsnCHWjy8tFeI2Yp1L0qsgPDtcxVP9oTtvRAucnfxpJzrSgwTf0O6tXbcr
 4Z6nJBImm0qRdbaW7AFjJESeqFKqbsaqAi6ZO9LbnKVqVo+0iFtbjaMnCdzBC4V3Ov
 sN/mExlf7R9vA==
Received: from isilmar-4.linta.de (isilmar.linta [10.0.0.1])
 by isilmar-4.linta.de (Postfix) with ESMTP id 445B22006E1
 for &lt;submit@bugs.debian.org&gt;; Wed,  3 Dec 2025 05:18:55 +0000 (UTC)
Date: Tue, 2 Dec 2025 20:40:51 +0100
From: Helmut Grohne &lt;helmut@subdivi.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: libayatana-common FTCBFS: fails tests
Message-ID: &lt;20251202194051.GA3241003@subdivi.de&gt;
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary=&quot;dDAM9tR2NIliVB9x&quot;
Content-Disposition: inline
X-Reportbug-Version: 13.2.0
Delivered-To: submit@bugs.debian.org


--dDAM9tR2NIliVB9x
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: libayatana-common
Version: 0.9.11-2
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
Control: clone -1 -2
Control: retitle -2 cmake-extras: does not forward CMAKE_C_COMPILER and CMAKE_C_FLAGS to the external GMock build
Control: reassign -2 cmake-extras
Control: affects -2 + src:libayatana-common
Control: affects 1029269 + srclibayatana-common

libayatana-common fails to cross build from source in the tests/
directory. The failure is architecture-dependent, but why is it building
tests in the first place when I pass DEB_BUILD_OPTIONS=nocheck? I
figured an unconditional -DENABLE_TESTS=ON. Once allowing that to be
OFF, the failures disappear and the cross build succeeds. Please
consider applying the attached patch.

Another way to look at this is arguing that tests also should be cross
buildable. At that point, we're revisiting
https://gitlab.com/ubports/development/core/cmake-extras/-/merge_requests/4
and add CMAKE_C_COMPILER as well as CMAKE_C_FLAGS. We also figure that
the wrong glib-compile-schemas is being used. That's known as #1029269.

So let's not run into those problems and disable tests when they're
requested to be disabled.

Helmut

--dDAM9tR2NIliVB9x
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment;
	filename=&quot;libayatana-common_0.9.11-2.1.debdiff&quot;

diff -Nru libayatana-common-0.9.11/debian/changelog libayatana-common-0.9.11/debian/changelog
--- libayatana-common-0.9.11/debian/changelog	2025-03-16 12:11:02.000000000 +0100
+++ libayatana-common-0.9.11/debian/changelog	2025-12-02 20:05:03.000000000 +0100
@@ -1,3 +1,10 @@
+libayatana-common (0.9.11-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Improve nocheck support. (Closes: #-1)
+
+ -- Helmut Grohne &lt;helmut@subdivi.de&gt;  Tue, 02 Dec 2025 20:05:03 +0100
+
 libayatana-common (0.9.11-2) unstable; urgency=medium
 
   * Re-upload source-only as is.
diff -Nru libayatana-common-0.9.11/debian/rules libayatana-common-0.9.11/debian/rules
--- libayatana-common-0.9.11/debian/rules	2024-08-14 17:35:13.000000000 +0200
+++ libayatana-common-0.9.11/debian/rules	2025-12-02 20:04:54.000000000 +0100
@@ -7,7 +7,7 @@
 include /usr/share/dpkg/buildflags.mk
 
 DEB_CMAKE_EXTRA_FLAGS = \
-    -DENABLE_TESTS=ON \
+    -DENABLE_TESTS=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)),OFF,ON) \
     -DENABLE_COVERAGE=OFF \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DENABLE_LOMIRI_FEATURES=ON \

--dDAM9tR2NIliVB9x--
]