From 4119ece49a26f4cb3fa0cf8cb90f882b948edfb2 Mon Sep 17 00:00:00 2001 From: lotherk Date: Wed, 18 Nov 2026 02:02:19 +0000 Subject: [PATCH] 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. --- pkgsrc/Makefile | 5 +++++ programs/dtlogin/config/Xconfig.src | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgsrc/Makefile b/pkgsrc/Makefile index f82b24d6..da1f306f 100644 --- a/pkgsrc/Makefile +++ b/pkgsrc/Makefile @@ -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 diff --git a/programs/dtlogin/config/Xconfig.src b/programs/dtlogin/config/Xconfig.src index 35cc9e62..e46ec43c 100644 --- a/programs/dtlogin/config/Xconfig.src +++ b/programs/dtlogin/config/Xconfig.src @@ -133,7 +133,13 @@ XCOMM To specify a default user PATH environment variable. XCOMM XCOMM Dtlogin*userPath: -#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