summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-gnome/recipes-connectivity/network-manager-applet/network-manager-applet/0001-fix-gdkx-build-error-when-x11-not-included.patch50
-rw-r--r--meta-gnome/recipes-connectivity/network-manager-applet/network-manager-applet_1.36.0.bb1
2 files changed, 51 insertions, 0 deletions
diff --git a/meta-gnome/recipes-connectivity/network-manager-applet/network-manager-applet/0001-fix-gdkx-build-error-when-x11-not-included.patch b/meta-gnome/recipes-connectivity/network-manager-applet/network-manager-applet/0001-fix-gdkx-build-error-when-x11-not-included.patch
new file mode 100644
index 0000000000..f0cc54c131
--- /dev/null
+++ b/meta-gnome/recipes-connectivity/network-manager-applet/network-manager-applet/0001-fix-gdkx-build-error-when-x11-not-included.patch
@@ -0,0 +1,50 @@
1From: Eric Meyers <eric.meyers@arthrex.com>
2Date: Fri, 7 Nov 2025 12:00:00 +0000
3Subject: [PATCH] Patch to fix gdkx.h build issues.
4
5Patch to fix gdkx.h build issues when x11 is not included in DISTRO_FEATURES:
6
7| In file included from ../sources/network-manager-applet-1.36.0/src/applet.c:25:
8| ../sources/network-manager-applet-1.36.0/src/applet.h:14:10: fatal error: gdk/gdkx.h: No such file or directory
9| 14 | #include <gdk/gdkx.h>
10| | ^~~~~~~~~~~~
11| compilation terminated.
12
13Upstream-Status: Pending
14Signed-off-by: Eric Meyers <eric.meyers@arthrex.com>
15diff --git a/src/applet.h b/src/applet.h
16index 7978ba7c..6992196a 100644
17--- a/src/applet.h
18+++ b/src/applet.h
19@@ -11,7 +11,6 @@
20 #include <string.h>
21
22 #include <gtk/gtk.h>
23-#include <gdk/gdkx.h>
24
25 #include <net/ethernet.h>
26
27diff --git a/src/connection-editor/nm-connection-editor.c b/src/connection-editor/nm-connection-editor.c
28index b68141bb..2d8762d8 100644
29--- a/src/connection-editor/nm-connection-editor.c
30+++ b/src/connection-editor/nm-connection-editor.c
31@@ -15,7 +15,6 @@
32 #include <sys/types.h>
33 #include <unistd.h>
34 #include <errno.h>
35-#include <gdk/gdkx.h>
36
37 #if WITH_SELINUX
38 #include <selinux/selinux.h>
39diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c
40index a3f41c04..b54c76b0 100644
41--- a/src/connection-editor/nm-connection-list.c
42+++ b/src/connection-editor/nm-connection-list.c
43@@ -13,7 +13,6 @@
44 #include <string.h>
45 #include <sys/types.h>
46 #include <unistd.h>
47-#include <gdk/gdkx.h>
48
49 #include "ce-page.h"
50 #include "nm-connection-editor.h"
diff --git a/meta-gnome/recipes-connectivity/network-manager-applet/network-manager-applet_1.36.0.bb b/meta-gnome/recipes-connectivity/network-manager-applet/network-manager-applet_1.36.0.bb
index 10e514775a..f6c6bdab96 100644
--- a/meta-gnome/recipes-connectivity/network-manager-applet/network-manager-applet_1.36.0.bb
+++ b/meta-gnome/recipes-connectivity/network-manager-applet/network-manager-applet_1.36.0.bb
@@ -10,6 +10,7 @@ ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
10REQUIRED_DISTRO_FEATURES = "opengl" 10REQUIRED_DISTRO_FEATURES = "opengl"
11 11
12SRC_URI:append:libc-musl = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' file://0001-linker-scripts-Do-not-export-_IO_stdin_used.patch', '', d)}" 12SRC_URI:append:libc-musl = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' file://0001-linker-scripts-Do-not-export-_IO_stdin_used.patch', '', d)}"
13SRC_URI:append = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', ' file://0001-fix-gdkx-build-error-when-x11-not-included.patch', d)}"
13 14
14SRC_URI[archive.sha256sum] = "a84704487ea3afe1485c47fb2ab598b8f779f540ae0dcbf0a1c5f85e64a7e253" 15SRC_URI[archive.sha256sum] = "a84704487ea3afe1485c47fb2ab598b8f779f540ae0dcbf0a1c5f85e64a7e253"
15 16