Commit Graph
21 Commits
Author SHA1 Message Date
lotherk 4119ece49a 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.
2026-11-18 02:02:19 +00:00
lotherk 6b69dc7f1e mcde recipe: the path replacements touch text only, once
pre-configure ran sed over every file under WRKSRC holding /usr/dt or
/etc/dt.  From an extracted archive that is text; in a built tree,
configured again by ext-resync/fork_reconfigure, it garbled 35 objects and
libraries (ld: 'file format not recognized', userland-2026-11-17g.log:33,
h.log:148), and since ${PKG_SYSCONFDIR}/dt holds /etc/dt again, the second
pass wrote /usr/pkg/usr/pkg/etc/dt into 276 files of the work directory.
Now grep -I (text only), the package's path set aside before the
replacement (idempotent), and a file the replacement does not change is not
rewritten (no new time stamp, nothing recompiled).  Tested in a scratch
tree: two passes, a binary with /etc/dt untouched, the time stamp kept.
2026-11-17 17:05:27 +00:00
lotherk ec23c381ca mcde: build wm/mcde without Go; the WhatsApp adapter is its own package
configure found the build host's go, and programs/dtchat built
dtchat-whatsapp with it: a host binary, from modules pkgsrc's build phase
may not download (http_proxy=downloads-forbidden-except-during-fetch,
build/logs/userland-2026-11-17c.log:19467).  PLIST.whatsapp is never set,
so the package never wanted the file.  The two commits that let go
download (38d293c454, 6f23f4e232) are reverted.
2026-11-17 16:29:55 +00:00
lotherk 5a07cc7938 mcde: install the protocol adapters next to dtchat
dtchat-telegram joins bin_PROGRAMS (always built: TDLib when available, otherwise a stub that reports the missing library); dtchat-xmpp is installed when MCDE_STROPHE built it; the Go-built dtchat-whatsapp is installed by install-exec-hook when MCDE_GO is set. The PLIST lists dtchat-telegram unconditionally and the other two behind PLIST_VARS xmpp/whatsapp (left unset in the recipe, so a target without libstrophe/Go omits them while the host build installs all three). The accounts editor's default adapter path becomes <bindir>/dtchat-<protocol> in the packaged layout. Host build and mcde-linux install/plist follow.
2026-11-17 12:36:46 +00:00
lotherk 3d587b1af5 mcde recipe: libopus and libretls for dtchat, and in packages.list as bin
configure.ac stops with 'libopus not found; dtchat needs it for audio' in the cross
userland (build/logs/userland-2026-11-17-fix2.log:1324), so wm/mcde never reached the
sysroot and the images kept the Nov 15 MCDE (wrong PAM file, host xrdb path, CDE logo).
The NetBSD project's binaries are taken; they must stay in the sysroot as the shared
libraries of dtchat.
2026-11-17 08:51:07 +00:00
lotherk 4ca2833c9c mcde: dtlogin on NetBSD - PAM handle per attempt with syslog, xrdb path of the target, tradcpp CONFIG_OS from the unquoted ident
SvcPam.c: a fresh PAM handle per authenticate, pam_end on failure, the PAM_USER
check was inverted, the conv default case did not advance, failures go to
authlog (follows xsrc/external/mit/xdm greeter/greet.c).
pkgsrc/Makefile: ac_cv_path_XRDB=${X11BASE}/bin/xrdb - the cross build baked the
Linux host's /usr/bin/xrdb into dtlogin; /var/dt/Xerrors on an installed system
said 'sh: /usr/bin/xrdb: not found', so Xresources never loaded and the CDE logo
showed (measured in a VM 2026-11-17).
tradcpp/config.h: CONFIG_OS is the ident as given; the stringify macro turned the
quoted -DCONFIG_OS_IDENT into an invalid macro name and wm/mcde stopped in
lib/tt (tradcpp: Invalid macro name "__NetBSD__", build/logs/userland-2026-11-16-atomic.log)
so the sysroot kept the Nov 15 MCDE. t0436 t0438 t0217
2026-11-17 08:47:08 +00:00
lotherkandClaude Sonnet 5.5 b2dab1ad71 McdeSys: no fixed /usr/pkg in the sources; configure says where pkgsrc is (t0081, c)
19 paths in lib/McdeSys (borg, dtbackup, pactl, paplay, smbclient, sshfs,
mount_afp, lpstat, lpadmin, avahi-browse, sysupgrade, smbd, netatalk, atalkd,
the rc.d examples, smb.conf, afp.conf) were written as "/usr/pkg/...".  They
are MCDE_PKG_PREFIX "/bin/borg" and MCDE_PKG_SYSCONFDIR "/afp.conf" now:
configure.ac has --with-pkg-prefix (default /usr/pkg) and --with-pkg-sysconfdir
(default PREFIX/etc), lib/McdeSys/Makefile.am hands them to the library as
-D, and the recipe passes --with-pkg-prefix=${PREFIX} and
--with-pkg-sysconfdir=${PKG_SYSCONFDIR} (the same way --with-local-bindir is
passed).  The sources do not include config.h, hence the -D.

Measured: x86_64--netbsd-gcc -S of backup, netbsd, sound, netmount and printers
before and after: the string constants are byte-identical (490 strings, the same
17 distinct /usr/pkg paths).  With -DMCDE_PKG_PREFIX=/opt/pk and
-DMCDE_PKG_SYSCONFDIR=/etc/pk: no /usr/pkg left, 15 paths under /opt/pk, the two
configuration paths under /etc/pk.  Native: configure regenerated, the
Makefile has MCDE_PKG_PREFIX = /usr/pkg, make check 5 of 5, PLIST pre-check
ok (3208 installed names, 8396 in the PLISTs).  git grep '"/usr/pkg' in
lib/McdeSys: nothing.

Not done of t0081: the message catalogs; the wifi_join checks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 01:21:33 +00:00
lotherkandClaude Sonnet 5.5 a6cb7c3f87 MCDE dtlaunch: told of a new clipboard owner by XFixes, not asking every second (t0080)
XFixesSelectSelectionInput on CLIPBOARD; the event names the new owner, whose
text is read once.  configure.ac checks libXfixes and gives only dtlaunch
XFIXESLIB and XFIXES_CPPFLAGS (-DHAVE_XFIXES); a define in config.h would have
recompiled every file.  Without the library or the extension the owner is asked
every 5 s (POLL_MS, was 1 s).  The recipe lists x11/libXfixes/buildlink3.mk.

Measured with strace (writes to the X socket, 10 s idle after 4 s): 10 before,
0 with XFixes, 2 in the fallback (5.0 s and 10.0 s; tested with an LD_PRELOAD
shim that makes XFixesQueryExtension fail -- Xvfb -extension XFIXES aborts for
any Motif client, also an unmodified dtpad).  Both paths still put a copy made
by xclip during idle into the history (screenshots).  The sysroot has Xfixes.h,
libXfixes.so.4.1 and the pkg-config files; the cross build of the recipe change
is not run yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 22:58:59 +00:00
lotherkandClaude Sonnet 5.5 136e649107 MCDE wm/mcde: post-install names the target's path in libDtSvc.la and libcsa.la, not the work directory (t0196)
libtool wrote '=<workdir>/.buildlink/lib/libpng16.la' (and libXm.la) into
dependency_libs of the two libraries in usr/pkg/dt/lib, measured in
build/obj/destdir.amd64.  Same fix as x11/mcde-motif (021885cd9d); the
'=/usr/pkg/...' entries are libtool's sysroot notation and stay.  The other
132 .la files of the sysroot carry no such path.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 21:00:46 +00:00
lotherkandClaude Sonnet 5.5 c4f159477d MCDE: a cross build installs the ToolTalk ptypes and dtlogin's rc script compiles them (t0210)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 12:37:38 +00:00
lotherkandClaude Sonnet 5.5 1d1ca3ea8c MCDE: mk_fonts_alias and mkdbd are build-host tools; LDFLAGS_FOR_BUILD has nothing of the target
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 11:40:19 +00:00
lotherkandClaude Sonnet 5.5 c01da186a7 MCDE: dtksh is out; dterror.ds is a Motif program; dtterm keeps starting the login shell
Konrad, 2026-11-14: "was soll dtksh ueberhaupt sein... einfach ne shell von
CDE? fuck it. schmeiss das komplett raus aus MCDE."  dtksh is CDE's ksh93
with Motif bindings for scripting dialogs; its bundled ksh93 (AT&T ast's
bin/package) compiles and RUNS test programs while it builds, which a cross
build for NetBSD on a Linux host cannot do -- the reason wm/mcde did not
build for days ("cc: not found", userland-2026-11-14g.log).

- programs/dtksh removed (1204 files); not in programs/Makefile.am,
  configure.ac, the recipe (REPLACE_INTERPRETER dtksh, KSH_CC), PLIST (bin,
  lib, man page, six catalogues), msg.C.am (dtksh.cat), AGENTS.md.
- What used dtksh:
  * dterror.src, dtfile_error.cpp, types/error.ds.src: an error dialog with a
    message.  New programs/dterror/dterror.c (about 70 lines of Motif), built
    as dterror.ds: dterror.ds MESSAGE [TITLE [OK-LABEL]], the convention of
    every caller (the data types, dtopen, dtfile ModAttr.c).  dtfile_error
    was only the 'test' entry of dtfile.config and ModAttr.c's fallback; the
    entry is gone and ModAttr.c calls dterror.ds.
  * dthelpgen.dtsh: the "building help" dialog helpgen.c forked; it runs
    silently now (childPid stays -1).
  * dtprintegrate/dtlp.src: the print dialog (1711 lines of dtksh); printing
    is to come back through CUPS (tasksd t0177, t0193).  dtlp's man page is
    out of the doc build and PLIST with it.
  * The data types DTKSH_SCRIPT (*.ds) and DTKSH_CONV (*.dtsh) in dt.dt.src:
    they would have classed dterror.ds as a script.
- dtterm needs no change: lib/DtTerm/TermPrim/TermPrimSubproc.c takes /usr/bin/zsh,
  then the shell of the passwd entry, then /bin/sh, and never started dtksh.
- ksh93 stays as the NetBSD binary for the scripts that say ksh (Xsession).

Measured: make mcde-linux exit=0 (build/logs/mcde-linux-nodtksh-2026-11-14.log),
autogen picked up programs/dterror; dterror.ds under Xvfb shows the error
icon, a two-line message and one button "Understood", and exits 0 on Return.

Not in this commit: the other agents' pending dtfile edits (Search.c,
Navigation.c) and the regenerated distinfo files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 09:12:55 +00:00
lotherk d9e761ea1e mcde/dtksh: ksh93's bin/package gets an absolute compiler path
programs/dtksh builds the ksh93 it carries.  That ksh93's bin/package wants the
compiler as an ABSOLUTE path (its own words: 'cc: not found -- set
CC=C-compiler', build/logs/userland-2026-11-14n.log:16461) and only recognises a
bare path in its arguments, not CC=<path>.  In a cross build $CC is a name
(x86_64--netbsd-gcc), so the recipe passes KSH_CC -- the compiler wrapper by its
path, which also applies the cross flags -- and the rule hands it to the script as
a bare argument.  Native builds leave KSH_CC empty and nothing changes.
2026-11-14 07:22:39 +00:00
lotherk 855b8e0cb0 mcde: the host-tool variables are substituted even without in-tree Motif
util/tradcpp is built and run during every MCDE build, but configure only set
CC_FOR_BUILD/CFLAGS_FOR_BUILD/... inside the with_private_motif block.  With
--without-private-motif (the pkgsrc recipe) the Makefiles got empty values, and
AM_MAKEFLAGS then passed an explicit empty CC_FOR_BUILD down to the sub-makes --
clobbering the value pkgsrc's MAKE_FLAGS had given the top-level make.  tradcpp
was therefore compiled with the target compiler and could not run (build/logs/
userland-2026-11-14j.log:7715ff, and again in 14k after MAKE_FLAGS alone).

The defaults and AC_SUBSTs now stand before the Motif test (LIBS_FOR_BUILD stays
inside: it is Motif's -lXt), and the recipe gives configure the host compiler for
a cross build, since configure's own default is $CC, the target's.  tradcpp needs
no X library, so it no longer links LIBS_FOR_BUILD.
2026-11-14 06:55:24 +00:00
lotherk 8dad938d20 mcde: tradcpp is built for the build host
MCDE runs util/tradcpp while it builds (configure.ac: GENCPP=/util/tradcpp/tradcpp, used on the *.cpp.in templates).  It was compiled with the
target compiler, so the build stopped at 'lib/tt/bin/scripts': '/bin/sh:
../../../../util/tradcpp/tradcpp: not found' -- the file exists, it is a NetBSD
binary (build/logs/userland-2026-11-14j.log:7715ff).

The tree already forwards CC_FOR_BUILD/CFLAGS_FOR_BUILD/... through AM_MAKEFLAGS
(Makefile.am), but nothing used them for tradcpp; its Makefile.am now names them
for that program, and the pkgsrc recipe sets them (NATIVE_CC, and gnu17 for the
host compiler's C23 default) as the Motif recipe already did.
2026-11-14 06:46:29 +00:00
lotherkandClaude Opus 5.5 ddb37d6a86 Makronix's Motif: x11/mcde-motif from MCDE's motif/, wm/mcde links it
make userland stopped in the build VM (build/logs/x-userland-2026-11-13a.log:
"Makefile.am: error: required file './AUTHORS' not found", in motif/): since
081fb4c4b (2026-11-11) MCDE configures motif/ as a subpackage by default, and
pkgsrc's autoreconf -fiv of wm/mcde reached it; the last VM build (dd7c19207)
was before.  Against pkgsrc's unchanged x11/motif MCDE does not build at all
since 92e52775b (_XmMenuBarSetExported is ours).

Konrad, 2026-11-13: MCDE builds its own Motif only where it is not Makronix;
on Makronix the system's Motif comes from motif/ (configure.ac:622-626 says
so; the package did not exist).  Now:
- ext/src/mcde/pkgsrc-motif: x11/mcde-motif-2.3.8, built from the MCDE
  archive with WRKSRC motif/; pkgsrc's x11/motif recipe and PLIST otherwise
  (its 28 patches are folded in, d07ef09e1, checked with patch -R
  --dry-run: 28 of 28); CONFLICTS motif, lesstif, openmotif.
- wm/mcde: --without-private-motif and x11/mcde-motif's buildlink3.mk
  instead of mk/motif.buildlink3.mk.
- motif/Makefile.am: AUTOMAKE_OPTIONS foreign (autoreconf -fi of motif/
  exit 0 afterwards, on a copy of HEAD's motif/).
- tools: ext-sync takes ext/src/<name>/pkgsrc-<part> as
  <category>/<name>-<part>; mcde-dist writes the distinfo for both recipes
  and leaves pkgsrc-* out of the archive; the VM builds x11/mcde-motif before
  wm/mcde with the same GCC 14 settings, and a conflicting x11/motif needed
  by the old wm/mcde is removed with -f (wm/mcde is rebuilt after it);
  mk-cde.conf sets MOTIFBASE so other Motif packages take ours.
- packages.list and packages.vm.list name x11/mcde-motif.

Checked on the host with pkgsrc's bmake: x11/mcde-motif PKGNAME
mcde-motif-2.3.8, WRKSRC ${WRKDIR}/${DISTNAME}/motif; wm/mcde show-depends
"mcde-motif>=2.3.8:../../x11/mcde-motif", CONFIGURE_ARGS
--without-private-motif.  Not yet built in the VM: make userland next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 07:06:33 +00:00
lotherkandClaude Opus 5.5 a5fdba53d8 mcde: the recipe without awk:run, so that it can be cross-built
REPLACE_AWK changes #! lines only, and Xsession.src is a ksh script that
calls /usr/bin/awk by its path; awk:run made pkgsrc refuse the package in
cross mode on a Linux host (mk/tools/replace.mk:142).  awk is a build tool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 20:01:33 +00:00
lotherkandClaude Opus 5.5 f788367833 mcde: read PNG with libpng, not with Motif
Motif 2.3.8 shifts the channels of a PNG without alpha the wrong way and
draws only its blue (docs/reference/motif-png.txt).  libDtSvc gets
McdeImageGetPixmap/McdeImageFreePixmap (Mcde/Image.h): PNG through libpng's
simplified interface (png_image, the background for the alpha), packed by
the visual's masks; every other format still through XmGetPixmap.  dtwm's
backdrops and slideshow and the small pictures of System Settings use it.
dtwm now also frees a backdrop pixmap that is not in Motif's cache (a
scaled copy), which it kept for good before.

configure finds libpng >= 1.6 with pkg-config; the recipe includes
graphics/png's buildlink3.mk (Motif depends on it already); the header is
in the PLIST.

Measured on Xvfb: the RGB PNG that showed only blue (slide-3.png before)
shows its colours as backdrop (build/mcde-shots/slide-3.png) and as a
small picture (desk-2.png).  A 16-bit PNG is not measured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:16:14 +00:00
lotherkandClaude Opus 5.5 94f116c272 mcde: builds on Linux (GCC 15); dtfile gets toolbar, sidebar, history, free space; make mcde-linux, mcde-shot
- configure.ac: the C dialect (-std=gnu11 and five GCC 14 downgrades) is
  configure's own, also handed to dtksh's ksh93 build (MCDE_DIALECT_CFLAGS).
- The pkgsrc placeholders folded in from wm/cde (@PREFIX@, @VARBASE@,
  @PKG_SYSCONFDIR@) are configure options now: --with-logfiles-dir,
  --with-config-dir, --with-local-bindir; and --with-pamdir (dtlogin,
  dtsession) and --with-calendar-dir (dtcm, rpc.cmsd) replace paths that
  were fixed.  Defaults unchanged; the recipe passes its paths.
- dtfile: programs/dtfile/Navigation.c -- Back/Forward with a history per
  window, views Icons/Small/List, places in a sidebar, free space in the
  status line (statvfs).  Screenshot: build/mcde-shots/dtfile-7.png.
- make mcde-linux (tools/mcde-linux.sh): the development build on this host,
  every system path under build/mcde-root.  tools/mcde-shot.sh: run a
  program on a private Xvfb with ttsession and dtwm, empty environment and
  its own HOME, take a screenshot.  tools/ext-sync.sh: ext recipes into
  pkgsrc/<cat>/<name>.

Measured: build/logs/mcde-linux-install3-2026-11-09.log (mcde-linux exit=0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:32:32 +00:00
lotherkandClaude Opus 5.5 70c9cd27cb mcde: rename to MCDE 0.1.0, conflict with cde, Makronix logo in dtlogin, the C99/POSIX system layer as contract
- pkgsrc recipe: DISTNAME mcde-0.1.0 (archive from tools/mcde-dist.sh),
  CONFLICTS+= cde-[0-9]*, DESCR.
- configure.ac: AC_INIT name and version 0.1.0; MCDE_VERSION; the
  tarname and the CDE_VERSION_* API level stay (share/cde, DtVERSION).
- Dt.h: DtVERSION_STRING "MCDE 0.1.0 (CDE 2.5.3)".
- programs/icons/MakronixDtlogo.pm from docs/logo/camouflage, installed,
  in PLIST, the default Dtlogin*logo*bitmapFile.
- include/Mcde/McdeSys.h: users, network/Wi-Fi, host name, time zone;
  checked with gcc -std=c99 -D_POSIX_C_SOURCE=200809L -pedantic.
- ext/src/mcde/AGENTS.md: the philosophy (CDE/Motif/Xlib only, C99/POSIX,
  everything OS-specific behind lib/McdeSys, conflicts with CDE).

Not built yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:40:06 +00:00
lotherkandClaude Opus 5.5 3b2a54c64b ext/src/mcde: import CDE 2.5.3 and pkgsrc wm/cde unchanged (the base of the MCDE fork)
cde-2.5.3.tar.gz, SHA512 a01b413b... as in pkgsrc distinfo; recipe from
pkgsrc 3c1118e94432.  Added with -f: CDE's .gitignore hides 612 files of
the archive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:36:46 +00:00