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