Files
buildroot/package/screen/0004-Renamed-sched.h-to-eventqueue.h.patch
Julien Olivain 4769724ee2 package/screen: bump to version 5.0.0
See release announce [1].

License hash changed, due to url updates from http to https in [2].

Package patches were reworked for this new version:

- Patch 0001 is removed. It is no longer needed with upstream
  commit [3] and [4].

- Patches 0002 to 0004 are rebased to the new version, and are now
  named 0001 to 0003.

- Patch 0005 is regenerated to rename all occurrences of the renamed
  header file. It is now named 0004.

- Patch 0006 is removed. It is included in the new version,
  in commit [5].

- Patch 0007 is removed. It is fixed alternatively upstream in
  commit [6], included in this version.

Also, the patch entries in ".checkpackageignore" were updated
accordingly.

Since upstream commit [7], included in version 5.0.0, screen needs
wchar support. This change is reflected in the Kconfig Config.in file.

Since upstream commit [8], included in version 5.0.0, screen needs
a C17 compiler. This support was introduced in Gcc 8.1.0, see [9].
This requirement is reflected in the Kconfig Config.in file.

This new version also fixes build failures with GCC 14 originally due
to implicit function declarations which became an error. For the
record, screen 4.9.1 builds were failing with error message:

    pty.c: In function 'OpenPTY':
    pty.c:338:7: error: implicit declaration of function 'openpty'; did you mean 'OpenPTY'? [-Wimplicit-function-declaration]
      338 |   if (openpty(&f, &s, TtyName, NULL, NULL) != 0)
          |       ^~~~~~~
          |       OpenPTY

Fixes:
https://autobuild.buildroot.org/results/d33751d88af521f0e09d74e86d94d3ce20976c20/

[1] https://lists.gnu.org/archive/html/screen-users/2024-08/msg00000.html
[2] https://git.savannah.gnu.org/cgit/screen.git/diff/src/COPYING?id=f66377f9927bf5a1857b1106b28008f3802e1f7b
[3] https://git.savannah.gnu.org/cgit/screen.git/commit/?id=46df054064dce87049eca427b7e778a42674a85c
[4] https://git.savannah.gnu.org/cgit/screen.git/commit/?id=725d8ee4fd4fa75cf9d2d6c2f9c7e13920f6c41e
[5] https://git.savannah.gnu.org/cgit/screen.git/commit/?id=39c5f1c76f1fcef4b5958bf828a63f53426b6984
[6] https://git.savannah.gnu.org/cgit/screen.git/commit/?id=84092e65f95dd2a00aa4cc2ba75682297f33dfea
[7] https://git.savannah.gnu.org/cgit/screen.git/commit/?id=9e8e20596f508da866a1e1469b7e6216810dd7f8
[8] https://git.savannah.gnu.org/cgit/screen.git/commit/?id=35f50657c2d09c9995ccac6d68bfd9e2ee7109b2
[9] https://gcc.gnu.org/onlinedocs/gcc-8.1.0/gcc/C-Dialect-Options.html#index-std-1

Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-10-24 21:52:48 +02:00

252 lines
12 KiB
Diff

From 50041d75d59e7343f1fd45bec5bd0c92b47e0a8e Mon Sep 17 00:00:00 2001
From: Maarten ter Huurne <maarten@treewalker.org>
Date: Mon, 15 Sep 2014 00:24:41 +0200
Subject: [PATCH] Renamed sched.h to eventqueue.h
There is a <sched.h> system header that got shadowed by "sched.h".
While Screen itself doesn't include <sched.h>, other system headers
might include it indirectly. This broke the build when using uClibc
with pthread support.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
[Julien: rebase on top of 4.9.1]
[Julien: rebase on top of 5.0.0, renamed all occurences of sched.h]
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Makefile.in | 66 ++++++++++++++++++++---------------------
canvas.h | 2 +-
sched.h => eventqueue.h | 0
sched.c | 2 +-
screen.h | 2 +-
window.h | 2 +-
winmsg.c | 2 +-
7 files changed, 38 insertions(+), 38 deletions(-)
rename sched.h => eventqueue.h (100%)
diff --git a/Makefile.in b/Makefile.in
index d03129e..69ffe60 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -165,116 +165,116 @@ depend.in: $(CFILES) term.h
###############################################################################
### Dependencies:
-screen.o: screen.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+screen.o: screen.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h \
fileio.h mark.h attacher.h encoding.h help.h misc.h process.h socket.h \
termcap.h tty.h utmp.h
-ansi.o: ansi.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+ansi.o: ansi.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h encoding.h \
fileio.h help.h mark.h misc.h process.h resize.h
-fileio.o: fileio.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+fileio.o: fileio.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h fileio.h misc.h process.h winmsgbuf.h termcap.h encoding.h
-mark.o: mark.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+mark.o: mark.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h encoding.h fileio.h mark.h process.h winmsgbuf.h search.h
-misc.o: misc.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+misc.o: misc.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h
-resize.o: resize.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+resize.o: resize.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h process.h winmsgbuf.h resize.h telnet.h
-socket.o: socket.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+socket.o: socket.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h encoding.h fileio.h list_generic.h misc.h process.h \
winmsgbuf.h resize.h socket.h termcap.h tty.h utmp.h
-search.o: search.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+search.o: search.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h mark.h input.h
-tty.o: tty.c config.h screen.h os.h ansi.h sched.h acls.h comm.h layer.h \
+tty.o: tty.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h layer.h \
term.h image.h canvas.h display.h layout.h viewport.h window.h logfile.h \
fileio.h misc.h pty.h telnet.h tty.h
term.o: term.c term.h
-window.o: window.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+window.o: window.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h fileio.h help.h \
input.h mark.h misc.h process.h pty.h resize.h telnet.h termcap.h tty.h \
utmp.h
-utmp.o: utmp.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+utmp.o: utmp.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h misc.h tty.h utmp.h
-help.o: help.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+help.o: help.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h misc.h list_generic.h process.h winmsgbuf.h
-termcap.o: termcap.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+termcap.o: termcap.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h encoding.h misc.h process.h winmsgbuf.h resize.h termcap.h
-input.o: input.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+input.o: input.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h misc.h
-attacher.o: attacher.c config.h screen.h os.h ansi.h sched.h acls.h \
+attacher.o: attacher.c config.h screen.h os.h ansi.h eventqueue.h acls.h \
comm.h layer.h term.h image.h canvas.h display.h layout.h viewport.h \
window.h logfile.h misc.h socket.h tty.h
-pty.o: pty.c config.h screen.h os.h ansi.h sched.h acls.h comm.h layer.h \
+pty.o: pty.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h layer.h \
term.h image.h canvas.h display.h layout.h viewport.h window.h logfile.h
-process.o: process.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+process.o: process.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h encoding.h \
fileio.h help.h input.h kmapdef.h list_generic.h mark.h misc.h process.h \
resize.h search.h socket.h telnet.h termcap.h tty.h utmp.h
-display.o: display.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+display.o: display.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h encoding.h mark.h \
misc.h process.h pty.h resize.h termcap.h tty.h
-comm.o: comm.c config.h os.h screen.h ansi.h sched.h acls.h comm.h \
+comm.o: comm.c config.h os.h screen.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h
kmapdef.o: kmapdef.c config.h
-acls.o: acls.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+acls.o: acls.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h mark.h misc.h process.h winmsgbuf.h
-logfile.o: logfile.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+logfile.o: logfile.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h misc.h
-layer.o: layer.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+layer.o: layer.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h encoding.h mark.h tty.h
-winmsg.o: winmsg.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+winmsg.o: winmsg.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h fileio.h \
process.h mark.h
-winmsgbuf.o: winmsgbuf.c winmsgbuf.h screen.h os.h ansi.h sched.h acls.h \
+winmsgbuf.o: winmsgbuf.c winmsgbuf.h screen.h os.h ansi.h eventqueue.h acls.h \
comm.h layer.h term.h image.h canvas.h display.h layout.h viewport.h \
window.h logfile.h
winmsgcond.o: winmsgcond.c winmsgcond.h
-backtick.o: backtick.c backtick.h screen.h os.h ansi.h sched.h acls.h \
+backtick.o: backtick.c backtick.h screen.h os.h ansi.h eventqueue.h acls.h \
comm.h layer.h term.h image.h canvas.h display.h layout.h viewport.h \
window.h logfile.h fileio.h
-sched.o: sched.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+sched.o: sched.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h
telnet.o: telnet.c config.h comm.h
-encoding.o: encoding.c config.h screen.h os.h ansi.h sched.h acls.h \
+encoding.o: encoding.c config.h screen.h os.h ansi.h eventqueue.h acls.h \
comm.h layer.h term.h image.h canvas.h display.h layout.h viewport.h \
window.h logfile.h encoding.h fileio.h
-canvas.o: canvas.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+canvas.o: canvas.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h help.h list_generic.h resize.h
-layout.o: layout.c config.h screen.h os.h ansi.h sched.h acls.h comm.h \
+layout.o: layout.c config.h screen.h os.h ansi.h eventqueue.h acls.h comm.h \
layer.h term.h image.h canvas.h display.h layout.h viewport.h window.h \
logfile.h fileio.h misc.h process.h winmsgbuf.h resize.h
-viewport.o: viewport.c config.h screen.h os.h ansi.h sched.h acls.h \
+viewport.o: viewport.c config.h screen.h os.h ansi.h eventqueue.h acls.h \
comm.h layer.h term.h image.h canvas.h display.h layout.h viewport.h \
window.h logfile.h
-list_display.o: list_display.c config.h screen.h os.h ansi.h sched.h \
+list_display.o: list_display.c config.h screen.h os.h ansi.h eventqueue.h \
acls.h comm.h layer.h term.h image.h canvas.h display.h layout.h \
viewport.h window.h logfile.h list_generic.h misc.h
-list_generic.o: list_generic.c config.h screen.h os.h ansi.h sched.h \
+list_generic.o: list_generic.c config.h screen.h os.h ansi.h eventqueue.h \
acls.h comm.h layer.h term.h image.h canvas.h display.h layout.h \
viewport.h window.h logfile.h input.h list_generic.h misc.h
-list_window.o: list_window.c config.h screen.h os.h ansi.h sched.h acls.h \
+list_window.o: list_window.c config.h screen.h os.h ansi.h eventqueue.h acls.h \
comm.h layer.h term.h image.h canvas.h display.h layout.h viewport.h \
window.h logfile.h winmsg.h winmsgbuf.h winmsgcond.h backtick.h input.h \
list_generic.h misc.h process.h
diff --git a/canvas.h b/canvas.h
index 8460d9a..ec5fdaa 100644
--- a/canvas.h
+++ b/canvas.h
@@ -31,7 +31,7 @@
#define SCREEN_CANVAS_H
#include "layer.h"
-#include "sched.h"
+#include "eventqueue.h"
#define SLICE_UNKN 0
#define SLICE_VERT (1 << 0)
diff --git a/sched.h b/eventqueue.h
similarity index 100%
rename from sched.h
rename to eventqueue.h
diff --git a/sched.c b/sched.c
index 3618f11..dc59b11 100644
--- a/sched.c
+++ b/sched.c
@@ -28,7 +28,7 @@
#include "config.h"
-#include "sched.h"
+#include "eventqueue.h"
#include <poll.h>
#include <stdint.h>
diff --git a/screen.h b/screen.h
index 308c365..e39c2b1 100644
--- a/screen.h
+++ b/screen.h
@@ -67,7 +67,7 @@ struct mode {
#include "ansi.h"
#include "image.h"
#include "layer.h"
-#include "sched.h"
+#include "eventqueue.h"
#include "term.h"
#include "window.h"
diff --git a/window.h b/window.h
index bc08c6c..294aa64 100644
--- a/window.h
+++ b/window.h
@@ -35,7 +35,7 @@
#include "config.h"
-#include "sched.h"
+#include "eventqueue.h"
#include "logfile.h"
#include "screen.h"
#include "layer.h"
diff --git a/winmsg.c b/winmsg.c
index 2418439..891a20a 100644
--- a/winmsg.c
+++ b/winmsg.c
@@ -44,7 +44,7 @@
#include "logfile.h"
#include "mark.h"
#include "process.h"
-#include "sched.h"
+#include "eventqueue.h"
/* TODO: rid global variable (has been renamed to point this out; see commit
* history) */
--
2.46.2