[Pkg-ayatana-devel] Bug#992363: qmenumodel FTBFS with recent glib2.0: error: template with C linkage

Simon McVittie smcv at debian.org
Wed Aug 18 01:03:37 BST 2021


Control: tags -1 + bookworm sid patch

On Tue, 17 Aug 2021 at 22:11:34 +0200, Helmut Grohne wrote:
> | In file included from /usr/include/glib-2.0/glib/gatomic.h:31,
> |                  from /usr/include/glib-2.0/glib/gthread.h:32,
> |                  from /usr/include/glib-2.0/glib/gasyncqueue.h:32,
> |                  from /usr/include/glib-2.0/glib.h:32,
> |                  from /usr/include/glib-2.0/gobject/gbinding.h:28,
> |                  from /usr/include/glib-2.0/glib-object.h:22,
> |                  from /<<PKGBUILDDIR>>/libqmenumodel/src/qmenumodelevents.cpp:21:
> | /usr/include/c++/10/type_traits:2925:3: error: template with C linkage
> |  2925 |   template<typename _Fn, typename... _Args>
> |       |   ^~~~~~~~
> | /<<PKGBUILDDIR>>/libqmenumodel/src/qmenumodelevents.cpp:20:1: note: ‘extern "C"’ linkage started here
> |    20 | extern "C" {
> |       | ^~~~~~~~~~
> 
> Similar bug with more details: #992246

Ubuntu has a patch which seems appropriate.
https://patches.ubuntu.com/q/qmenumodel/qmenumodel_0.8.0-2ubuntu1.patch
See #992246 for context and explanation.

It would also be good to define GLIB_VERSION_MIN_REQUIRED and
GLIB_VERSION_MAX_ALLOWED to avoid surprises in future, similar to
<https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=992246;filename=0001-build-Target-a-specific-GLib-API-version.patch;msg=19>.

    smcv



More information about the Pkg-ayatana-devel mailing list