new file mode 100644
@@ -0,0 +1,32 @@
+From b8139367858b3473777c2819abdbc900e70648bb Mon Sep 17 00:00:00 2001
+From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
+Date: Mon, 28 Apr 2025 18:29:29 +0300
+Subject: [PATCH] meson.build: disable -Werror=redundant-decls
+
+Building of Graphene started to fail with the following errors. Disable
+offending flag.
+
+../graphene-1.10.8/src/graphene-gobject.c: In function 'graphene_point_get_type':
+../graphene-1.10.8/src/graphene-gobject.c:155:14: error: redundant redeclaration of '__Static_assert_function' [-Werror=redundant-decls]
+../graphene-1.10.8/src/graphene-gobject.c:155:14: note: previous declaration of '__Static_assert_function' with type 'int (*(void))[1]'
+../graphene-1.10.8/src/graphene-gobject.c:155:14: error: redundant redeclaration of '__Static_assert_function' [-Werror=redundant-decls]
+../graphene-1.10.8/src/graphene-gobject.c:155:14: note: previous declaration of '__Static_assert_function' with type 'int (*(void))[1]'
+
+Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
+Upstream-Status: Pending
+---
+ meson.build | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index fa65177fc1d2..fc11eced11e3 100644
+--- a/meson.build
++++ b/meson.build
+@@ -98,7 +98,6 @@ else
+ '-Wno-unused-local-typedefs',
+ '-Werror=float-conversion',
+ '-Werror=float-equal',
+- '-Werror=redundant-decls',
+ '-Werror=missing-prototypes',
+ '-Werror=missing-declarations',
+ '-Werror=format=2',
@@ -6,7 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a7d871d9e23c450c421a85bb2819f648"
inherit gnomebase gobject-introspection gtk-doc
-SRC_URI += "file://float-div.patch"
+SRC_URI += "file://float-div.patch \
+ file://0001-meson.build-disable-Werror-redundant-decls.patch \
+"
SRC_URI[archive.sha256sum] = "a37bb0e78a419dcbeaa9c7027bcff52f5ec2367c25ec859da31dfde2928f279a"
Building of graphene fails with the following error. Disable corresponding flag being set by meson until the issue gets resolved upstream. ../graphene-1.10.8/src/graphene-gobject.c: In function 'graphene_point_get_type': ../graphene-1.10.8/src/graphene-gobject.c:155:14: error: redundant redeclaration of '__Static_assert_function' [-Werror=redundant-decls] ../graphene-1.10.8/src/graphene-gobject.c:155:14: note: previous declaration of '__Static_assert_function' with type 'int (*(void))[1]' ../graphene-1.10.8/src/graphene-gobject.c:155:14: error: redundant redeclaration of '__Static_assert_function' [-Werror=redundant-decls] ../graphene-1.10.8/src/graphene-gobject.c:155:14: note: previous declaration of '__Static_assert_function' with type 'int (*(void))[1]' ../graphene-1.10.8/src/graphene-gobject.c: In function 'graphene_point3d_get_type': ../graphene-1.10.8/src/graphene-gobject.c:157:14: error: redundant redeclaration of '__Static_assert_function' [-Werror=redundant-decls] ../graphene-1.10.8/src/graphene-gobject.c:155:14: note: previous declaration of '__Static_assert_function' with type 'int (*(void))[1]' ../graphene-1.10.8/src/graphene-gobject.c:157:14: error: redundant redeclaration of '__Static_assert_function' [-Werror=redundant-decls] ../graphene-1.10.8/src/graphene-gobject.c:157:14: note: previous declaration of '__Static_assert_function' with type 'int (*(void))[1]' ../graphene-1.10.8/src/graphene-gobject.c:157:14: error: redundant redeclaration of '__Static_assert_function' [-Werror=redundant-decls] ../graphene-1.10.8/src/graphene-gobject.c:157:14: note: previous declaration of '__Static_assert_function' with type 'int (*(void))[1]' Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> --- ...build-disable-Werror-redundant-decls.patch | 32 +++++++++++++++++++ .../graphene/graphene_1.10.8.bb | 4 ++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-graphics/graphene/files/0001-meson.build-disable-Werror-redundant-decls.patch