diff --git a/multimedia/ossia-score/files/patch-3rdparty_libossia_3rdparty_verdigris_src_wobjectimpl.h b/multimedia/ossia-score/files/patch-3rdparty_libossia_3rdparty_verdigris_src_wobjectimpl.h new file mode 100644 index 000000000000..8eda9c163dd2 --- /dev/null +++ b/multimedia/ossia-score/files/patch-3rdparty_libossia_3rdparty_verdigris_src_wobjectimpl.h @@ -0,0 +1,32 @@ +Fix build with Qt >= 6.9.0 + +Backported from: https://github.com/woboq/verdigris/commit/9b3e3f26251444bf48011202db85c892b0f45c57 + +--- 3rdparty/libossia/3rdparty/verdigris/src/wobjectimpl.h.orig 2025-01-16 18:09:49 UTC ++++ 3rdparty/libossia/3rdparty/verdigris/src/wobjectimpl.h +@@ -796,13 +796,20 @@ struct DataBuilder { + intCount += sizeof... (Ts); + } + +-#if QT_VERSION >= QT_VERSION_CHECK(6,0,0) ++#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) ++#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0) ++ template ++ static constexpr const QtPrivate::QMetaTypeInterface *metaTypeInterface = QtPrivate::qTryMetaTypeInterfaceForType>(); ++#else + template +- static constexpr const QtPrivate::QMetaTypeInterface *metaTypeInterface = QtPrivate::qTryMetaTypeInterfaceForType>>(); +- +- template ++ static constexpr const QtPrivate::QMetaTypeInterface *metaTypeInterface ++ = QtPrivate::qTryMetaTypeInterfaceForType< ++ T, ++ QtPrivate::TypeAndForceComplete>>(); ++#endif ++ template + constexpr void addMetaType() { +- *metaTypeP++ = metaTypeInterface; ++ *metaTypeP++ = metaTypeInterface; + metaTypeCount += 1; + } + #endif