[packages/motif] add fixes for recent gcc versions
atler
atler at pld-linux.org
Sun Aug 25 16:24:26 CEST 2024
commit dc2c310764e630040d5e7eb6284dc881805a04a4
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Aug 25 14:52:14 2024 +0200
add fixes for recent gcc versions
includes.patch | 20 ++++++++++++++++++++
motif.spec | 4 ++++
yacc.patch | 23 +++++++++++++++++++++++
3 files changed, 47 insertions(+)
---
diff --git a/motif.spec b/motif.spec
index c99a6cc..d05957d 100644
--- a/motif.spec
+++ b/motif.spec
@@ -20,6 +20,8 @@ Patch1: %{name}-bison.patch
Patch2: %{name}-freetype.patch
Patch3: %{name}-parbuild.patch
Patch4: format-security.patch
+Patch5: includes.patch
+Patch6: yacc.patch
URL: http://motif.ics.com/
BuildRequires: autoconf >= 2.59-9
BuildRequires: automake
@@ -179,6 +181,8 @@ stare programy mogą z nimi działać).
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
+%patch6 -p1
%build
%{__libtoolize}
diff --git a/includes.patch b/includes.patch
new file mode 100644
index 0000000..eaf770b
--- /dev/null
+++ b/includes.patch
@@ -0,0 +1,20 @@
+--- motif-2.3.8/lib/Xm/XpmI.h.orig 2017-08-17 02:38:43.000000000 +0200
++++ motif-2.3.8/lib/Xm/XpmI.h 2024-08-25 13:38:11.910672625 +0200
+@@ -122,6 +122,7 @@
+ #include <sys/types.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <limits.h>
+ #include <X11/Xmd.h>
+ /* stdio.h doesn't declare popen on a Sequent DYNIX OS */
+--- motif-2.3.8/demos/unsupported/xmform/xmform.c.orig 2016-03-16 03:10:08.000000000 +0100
++++ motif-2.3.8/demos/unsupported/xmform/xmform.c 2024-08-25 14:37:19.025226804 +0200
+@@ -54,6 +54,7 @@
+ #include <Xm/Form.h>
+ #include <Xm/PushB.h>
+ #include <Xm/ArrowB.h>
++#include <stdlib.h>
+
+ static void FillItPlease();
+ static void NearlyEvenSpread();
diff --git a/yacc.patch b/yacc.patch
new file mode 100644
index 0000000..d300080
--- /dev/null
+++ b/yacc.patch
@@ -0,0 +1,23 @@
+--- motif-2.3.8/tools/wml/wmlparse.y.orig 2016-03-16 03:10:08.000000000 +0100
++++ motif-2.3.8/tools/wml/wmlparse.y 2024-08-25 14:17:25.794975114 +0200
+@@ -38,6 +38,8 @@
+ #if defined(__STDC__)
+ #include <string.h> /* for strcpy() */
+ #endif
++int yylex (void);
++int yyerror (char *);
+
+ #ifndef XmConst
+ #if defined(__STDC__) || !defined( NO_CONST )
+--- motif-2.3.8/tools/wml/Uil.y.orig 2017-08-17 02:38:43.000000000 +0200
++++ motif-2.3.8/tools/wml/Uil.y 2024-08-25 14:26:49.569284639 +0200
+@@ -43,6 +43,9 @@
+ #include "UilDefI.h"
+ #include "UilCompGl.h"
+
++int yylex (void);
++int yyerror (char *);
++
+ #define YYSTYPE yystype
+
+ #define YYDEBUG 1
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/motif.git/commitdiff/78aa51aae5ffb788a1411d9888b5968332e69952
More information about the pld-cvs-commit
mailing list