Date: Fri, 27 Oct 2023 09:17:48 GMT From: Emmanuel Vadot <manu@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org Subject: git: 285157eaa532 - 2023Q4 - x11-servers/xorg-server: Implement -novtswitch option handling. Message-ID: <202310270917.39R9HmUU059718@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch 2023Q4 has been updated by manu: URL: https://cgit.FreeBSD.org/ports/commit/?id=285157eaa53251edf421d5dc46bc86436ee26e5d commit 285157eaa53251edf421d5dc46bc86436ee26e5d Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2023-09-28 18:13:22 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2023-10-27 09:17:33 +0000 x11-servers/xorg-server: Implement -novtswitch option handling. Sponsored by: Serenity Cybersecurity, LLC Differential Revision: https://reviews.freebsd.org/D42014 (cherry picked from commit 3f2ce0f6a0e48c004c02b00e79658180f424574c) --- x11-servers/xorg-server/Makefile | 2 +- .../patch-hw_xfree86_os-support_bsd_bsd__init.c | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/x11-servers/xorg-server/Makefile b/x11-servers/xorg-server/Makefile index 089fe72c7c99..7903e64aa44c 100644 --- a/x11-servers/xorg-server/Makefile +++ b/x11-servers/xorg-server/Makefile @@ -1,6 +1,6 @@ PORTNAME= xorg PORTVERSION= 21.1.8 -PORTREVISION= 5 +PORTREVISION= 6 PORTEPOCH= 1 CATEGORIES= x11-servers MASTER_SITES= XORG/individual/xserver diff --git a/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__init.c b/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__init.c index 011f3becc26f..09ab0b818b37 100644 --- a/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__init.c +++ b/x11-servers/xorg-server/files/patch-hw_xfree86_os-support_bsd_bsd__init.c @@ -1,5 +1,5 @@ ---- hw/xfree86/os-support/bsd/bsd_init.c.orig 2022-01-02 23:41:56.000000000 +0100 -+++ hw/xfree86/os-support/bsd/bsd_init.c 2022-06-29 11:57:25.596851000 +0200 +--- hw/xfree86/os-support/bsd/bsd_init.c.orig 2023-03-29 12:55:03 UTC ++++ hw/xfree86/os-support/bsd/bsd_init.c @@ -48,6 +48,8 @@ static int initialVT = -1; #if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT) static int VTnum = -1; @@ -54,6 +54,15 @@ } else { /* xf86Info.ShareVTs */ close(xf86Info.consoleFd); +@@ -303,7 +329,7 @@ xf86OpenConsole() + else { + /* serverGeneration != 1 */ + #if defined (SYSCONS_SUPPORT) || defined (PCVT_SUPPORT) +- if (!xf86Info.ShareVTs && ++ if (!xf86Info.ShareVTs && xf86Info.autoVTSwitch && + (xf86Info.consType == SYSCONS || xf86Info.consType == PCVT)) { + if (ioctl(xf86Info.consoleFd, VT_ACTIVATE, xf86Info.vtno) != 0) { + xf86Msg(X_WARNING, "xf86OpenConsole: VT_ACTIVATE failed\n"); @@ -594,6 +620,8 @@ xf86CloseConsole() case SYSCONS: case PCVT: @@ -63,3 +72,12 @@ if (ioctl(xf86Info.consoleFd, VT_GETMODE, &VT) != -1) { VT.mode = VT_AUTO; ioctl(xf86Info.consoleFd, VT_SETMODE, &VT); /* dflt vt handling */ +@@ -604,7 +632,7 @@ xf86CloseConsole() + strerror(errno)); + } + #endif +- if (initialVT != -1) ++ if (xf86Info.autoVTSwitch && initialVT != -1) + ioctl(xf86Info.consoleFd, VT_ACTIVATE, initialVT); + break; + #endif /* SYSCONS_SUPPORT || PCVT_SUPPORT */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310270917.39R9HmUU059718>