Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913898 - x11-misc/sddm: Giving access to missing -DSDDM_INITIAL_VT
Summary: x11-misc/sddm: Giving access to missing -DSDDM_INITIAL_VT
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LxQt maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-09 17:20 UTC by CaptainBlood
Modified: 2023-12-29 19:58 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patched ebuild fpr local repo (sddm-0.20.0-r2.ebuild,3.93 KB, text/plain)
2023-09-09 17:20 UTC, CaptainBlood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2023-09-09 17:20:47 UTC
Created attachment 870186 [details]
patched ebuild fpr local repo

diff -Naur /var/db/repos/gentoo/x11-misc/sddm/sddm-0.20.0-r1.ebuild /var/db/repos/local/x11-misc/sddm/sddm-0.20.0-r2.ebuild
--- /var/db/repos/gentoo/x11-misc/sddm/sddm-0.20.0-r1.ebuild	2023-09-03 17:40:45.000000000 +0300
+++ /var/db/repos/local/x11-misc/sddm/sddm-0.20.0-r2.ebuild	2023-09-09 20:09:46.796601535 +0300
@@ -97,7 +97,15 @@
 		-DSYSTEMD_TMPFILES_DIR="/usr/lib/tmpfiles.d"
 		-DNO_SYSTEMD=$(usex !systemd)
 		-DUSE_ELOGIND=$(usex elogind)
+		-DSDDM_INITIAL_VT="${SDDM_INITIAL_VT}"
 	)
+	# -DSDDM_INITIAL_VT defaults to 1 if undefined as below.
+	# Use /etc/portage/package.env & /etc/portage/env to set as e.g.
+	# cat /etc/portage/package.env/x11-misc::sddm.conf
+	# x11-misc/sddm sddm_initial_vt.conf
+	# cat /etc/portage/env/sddm_initial_vt.conf
+	# SDDM_INITIAL_VT=7
+	# Beware as mismatching value breaks build.
 	cmake_src_configure
 }

This helps integration here.
There may be a better way to achieve this.
Comment 1 Norman Back 2023-09-10 09:43:25 UTC
I upgraded to sddm-0.20.0-r1 during my last regular emerge-update.
Shortly after that I experienced an issue, unrelated to sddm, where I needed to switch to a tty. I usually use Ctrl/Alt/F2 rather the Ctrl/Alt/F1 to avoid the clutter of the boot log. There followed some confusion as the switch appeared not to have worked. I would prefer sddm to continue with its historic default of VT7 rather than grabbing the first free VT. This could change at each sddm restart and could cause some more confusion when trying to switch back to KDE after switching to a tty for debugging.
Comment 2 Larry the Git Cow gentoo-dev 2023-09-10 21:20:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b55ff51e0bc86be8f8d11f2cf158b67e8bd0476

commit 1b55ff51e0bc86be8f8d11f2cf158b67e8bd0476
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-09-10 21:19:11 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-09-10 21:19:11 +0000

    x11-misc/sddm: allow the user to set SDDM_INITIAL_VT
    
    Closes: https://bugs.gentoo.org/913898
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 x11-misc/sddm/sddm-0.20.0-r1.ebuild | 2 ++
 1 file changed, 2 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2023-09-11 00:28:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6ee44471a5481a55b8d532f5d8a1981c6616b8c

commit b6ee44471a5481a55b8d532f5d8a1981c6616b8c
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-09-11 00:27:00 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-09-11 00:28:48 +0000

    Revert "x11-misc/sddm: allow the user to set SDDM_INITIAL_VT"
    
    This seems like a perfect use for MYCMAKEARGS. See cmake.eclass for
    details.
    
    Reverts: 1b55ff51e0bc86be8f8d11f2cf158b67e8bd0476
    Bug: https://bugs.gentoo.org/913898
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 x11-misc/sddm/sddm-0.20.0-r1.ebuild | 2 --
 1 file changed, 2 deletions(-)