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
mcde-linux MCDE_DIRS=plist found four installed names that no PLIST line covered: dt/include/DtChat/DtChat.h, dt/include/DtChat/Ipc.h, dt/lib/libDtChat.la and dt/lib/libDtChatIpc.la (libDtChat was added in the dtchat work but never packaged). The check now reports 3710 installed names, 8907 listed, PLIST ok. Verified with make mcde-linux MCDE_DIRS=install (exit 0) and make mcde-linux MCDE_DIRS=plist (exit 0).
bin_PROGRAMS now installs dtchat and dtchat-headless; man_MANS installs dtchat.1 (the roff source was renamed from dtchat.man because automake treats .man as section m). The PLIST gains the lines for bin/dtchat, bin/dtchat-headless, app-defaults/C/Dtchat, the three Dtchat icons, appconfig/types/C/dtchat.dt, appmanager/C/Internet/Dtchat, the C and de_DE.UTF-8 dtchat.cat and dt/man/man1/dtchat.1. Verification (make mcde-host MCDE_DIRS=install, mcde-plist-check, pkg_add/pkg_delete) is pending: a foreign release chain holds the lock (pid 141722).
The Helvetica bitmaps of the reference desktops are in share/fonts: the six
IRIX x_eoe PCFs (helvB10, helvBO10, helvR10, helvR12, helvR14, helvR18) and
the twenty Solaris SUNWxwfnt PCFs (Helvetica 6..14, bold, oblique, bold
oblique); mkfontdir wrote fonts.dir.
Dtwm.defs.src sets the four fontLists of the 4Dwm app-defaults: menus and
client titles -adobe-helvetica-bold-o-normal--14-*, feedback
-adobe-helvetica-bold-r-normal--14-*, icon labels
-adobe-helvetica-medium-r-normal--14-*.
The fonts are core X11 fonts (Motif reads them): dtlogin fontPathTail
(config/Xconfig) puts share/fonts on the X server font path at session
start (ApplyFontPathMods, fontpath.c); 0070.dtfonts keeps the same for a
session that did not come through dtlogin, without a second entry.
Measured: xlsfonts -fn -adobe-helvetica-bold-o-normal--14-* returns the
IRIX 100dpi face; xrmget on the installed Dtwm app-defaults resolves the
four fontLists to the Helvetica names; a session through dtlogin lists
.../share/fonts in xset q Font Path (9 elements); mcde-plist-check ok;
docs/screenshots/desktop/dtwm-4dwm-font.png shows the dtterm title in
Helvetica Bold Oblique.
The IRIX cursor font x_eoe usr/lib/X11/fonts/misc/cursor.pcf is extracted
with the sw parser, pcf2bdf turns it into BDF, and bdf-cursors.py makes
58 Xcursor names from the glyphs (form + _mask). The Solaris and IRIX
themes are in share/icons/Solaris and share/icons/IRIX; the Appearance
pane has a "Cursor theme:" menu (Solaris, IRIX) that keeps the choice in
~/.dt/cursor-theme; 0079.dtcursor exports XCURSOR_THEME from it.
Measured: XcursorLibraryLoadImage("left_ptr", "IRIX", 16) returns a
16x16 image, and the menu shows Solaris/IRIX; choosing Solaris wrote
~/.dt/cursor-theme.
The .cursor files are converted once into the Xcursor format: 41
standard cursor names (left_ptr, watch, wait, hand2, xterm, fleur,
copy, crosshair, question_arrow, glass, the eight resize arrows,
dnd-copy/dnd-move, document, ...) in share/icons/Solaris, with
index.theme. XCURSOR_THEME=Solaris and XCURSOR_PATH in 0079.dtcursor
make GTK, Qt, Firefox and every other program that reads Xcursor use
them natively; dtcursor keeps setting the saved one on the root window
for the Motif programs that inherit it. Measured with libXcursor:
XcursorLibraryLoadImage("left_ptr", "Solaris", 16) returns a 16x16
image.
programs/cursors holds the 27 .cursor files of Solaris 2.6; programs/dtcursor
reads the X11 cursor text format (Format_version=1, Width, Height,
Valid_bits_per_item=16, one or two bitmaps) into source and mask bitmaps,
makes the cursor with XCreatePixmapCursor and puts it on the root window
(XDefineCursor; the clients that set none inherit it). The name is kept
in ~/.dt/cursor; 0079.dtcursor sets it at login. The Appearance pane has
a "Pointer:" menu of the cursor names; a choice runs dtcursor -set NAME.
Measured under Xvfb: the menu lists black, bullseye, busy, ... gr_root;
choosing busy wrote ~/.dt/cursor and printed "dtcursor: busy".
tools/fti2xpm.py raster the Foundation .fti vector icons into 32x32 XPM
(colour(N), bgnpolygon/endpolygon, bgnoutlinepolygon/bgnline, vertex).
Six of them -- IrixDisk, IrixCD, IrixDVD, IrixFloppy, IrixNet, IrixTape
-- are in programs/icons, Makefile.am and the PLIST. Measured: they
are thin line drawings at 32x32 and stay pale on the desktop, so
DeskIconName keeps the CDE glyphs; the icons are there for a later,
larger rendering.
- dtwm: Dtwm*titleLeft (the 4Dwm SG_titleLeft) draws the title at the
left of the bar; the app-defaults set it and frameBorderWidth 7; the
IRIX palette IRIX.dp carries sgilightgray/sgibrightgray. Measured:
with titleLeft=1 the Terminal title stands at the left (screenshot).
- Solaris 2.6 demo sounds: 20 events converted from .au to WAV and
installed as theme Solaris (SUNWaudmo /usr/demo/SOUND/sounds); the
Sound pane lists Camouflage, Base, IRIX, Solaris and the selftest
passes for Solaris.
- the 25 OpenWindows .xbm patterns are in share/backdrops now
(OpenWin-*.xbm), so the Desktop & Screen Saver pane offers them.
common.c's tool runner built its sentences as format strings, so every
dialog that shows mcde_sys_error() was English. They are set 1 of
lib/McdeSys/mcdesys.msg now (9 messages: not there, cannot start, failed
with status, no pipe, no answer within N seconds, out of memory, the program
is not installed, the connector ended without an answer, cancelled), read by
lib/McdeSys/text.c (mcde_sys_msg, plain catopen/catgets; NLSPATH is set the
way DtSvc does when the session has none, from -DMCDE_DT_TOP=$(prefix)).
The German copy is programs/localized/de_DE.UTF-8/msg/mcdesys.msg, built by
msg.C.am into lib/nls/msg and listed in the PLIST (C plain, ${PLIST.nls} for
German). A library does not call setlocale; the program does.
mcdesoundd gets no catalog: its only text is the log of a background daemon,
and the system layer stays English (AGENTS.md, language point 6).
Measured: a small program (setlocale + mcde_sys_run) prints
"/nonexistent/tool is not there." and "/bin/false did not succeed
(status 1)." with LANG=C, and "/nonexistent/tool ist nicht vorhanden." /
"/bin/false war nicht erfolgreich (Status 1)." with LANG=de_DE.UTF-8
(localedef/LOCPATH). make mcde-linux MCDE_DIRS="install lib/McdeSys" and
"install programs/localized/C/msg" exit=0; MCDE_DIRS=plist: "3487 installed
names under dt/, 8682 in the PLISTs", ok.
dtpaint builds its menus in code, so its labels are catalogued:
programs/dtpaint/dtpaint.msg (set 1, 23 messages: the six menu titles, the
items of File/Edit/View/Image/Colors/Help, the About title and the status
line), the German copy in programs/localized/de_DE.UTF-8/msg/dtpaint.msg,
built by msg.C.am and listed in the PLIST (C plain, ${PLIST.nls} for
German). catopen/catgets itself, setlocale in main.
dtpaint has no render table (core font): a UTF-8 "ü" in the status line came
out as two latin-1 characters ("Menü"), so the German string says
"Hilfe-Menue" instead (recorded in AGENTS.md).
Measured on Xvfb (1280x800, fresh HOME, ttsession + dtwm), de_DE.UTF-8 via
localedef/LOCPATH: menus "Datei Bearbeiten Ansicht Bild Farben Hilfe",
status "Hilfe: Hilfe-Themen im Hilfe-Menue." (/tmp/opencode/dtpa-de.png);
LANG=C: "File Edit View Image Colors Help" and the English status
(/tmp/opencode/dtpa-c.png). make mcde-linux MCDE_DIRS="install
programs/dtpaint" and "install programs/localized/C/msg" exit=0;
MCDE_DIRS=plist: "3486 installed names under dt/, 8680 in the PLISTs", ok.
dtphoto's own sentences and titles come from programs/dtphoto/dtphoto.msg
(set 1, 5 messages: the toolbox window title "Tools", the status line
"Scratch: 1.2M/50M", the "Doc: %dK/%dK" format, the open and the save
error), the German copy in programs/localized/de_DE.UTF-8/msg/dtphoto.msg,
built by msg.C.am and listed in the PLIST (C plain, ${PLIST.nls} for
German). Like dtlaunch it calls catopen/catgets itself and setlocale in
main before its first message.
The menus stay as they are: dtphoto.menu follows
docs/reference/photoshop-ui.csv -- the programme's look -- and the command
lookup matches those English labels, so they are not a catalog.
Measured on Xvfb (1280x800, fresh HOME, ttsession + dtwm), de_DE.UTF-8 via
localedef/LOCPATH: the toolbox is titled "Werkzeuge", the status line reads
"Dok: 225K/1125K" and "Arbeitsspeicher: 1.2M/50M" (/tmp/opencode/dtp-de.png);
LANG=C: "Tools", "Doc: 225K/1125K", "Scratch: 1.2M/50M"
(/tmp/opencode/dtp-c.png). make mcde-linux MCDE_DIRS="install
programs/dtphoto" and "install programs/localized/C/msg" exit=0;
MCDE_DIRS=plist: "3485 installed names under dt/, 8678 in the PLISTs", ok.
dttoolbox's own texts come from programs/dttoolbox/dttoolbox.msg (set 1, 2
messages: the "ToolChest" window title and the "No ToolChest menu" label of
the empty chest), the German copy in programs/localized/de_DE.UTF-8/msg/
dttoolbox.msg, built by msg.C.am, listed in the PLIST (C plain,
${PLIST.nls} for German). Like dtlaunch it calls catopen/catgets itself and
setlocale before its first message. The menu labels come from the person's
chestrc (~/.chestrc or the installed one), which is their file and stays as
written.
Measured on Xvfb (1280x800, fresh HOME, ttsession + dtwm, DTTB_CHESTRC on a
missing file so the empty chest shows): de_DE.UTF-8 via localedef/LOCPATH
gives "Werkzeugkiste" and "Kein ToolChest-Menü" (/tmp/opencode/dtb-de.png),
LANG=C "ToolChest" and "No ToolChest menu" (/tmp/opencode/dtb-c.png).
make mcde-linux MCDE_DIRS="install programs/dttoolbox" and
"install programs/localized/C/msg" exit=0; MCDE_DIRS=plist: "3484 installed
names under dt/, 8676 in the PLISTs", ok.
dtlaunch's visible texts come from programs/dtlaunch/dtlaunch.msg (set 1, 3
messages: the hint line under the field, and the two Parental Controls
sentences), the German copy in programs/localized/de_DE.UTF-8/msg/
dtlaunch.msg, built by msg.C.am and listed in the PLIST (C plain,
${PLIST.nls} for German). dtlaunch does not link libDtSvc, so it calls
catopen/catgets itself (Dt/MsgCatP.h's CATGETS needs _DtCatgets); its
Makefile now passes -DCDE_INSTALLATION_TOP for the NLSPATH fallback.
The list's pane entries are already translated: dtlaunch reads them from
`dtsystemsettings -list-panes`, which uses the catalog of 89e41554e6.
Measured on Xvfb (1280x800, fresh HOME, ttsession + dtwm, dtlaunch -show
-nograb), de_DE.UTF-8 via localedef/LOCPATH:
"Tippen: ein Programm, eine Einstellung, einen Schnipsel oder =1+2"; LANG=C:
"Type to find a program, a setting, a snippet, or =1+2" (screenshots
/tmp/opencode/dtl-de.png, /tmp/opencode/dtl-c.png).
make mcde-linux MCDE_DIRS="install programs/dtlaunch" and
"install programs/localized/C/msg" exit=0; MCDE_DIRS=plist: "3483 installed
names under dt/, 8674 in the PLISTs", ok.
Following dtbar (2c229d08c6): the categories, the panes, the window title and
"Show All" come from dtsystemsettings' catalog -- English source
programs/dtsystemsettings/dtsystemsettings.msg (set 1, messages 1-32: the
four categories, 26 panes by ID, the title, Show All), German copy in
programs/localized/de_DE.UTF-8/msg/dtsystemsettings.msg, gencat rule in
msg.C.am, PLIST C plain and ${PLIST.nls} for the German one.
main.c calls setlocale(LC_ALL, "") first: the window title is an argument of
XtVaAppInitialize, and a catalog opened while the locale was still C would
stay the C one for the whole process (measured: first attempt stayed English
in every label).
Measured on Xvfb (1280x800, fresh HOME, ttsession + dtwm), de_DE.UTF-8 via
localedef/LOCPATH: title "Systemeinstellungen", "Alle zeigen", categories
"Persönlich / Hardware / Internet & Netzwerk / System" and the panes
"Darstellung", "Schreibtisch & Bildschirmschoner", "Sprache", "Sicherheit",
"Standardprogramme", "Ton", "Bildschirme", "Tastatur & Maus", "Drucker",
"Energiesparmodus", "Internet-Konten", "Netzwerk", "Freigaben",
"Systeminformation", "Datum & Uhrzeit", "Starten", "Kindersicherung",
"Benutzer", "Software-Aktualisierung", "Sicherung", "Startvolume",
"Bedienungshilfen"; LANG=C the English labels. make mcde-linux
MCDE_DIRS="install programs/dtsystemsettings" and "install
programs/localized/C/msg" exit=0; MCDE_DIRS=plist: "3482 installed names
under dt/, 8672 in the PLISTs", ok.
The old IRIX desktop sounds (imported from the IRIX 6.5.29 media,
~/tmp/irix_extract/assets/desktop-sounds/sounds-events) are a theme of
their own beside Camouflage and Base: 20 events with the names MCDE
uses (Launch, Start, End, Error, Warning, Beep, OpenFolder, DropMove,
DropCopy, Remove, RemoveToDumpster, DeskSwitch, Iconify, Deiconify,
NewMail, PrintFiles, SearchHit, SearchMiss, ClockChimeHour, TerminalBell),
theme.ss from the reference's event list, in
/share/sounds/themes/IRIX. The Sound pane lists
it (Theme menu: Camouflage, Base, IRIX); mcdesoundd -selftest with
MCDE_SOUND_THEME=.../IRIX prints PASS. tools/mcde-shot.sh passes
MCDE_SOUND_THEME through for such tests.
The M menu's labels come from dtbar's catalog now, the CDE way: the English
source programs/dtbar/dtbar.msg, the German copy in
programs/localized/de_DE.UTF-8/msg/dtbar.msg, both built by
programs/localized/*/msg with gencat (dtbar.cat added to msg.C.am) and
installed under lib/nls/msg/<locale>/. catopen("dtbar", NL_CAT_LOCALE) --
the name without .cat, because NLSPATH appends %N.cat (CDE's
NLS_PATH_STRING); dtbar sets NLSPATH itself when the session has none.
Strings: About This Computer, Software Update..., Makronix Software...,
System Settings..., Favourites, Recent Items, Force Quit..., Front Panel,
Sleep, Restart..., Shut Down..., Lock Screen (set 1, messages 1-12).
Measured on Xvfb with ttsession + dtwm + dtbar, a fresh HOME, the M menu
opened with a click:
- LANG=de_DE.UTF-8 (locale generated with localedef into /tmp, LOCPATH):
"Über diesen Computer", "Software-Aktualisierung...",
"Systemeinstellungen...", "Favoriten", "Zuletzt verwendet", "Frontplatte",
"Ruhezustand", "Neustart...", "Ausschalten...", "Bildschirm sperren"
(screenshot /tmp/opencode/catalog-de.png);
- LANG=C: the English labels (/tmp/opencode/catalog-c.png), so the C
catalog and the fallback work.
A direct check with catopen/catgets in C returns the same two strings.
make mcde-linux MCDE_DIRS="install programs/dtbar" and
"... programs/localized/C/msg" exit=0; MCDE_DIRS=plist:
"3410 installed names under dt/, 8599 in the PLISTs", ok.
McdeFile.m.pm (32x32 XPM: a sheet with a folded corner and grey text
lines) is the desktop icon of a file; a folder keeps DtdirB.m.pm.
DeskIconName() picks it for the 'f' of DeskAddDir(). The icon is in
programs/icons/Makefile.am and the PLIST. Measured under Xvfb:
datei.txt shows the document, Ordner the folder.
mcde-dist from HEAD (7f80d71c74, tradcpp target-OS fix) and makronix-set after installing the rebuilt mcde into destdir.amd64 (adds dt/bin/dtscreenshot now present in the package).
tools/mcde-dist.sh and tools/ext-dist.sh archive a commit, not the working
tree, so the checksums have to be renewed after the change is committed: the
mcde archive of HEAD (7f764fddc9) now carries programs/dtscreenshot, and
pkgsrc-motif, which builds the same archive, gets the same three lines.
mcde-dist: /home/lotherk/src/distfiles/mcde-0.1.0.tar.gz, 61719603 bytes,
BLAKE2s 591c6e04be4ccbc4388f47c3eb06133c9bbcb40f0aca5a01e1d8de80a883fe4c
ext-dist afpfs-ng: 459861 bytes,
BLAKE2s ece337077bbb159740ecd828b1c3a08aaafac455eb5983e4898af242ffd69de0
The archive in DISTDIR and the copy in build/distfiles are hard links and
hash the same; ext/src/mcde/pkgsrc and pkgsrc-motif differ by nothing;
tools/ext-sync.sh put the recipes into pkgsrc/ (wm/mcde, x11/mcde-motif,
filesystems/afpfs-ng).
sys.dtwmrc bound Mod4 Shift 3 and 4 (and Ctrl for the clipboard) to
`dtscreenshot` since 2026-11-15, and the program did not exist: the key
reached dtwm and nothing happened (tools/mcde-keytest.sh, t0222).
programs/dtscreenshot/dtscreenshot.c: C99, Xlib and libpng only, no toolkit.
(none) the root window -- every monitor -- as a PNG,
"Screenshot YYYY-MM-DD at HH.MM.SS.png" in ~/Desktop, else in ~
-area the rectangle the pointer drags out, XOR outline, Escape cancels
-clipboard image/png on the CLIPBOARD selection, held until another owner
-delay N wait before the picture (a menu to open first)
-o FILE this file instead of the default name
Nothing runs until the key is pressed; the area is grabbed with a crosshair
cursor; a picture larger than the server's maximum request is refused with a
message (the clipboard is handed over in one property, no INCR).
Wired in three places as ext/src/mcde/AGENTS.md asks: programs/Makefile.am's
SUBDIRS, configure.ac's AC_CONFIG_FILES, the source directory with its
Makefile.am; dt/bin/dtscreenshot is a PLIST line.
Measured on Xvfb :99 with the development build (build/mcde-root/dt/bin):
dtscreenshot -o /tmp/shot-test.png -> 800x600 PNG, exit 0
dtscreenshot -area -o /tmp/shot-area.png with
xdotool mousemove 100 100 mousedown 1 mousemove 300 250 mouseup 1
-> 200x150 PNG
dtscreenshot -clipboard, then
xclip -selection clipboard -t image/png -o -> 800x600 PNG
tools/mcde-keytest.sh: Mod4 Shift 3 puts
"Screenshot 2026-11-15 at 08.51.30.png" on the session's Desktop
(0 before, 1 after; build/logs/mcde-keytest-2026-11-15f.txt).
make mcde-linux MCDE_DIRS=plist: 3210 installed names under dt/, ok.
A table of the processes -- PID, name, user, % CPU since the last sample,
threads, real and virtual memory -- sorted by the column title you click; Show
(all, mine, system), a filter, Quit Process (asks; SIGTERM; Force Quit SIGKILL)
and Inspect; and under it four tabs, CPU, System Memory, Disk Activity and
Network, with the numbers and a three-minute history graph. All of it through
McdeSys (processes, CPU times, memory, disk and network counters, signals, the
commits of 2026-11-14/15); no ps(1), no top(1). New program: programs/
dtactivity (Makefile.am, programs/Makefile.am, configure.ac, PLIST line
dt/bin/dtactivity; make mcde-linux plist: ok).
Frugal, as t0080 asks: one timer, 2 s, only while the window is mapped and not
fully obscured. Measured with strace -c -f -p for 15 s: 2349 system calls
visible, 0 unmapped (xdotool windowunmap), 0 with an override-redirect window
over the whole screen, 2365 shown again. Control: an idle sleep gives the same
empty summary, a process that makes calls does not.
Quit Process measured against real processes in a PID namespace (unshare -rpf
--mount-proc: only the test session's processes exist, so neither the tests nor
the screenshot show the host's): Cancel leaves a process alive, Quit ends it, a
process that ignores SIGTERM survives Quit and is ended by Force Quit. Filter
and column sorting seen in screenshots (the committed image is the CPU tab with
two busy loops and the 24 MB/s of a disk writer in the other tab). Cross
compile for NetBSD (x86_64--netbsd-gcc -Wall -Wextra): no diagnostic. The
"Cannot convert string mcde to type FontStruct" warning is the shared
*renderTable fallback: dtimage prints it too.
Not built: Show "with window", the global menu, Cmd+F and Cmd+1..5, the
administrator's way for another user's process (t0079; it says "belongs to
somebody else"), a legend for the graph colours, the dtappscan entry; the NetBSD
backends of the numbers were never run. Sorting by clicking a header was not
exercised by a script (the layout was); the default sort (CPU, descending) is
what the screenshots show.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>
The Dts.c and McdeSys commits change what git archive HEAD:ext/src/mcde makes;
tools/mcde-dist.sh renewed the checksums. Cross-checked with an archive made
by hand from HEAD: SHA512 64d39d7b..., 61669464 bytes, equal.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The committed distinfo named the archive of an older HEAD; a fresh clone failed
the checksum. Measured: git archive HEAD:ext/src/mcde (tools/mcde-dist.sh's
command) gives SHA512 df4ada94..., 61667349 bytes, as in these files.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
mkcatdefs/merge, dfiles/pmaker, the dthelp parsers' context/fclndir are
compiled with CC_FOR_BUILD; sym2num runs with KSH_FOR_BUILD; documentation
and dtappbuilder/ttsnoop (dtcodegen) are options the cross build turns off.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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.
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.
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.
The makronix set list is regenerated (46569 entries,
build/logs/x-userland-2026-11-13d.log); mcde-host exit=0
(build/logs/mcde-host-2026-11-13c.log).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
From the review of 2026-11-12's commits (the points left open in
1b524eb94):
Sound behind McdeSys (ext/src/mcde/AGENTS.md, philosophy 3): libMcdeSound
named /usr/bin/paplay, aplay, /usr/pkg/bin/audioplay and ffplay itself and
waited for the player, so mcdesoundd heard nothing while a sound played.
mcde_sys_sound_play (sound.c) takes paplay where a PulseAudio server
answers, else the backend's player (mcde_sys_player: audioplay(1) on
NetBSD, aplay(1) on Linux), started in a grandchild: no wait, no zombie.
Measured against a private PulseAudio with a null sink: OpenFolder and
TerminalBell sent back to back play at the same time (pactl list short
sink-inputs: two streams), mcdesoundd -selftest PASS, a second mcdesoundd
says "a server runs already". The /usr/pkg/dt fallbacks of Sound.c and
dtphoto.c are gone (CDE_INSTALLATION_TOP is the prefix);
McdeSoundFile's dead buffer is gone; mcdesoundd ends the 20 bytes of a
message itself; Sound.h is installed (include/Makefile.am, PLIST).
Linking: LIBMCDESOUND and LIBTERM carry the libraries below them
(configure.ac). Debian's libtool hands no indirect library to the
linker, which then took the installed, older libMcdeSys through
libMcdeSound's RUNPATH and failed (dtterm: undefined
mcde_sys_sound_play).
dtwm plug and play (WmMcdeDisplays.c, written 2026-11-11, uncommitted and
not compiling): the ClientData fields it uses, McdeHeadsChanged (Xinerama's
list read anew, its XineramaQueryScreens memory given back with XFree),
McdePanelMonitorsChanged (the panel centres on the main display), the
RandR events taken in WmMain.c's loop, McdeDisplaysInit after the EWMH
setup, the file in Makefile.am. Measured on Xvfb: dtwm starts with it,
the check at login leaves the outputs as they were (xrandr before and
after: screen connected 1024x700+0+0), dtwm runs on. Plugging itself was
not measured: Xvfb cannot change its outputs, and Xorg's dummy driver
refuses a user who is not at the console.
Smaller: dttoolbox ignores SIGCHLD from the start (set after the first
fork it missed the first child) and lost its test hook
/tmp/dttoolbox-no-home; dtfile plays OpenFolder once per folder
(FileMgr.c), not twice; dtpaint's unused variable; dttoolbox frees
XGetAtomName's string without a cast-away const. AGENTS.md describes
McdeSound, mcdesoundd, dtphoto, dtpaint, dttoolbox and the plug and play;
the WAV tones' maker was not kept, which it says. The two stale citations
(53b852bb2, 945da0f4c) are corrected in git notes.
Built with make mcde-host, exit 0 (build/logs/mcde-host-2026-11-13q.log).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Konrad, 2026-11-13: "panel fehlt, top leiste is lila", the network settings
"zu rudimentaer, keine ip config, kein dns", the global menu only while a
program that has one is in front.
The bar (and the launcher, the drop-down terminal, the login items) came
from Xsession.d, before dtsession had loaded the session's resources and
the colour server: dtbar took *background from ~/.Xdefaults (#6e1e7d, the
user's base16 theme; dtbar PID 1270788 started before dtsession 1270795).
Restarting dtbar in the running session gave the palette's colours. Now
dtsession runs sys.sessionetc -- the first of CDE_CONFIGURATION_TOP/config
and CDE_INSTALLATION_TOP/config, as sys.session is found -- before the
user's sessionetc (SmRestore.c, StartEtc); it sources config/sessionetc.d,
where 0080.dtlaunch, 0085.dtdropdown, 0090.dtbar and 0095.loginitems moved.
The bar takes colour set 5, the programs' background, not set 6 of a menu
bar (Dtbar*secondaryColorSetId: 5; measured #c6b2a8 with Default.dp).
dtwm publishes the focused client as _NET_ACTIVE_WINDOW (EWMH, WmEwmh.c
SetNetActiveWindow from SetKeyboardFocus and where the focus is dropped);
dtbar shows a program's menus only while the active window is the menus'
owner, a dialog of it (WM_TRANSIENT_FOR) or a window of the same program
(WM_CLIENT_LEADER). Measured on Xvfb with dtwm, dtbar, dtpad and xterm,
clicking: dtpad -> its menus, xterm -> M only, dtpad -> its menus again.
Network (dtsystemsettings/network.c, docs/reference/netconfig.txt): Show:
Network Status (a light and a sentence per card, Configure...) or one card
with the tabs TCP/IP (Using DHCP, with manual address, Manually, Off;
address, mask, router, DHCP client ID, Renew DHCP Lease; IPv6), DNS
(servers, search domains, what resolv.conf has now), Wi-Fi and Ethernet;
the lock and Apply Now as Accounts. McdeSys mcde_sys_net_config,
_configure, _renew (replacing mcde_sys_net_dhcp, which was declared and
implemented nowhere): NetBSD one block per interface in dhcpcd.conf, as
ifconfig.if(5) recommends, sysinst's static address in ifconfig.IF read and
moved there, applied with dhcpcd -n IF (cross-compiled with the tree's
x86_64--netbsd-gcc, not run); Linux the NetworkManager profile (nmcli).
mcde_sys_interfaces took the last IPv4 address (the secondary one), now the
first. Measured on this host, read only: the pane shows the three cards,
172.20.10.2/28 by DHCP, router 172.20.10.1, DNS 1.1.1.1, MAC, MTU 1500;
test_sysinfo (new checks: settings read, 300.1.2.3 refused) exit 0.
Nothing was applied on the development host.
From the review of 2026-11-12's commits: libDtTerm links libMcdeSound
(977a7347c made the bell call McdeSoundEvent; dtcodegen did not link); the
PLIST lacked dtphoto, dtpaint, dttoolbox, mcdesoundd, libMcdeSound, their
data and the sound themes (51 entries, from the installed tree); mcdesoundd
was started by nothing (sessionetc.d/0075.mcdesoundd) and took the
selection from a running server; dttoolbox kept only the first line of the
Selected menu and rebuilt it every 500 ms, and NewMenu returned an
uninitialised pointer past 64 menus.
Built and installed with make mcde-host MCDE_DIRS=install, exit 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>