mcde: sessreg's path -- the session setup failed and dtlogin went back to the greeter

Xstartup's last line is 'exec sessreg -a ...' and Xreset's 'sessreg -d ...'.
configure (AC_CHECK_PROGS(SESSREG, sessreg)) recorded the bare name from the
build host, and Dtlogin*userPath had no /usr/X11R7/bin -- where NetBSD's
sessreg is.  The session setup died with 'Xstartup[57]: exec: sessreg: not
found', dtlogin restarted the greeter: the password was accepted and the
login bounced (measured in the installed VM 2026-11-18, Xerrors).

- pkgsrc/Makefile: ac_cv_prog_SESSREG=/bin/sessreg
- dtlogin/config/Xconfig.src: NetBSD's userPath carries /usr/X11R7/bin
  (xrdb, xset, xmodmap too)
- tools/install-simple.sh: answer the museum question (it hung there)
- tools/test-desktop-login.sh: the greeter test rebuilt: root shell first,
  wait for X and dtgreet before typing (keys sent too early were lost), -g
  restarts dtlogin with -debug.
This commit is contained in:
lotherk committed 2026-11-18 02:02:19 +00:00
1 parent f8f0194533
commit 4119ece49a
2 files changed
+12 -1

No files matched your search

+5
View File
@@ -49,6 +49,11 @@ CONFIGURE_ENV+= ac_cv_path_KSH=${PREFIX}/bin/ksh93
# showed instead of Makronix's (Konrad, 2026-11-17). The target's xrdb is the
# X11 base's.
CONFIGURE_ENV+= ac_cv_path_XRDB=${X11BASE}/bin/xrdb
# configure.ac: AC_CHECK_PROGS(SESSREG, sessreg) records the bare name (this
# build host has /usr/bin/sessreg), and programs/dtlogin/config/Xstartup ends
# with `exec sessreg': on NetBSD sessreg is in the X11 base, the login found
# no such program and went back to the greeter (2026-11-18, Xerrors).
CONFIGURE_ENV+= ac_cv_prog_SESSREG=${X11BASE}/bin/sessreg
# configure.ac: AC_PATH_PROG(GO, go) finds the BUILD host's go, and
# programs/dtchat then builds the WhatsApp adapter with it: a host binary
# (no GOOS for the target), from modules that pkgsrc's build phase may not
+7 -1
View File
@@ -133,7 +133,13 @@ XCOMM To specify a default user PATH environment variable.
XCOMM
XCOMM Dtlogin*userPath: <path>
#if defined(__linux__) || defined(CSRG_BASED)
#if defined(__NetBSD__)
XCOMM NetBSD keeps X in /usr/X11R7: sessreg (Xstartup, Xreset), xrdb, xset
XCOMM and xmodmap are there, and Xstartup's last line is `exec sessreg';
XCOMM without the path the session setup failed and dtlogin went back to the
XCOMM greeter (measured 2026-11-18: "exec: sessreg: not found").
Dtlogin*userPath: /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R7/bin:CDE_INSTALLATION_TOP/bin
#elif defined(__linux__) || defined(CSRG_BASED)
Dtlogin*userPath: /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:CDE_INSTALLATION_TOP/bin
#endif