[packages/neXtaw] - fixes for missing prototypes

qboosh qboosh at pld-linux.org
Sun Dec 1 19:46:31 CET 2024


commit b13810be7405224d41cf03eb38aeda08b28f6735
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 1 19:28:39 2024 +0100

    - fixes for missing prototypes

 neXtaw-build.patch | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 neXtaw.spec        |  8 ++++++++
 2 files changed, 54 insertions(+)
---
diff --git a/neXtaw.spec b/neXtaw.spec
index 20a2d85..4c916ea 100644
--- a/neXtaw.spec
+++ b/neXtaw.spec
@@ -7,6 +7,7 @@ License:	MIT
 Group:		Libraries
 Source0:	http://siag.nu/pub/neXtaw/%{name}-%{version}.tar.gz
 # Source0-md5:	1c9cbcef735d8e26f3e48bd529aca6a7
+Patch0:		%{name}-build.patch
 URL:		http://siag.nu/neXtaw/
 BuildRequires:	bison
 BuildRequires:	flex
@@ -58,6 +59,13 @@ Statyczna biblioteka neXtaw.
 
 %prep
 %setup -q
+%patch0 -p1
+
+# force bison skeleton update
+%{__rm} X11/neXtaw/laygram.c
+
+# force flex skeleton update
+%{__rm} X11/neXtaw/laylex.c
 
 install -d app-defaults-examples
 cp -p doc/app-defaults/* app-defaults-examples
diff --git a/neXtaw-build.patch b/neXtaw-build.patch
new file mode 100644
index 0000000..1ab095e
--- /dev/null
+++ b/neXtaw-build.patch
@@ -0,0 +1,46 @@
+--- neXtaw-0.15.1/X11/neXtaw/XawIm.c.orig	2003-08-24 08:24:13.000000000 +0200
++++ neXtaw-0.15.1/X11/neXtaw/XawIm.c	2024-12-01 13:44:14.476426813 +0100
+@@ -62,6 +62,7 @@ in this Software without prior written a
+ #include <X11/Xos.h>
+ #include <X11/Xfuncs.h>
+ #include <X11/ShellP.h>
++#include <X11/ResourceI.h>
+ #include "TextP.h"
+ #include "MultiSrc.h"
+ #include "MultiSinkP.h"
+#--- neXtaw-0.15.1/X11/neXtaw/laygram.h.orig	2024-12-01 13:56:43.584091157 +0100
+#+++ neXtaw-0.15.1/X11/neXtaw/laygram.h	2024-12-01 18:24:05.493681525 +0100
+#@@ -32,3 +32,5 @@ typedef union {
+#     Operator	    oval;
+# } YYSTYPE;
+# extern YYSTYPE LayYYlval;
+#+extern int LayYYlex (void);
+#+extern int LayYYerror (char *s);
+--- neXtaw-0.15.1/X11/neXtaw/laygram.y.orig	2003-01-15 16:50:49.000000000 +0100
++++ neXtaw-0.15.1/X11/neXtaw/laygram.y	2024-12-01 18:46:32.231476775 +0100
+@@ -9,6 +9,8 @@
+ #include    <X11/Xmu/Misc.h>
+ #include    <X11/Xmu/Converters.h>
+ #include    "LayoutP.h"
++extern int LayYYlex (void);
++extern int LayYYerror (char *s);
+ 
+ static LayoutPtr    *dest;
+ 
+--- neXtaw-0.15.1/X11/neXtaw/laylex.l.orig	2003-01-15 16:50:49.000000000 +0100
++++ neXtaw-0.15.1/X11/neXtaw/laylex.l	2024-12-01 19:13:22.294128899 +0100
+@@ -86,12 +86,14 @@ count (s, c)
+     return i;
+ }
+ 
++void
+ yysetsource(s)
+     char    *s;
+ {
+     yysourcebase = yysource = s;
+ }
+ 
++void
+ yyerror(s)
+     char    *s;
+ {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/neXtaw.git/commitdiff/b13810be7405224d41cf03eb38aeda08b28f6735



More information about the pld-cvs-commit mailing list