forked from pool/util-linux
.
OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=235
This commit is contained in:
parent
e41b22aefc
commit
23975498de
34
tty3270-on-serial-line-of-s390.patch
Normal file
34
tty3270-on-serial-line-of-s390.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
Support the special terminal on first serial line on a S/390(x) which
|
||||||
|
is due legacy reasons a block terminal of type 3270 or higher. Whereas
|
||||||
|
the second serial line on a S/390(x) is a real character terminal which
|
||||||
|
is compatible with VT220.
|
||||||
|
|
||||||
|
---
|
||||||
|
term-utils/agetty.c | 14 ++++++++++++++
|
||||||
|
1 file changed, 14 insertions(+)
|
||||||
|
|
||||||
|
Index: util-linux-2.24.1/term-utils/agetty.c
|
||||||
|
===================================================================
|
||||||
|
--- util-linux-2.24.1.orig/term-utils/agetty.c 2014-02-09 21:19:01.000000000 +0000
|
||||||
|
+++ util-linux-2.24.1/term-utils/agetty.c 2014-02-09 21:19:27.000000000 +0000
|
||||||
|
@@ -1042,6 +1042,20 @@ static void open_tty(char *tty, struct t
|
||||||
|
/* make stdio unbuffered for slow modem lines */
|
||||||
|
setvbuf(stdout, NULL, _IONBF, 0);
|
||||||
|
|
||||||
|
+#if defined (__s390__) || defined (__s390x__)
|
||||||
|
+ if (!op->term) {
|
||||||
|
+ /*
|
||||||
|
+ * Special terminal on first serial line on a S/390(x) which
|
||||||
|
+ * is due legacy reasons a block terminal of type 3270 or
|
||||||
|
+ * higher. Whereas the second serial line on a S/390(x) is
|
||||||
|
+ * a real character terminal which is compatible with VT220.
|
||||||
|
+ */
|
||||||
|
+ if (strcmp(op->tty, "ttyS0") == 0 || strncmp(op->tty, "3270/tty", 8) == 0)
|
||||||
|
+ op->term = DEFAULT_TTYS0;
|
||||||
|
+ else if (strcmp(op->tty, "ttyS1") == 0)
|
||||||
|
+ op->term = DEFAULT_TTYS1;
|
||||||
|
+ }
|
||||||
|
+#endif
|
||||||
|
/*
|
||||||
|
* The following ioctl will fail if stdin is not a tty, but also when
|
||||||
|
* there is noise on the modem control lines. In the latter case, the
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 7 13:34:19 UTC 2014 - werner@suse.de
|
||||||
|
|
||||||
|
- Readd patch tty3270-on-serial-line-of-s390.patch
|
||||||
|
as it includes a required part for s390 which has *not*
|
||||||
|
added upstream.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 24 11:33:36 UTC 2014 - sweet_f_a@gmx.de
|
Thu Apr 24 11:33:36 UTC 2014 - sweet_f_a@gmx.de
|
||||||
|
|
||||||
|
@ -104,6 +104,9 @@ Patch2: util-linux-2.23.1-eject-fpie.patch
|
|||||||
Patch4: make-sure-sbin-resp-usr-sbin-are-in-PATH.diff
|
Patch4: make-sure-sbin-resp-usr-sbin-are-in-PATH.diff
|
||||||
# disable encryption
|
# disable encryption
|
||||||
Patch12: util-linux-2.23.1-noenc-suse.diff
|
Patch12: util-linux-2.23.1-noenc-suse.diff
|
||||||
|
# PATCH-FIX-SUSE -- better support of S390 in agetty
|
||||||
|
# Do not drop this patch as it includes changes which are NOT upstream yet
|
||||||
|
Patch14: tty3270-on-serial-line-of-s390.patch
|
||||||
# PATCH-FIX-SUSE -- Let agetty not be fooled by locked termios srtucture
|
# PATCH-FIX-SUSE -- Let agetty not be fooled by locked termios srtucture
|
||||||
Patch15: agetty-fooled-on-serial-line-due-plymouth.patch
|
Patch15: agetty-fooled-on-serial-line-due-plymouth.patch
|
||||||
# PATCH-FIX-SUSE -- Let agetty detect /dev/3270/tty1 as device not as baud rate
|
# PATCH-FIX-SUSE -- Let agetty detect /dev/3270/tty1 as device not as baud rate
|
||||||
@ -247,6 +250,7 @@ xzcat %{S:0} | %gpg_verify %{S:12} -
|
|||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%patch12 -p1
|
%patch12 -p1
|
||||||
|
%patch14 -p1
|
||||||
%patch15 -p0
|
%patch15 -p0
|
||||||
%patch16 -p0
|
%patch16 -p0
|
||||||
%patch17 -p0
|
%patch17 -p0
|
||||||
|
Loading…
Reference in New Issue
Block a user