Skip to content

Commit d158bce

Browse files
committed
add 0001-gcc14-fix.patch as buildroot upstream patch to fix YAD
compilation with GCC14. Also added YAD as a dependency in qutselect package.
1 parent b7cdcb5 commit d158bce

6 files changed

Lines changed: 45 additions & 2 deletions

File tree

buildroot-external/configs/generic-x86_64.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ BR2_PACKAGE_BLUEZ5_UTILS_OBEX=y
3232
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
3333
BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED=y
3434
BR2_PACKAGE_LIBKRB5=y
35-
BR2_PACKAGE_YAD=y
3635
BR2_PACKAGE_LIBNSS=y
3736
BR2_PACKAGE_CUPS=y
3837
BR2_PACKAGE_LIBV4L_UTILS=y

buildroot-external/package/qutselect/Config.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ config BR2_PACKAGE_QUTSELECT
1212
select BR2_PACKAGE_JQ
1313
select BR2_PACKAGE_LIBCURL
1414
select BR2_PACKAGE_LIBCURL_CURL
15+
select BR2_PACKAGE_YAD
1516
help
1617
A Qt-based (unix) terminal server selection tool
1718

buildroot-external/package/qutselect/qutselect.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ QUTSELECT_VERSION = 3.13
88
QUTSELECT_SITE = $(call github,hzdr,qutselect,$(QUTSELECT_VERSION))
99
QUTSELECT_LICENSE = LGPL-3.0
1010
QUTSELECT_LICENSE_FILES = LICENSE
11-
QUTSELECT_DEPENDENCIES = qt6base jq libcurl
11+
QUTSELECT_DEPENDENCIES = qt6base jq libcurl yad
1212
QUTSELECT_CONF_OPTS = -DCMAKE_INSTALL_PREFIX:PATH=/
1313

1414
define QUTSELECT_INSTALL_TARGET_CMDS
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
--- buildroot/package/yad/0001-gcc14-fix.patch.orig
2+
+++ buildroot/package/yad/0001-gcc14-fix.patch
3+
@@ -0,0 +1,20 @@
4+
+--- yad-0.40.0/src/main.c.orig 2025-09-20 12:23:10.917236849 +0200
5+
++++ yad-0.40.0/src/main.c 2025-09-20 12:21:54.343190497 +0200
6+
+@@ -670,7 +670,7 @@
7+
+
8+
+ #if GTK_CHECK_VERSION(3,0,0)
9+
+ if (css)
10+
+- gtk_style_context_add_provider (gtk_widget_get_style_context (dlg), css, GTK_STYLE_PROVIDER_PRIORITY_USER);
11+
++ gtk_style_context_add_provider (gtk_widget_get_style_context (dlg), GTK_STYLE_PROVIDER(css), GTK_STYLE_PROVIDER_PRIORITY_USER);
12+
+ #endif
13+
+
14+
+ return dlg;
15+
+@@ -700,7 +700,7 @@
16+
+
17+
+ #if GTK_CHECK_VERSION(3,0,0)
18+
+ if (css)
19+
+- gtk_style_context_add_provider (gtk_widget_get_style_context (win), css, GTK_STYLE_PROVIDER_PRIORITY_USER);
20+
++ gtk_style_context_add_provider (gtk_widget_get_style_context (win), GTK_STYLE_PROVIDER(css), GTK_STYLE_PROVIDER_PRIORITY_USER);
21+
+ #endif
22+
+
23+
+ gtk_widget_show_all (win);
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--- yad-0.40.0/src/main.c.orig 2025-09-20 12:23:10.917236849 +0200
2+
+++ yad-0.40.0/src/main.c 2025-09-20 12:21:54.343190497 +0200
3+
@@ -670,7 +670,7 @@
4+
5+
#if GTK_CHECK_VERSION(3,0,0)
6+
if (css)
7+
- gtk_style_context_add_provider (gtk_widget_get_style_context (dlg), css, GTK_STYLE_PROVIDER_PRIORITY_USER);
8+
+ gtk_style_context_add_provider (gtk_widget_get_style_context (dlg), GTK_STYLE_PROVIDER(css), GTK_STYLE_PROVIDER_PRIORITY_USER);
9+
#endif
10+
11+
return dlg;
12+
@@ -700,7 +700,7 @@
13+
14+
#if GTK_CHECK_VERSION(3,0,0)
15+
if (css)
16+
- gtk_style_context_add_provider (gtk_widget_get_style_context (win), css, GTK_STYLE_PROVIDER_PRIORITY_USER);
17+
+ gtk_style_context_add_provider (gtk_widget_get_style_context (win), GTK_STYLE_PROVIDER(css), GTK_STYLE_PROVIDER_PRIORITY_USER);
18+
#endif
19+
20+
gtk_widget_show_all (win);

buildroot-patches/0023-yad-gcc14-fix/buildroot/package/yad/0001-gcc14-fix.patch.orig

Whitespace-only changes.

0 commit comments

Comments
 (0)