[packages/epic4] add more configure and type fixes
atler
atler at pld-linux.org
Wed Aug 12 21:15:46 CEST 2026
commit 0f7dfcfd150d86db3b0590716a51380a2ebef4e4
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Aug 12 21:14:07 2026 +0200
add more configure and type fixes
epic4.spec | 2 ++
type-checks.patch | 33 +++++++++++++++++++++++++++++++++
types.patch | 32 ++++++++++++++++++++++++++++++++
3 files changed, 67 insertions(+)
---
diff --git a/epic4.spec b/epic4.spec
index be9e937..3264ccd 100644
--- a/epic4.spec
+++ b/epic4.spec
@@ -14,6 +14,7 @@ Patch0: %{name}-DESTDIR.patch
Patch1: %{name}-gethostname_is_in_libc_aka_no_libnsl.patch
Patch2: %{name}-config_file_path.patch
Patch3: type-checks.patch
+Patch4: types.patch
URL: http://www.epicsol.org/
BuildRequires: autoconf
BuildRequires: automake
@@ -41,6 +42,7 @@ program wykorzystywany do łączenia się z serwerami IRC na całym
%patch -P1 -p1
%patch -P2 -p1
%patch -P3 -p1
+%patch -P4 -p1
%build
%{__aclocal}
diff --git a/type-checks.patch b/type-checks.patch
index f5075d3..237044d 100644
--- a/type-checks.patch
+++ b/type-checks.patch
@@ -1,5 +1,38 @@
--- epic4-2.10.6/configure.in.orig 2024-07-01 14:09:38.511727569 +0200
+++ epic4-2.10.6/configure.in 2024-07-01 16:41:45.537845474 +0200
+@@ -216,14 +216,15 @@
+ AC_MSG_CHECKING(whether term.h works by itself)
+ AC_TRY_RUN([
+ #include <term.h>
++#include <stdlib.h>
+
+ int main (void)
+ {
+ exit(0);
+ }
+ ],
+- AC_MSG_RESULT(yes),
+- AC_MSG_RESULT(no)
++ [AC_MSG_RESULT(yes)],
++ [AC_MSG_RESULT(no)
+ AC_MSG_CHECKING(whether term.h requires termio.h and curses.h)
+ AC_TRY_RUN([
+ #include <termio.h>
+@@ -235,10 +236,10 @@
+ exit(0);
+ }
+ ],
+- AC_MSG_RESULT(yes)
+- AC_DEFINE(TERM_H_REQUIRES_CURSES_H),
+- AC_MSG_RESULT(no, ugh)
+- AC_DEFINE(DONT_USE_TERM_H), :), :)
++ [AC_MSG_RESULT(yes)
++ AC_DEFINE(TERM_H_REQUIRES_CURSES_H)],
++ [AC_MSG_RESULT(no, ugh)
++ AC_DEFINE(DONT_USE_TERM_H)], :)], :)
+
+ AC_HEADER_STDC
+ AC_HEADER_TIME
@@ -521,8 +521,10 @@
],[AC_MSG_RESULT(yes)])
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..4dac67e
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,32 @@
+--- epic4-2.10.11/test.c.orig 2024-04-01 06:33:21.000000000 +0200
++++ epic4-2.10.11/test.c 2026-08-12 21:10:06.342660194 +0200
+@@ -140,18 +140,18 @@
+ char **t_wp;
+ struct t_op const *t_wp_op;
+
+-static enum token t_lex();
+-static int oexpr();
+-static int aexpr();
+-static int nexpr();
++static enum token t_lex(char*);
++static int oexpr(enum token);
++static int aexpr(enum token);
++static int nexpr(enum token);
+ static int binop();
+-static int primary();
+-static int filstat();
+-static int getn();
+-static int newerf();
+-static int olderf();
+-static int equalf();
+-static void syntax();
++static int primary(enum token);
++static int filstat(char*, enum token);
++static int getn(char*);
++static int newerf(char*, char*);
++static int olderf(char*, char*);
++static int equalf(char*, char*);
++static void syntax(char*, char*);
+
+ int
+ main(argc, argv)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/epic4.git/commitdiff/0f7dfcfd150d86db3b0590716a51380a2ebef4e4
More information about the pld-cvs-commit
mailing list