#1121811 libayatana-common FTCBFS: fails tests

#1121811#5
Date:
2025-12-02 19:40:51 UTC
From:
To:
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

#1121811#10
Date:
2026-06-14 20:40:15 UTC
From:
To:
Hello,

Bug #1121811 in libayatana-common reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/debian-ayatana-team/libayatana-common/-/commit/467c44109c6207b9cb7673a440f4005b2019d409
------------------------------------------------------------------------
debian/rules: Don't build+run unit tests when cross-building. (Closes: #1121811).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1121811

#1121811#17
Date:
2026-06-14 21:04:49 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libayatana-common, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1121811@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mike Gabriel <sunweaver@debian.org> (supplier of updated libayatana-common package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 14 Jun 2026 22:35:44 +0200
Source: libayatana-common
Architecture: source
Version: 0.9.12-1
Distribution: unstable
Urgency: medium
Maintainer: Ayatana Packagers <pkg-ayatana-devel@lists.alioth.debian.org>
Changed-By: Mike Gabriel <sunweaver@debian.org>
Closes: 1118856 1121811
Changes:
 libayatana-common (0.9.12-1) unstable; urgency=medium
 .
   * New upstream release.
   * debian/:
     + Upstream installs gir1.2 files now to gir-1.2 directory.
   * debian/control:
     + Drop Priority: field, bump Standards-Version: to 4.7.4.
     + Use ${gir:Depends} in -dev package instead of hard-coding.
     + Explicitly build-depend on gir1.2-*-dev packages.
     + Drop obsolete B-D on libgirepository1.0-dev. (Closes: #1118856).
   * debian/copyright:
     + Update auto-generated copyright.in file.
   * debian/rules:
     + Don't build+run unit tests when cross-building. (Closes: #1121811).
Checksums-Sha1:
 079dfd6e503c08353a9d54241645a77e947d1f19 2902 libayatana-common_0.9.12-1.dsc
 8cebd7083df41be98094dc68ad513cec11bdbd21 45757 libayatana-common_0.9.12.orig.tar.gz
 3f9100425e394f1af4ccb89820b6181253f71e99 833 libayatana-common_0.9.12.orig.tar.gz.asc
 0e98745de951b67c6ab45512948a6990d513217a 13920 libayatana-common_0.9.12-1.debian.tar.xz
 3d38af7bf21e4d74d3fdc0a95b46ae0b1f393b3a 18490 libayatana-common_0.9.12-1_source.buildinfo
Checksums-Sha256:
 36727d852777bc5b16d8da481df296bd2c4d8f78f77cfa0e0788def3af4be359 2902 libayatana-common_0.9.12-1.dsc
 f6b465c5c3c4a6e9c47e5d3f4f40836d5a1055bd973c9b526e3a6ff306524501 45757 libayatana-common_0.9.12.orig.tar.gz
 647f7b5f049b9618c8443cbd4559de73ed67ef536e8db76a6b86db4d76337d97 833 libayatana-common_0.9.12.orig.tar.gz.asc
 652b536270ce7af347cb3b5476e655c722f351d880c99b9eff7c99e8fd770567 13920 libayatana-common_0.9.12-1.debian.tar.xz
 c17ff85e857233cb87ab275fa6a70c923bb159163662aa2e2711de0537e83109 18490 libayatana-common_0.9.12-1_source.buildinfo
Files:
 1d5b2be2f773ecaa22347108eaaba14b 2902 libs optional libayatana-common_0.9.12-1.dsc
 7ee5cbec55f9a671a41ce4f4c1bbb8e0 45757 libs optional libayatana-common_0.9.12.orig.tar.gz
 b8158c8e7e980dc2401c3b7d69efe556 833 libs optional libayatana-common_0.9.12.orig.tar.gz.asc
 ca5f2567dabdb5b18542dd6b7d5c8a1c 13920 libs optional libayatana-common_0.9.12-1.debian.tar.xz
 eced5cb9fd7433b36c558ce22111d44f 18490 libs optional libayatana-common_0.9.12-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJJBAEBCgAzFiEEm/uu6GwKpf+/IgeCmvRrMCV3GzEFAmovEZEVHHN1bndlYXZl
ckBkZWJpYW4ub3JnAAoJEJr0azAldxsxxjEP/itsuleQ4jgtAMylM6kkms5N5iyz
k36PPr/xnilu2FXTD7/nL292OY/aK7arNk2Vi8onNVCHTFFQtTEwgEOoSznoFVvk
dUaJV3Wtmygwb9M1t8dMCCzguMXPwvyP604Ut1VmzbE1srrt/V4mTaiLuEvwNcLZ
1/Z+gdLJtBUM417BC2rNT1z861p2PCcWcD3yxS1M0PZYuMSTx8N6jNB6dE2fiTHK
Vt5Ze2145/CkHM2ufb+Yi6kP45aJcuZM7+KMtC5g155TYS1kjFUtURo8NeE8smyl
8OP8JPjsSnoYh/mlNrIzrH39W2GYtbNG/IT9N9Njt52VFGXml40vCi31bp53Wgo6
QGSMdXMYj2oQgPZd8ODlTRjXTtIluNiavYDtSFzwnH+cKfQ7le4BR/95G2/I7Zjm
tb5F3DjAx93zUQ989JoKqjK9i2cJkk+2QeFFadQvhshGriivMSUMrQfaS9VlCrtA
IN7QWrRWMoLyoCeNScW8VhRpJelzeO9i/SSxHxN0+rvobMyvP0EVoClRUsQbbE7y
PVwBqH1NdVx7I/Atf6E+ut/BCeP7pyyXYjYDchFZd4iaLYvYg6GN+3wky/cC1v/t
/2OGbFC/SKthfCKlpBeFB7xXuMMCaswS/pgNvIQIHIvKsYa7S+IICJ5G8wnqlsVz
xYBAGNpGkC5Cr83A
=5yWq
-----END PGP SIGNATURE-----