commit:     d462f92e60efa29bccf2e9a8a5c676c15e7a355e
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Fri May 30 18:40:43 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 30 20:48:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d462f92e

x11-misc/sddm: only set SDDM_INITIAL_VT with elogind

Bug: https://bugs.gentoo.org/956850
Bug: https://bugs.gentoo.org/956847
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...21.0_p20250502.ebuild => sddm-0.21.0_p20250502-r1.ebuild} | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/x11-misc/sddm/sddm-0.21.0_p20250502.ebuild 
b/x11-misc/sddm/sddm-0.21.0_p20250502-r1.ebuild
similarity index 96%
rename from x11-misc/sddm/sddm-0.21.0_p20250502.ebuild
rename to x11-misc/sddm/sddm-0.21.0_p20250502-r1.ebuild
index c361d329dd19..1673d8d12490 100644
--- a/x11-misc/sddm/sddm-0.21.0_p20250502.ebuild
+++ b/x11-misc/sddm/sddm-0.21.0_p20250502-r1.ebuild
@@ -102,10 +102,16 @@ 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
        )
+
+       if use elogind; then
+               mycmakeargs+=(
+                       # try to use VT7 first.
+                       # Keep the same as CHECKVT from display-manager
+                       -DSDDM_INITIAL_VT=7
+               )
+       fi
+
        cmake_src_configure
 }
 

Reply via email to