summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-10-13 04:11:05 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-10-13 05:06:07 -0400
commitbd7aa280e36e37620e378c70aed1f0c04c80969e (patch)
treefe29ced5283d377c0a0b00a8b3b6b319ee4ffa56 /x11-libs/neXtaw/files
parentgames-arcade/stardork: EAPI6->8, fix build with clang16 (diff)
downloadgentoo-bd7aa280e36e37620e378c70aed1f0c04c80969e.tar.gz
gentoo-bd7aa280e36e37620e378c70aed1f0c04c80969e.tar.bz2
gentoo-bd7aa280e36e37620e378c70aed1f0c04c80969e.zip
x11-libs/neXtaw: EAPI7->8, fix w/ clang16, -std=gnu89 + -fno-strict
clang16 fixes regenerates some flex/yacc files so BDEPEND on them. Haven't looked for a proper fix wrt #864535, may be easy but passing -fno-strict-aliasing as better-than-nothing. Closes: https://bugs.gentoo.org/864535 Closes: https://bugs.gentoo.org/871489 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'x11-libs/neXtaw/files')
-rw-r--r--x11-libs/neXtaw/files/neXtaw-0.15.1-clang16.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/x11-libs/neXtaw/files/neXtaw-0.15.1-clang16.patch b/x11-libs/neXtaw/files/neXtaw-0.15.1-clang16.patch
new file mode 100644
index 000000000000..a1f5bf27922c
--- /dev/null
+++ b/x11-libs/neXtaw/files/neXtaw-0.15.1-clang16.patch
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/871489
+--- a/X11/neXtaw/XawIm.c
++++ b/X11/neXtaw/XawIm.c
+@@ -61,2 +61,3 @@
+ #include <X11/StringDefs.h>
++#include <X11/ResourceI.h>
+ #include <X11/Xos.h>
+--- a/X11/neXtaw/laygram.y
++++ b/X11/neXtaw/laygram.y
+@@ -16,2 +16,7 @@
+
++%code provides {
++ void yyerror(char *s);
++ int yylex(void);
++}
++
+ %union {
+--- a/X11/neXtaw/laylex.l
++++ b/X11/neXtaw/laylex.l
+@@ -88,2 +88,3 @@
+
++void
+ yysetsource(s)
+@@ -94,2 +95,3 @@
+
++void
+ yyerror(s)