summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/screen
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/screen')
-rw-r--r--meta/recipes-extended/screen/screen/0001-Remove-more-compatibility-stuff.patch31
-rw-r--r--meta/recipes-extended/screen/screen/0001-fix-for-multijob-build.patch58
-rw-r--r--meta/recipes-extended/screen/screen/0002-comm.h-now-depends-on-term.h.patch30
-rw-r--r--meta/recipes-extended/screen/screen/CVE-2021-26937.patch68
-rw-r--r--meta/recipes-extended/screen/screen_5.0.1.bb (renamed from meta/recipes-extended/screen/screen_4.8.0.bb)27
5 files changed, 11 insertions, 203 deletions
diff --git a/meta/recipes-extended/screen/screen/0001-Remove-more-compatibility-stuff.patch b/meta/recipes-extended/screen/screen/0001-Remove-more-compatibility-stuff.patch
deleted file mode 100644
index 1413724d07..0000000000
--- a/meta/recipes-extended/screen/screen/0001-Remove-more-compatibility-stuff.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1This fixes
2../screen-4.6.2/pty.c: In function 'OpenPTY':
3../screen-4.6.2/pty.c:328:7: warning: implicit declaration of function 'openpty'; did you mean 'openat'? [-Wimplicit-function-declaration]
4 if (openpty(&f, &s, TtyName, NULL, NULL) != 0)
5 ^~~~~~~
6
7Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
8Signed-off-by: Adrian Bunk <bunk@stusta.de>
9Upstream-Status: Backport
10
11---
12 pty.c | 6 +-----
13 1 file changed, 1 insertion(+), 5 deletions(-)
14
15diff --git a/pty.c b/pty.c
16index 1c0660e..502338f 100644
17--- a/pty.c
18+++ b/pty.c
19@@ -47,11 +47,7 @@
20 # include <sys/ttold.h>
21 #endif
22
23-#ifdef ISC
24-# include <sys/tty.h>
25-# include <sys/sioctl.h>
26-# include <sys/pty.h>
27-#endif
28+#include <pty.h>
29
30 #ifdef sgi
31 # include <sys/sysmacros.h>
diff --git a/meta/recipes-extended/screen/screen/0001-fix-for-multijob-build.patch b/meta/recipes-extended/screen/screen/0001-fix-for-multijob-build.patch
deleted file mode 100644
index fbdb0eb478..0000000000
--- a/meta/recipes-extended/screen/screen/0001-fix-for-multijob-build.patch
+++ /dev/null
@@ -1,58 +0,0 @@
1From 79ad2885e26631077dd6b8aebe17ae95b38133a6 Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Tue, 26 Jul 2016 14:23:59 +0800
4Subject: [PATCH] fix for multijob build
5
6make sure that comm.sh script generates comm.h header before doing
7anything else
8
9Signed-off-by: Amadeusz Sawiski <amade@asmblr.net>
10
11Upstream-Status: Backport
12
13Backport patch to fix parallel build failure and update context to make patch
14coulde be applied.
15
16http://git.savannah.gnu.org/cgit/screen.git/commit?id=c0de6dd
17
18Signed-off-by: Kai Kang <kai.kang@windriver.com>
19Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
20---
21 Makefile.in | 8 ++++----
22 1 file changed, 4 insertions(+), 4 deletions(-)
23
24diff --git a/Makefile.in b/Makefile.in
25index aca7da3..3607711 100644
26--- a/Makefile.in
27+++ b/Makefile.in
28@@ -298,7 +298,7 @@ search.o: layout.h viewport.h canvas.h search.c config.h screen.h os.h osdef.h a
29 comm.h layer.h term.h image.h display.h window.h mark.h extern.h
30 tty.o: layout.h viewport.h canvas.h tty.c config.h screen.h os.h osdef.h ansi.h acls.h comm.h \
31 layer.h term.h image.h display.h window.h extern.h
32-term.o: layout.h viewport.h canvas.h term.c term.h
33+term.o: layout.h viewport.h canvas.h term.c term.h comm.h
34 window.o: layout.h viewport.h canvas.h window.c config.h screen.h os.h osdef.h ansi.h acls.h \
35 comm.h layer.h term.h image.h display.h window.h extern.h logfile.h
36 utmp.o: layout.h viewport.h canvas.h utmp.c config.h screen.h os.h osdef.h ansi.h acls.h \
37@@ -324,7 +324,7 @@ canvas.o: layout.h viewport.h canvas.h canvas.c config.h screen.h os.h osdef.h a
38 comm.h layer.h term.h image.h display.h window.h extern.h \
39 braille.h
40 comm.o: layout.h viewport.h canvas.h comm.c config.h acls.h comm.h
41-kmapdef.o: layout.h viewport.h canvas.h kmapdef.c config.h
42+kmapdef.o: layout.h viewport.h canvas.h kmapdef.c config.h comm.h
43 acls.o: layout.h viewport.h canvas.h acls.c config.h screen.h os.h osdef.h ansi.h acls.h comm.h \
44 layer.h term.h image.h display.h window.h extern.h
45 braille.o: layout.h viewport.h canvas.h braille.c config.h screen.h os.h osdef.h ansi.h acls.h \
46@@ -350,7 +350,7 @@ layout.o: layout.h viewport.h canvas.h layout.c config.h screen.h os.h osdef.h a
47 viewport.o: layout.h viewport.h canvas.h viewport.c config.h screen.h os.h osdef.h ansi.h acls.h \
48 comm.h layer.h term.h image.h display.h window.h extern.h \
49 braille.h
50-list_generic.o: list_generic.h list_generic.c layer.h screen.h osdef.h
51-list_display.o: list_generic.h list_display.c layer.h screen.h osdef.h
52+list_generic.o: list_generic.h list_generic.c layer.h screen.h osdef.h comm.h
53+list_display.o: list_generic.h list_display.c layer.h screen.h osdef.h comm.h
54 list_window.o: list_generic.h list_window.c window.h layer.h screen.h osdef.h comm.h
55
56--
571.9.1
58
diff --git a/meta/recipes-extended/screen/screen/0002-comm.h-now-depends-on-term.h.patch b/meta/recipes-extended/screen/screen/0002-comm.h-now-depends-on-term.h.patch
deleted file mode 100644
index a01dc24751..0000000000
--- a/meta/recipes-extended/screen/screen/0002-comm.h-now-depends-on-term.h.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1Upstream-Status: Backport
2
3Backport from:
4
5http://git.savannah.gnu.org/cgit/screen.git/commit/?id=39c5f1c
6
7Signed-off-by: Kai Kang <kai.kang@windriver.com>
8---
9From 39c5f1c76f1fcef4b5958bf828a63f53426b6984 Mon Sep 17 00:00:00 2001
10From: Mike Gerwitz <mike@mikegerwitz.com>
11Date: Tue, 24 Dec 2013 22:16:31 -0500
12Subject: [PATCH] comm.h now depends on term.h
13
14---
15 src/Makefile.in | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18Index: screen-4.6.1/Makefile.in
19===================================================================
20--- screen-4.6.1.orig/Makefile.in
21+++ screen-4.6.1/Makefile.in
22@@ -133,7 +133,7 @@ kmapdef.c: term.h
23 tty.c: tty.sh
24 sh $(srcdir)/tty.sh tty.c
25
26-comm.h: comm.c comm.sh config.h
27+comm.h: comm.c comm.sh config.h term.h
28 AWK=$(AWK) CC="$(CC) $(CFLAGS)" srcdir=${srcdir} sh $(srcdir)/comm.sh
29
30 osdef.h: osdef.sh config.h osdef.h.in
diff --git a/meta/recipes-extended/screen/screen/CVE-2021-26937.patch b/meta/recipes-extended/screen/screen/CVE-2021-26937.patch
deleted file mode 100644
index 983b35c1b0..0000000000
--- a/meta/recipes-extended/screen/screen/CVE-2021-26937.patch
+++ /dev/null
@@ -1,68 +0,0 @@
1Description: [CVE-2021-26937] Fix out of bounds array access
2Author: Michael Schröder <mls@suse.de>
3Bug-Debian: https://bugs.debian.org/982435
4Bug: https://savannah.gnu.org/bugs/?60030
5Bug: https://lists.gnu.org/archive/html/screen-devel/2021-02/msg00000.html
6Bug-OSS-Security: https://www.openwall.com/lists/oss-security/2021/02/09/3
7Origin: https://lists.gnu.org/archive/html/screen-devel/2021-02/msg00010.html
8
9CVE: CVE-2021-26937
10Upstream-Status: Pending
11Signed-off-by: Scott Murray <scott.murray@konsulko.com>
12
13--- a/encoding.c
14+++ b/encoding.c
15@@ -43,7 +43,7 @@
16 # ifdef UTF8
17 static int recode_char __P((int, int, int));
18 static int recode_char_to_encoding __P((int, int));
19-static void comb_tofront __P((int, int));
20+static void comb_tofront __P((int));
21 # ifdef DW_CHARS
22 static int recode_char_dw __P((int, int *, int, int));
23 static int recode_char_dw_to_encoding __P((int, int *, int));
24@@ -1263,6 +1263,8 @@
25 {0x30000, 0x3FFFD},
26 };
27
28+ if (c >= 0xdf00 && c <= 0xdfff)
29+ return 1; /* dw combining sequence */
30 return ((bisearch(c, wide, sizeof(wide) / sizeof(struct interval) - 1)) ||
31 (cjkwidth &&
32 bisearch(c, ambiguous,
33@@ -1330,11 +1332,12 @@
34 }
35
36 static void
37-comb_tofront(root, i)
38-int root, i;
39+comb_tofront(i)
40+int i;
41 {
42 for (;;)
43 {
44+ int root = i >= 0x700 ? 0x801 : 0x800;
45 debug1("bring to front: %x\n", i);
46 combchars[combchars[i]->prev]->next = combchars[i]->next;
47 combchars[combchars[i]->next]->prev = combchars[i]->prev;
48@@ -1396,9 +1399,9 @@
49 {
50 /* full, recycle old entry */
51 if (c1 >= 0xd800 && c1 < 0xe000)
52- comb_tofront(root, c1 - 0xd800);
53+ comb_tofront(c1 - 0xd800);
54 i = combchars[root]->prev;
55- if (c1 == i + 0xd800)
56+ if (i == 0x800 || i == 0x801 || c1 == i + 0xd800)
57 {
58 /* completely full, can't recycle */
59 debug("utf8_handle_comp: completely full!\n");
60@@ -1422,7 +1425,7 @@
61 mc->font = (i >> 8) + 0xd8;
62 mc->fontx = 0;
63 debug3("combinig char %x %x -> %x\n", c1, c, i + 0xd800);
64- comb_tofront(root, i);
65+ comb_tofront(i);
66 }
67
68 #else /* !UTF8 */
diff --git a/meta/recipes-extended/screen/screen_4.8.0.bb b/meta/recipes-extended/screen/screen_5.0.1.bb
index fe640c262b..69f4098519 100644
--- a/meta/recipes-extended/screen/screen_4.8.0.bb
+++ b/meta/recipes-extended/screen/screen_5.0.1.bb
@@ -7,45 +7,40 @@ BUGTRACKER = "https://savannah.gnu.org/bugs/?func=additem&group=screen"
7 7
8SECTION = "console/utils" 8SECTION = "console/utils"
9 9
10LICENSE = "GPLv3+" 10LICENSE = "GPL-3.0-or-later"
11LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ 11LIC_FILES_CHKSUM = "file://COPYING;md5=c678957b0c8e964aa6c70fd77641a71e \
12 file://screen.h;endline=26;md5=b8dc717c9a3dba842ae6c44ca0f73f52 \ 12 file://screen.h;endline=26;md5=b8dc717c9a3dba842ae6c44ca0f73f52 \
13 " 13 "
14 14
15DEPENDS = "ncurses virtual/crypt \ 15DEPENDS = "ncurses virtual/crypt \
16 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" 16 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
17RDEPENDS_${PN} = "base-files" 17RDEPENDS:${PN} = "base-files"
18 18
19SRC_URI = "${GNU_MIRROR}/screen/screen-${PV}.tar.gz \ 19SRC_URI = "${GNU_MIRROR}/screen/screen-${PV}.tar.gz \
20 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'file://screen.pam', '', d)} \ 20 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'file://screen.pam', '', d)} \
21 file://0002-comm.h-now-depends-on-term.h.patch \ 21 "
22 file://0001-fix-for-multijob-build.patch \
23 file://0001-Remove-more-compatibility-stuff.patch \
24 file://CVE-2021-26937.patch \
25 "
26 22
27SRC_URI[md5sum] = "d276213d3acd10339cd37848b8c4ab1e" 23SRC_URI[sha256sum] = "2dae36f4db379ffcd14b691596ba6ec18ac3a9e22bc47ac239789ab58409869d"
28SRC_URI[sha256sum] = "6e11b13d8489925fde25dfb0935bf6ed71f9eb47eff233a181e078fde5655aa1"
29 24
30inherit autotools texinfo 25inherit autotools-brokensep texinfo
31 26
32PACKAGECONFIG ??= "" 27PACKAGECONFIG ??= ""
33PACKAGECONFIG[utempter] = "ac_cv_header_utempter_h=yes,ac_cv_header_utempter_h=no,libutempter," 28PACKAGECONFIG[utempter] = "ac_cv_header_utempter_h=yes,ac_cv_header_utempter_h=no,libutempter,"
34 29
35EXTRA_OECONF = "--with-pty-mode=0620 --with-pty-group=5 --with-sys-screenrc=${sysconfdir}/screenrc \ 30EXTRA_OECONF = "--with-pty-mode=0620 --with-pty-group=5 --with-system_screenrc=${sysconfdir}/screenrc \
36 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}" 31 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)}"
37 32
38do_install_append () { 33do_install:append () {
39 install -D -m 644 ${S}/etc/etcscreenrc ${D}/${sysconfdir}/screenrc 34 install -D -m 644 ${S}/etc/etcscreenrc ${D}/${sysconfdir}/screenrc
40 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then 35 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then
41 install -D -m 644 ${WORKDIR}/screen.pam ${D}/${sysconfdir}/pam.d/screen 36 install -D -m 644 ${UNPACKDIR}/screen.pam ${D}/${sysconfdir}/pam.d/screen
42 fi 37 fi
43} 38}
44 39
45pkg_postinst_${PN} () { 40pkg_postinst:${PN} () {
46 grep -q "^${bindir}/screen$" $D${sysconfdir}/shells || echo ${bindir}/screen >> $D${sysconfdir}/shells 41 grep -q "^${bindir}/screen$" $D${sysconfdir}/shells || echo ${bindir}/screen >> $D${sysconfdir}/shells
47} 42}
48 43
49pkg_postrm_${PN} () { 44pkg_postrm:${PN} () {
50 printf "$(grep -v "^${bindir}/screen$" $D${sysconfdir}/shells)\n" > $D${sysconfdir}/shells 45 printf "$(grep -v "^${bindir}/screen$" $D${sysconfdir}/shells)\n" > $D${sysconfdir}/shells
51} 46}