package/x11r7/xlib_libXt: fix GCC 15.x build failure
PATCH 1/2 package/x11r7/xlib_libXt: fix GCC 15.x build failure
Fixes:
Shell.c: In function ‘_XtShellAncestorSensitive’:
Shell.c:1005:20: error: expected identifier or ‘(’ before ‘true’
1005 | static Boolean true = True;
| ^~~~
Shell.c:1008:35: error: lvalue required as unary ‘&’ operand
1008 | value->addr = (XPointer) (&true);
| ^
by backporting an upstream commit.
Fixes:
https://autobuild.buildroot.net/results/40e2022a57170fd32fe9de1fdc042abb948288af/
--- .../0001-issue-20-c23-boolean-conflict.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/x11r7/xlib_libXt/0001-issue-20-c23-boolean-conflict.patch
package/x11r7/xlib_libXt/0001-issue-20-c23-boolean-conflict.patch new file +32 -0
@@ -0,0 +1,32 @@ +From f34a411f1795976c61b70f5a7198857d62ca4855 Mon Sep 17 00:00:00 2001 +From: "Thomas E. Dickey" <[email protected]> +Date: Sun, 12 Nov 2023 05:33:05 -0500 +Subject: [PATCH] issue #20: c23 boolean conflict + +Signed-off-by: Thomas E. Dickey <[email protected]> +Upstream: 56875344b2a62845b8a494830bfb0a5f6ed2d3d6 +Signed-off-by: Thomas Petazzoni <[email protected]> +--- + src/Shell.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/Shell.c b/src/Shell.c +index 82616ef..78c44a1 100644 +--- a/src/Shell.c ++++ b/src/Shell.c +@@ -1002,10 +1002,10 @@ _XtShellColormap(Widget widget, int closure, XrmValue *value) + static void + _XtShellAncestorSensitive(Widget widget, int closure, XrmValue *value) + { +- static Boolean true = True; ++ static Boolean true_value = True; + + if (widget->core.parent == NULL) +- value->addr = (XPointer) (&true); ++ value->addr = (XPointer) (&true_value); + else + _XtCopyFromParent(widget, closure, value); + } +-- +2.50.1 +
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/x11r7/xlib_libXt: bump to version 1.3.1
Changes:
Alan Coopersmith (11):
README.md: update & correct links to O'Reilly X Toolkit books unifdef ultrix
unifdef sgi
unifdef hpux
unifdef __osf__
unifdef AIXV3
unifdef MOTOROLA
unifdef USG
unifdef VMS
unifdef __EMX__
unifdef AIXSHLIB & SUNSHLIB
Matt Turner (1):
libXt 1.3.1
Mohamed Akram (1):
Improve linking with widget libraries on macOS
Thomas E. Dickey (8):
issue #17: avoid _Static_assert from c++
issue #18: cross-build issue in util
issue #19: include <process.h> on Windows for getpid() issue #20: c23 boolean conflict
remove substitution for EXEEXT_FOR_BUILD, not defined in automake Add continue_to_dispatch parameter to _XtResourceConfigurationEH() eliminate an unnecessary cast
quiet a couple of unused-parameter warnings
--- .../0001-issue-20-c23-boolean-conflict.patch | 32 ------------------- package/x11r7/xlib_libXt/xlib_libXt.hash | 6 ++-- package/x11r7/xlib_libXt/xlib_libXt.mk | 2 +- 3 files changed, 4 insertions(+), 36 deletions(-) delete mode 100644 package/x11r7/xlib_libXt/0001-issue-20-c23-boolean-conflict.patch
package/x11r7/xlib_libXt/0001-issue-20-c23-boolean-conflict.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From f34a411f1795976c61b70f5a7198857d62ca4855 Mon Sep 17 00:00:00 2001 -From: "Thomas E. Dickey" <[email protected]> -Date: Sun, 12 Nov 2023 05:33:05 -0500 -Subject: [PATCH] issue #20: c23 boolean conflict - -Signed-off-by: Thomas E. Dickey <[email protected]> -Upstream: 56875344b2a62845b8a494830bfb0a5f6ed2d3d6 -Signed-off-by: Thomas Petazzoni <[email protected]> ---- - src/Shell.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/Shell.c b/src/Shell.c -index 82616ef..78c44a1 100644 ---- a/src/Shell.c -+++ b/src/Shell.c -@@ -1002,10 +1002,10 @@ _XtShellColormap(Widget widget, int closure, XrmValue *value) - static void - _XtShellAncestorSensitive(Widget widget, int closure, XrmValue *value) - { -- static Boolean true = True; -+ static Boolean true_value = True; - - if (widget->core.parent == NULL) -- value->addr = (XPointer) (&true); -+ value->addr = (XPointer) (&true_value); - else - _XtCopyFromParent(widget, closure, value); - } --- -2.50.1 -
package/x11r7/xlib_libXt/xlib_libXt.hash +3 -3
@@ -1,5 +1,5 @@ -# From https://lists.x.org/archives/xorg-announce/2023-April/003383.html -sha256 52820b3cdb827d08dc90bdfd1b0022a3ad8919b57a39808b12591973b331bf91 libXt-1.3.0.tar.xz -sha512 64c5978655135b925c3aaad86b1aa6a3f3b57ad8b3592bf142be616b8aa339a02c2fc7badfab9564ea8076ea8f37acfe31709ed528f5a1d251f2d116aa074118 libXt-1.3.0.tar.xz +# From https://lists.x.org/archives/xorg-announce/2024-November/003560.html +sha256 e0a774b33324f4d4c05b199ea45050f87206586d81655f8bef4dba434d931288 libXt-1.3.1.tar.xz +sha512 c220292f60b0f53134cf9364831a32bbaa9fa6bbb3a7143e917920957b7a48c616e946042747089f29ea9d8a18ecd64de620bcaf56d82462e7107de906f5db38 libXt-1.3.0.tar.xz # Locally calculated sha256 75c5574ca04731d739b1420f55f2b7b47f30df895817f1b03d0d7f5c1fbee534 COPYING
package/x11r7/xlib_libXt/xlib_libXt.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -XLIB_LIBXT_VERSION = 1.3.0 +XLIB_LIBXT_VERSION = 1.3.1 XLIB_LIBXT_SOURCE = libXt-$(XLIB_LIBXT_VERSION).tar.xz XLIB_LIBXT_SITE = https://xorg.freedesktop.org/archive/individual/lib XLIB_LIBXT_LICENSE = MIT
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:
Fixes:
Shell.c: In function ‘_XtShellAncestorSensitive’:
Shell.c:1005:20: error: expected identifier or ‘(’ before ‘true’
1005 | static Boolean true = True;
| ^~~~
Shell.c:1008:35: error: lvalue required as unary ‘&’ operand
1008 |value->addr= (XPointer) (&true);
| ^
Quoted 7 lines
by backporting an upstream commit.
Fixes:
https://autobuild.buildroot.net/results/40e2022a57170fd32fe9de1fdc042abb948288af/
Signed-off-by Thomas Petazzoni <[email protected]>
Sorry, already applied Waldemar's patch. I will mark this series as superseeded.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot