Commit Graph
98 Commits
Author SHA1 Message Date
lotherk be056d34ee pkgsrc: distinfo for the archive the source really is
tools/mcde-dist.sh's "archive unchanged" check hashed with sha256sum, which
NetBSD does not have: the key was empty, both sides compared equal, and the
distfile was never remade after the 64x64 icons and the AGENTS.md update.  The
archive the recipe named was 66,941,013 bytes and held the old AGENTS.md
(58,298 bytes) and the 32x32 pictures.

The fixed script made the archive again: 66,940,999 bytes, AGENTS.md 61,013
bytes, IrixDisk.m.pm begins "64 64".  These are its checksums.

Measured: tools/mcde-dist.sh from the parent at 7e20c712, mcde 3d79fc80.
2026-11-22 11:21:37 +01:00
lotherk 3d79fc80ca mcde: the archive with the 64x64 icons and the AGENTS.md 2026-11-22 10:05:47 +01:00
lotherk 727965b212 mcde: the archive with the Dock pane 2026-11-22 08:09:02 +01:00
lotherk 4aa00e0649 mcde: the archive of 94ab6eb75e 2026-11-22 06:46:42 +01:00
lotherk 38c7bd1901 mcde: the archive of 8f03d0d74e
The recipe had the archive of the commit before the System Settings change.
2026-11-21 21:46:03 +01:00
lotherk fd55404245 mcde recipes and the cross configuration: the X of the build host, named once
These are the changes the cross (Linux) path needed before the chroot path
made them unnecessary on Makronix; they are kept because that path still
builds for the same sysroot on a host that is not Makronix.

tools/pkgsrc-cross.mk.conf names the host side in one place instead of in the
recipes: HOST_TOOLS_BIN on PREPEND_PATH (autoreconf stopped with "Can't exec
libtoolize"), HOST_X11BASE (the include path of the host's X), HOST_X11_LIBS
and HOST_FL_A (the archives the host tools link) and HOST_BUILD_CFLAGS
(-std=gnu17 -fPIE: the 1990s C of the forks, and NetBSD links PIE by default
so tradcpp failed with "relocation R_X86_64_32 ... can not be used when
making a PIE object").  /usr/pkg/lib comes before the base X when linking: a
library pkgsrc builds because the base copy is too old must be the one a
package links (the base freetype is 2.10.4, pkgsrc's 2.15.0 was ignored and
libfontconfig.so needed .19).  x11-links keeps the sysroot override only on a
host without X of its own (on Makronix it doubled the path, 7 instead of 111
pkg-config links, x11/libXft then "Package 'x11' not found").

ext/src/mcde/pkgsrc-motif and ext/src/mcde/pkgsrc use those variables; the
build tools (makestrs, wml, wmldbcreate) are built and run by the host, so
their CFLAGS come from HOST_BUILD_CFLAGS and their include path from
HOST_X11BASE.

Measured on makronix-build before the chroot path: mcde-motif rc=0 in 529 s,
wm/mcde rc=0 in 1506 s.
2026-11-21 01:49:20 +01:00
lotherk 3a9f769c51 mcde recipes: the build tools take the X of the build host
makestrs, wml and wmldbcreate are built and RUN by the build host, and in a
cross build prefix is the target ( /usr/pkg ): there /usr/pkg/include has no
X11, and makestrs stopped with "X11/Xos.h: No such file or directory" on
Makronix (measured 2026-11-20) while the Linux host had the buildlink stub in
that directory.  Where the host has its own X (/usr/X11R7), the tools use it;
else the old -I${PREFIX}/include stays.
2026-11-20 15:40:03 +01:00
lotherk e8d19bc74f ext: the recipes of the forks are tracked again, with their distinfo
The root .gitignore said "pkgsrc/", which git applies at every level, so
ext/src/*/pkgsrc -- the recipes of MCDE, afpfs-ng and splinter -- were ignored
and never in the repository; a fresh clone had no recipe for any fork and the
source set could not carry one.  The rule is "/pkgsrc/" now: the checkout at
the top stays out, the recipes belong in.

The three distinfo files name the hashes of the archives this run packed, and
the archives themselves are the ones in distfiles/ (regenerated with digest, or
with cksum when digest does not exist yet).
2026-11-20 05:59:49 +01:00
lotherk 9b8e5b12ff mcde: distinfo of the archive with dtlogin's LANG order
test-desktop-login on the installed VM with this dtlogin: 12 of 12 PASS,
the session runs with LANG=en_US.UTF-8 (build/logs/desktop-login-2026-11-18f.log).
2026-11-18 12:38:05 +00:00
lotherk b6cbd0eb87 mcde: distinfo of the archive with the session fixes (libSM ID, locale, fonts, catalogues, ICE) 2026-11-18 06:49:26 +00:00
lotherk 6f27882115 mcde: message catalogues in NetBSD's format (nbgencat from the tooldir)
configure took the build host's gencat; on Linux it wrote glibc catalogues
(magic 0x960408de, dtfile.cat in the makronix set) which NetBSD's catopen(3)
rejects (src/lib/libc/nls/catopen.c:183, _NLS_MAGIC 0xff88ff89): catgets()
always returned the built-in English, translations never showed.  The
tooldir's nbgencat writes the NetBSD format; a native NetBSD host keeps its
own gencat.
2026-11-18 06:38:20 +00:00
lotherk 03ce0155cc mcde: distinfo of the archive with the sessreg and userPath fix 2026-11-18 02:16:08 +00:00
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 f8f0194533 ext: distinfo of the archives of HEAD (make userland, build/logs/userland-2026-11-17j.log exit=0) 2026-11-17 17:12:52 +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 2f3511ebf2 dtchat: run the configured accounts as adapters in the UI
accounts_run.c loads accounts.json (id, protocol, label, adapter, settings, enabled) and secrets.json (per account id) and starts one DcAdapter per enabled account, pumping the DcLoop from an Xt timeout. Its events go into the model and the panel: state into the status line, conversation (direct/channel/group) and roster entries into the model (roster sets presence), messages into the transcript via dtchat_ui_message_added, presence/typing/errors into the status/dialog, request events into the existing request dialog with the answer routed to that adapter. The UI send hook resolves the selected account (dtchat_ui_current_account) or the account that owns the conversation and calls dc_adapter_send_text; dtchat_accounts_join/_typing expose join and XEP-0085 for menus and tests. Normal GUI runs (not --demo/--local/--perf/--smoke) start with an empty model and the configured accounts; the demo peers are gone in that mode. dtchat-irc is installed next to dtchat and listed in the PLIST; dtchat-xmpp and the demo adapter remain build artifacts. Verified with the fake adapter under Xvfb (accounts fake: starting/online/sent alice/message alice), including the real UI send path (DTCHAT_TEST_UI_SEND), screenshot build/mcde-shots/dtchat-accounts.png; --smoke-test still passes.
2026-11-17 10:22:27 +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
lotherk 78858fbc28 mcde: list the dtchat core library and its headers in the PLIST (T10.6)
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).
2026-11-17 08:08:51 +00:00
lotherk 9492ee4ffe dtchat: install the program, headless mode and manual, and list them in the PLIST (T10.6)
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).
2026-11-17 07:11:29 +00:00
lotherk 8a0a5ac3f5 MCDE: the IRIX and Solaris Helvetica fonts, the 4Dwm font as the default (t0301)
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.
2026-11-16 15:22:50 +00:00
lotherk 11cd07b560 MCDE: the IRIX cursor font as an Xcursor theme, both themes in Appearance (t0301)
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.
2026-11-16 14:32:23 +00:00
lotherk 8b94ab17c9 MCDE: the Solaris cursors as a native Xcursor theme (t0301)
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.
2026-11-16 14:19:22 +00:00
lotherk 072d200303 MCDE: the Solaris cursor theme (t0301)
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".
2026-11-16 14:08:53 +00:00
lotherk 04d8d90d93 MCDE: the IRIX device icons rendered to XPM (t0299)
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.
2026-11-16 12:59:03 +00:00
lotherk aed9961106 MCDE: the 4Dwm look and the Sun/IRIX assets (t0297, t0300, t0302)
- 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.
2026-11-16 12:44:56 +00:00
lotherk e6202a8019 McdeSys: the tool errors come from a catalog, German measured (t0282)
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.
2026-11-16 10:38:43 +00:00
lotherk c331971ddd MCDE dtpaint: a message catalog, German measured (t0282)
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.
2026-11-16 10:30:14 +00:00
lotherk 6a620b125a MCDE dtphoto: a message catalog, German measured (t0282)
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.
2026-11-16 10:18:17 +00:00
lotherk 121fab6753 MCDE dttoolbox: a message catalog, German measured (t0282)
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.
2026-11-16 10:10:21 +00:00
lotherk 9b41251028 MCDE dtlaunch: a message catalog, German measured (t0282)
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.
2026-11-16 09:56:46 +00:00
lotherk 977d2b9d57 MCDE dtsystemsettings: a message catalog, German measured (t0282)
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.
2026-11-16 09:48:19 +00:00
lotherk dcf6b4377c MCDE sound: the IRIX theme with all 70 events
The theme now carries every event of the IRIX 6.5 sound scheme
(EVENT_MAP.csv): the 20 names MCDE uses first (Launch, Start, End,
Error, Warning, Beep, OpenFolder, DropMove, DropCopy, Remove,
RemoveToDumpster, DeskSwitch, Iconify, Deiconify, NewMail, PrintFiles,
SearchHit, SearchMiss, ClockChimeHour, TerminalBell) and the further
ones the reference had (FatalError, Question, Info, Completion,
MinorError, MajorError, BadValue, InvalidLocation, Success, Failure,
Wait, Proceed, Open, Close, Mount, PutAway, EmptyDumpster,
OpenRemoteFolder, DropReference, DropIgnore, MarginBell, CursorStuck,
LaunchApp, AppDeath, ImAlive, ClockChimeHalf/Quarter, RepeatingLastBell,
ComposeFail, SearchBegin/End, TypeSelect*, and the AX_* sounds).  70
WAVs and theme.ss, 4.1 MB; every soundfile: line resolves in the
installed theme, mcdesoundd -selftest PASS.
2026-11-16 09:20:33 +00:00
lotherk cc3f711afa MCDE sound: the IRIX 6.5 theme (t0291)
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.
2026-11-16 09:13:00 +00:00
lotherk ca668b1de4 MCDE dtbar: a message catalog, German measured (t0081)
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.
2026-11-16 08:37:41 +00:00
lotherk e37ff1510a MCDE: an own document glyph for files on the desktop
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.
2026-11-16 07:32:04 +00:00
lotherk a667613ef3 Update MCDE PLIST for new backdrops 2026-11-15 20:59:14 +00:00
lotherk 4172a1c2a5 ext: refresh mcde distinfo and makronix set
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).
2026-11-15 09:44:57 +00:00
lotherk 85af89a9d9 ext: the distinfo files match the archives of HEAD again (t0222)
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).
2026-11-15 08:57:24 +00:00
lotherk efb92c88cc dtscreenshot: the picture of the screen, whole / an area / the clipboard (t0222)
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.
2026-11-15 08:55:43 +00:00
lotherkandClaude Sonnet 5.5 5ea507d4dc dtactivity: the activity window (t0091)
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>
2026-11-15 05:20:01 +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 7c38dfc91e MCDE distinfo: the archive of HEAD after the process list
Cross-checked with an archive made by hand from HEAD: SHA512 equal for both recipes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:46:20 +00:00
lotherkandClaude Sonnet 5.5 d1204c9e38 MCDE distinfo: the archive of HEAD after the dttoolbox change
Cross-checked with an archive made by hand from HEAD: SHA512 equal for both recipes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:08:51 +00:00
lotherkandClaude Sonnet 5.5 259697bd5d MCDE distinfo: the archive of HEAD after t0080
Cross-checked with an archive made by hand from HEAD: SHA512 equal for both recipes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 22:59: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 a5f891cd08 MCDE distinfo: the archive of HEAD after t0217
Cross-checked with an archive made by hand from HEAD: SHA512 equal for both recipes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 22:46:35 +00:00
lotherkandClaude Sonnet 5.5 6901ec83e0 MCDE distinfo: the archive of HEAD after t0185
Cross-checked with an archive made by hand from HEAD: SHA512 equal for both recipes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 22:29:12 +00:00