[packages/wterm] - more C23/-Werror fixes
qboosh
qboosh at pld-linux.org
Sat Jul 18 17:44:43 CEST 2026
commit a42291d1e9877145d2c2a5fd1a3e31a9f8cb3f03
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 18 17:44:47 2026 +0200
- more C23/-Werror fixes
wterm-extern.patch | 10 ++++++++++
wterm-includes.patch | 11 +++++++++++
wterm-types.patch | 13 +++++++++++++
wterm.spec | 5 +++++
4 files changed, 39 insertions(+)
---
diff --git a/wterm.spec b/wterm.spec
index 152ab2c..8b7e3d2 100644
--- a/wterm.spec
+++ b/wterm.spec
@@ -12,6 +12,8 @@ Source1: %{name}.desktop
Source2: %{name}.png
Patch0: %{name}-extern.patch
Patch1: %{name}-path.patch
+Patch2: %{name}-includes.patch
+Patch3: %{name}-types.patch
URL: https://sourceforge.net/projects/wterm/
BuildRequires: WindowMaker-devel
BuildRequires: autoconf
@@ -35,10 +37,13 @@ przezroczystości tła czy przezroczysty pasek przewijania typu NeXT.
%setup -q
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
%build
%{__autoconf} -I autoconf autoconf/configure.in > configure
%{__autoheader} -I autoconf autoconf/configure.in > autoconf/config.h.in
+CPPFLAGS="%{rpmcppflags} -D_DEFAULT_SOURCE"
%configure \
--enable-menubar \
--enable-next-scroll \
diff --git a/wterm-extern.patch b/wterm-extern.patch
index c438bc3..b377b34 100644
--- a/wterm-extern.patch
+++ b/wterm-extern.patch
@@ -11,3 +11,13 @@
#ifndef NO_XLOCALE
+--- wterm-6.2.9/src/scrollbar2.c.orig 1999-02-02 12:07:55.000000000 +0100
++++ wterm-6.2.9/src/scrollbar2.c 2026-07-18 16:30:49.129553368 +0200
+@@ -296,6 +296,7 @@ scrollbar_mapping(int map)
+ }
+
+
++/* PROTO */
+ int
+ scrollbar_show(int update)
+ {
diff --git a/wterm-includes.patch b/wterm-includes.patch
new file mode 100644
index 0000000..f2b6916
--- /dev/null
+++ b/wterm-includes.patch
@@ -0,0 +1,11 @@
+--- wterm-6.2.9/src/command.c.orig 2026-07-18 16:31:01.312820698 +0200
++++ wterm-6.2.9/src/command.c 2026-07-18 16:34:51.204908599 +0200
+@@ -75,6 +75,8 @@ static const char rcsid[] = "$Id: comman
+ # define _NEW_TTY_CTRL /* to get proper defines in <termios.h> */
+ #endif
+
++#include <pty.h>
++
+ /*}}} */
+
+ /* #define DEBUG_TTYMODE */
diff --git a/wterm-types.patch b/wterm-types.patch
new file mode 100644
index 0000000..b9d5ac6
--- /dev/null
+++ b/wterm-types.patch
@@ -0,0 +1,13 @@
+--- wterm-6.2.9/src/screen.c.orig 2000-03-05 11:11:42.000000000 +0100
++++ wterm-6.2.9/src/screen.c 2026-07-18 17:05:28.651620963 +0200
+@@ -2046,8 +2046,8 @@ scr_refresh(int type)
+ #ifndef NO_BOLDFONT
+ int bfont = 0; /* we've changed font to bold font */
+ #endif
+- int (*draw_string) (),
+- (*draw_image_string) ();
++ int (*draw_string) (Display*, Drawable, GC, int, int, const char *, int),
++ (*draw_image_string) (Display*, Drawable, GC, int, int, const char *, int);
+
+ if (type == NO_REFRESH)
+ return;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/wterm.git/commitdiff/a42291d1e9877145d2c2a5fd1a3e31a9f8cb3f03
More information about the pld-cvs-commit
mailing list