commit:     4699002678178dafc5031ad22b8d5b60d614b505
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Tue Nov 19 19:09:26 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 24 22:18:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46990026

x11-misc/sddm: try to use VT7 first

>From https://github.com/sddm/sddm/commit/0ff45c0

Set SDDM_INITIAL_VT=7.
This potentially fixes a lot of the vt related bugs and might allow
DisplayServer to be set to wayland or x11-user.

Bug: https://bugs.gentoo.org/920955
Bug: https://bugs.gentoo.org/915483
Bug: https://bugs.gentoo.org/914656
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/39375
Closes: https://github.com/gentoo/gentoo/pull/39375
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...nager-init-1.1.2-r1.ebuild => display-manager-init-1.1.2-r2.ebuild} | 0
 gui-libs/display-manager-init/files/display-manager.confd              | 1 +
 x11-misc/sddm/sddm-0.21.0_p20250326.ebuild                             | 3 +++
 3 files changed, 4 insertions(+)

diff --git a/gui-libs/display-manager-init/display-manager-init-1.1.2-r1.ebuild 
b/gui-libs/display-manager-init/display-manager-init-1.1.2-r2.ebuild
similarity index 100%
rename from gui-libs/display-manager-init/display-manager-init-1.1.2-r1.ebuild
rename to gui-libs/display-manager-init/display-manager-init-1.1.2-r2.ebuild

diff --git a/gui-libs/display-manager-init/files/display-manager.confd 
b/gui-libs/display-manager-init/files/display-manager.confd
index 25d57e923c45..9a8b9fab2bd9 100644
--- a/gui-libs/display-manager-init/files/display-manager.confd
+++ b/gui-libs/display-manager-init/files/display-manager.confd
@@ -5,6 +5,7 @@
 # We do this check to ensure that you haven't accidentally configured
 # something to run on the VT in your /etc/inittab file so that
 # you don't get a dead keyboard.
+# sddm ignores this env var and is configured at build-time to use VT7.
 CHECKVT=7
 
 # What display manager do you use ?

diff --git a/x11-misc/sddm/sddm-0.21.0_p20250326.ebuild 
b/x11-misc/sddm/sddm-0.21.0_p20250326.ebuild
index 30147744f97a..0a06df60b14d 100644
--- a/x11-misc/sddm/sddm-0.21.0_p20250326.ebuild
+++ b/x11-misc/sddm/sddm-0.21.0_p20250326.ebuild
@@ -102,6 +102,9 @@ src_configure() {
                -DSYSTEMD_TMPFILES_DIR="/usr/lib/tmpfiles.d"
                -DNO_SYSTEMD=$(usex !systemd)
                -DUSE_ELOGIND=$(usex elogind)
+               # try to use VT7 first.
+               # Keep the same as CHECKVT from display-manager
+               -DSDDM_INITIAL_VT=7
        )
        cmake_src_configure
 }

Reply via email to