Commit Graph
49 Commits
Author SHA1 Message Date
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
lotherkandClaude Sonnet 5.5 827cdd3d4a MCDE distinfo: the archive of HEAD after t0197
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 21:23:26 +00:00
lotherkandClaude Sonnet 5.5 33090b37c9 MCDE distinfo: the archive of HEAD after t0216 and t0078
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>
2026-11-14 21:16:43 +00:00
lotherkandClaude Sonnet 5.5 2593715509 MCDE distinfo: the checksums of the archive git makes of HEAD
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>
2026-11-14 21:00:46 +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 f9e5e99cfb MCDE PLIST: dtcmprefs, dtconsole, dtimage, dtnetutility and two icons; tools/mcde-plist.sh adds what the PLIST check reports
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 19:07:01 +00:00
lotherkandClaude Sonnet 5.5 5e5a624564 MCDE PLIST: McdeLock.pm
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 18:51:49 +00:00
lotherkandClaude Sonnet 5.5 ca3080f346 MCDE PLIST: docs and appbuilder are conditional; Thumb.h, 0010.language, DtScrn.t.pm are listed (t0210)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 12:47:49 +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 455f5c2327 MCDE: build tools run on the build host; docs and appbuilder are options (cross build)
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>
2026-11-14 11:29:16 +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 Sonnet 5.5 807a65d1d1 afpfs-ng cross-built and in the makronix set (mount_afp, afpcmd); userland.sh cross half installs into the sysroot
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 17:23:21 +00:00
lotherkandClaude Sonnet 5.5 edb0e6949c MCDE: Mac OS X keyboard shortcuts through the desktop (Cmd+space dtlaunch, f.mcde_app, bar commands, dtterm/dtfile keys); fuse-afpfs-ng dropped from the build
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>
2026-11-13 12:05:06 +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 9fd4818051 MCDE: the review's open points -- sound through McdeSys, dtwm plug and play, the rest
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>
2026-11-13 06:41:53 +00:00
lotherkandClaude Opus 5.5 0e81935ea0 MCDE: the bar after dtsession, its menus only for the focused program, a Network pane
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>
2026-11-13 06:26:21 +00:00
lotherk 3b4269f18f makronix set: dtbackup, dtdiskutility, the battery icons, the session hooks
The list is what tools/makronix-set.sh read back from the installed tree
after the mcde8 userland run (31030 entries): the two utilities, the five
battery icons and the two Xsession.d hooks were installed, but the set did
not name them, so checkflist would report them as extra on the next
release.  distinfo follows the rebuilt mcde-0.1.0.tar.gz (57759903 bytes,
SHA512 5754d872...), the archive that run installed.

WmMcdeDisplays.c/.h stay untracked: the plug-and-play draft does not
compile (ClientData has no mcdeMonX/mcdeMonY/mcdeRescued) and is not in
dtwm's Makefile.am; it goes in when it builds.
2026-11-12 08:10:05 +00:00
lotherkandClaude Opus 5.5 ab79f53571 mcde: System Settings > Displays -- arrange, resolution, rotation, main display, mirror
The monitors as rectangles to drag, docked to each other; per monitor on
or off, resolution, rotation, main display (top bar and front panel);
mirroring.  RandR 1.3, set as xrandr(1) does.  Apply asks to keep the
settings and goes back by itself after 15 seconds.  MCDE remembers the
monitor (EDID id), not the socket, also while it is unplugged:
~/.dt/displays, applied at login by Xsession.d/0071.displays.

Tested: make check (test_displays, 31 cases); Xorg with the dummy
driver: -apply-displays, an unknown mode and all-off refused; in the
pane 1024x768 applied and back after 16 s, kept with Keep and written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 23:36:27 +00:00
lotherkandClaude Opus 5.5 c1367c039b mcde: dtthemesync -- GTK, Qt, KDE and X programs take MCDE's palette
From the session's palette and font, with Motif's own colour calculation:
X resources (and the 16 terminal colours), GTK 1, GTK 2/3/4 themes with
Motif's bevels and no animation, qt5ct/qt6ct schemes and kdeglobals.  It
is also the XSETTINGS manager, so running GTK programs change with the
palette at once; System Settings runs it when a palette or font is chosen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 23:00:27 +00:00
lotherkandClaude Opus 5.5 15a0d09f45 mcde: the Command key -- the key left of the space bar, on every keyboard
dtkeys makes it Mod4 at login (a PC keyboard's left Alt and Windows keys
are exchanged, a Macintosh keyboard is so already; ~/.dt/keyboard chooses,
McdeSys tells a Macintosh keyboard).  Motif's text fields copy, cut, paste
and select all with Command+C/X/V/A; dtterm pastes, copies, opens and
closes tabs and switches them with Command; dtwm's switching, minimizing,
zones and full screen go by Command too.  Option is Alt, where Motif's
menu mnemonics stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:29:03 +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 d95f0fc8af mcde: dtappscan, the installed applications by category
CDE's application manager shows a fixed list, installed or not.
dtappscan reads the desktop entries of the installed packages (Desktop
Entry Specification 1.5) and a table of the desktop's own programs, keeps
what is on the PATH, and writes CDE actions, icons (PNG to XPM) and one
folder per category in ~/.dt/Applications, at every login before the
session loads its actions.  The file manager has Applications among its
places, and the application manager opens the same folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 19:02:22 +00:00
lotherkandClaude Opus 5.5 43305571ac mcde: the front panel in a new order, its switch in the middle of the screen
Left of the workspace switch: Files (Home, Desktop, Documents, Downloads),
Mail (Text Editor, Calendar, Calculator, Icon Editor), Terminal (Disk
Utility, System Settings), Network (Remote Login, Sharing) and Desktop
Style with CDE's printers, applications and help in its drawer; right of
it only the running programs and the trash.  dtwm moves the panel so that
the switch stays in the middle of the screen, also when programs come and
go.  A program in a drawer is in the dock and not shown again on the
right.  dtfile shows the network for the folder ~/Network, which the panel
opens; the home folders are made at login.  Icons for the disk and the
network; dtremotelogin asks for user@computer and runs ssh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 18:49:07 +00:00
lotherkandClaude Opus 5.5 c8e8587f9b mcde: backup by BorgBackup to a disk of its own, with a watcher for space
McdeSys gets the backup (lib/McdeSys/backup.c): a partition becomes the
backup disk with an encrypted repository (borg init -e repokey-blake2);
every hour root's crontab runs dtbackup run: borg create of / (and /home)
on its own file systems, lz4, then prune -- 24 hourly, 30 daily, 52
weekly, every monthly unless set otherwise (keep_* in
/etc/mcde-backup.conf, -1 keeps every one) -- and compact.  The watcher:
before and after each run, while the backup disk has less than min_free
percent free (10 unless set), the oldest backup is deleted and the space
given back; the newest is never deleted.  Listing (borg list --json) and
restoring a path into a folder (borg extract).  The passphrase lives in
/etc/mcde-backup.pass, root's alone, handed over by BORG_PASSCOMMAND.
docs/reference/borg.txt from borg 1.4.5's own documentation.

dtbackup run | status | list: the same from a shell and for cron, no X.

Measured: builds on the Linux host and compiles in the build VM; as a
user dtbackup status says no disk is set up and dtbackup run refuses.
Not measured: a real backup -- borg is not on the host and goes into the
set with the next userland.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:49:38 +00:00
lotherkandClaude Opus 5.5 5eee8d5d8f mcde: dtdiskutility, the disks of the computer
A program of its own: the drives on the left, each followed by its
partitions (label, or where mounted, and size); on the right the chosen
one's name, model, device, capacity, file system, mount point, used and
available, and a bar of how full it is; below two pages.  First Aid:
Verify Disk (fsck -n, changes nothing), Verify Permissions and Repair
Permissions (the system's files against /etc/mtree/set.*), with their
report.  Erase: a name and a format -- NetBSD FFS, MS-DOS FAT32, Linux
ext4 -- for a whole drive, after a warning that names the drive and says
everything on it is lost; a drive that holds the system is never offered.
The toolbar mounts and unmounts.  As a user it shows and verifies, and
Unlock... starts it again as root under su in a terminal.  All through
McdeSys.

Measured on Xvfb as a user (build/mcde-shots/du-*.png): the host's NVMe
drive with /boot/efi, /boot and the crypto partition; /boot chosen showed
ext4, 318 MB used, 603 MB available, "Holds the system" and the bar;
the Erase page offers the three formats and erases nothing for a
partition.  Not measured: mounting, verifying, erasing, repairing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:27:26 +00:00
lotherkandClaude Opus 5.5 648a11f4de mcde: System Settings draws Startup, with programs opened at login
At login the session left or the home session, asking before logout, and
Save These Windows as Home Session: what dtstyle's Startup sets, sent the
same way (_DtSetSmState with SM_STATE_START and SM_STATE_CONFIRM; the
client message _DT_SM_SAVE_TO_HOME).  And a list of programs to open at
login, one command a line in ~/.dt/login-items, which the new
Xsession.d/0095.loginitems starts five seconds into the session, each
through sh in the background, as 0090.dtbar starts the bar.

Measured in a dtsession on Xvfb (build/mcde-shots/startup-*.png):
_DT_SM_STATE_INFO went from start 4 (current), confirm 1 (verbose) to 3
(home), 2 (quiet); adding dtcalc wrote ~/.dt/login-items.  0095.loginitems
sourced by ksh returned at once and ran both entries of a test list (one
with blanks in its argument) after the pause, skipping the comment.  Save
as Home Session is not measured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:45:25 +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 451aac7fe4 mcde: the battery in the bar
McdeSys gets mcde_sys_battery: all batteries as one, charging, mains,
minutes left.  NetBSD reads the envsys(4) dictionary of /dev/sysmon as
envstat(8) does (acpibat "present", "charge", "charging", "discharge
rate"; acpiacad "connected"), Linux /sys/class/power_supply (energy_* or
charge_*, status, Mains/USB online).  The sources are in
docs/reference/battery.txt.

dtbar shows a fourth icon, only when there is a battery: full, half, low
(red), charging; its menu says the charge, the power source and the time
left.  The status bar is 30 pixels an icon.

Measured: on the Linux host test_sysinfo says "battery 76% ac", as
/sys/class/power_supply/BAT0/capacity and AC/online do; the menu on Xvfb
(build/mcde-shots/battery-menu.png) says "Battery: 76 %", "Power Source:
Power Adapter".  The NetBSD backend compiles and runs in the build VM,
which has no battery (envstat: no drivers registered): only the
no-battery case is measured there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 07:01:18 +00:00
lotherkandClaude Opus 5.5 928c77506c mcde: dtterm -dropdown, the terminal that comes down from the top on F12
Dropdown.c: full width, 40 % of the screen high, override-redirect, hidden
until its key (resource dropdownKey, F12); then it slides down in 8 steps to
below the top bar and takes the keyboard, the key sends it back up.  The key
is grabbed on the root window (with the CapsLock/NumLock combinations, a
BadAccess is reported) and taken in dtterm's own event dispatcher
(XtSetEventDispatcher): registering the root window with a widget did not
bring it.  Xsession.d/0085.dtdropdown starts it in every session.
Tested on Xvfb with dtwm and dtbar: hidden at start, down on F12 below the
bar with the keyboard (typed 'echo dropped down'), up again on F12.
xdotool key F12 maps F12 to a spare keycode the grab never sees; the test
sends an XTest event on F12's own keycode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 18:03:39 +00:00
lotherkandClaude Opus 5.5 0c7451b46d mcde: dtbar's M is the Makronix logo, drawn for 16 pixels
MakronixDtlogo.t.pm: the M with its star, drawn by hand -- the 240-pixel logo
scaled to 16 was a dark square.  dtbar gives it when the button is made (so
Motif sizes it) and keeps the letter M where the icon is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 17:56:32 +00:00
lotherkandClaude Opus 5.5 4033fda244 src: makronix set list: MCDE with dtbar, dtsystemsettings, libMcdeSys and the icons; mcde distinfo
From make userland (build/logs/x-userland-2026-11-10-mcde4.log, exit 0, the
fork rebuilt and replaced in the VM); the release chain built on it:
release, iso, sourcesets, usb, isosrc exit 0
(build/logs/x-chain-2026-11-10-mcde4.log).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 16:12:22 +00:00
lotherkandClaude Opus 5.5 6f68d92f75 mcde: dtsystemsettings, the settings of the computer in one window
Four bands of icons -- Personal, Hardware, Internet & Network, System --
from panes.c (plain C, PASS test_panes); a click opens the pane in the
window, Show All goes back, -pane ID opens one directly.  Own panes through
McdeSys: Sound (volume, mute), Network (the cards, addresses, SSID),
Bluetooth (state, on/off), Date & Time (a running clock, the zone), About
(everything mcde_sys_info knows).  Appearance, Desktop, Fonts, Language,
Screen Saver, Keyboard, Mouse, Startup open dtstyle, Printers dtprintinfo,
until they are drawn here; Accounts and Software Update are greyed.  dtbar's
System Settings... and the Sound/Bluetooth/Network Settings... items open
it.  New icons: a 48-pixel Makronix logo, 32-pixel network and Bluetooth.
Seen on Xvfb with dtwm and dtbar, sound against a private PulseAudio.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 12:24:42 +00:00
lotherkandClaude Opus 5.5 776e0f3d47 mcde: dtbar status menus work: slider in the menu, icons as CDE icon files
- menuscale.c gives XmScale Motif's XmQTmenuSavvy trait (XmeTraitSet, as
  Label.c does for its classes): a menu takes the volume slider without
  "wrong child type".  Dragged against a private PulseAudio (null sink):
  40 % -> 100 %, two wheel steps -> 90 %.
- The icons are CDE icon files (icons/Mcde*.t.pm, appconfig/icons/C, in the
  PLIST), loaded with XmGetPixmap; the status menu bar has a fixed width (the
  form had squeezed the buttons to 10 pixels).
- McdeSys sets SIGCHLD to the default while it waits for a tool: dtbar
  ignored SIGCHLD, waitpid gave no status and every query failed (volume -1).
  dtbar starts programs with a double fork instead.
- Menu entries left-aligned; Mute shows its box when off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 11:23:50 +00:00
lotherkandClaude Opus 5.5 9b90e256d6 mcde: lib/McdeSys begins: system information and power, NetBSD and Linux
mcde_sys_info (system, version, kernel, model, processor and count, memory,
startup disk and its space, host name) and mcde_sys_power (sleep, restart,
shut down) in libMcdeSys: common.c is POSIX, netbsd.c uses sysctl(3),
/etc/release, statvfs's f_mntfromname, zzz(8) and shutdown(8); linux.c uses
os-release(5), /proc and /sys, systemctl or shutdown(8).  test_sysinfo (make
check) passes on the Linux host and, compiled natively, in the NetBSD build VM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 07:47:52 +00:00
lotherkandClaude Opus 5.5 e8240130d8 mcde: dtbar, the bar at the top with the menus of the active program
include/Mcde/GlobalMenu.h is the protocol (selection _MCDE_BAR_S<n>,
_MCDE_MENU on the program's window, _MCDE_ACTIVE_MENU on the root, client
messages to activate and refresh).  libDtSvc's McdeGlobalMenu.c, started by
DtInitialize, finds every XmMenuBar with an Xt create hook, hides it while
the bar runs and writes its tree; a click in the bar calls the button's own
callback -- no Motif patch, every CDE program takes part.  The text form is
McdeMenuModel.c with its test (PASS test_menumodel).  dtbar: M menu (dtaction
Dtstyle, Dtterm, Dtfile, LockDisplay, ExitSession), the program's menus, the
clock; started by Xsession.d/0090.dtbar.  The Mcde headers are installed.
Tested on Xvfb with dtwm and dtcalc: its menu bar leaves its window, Options
and Help are in the bar, Options > Memory Registers opens dtcalc's dialog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 07:27:29 +00:00
lotherkandClaude Opus 5.5 261cb1e992 mcde: dtterm profiles (font, colours, command); Window > New Tab with Profile
Profiles.c reads ~/.dt/dtterm.profiles (else the config/ one), plain C with
its test (make check: PASS test_profiles).  A view with a profile is named
profile_<name>; its colours are resources of that name, its font an Xft
render table that TermView now passes on to the terminal, its command
DtNsubprocessArgv unless -e gave one.  Ctrl+Shift+T keeps the profile of
the tab; the Window menu gets New Tab and New Tab with Profile through a
hook in TermViewMenu.c; dtterm -profile NAME, and "Default" to start with.
Tested on Xvfb with dtwm: -profile, a tab by key, a tab by the menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 07:08:16 +00:00
lotherkandClaude Opus 5.5 59937bfa04 mcde: PLIST: the documentation is in share/doc/mcde (PKGBASE)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 06:29:41 +00:00
lotherkandClaude Opus 5.5 20c4555547 mcde: distinfo for the archive of be3b4886c; tools/AGENTS.md: MCDE in the VM build
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 06:10:00 +00:00
lotherkandClaude Opus 5.5 ac0952a29b mcde: anti-aliased Hack everywhere; dtterm draws through Xft with UTF-8 and glyph fallback
Fonts:
- fonts/hack: Hack 3.003 (Expat + Bitstream Vera, from Debian fonts-hack),
  installed to dt/fonts; config/fonts.conf (the system's fontconfig plus
  that directory) exported by Xsession.d/0070.dtfonts and
  Dtlogin*environment.
- sys.resources and dtlogin Xresources: Xft render tables in Hack 10 for
  renderTable, textRenderTable, labelRenderTable, buttonRenderTable (a
  render table wins over sys.font's *FontList; dtterm and text fields read
  the text table).
dtterm (ported from MakroDE -- setlocale and the Xft renderer -- then fixed):
- configure: Xft on by default, --disable-xft for machines without it.
- TermPrimRenderXft.c: reads wchar_t in multibyte locales (it read the
  buffer as UTF-8 bytes: three boxes after every character), places every
  character in its cell on the baseline, fills the background, draws
  underline/overstrike/secure, wcwidth for wide and combining characters,
  borrows glyphs from fontconfig fallbacks (check mark, CJK), and makes its
  XftDraw at the first drawing (made in Initialize it was window 0, and the
  first string a BadDrawable that ended dtterm).
- TermPrim.c AdjustWindowUnits: the cell from the renderer's extents when
  there is no XFontStruct (crashed with Xft); _DtTermPrimRenderFontExtents.
- TermPrimRenderFont.c: with setlocale the buffer is wchar_t in UTF-8, the
  single-font renderer draws it as XChar2b (it drew boxes too).
Screenshots: build/mcde-shots/dtterm-utf8b-crop.png, dtterm-classic-crop.png.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 23:55:41 +00:00
lotherkandClaude Opus 5.5 07c3ce19f0 mcde: dtlaunch, the launcher: hot key, programs, snippets, clipboard history, calculator
programs/dtlaunch: Alt+space (Dtlaunch*hotkey) opens a field and a list;
matches programs in $PATH, ~/.dt/snippets (keyword TAB text), the
clipboard history (polled CLIPBOARD, 50 entries, memory only) and
calculations (=12*(3+4)).  Return starts the program or puts the text on
CLIPBOARD and PRIMARY.  One per display (_MCDE_DTLAUNCH); a second start
opens the first.  C99/POSIX + Xt/Motif, no warnings with -Wpedantic.
model.c (no X) with test_model.c: make check PASS.  Started in every
session by config/Xsession.d/0080.dtlaunch.  Tested on Xvfb: snippet and
result reach the clipboard (build/mcde-shots/dtlaunch-*.png).
tools/mcde-linux.sh: check mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:41: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 6850b1c481 mcde: distinfo for mcde-0.1.0 (tools/mcde-dist.sh from acf99028)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:40:26 +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 7ea25c5d3e mcde: fold the nine pkgsrc patches of wm/cde into the tree
A fork carries its fixes in the source; the recipe no longer patches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:37:04 +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