#1122396 astroidmail: FTBFS: /<<PKGBUILDDIR>>/src/plugin/gir_main.c:7:11: fatal error: girepository.h: No such file or directory

#1122396#5
Date:
2025-12-10 20:38:21 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202512/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:astroidmail, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
[  3%] Building CXX object CMakeFiles/hypocycloid.dir/src/account_manager.cc.o
/usr/bin/c++ -DBOOST_LOG_DYN_LINK -DBOOST_LOG_USE_NATIVE_SYS [too-long-redacted] ILDDIR>>/src/account_manager.cc
[  4%] Building C object CMakeFiles/gir_main.dir/src/plugin/thread_view_activatable.c.o
/usr/bin/cc -DBOOST_LOG_DYN_LINK -DBOOST_LOG_USE_NATIVE_SYSL [too-long-redacted] lugin/thread_view_activatable.c
[  5%] Building C object CMakeFiles/gir_main.dir/src/plugin/thread_index_activatable.c.o
/usr/bin/cc -DBOOST_LOG_DYN_LINK -DBOOST_LOG_USE_NATIVE_SYSL [too-long-redacted] ugin/thread_index_activatable.c
[  6%] Building C object CMakeFiles/gir_main.dir/src/plugin/gir_main.c.o
/usr/bin/cc -DBOOST_LOG_DYN_LINK -DBOOST_LOG_USE_NATIVE_SYSL [too-long-redacted] UILDDIR>>/src/plugin/gir_main.c
/<<PKGBUILDDIR>>/src/plugin/gir_main.c:7:11: fatal error: girepository.h: No such file or directory
    7 | # include <girepository.h>
      |           ^~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [CMakeFiles/gir_main.dir/build.make:124: CMakeFiles/gir_main.dir/src/plugin/gir_main.c.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:373: CMakeFiles/gir_main.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[  7%] Building CXX object CMakeFiles/hypocycloid.dir/src/astroid.cc.o
/usr/bin/c++ -DBOOST_LOG_DYN_LINK -DBOOST_LOG_USE_NATIVE_SYS [too-long-redacted] /<<PKGBUILDDIR>>/src/astroid.cc
[...]
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j2 INSTALL="install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

#1122396#10
Date:
2026-01-08 16:24:51 UTC
From:
To:
This is likely caused by  libpeas-dev switching from
libgirepository1.0-dev to libgirepository-2.0-dev.

Latest git supports and builds with libgirepository-2.0-dev.

cu
Adrian

#1122396#15
Date:
2026-02-09 12:39:58 UTC
From:
To:
Quoting Adrian Bunk (2026-01-08 17:24:51)

Thanks for the suggestion, Bastian (and for the bugreport, Santiago).
Unfortunately it seems that newest git is inadequate for supporting
libgirepository-2.0-dev: Yes, there is a git commit specifically for
that, and build no longer fails, but builds without plugins.

Lowering severity as this has now since release 0.17+ds-1 been worked
around by omitting GI Object introspection altogether.

 - Jonas

#1122396#22
Date:
2026-02-09 13:10:26 UTC
From:
To:
Quoting Jonas Smedegaard (2026-02-09 13:39:58)

I give up - I don't know how to make this work, and I don't know if it
is an issue with Debian moving away from deprecated versions of GIR or
CMake failing to detect what upstream code supposedly now supports, or
something else.

Help solving this is appreciated. I have pushed my attempt, which adds
upstream git commit and pulls in a couple of Debian dependencies, here:
https://salsa.debian.org/debian/astroidmail/-/tree/wip/GIR

 - Jonas