dtphoto.c compiled without M_PI (not in POSIX, and _POSIX_C_SOURCE hides
it) and with a memcpy that _FORTIFY_SOURCE saw as five arguments, because
a compound literal put its commas between memcpy own ones. The paket
build stopped on both. Test: the source compiles with -std=gnu11
-D_FORTIFY_SOURCE=2, and the fork main is 4e51d6dd.
The NLS catalogs (Dtwm, Dtstyle and sys.font in 18 locales) still carried the
wide CDE "-dt-interface" strings and overrode the source defaults; they are
Adobe Helvetica 14/12/10 now, the sizes of the 4DWm reference. The dtwm
title and menus stay at 14 px bold oblique. The submodule is 7c9347dc; the
distfile is 67,131,128 bytes and its distinfo matches it.
Measured: gencat rc=0 on the C catalogs and the compiled Dtwm.cat contains
-adobe-helvetica-medium-r-normal--14-*; cpp -DWIDTH=1280 selects Helvetica
14; make -C programs/dtwm rc=0 and make -C programs/dtsession rc=0, 0 errors.
The by-file index beside the package database is a cache, and pkg_add trusts
it without checking the database: after a `force' run had removed packages,
it still named digest-20220214 as the owner of /usr/pkg/bin/digest -- a
package that was not registered and a file that did not exist. pkg_add then
reported "digest-20220214: conflicting PLIST with digest-20220214: bin/digest"
against itself and would not install the tool, so every build that needed
something from the sysroot stopped. Measured 2026-11-22: 45 packages were
left deleted, and none of them could be reinstalled.
sandbox_index() rebuilds the index from the +CONTENTS of the packages that
are registered, so it can only name packages that exist. It runs at the end
of sandbox_mount(), before any build starts, and uses the sysroot's own
pkg_admin (/usr/sbin: the package tools are part of a base set since they
moved there), so the index format matches the pkg_add inside the chroot.
Measured: with the stale index, `tools/pkgchroot.sh force pkgtools/digest'
failed with the self-conflict above; after `pkg_admin -K ... rebuild' it
built and installed (rc=0, 14131 files from 86 packages).
dtsession's sys.resources and sys.font select Adobe Helvetica 14/12/10
instead of the wider CDE "-dt-interface system" face; the dtwm title and
menus stay at the 4DWm reference 14 bold oblique, the panel at 14/13/10.
The submodule is d2834491; the distfile is 67,131,895 bytes and its distinfo
matches it.
Measured: cpp -P -DXCOMM=# -DWIDTH=1280 sys.resources.src selects
-adobe-helvetica-medium-r-normal--14-* for FontList/button/label/text;
make -C programs/dtwm rc=0 and make -C programs/dtsession rc=0, 0 errors.
The front panel's form is a Motif drop site for FILENAME transfers: a
dropped executable joins the dock (`~/.dt/panel-apps`), a folder opens as
`dtfile -dir`, a plain file is ignored. dtfile is the source with
DtDndDragStart. The submodule is ab00c218; the distfile is 67,130,796 bytes
and its distinfo matches it.
Measured: make -C programs/dtwm rc=0, 0 errors; make -C programs/dtfile
rc=0, 0 errors.
The files were listed, the directories were not: checkflist reported
./etc/junction and ./etc/splinter as extra (measured 2026-11-22 on the
MacBook; the /opt/src gate).
The source set carries the projects Makronix ships under usr/src/ext/src/<name>
(ext/AGENTS.md); an installed system also gets /opt/src there, where the other
trees live. /opt is a directory in NetBSD.dist.base, the link is a
CONFIGSYMLINKS pair (as /etc/rmt is), and the base set list carries both.
The link is dangling until the source set is installed, by design: without
the sources there is nothing to point at.
The distfile is made with the tree-based mcde-dist (67,130,261 bytes, 38 less
than the commit archive) and the submodule distinfo da3f2019 is for exactly
that file.
The other agent archives SRCREV^{tree} in mcde-dist.sh (no pax header that
changes with every commit) and brought dtphoto and the libDtChat tests; the
UTF-8 title work is in the submodule at 313ba2bd. The distfile is
67,130,487 bytes and the distinfo matches it.
git archive COMMIT writes "52 comment=<commit>" as a pax_global_header into
the tar, 38 bytes that change with every commit. Two commits with the same
source tree therefore gave different archives, and a rebuild from a cleared
DISTDIR produced a checksum pkgsrc refuses against the distinfo in the tree:
4fead8a3 (the merge) 67,122,036 bytes, BLAKE2s bb9d08d3...
c6441410 (+ pkgsrc/distinfo) 67,122,047 bytes, BLAKE2s ecad6283...
The .key check hid it: the key hashes ls-tree, which does not see the commit
id, so the tool said "archive unchanged" and never rebuilt. The archive now
comes from SRCREV^{tree}, the object that holds exactly what goes into the
package and carries no header.
Measured 2026-11-22 on the build host: both commits give 67,121,814 bytes,
BLAKE2s dd809aaa06af65128886c0741088174178a9dabb76cbb3a813da77d8557c04b7,
byte-identical across two runs with distfiles/ emptied in between.
ext-dist.sh is not affected: it archives REV:ext/src/NAME, a path, and git
writes no header for those (2,099,200 bytes twice, no pax_global_header).
dtwm keeps the title as UTF-8 text and draws it with an XFontSet of the
reference's Helvetica 14 bold oblique plus an ISO10646 fallback; the
_NET_WM_NAME atoms are interned even without EWMH, a compound-text WM_NAME is
converted with _XmStringUngenerate, and 0010.language gives a session without
a language LC_CTYPE=C.UTF-8 (XCreateFontSet builds for the locale; in C the
set had only ASCII).
The source commit is 067b95ec; the distfile and its distinfo are made again
from it (67,012,558 bytes).
Measured: make -C programs/dtwm rc=0, 0 errors; the MacBook title bar reads
"Grüße" in the IRIX face.
README.md collects what Makronix is, the repository layout, the one build
entry point and its gate, the installer/desktop/media design, offline
sources, platforms, the documentation map and the contribution rules from
AGENTS.md, GOAL.md and docs/BUILD-CONTRACT.md. It describes the tree as it
is on main: ext/src/* are submodules, distfiles/ is in the repository, and
the version is 0.99.11 (src/sys/conf/makronix-release) with 0.99.10
"Camouflage" as the last named release.
Remove .claude/ from the repository and ignore it: AGENTS.md is the
harness-independent convention. Root AGENTS.md and tools/AGENTS.md now
describe tools/claude-build-gate.sh as a build gate rather than a Claude
hook; docs/reference/AGENTS.md notes the removal of the archived directory.
build/ becomes build/* in .gitignore: git cannot re-include a file from an
excluded directory, so "build/ + !build/AGENTS.md" never worked and the
one tracked file the comment promises was never addable.
Verification: every relative link checked with git cat-file -e against main
(16 links, 0 dead, after build/AGENTS.md became addable); measured in a
throwaway repo that build/* adds build/AGENTS.md and still ignores
build/sub/x.o; make targets read from the root Makefile and
docs/BUILD-CONTRACT.md; 0.99.11 from src/sys/conf/makronix-release.
The full pkgchroot build found that ShowPane still called MakeStartupDisk
after the Startup Disk pane was removed; startupdisk.c is not built, so
dtsystemsettings did not link ("undefined reference to MakeStartupDisk").
The branch is gone in 345c5410, and the distfile and its distinfo are made
again from that commit: 67,010,401 bytes.
Measured: make -C programs/dtsystemsettings rc=0, 0 errors (the MacBook
build of this file, /tmp/dtsettings-build.log).
Three submodule commits:
- 753c0f83 dtwm: the desktop icons stay above the wallpaper -- the icons are
override-redirect and XLowerWindow put them below the backdrop window, so
they were mapped but invisible on the MacBook. DeskMap lowers the
backdrops too; the screenshot shows them.
- dd05d43c libDtChat: link libiconv -- the library used iconv without
carrying LTLIBICONV, so dtchat, dtchat-headless and dtchat-irc did not
link.
- 285ea4b3 README: MCDE, not CDE -- the new README, the two screenshots from
the MacBook and LICENSE.CNCL (CDE keeps COPYING/LGPL).
got (Game of Trees, pkgsrc devel/got) is installed in the makronix set as a
second, OpenBSD-style VCS for Git repositories. It does not replace
git-base: Makronix's build calls `git archive`, `ls-files`, `ls-tree`,
`rev-parse`, `config`, `reset`, `restore` and `submodule`, and got has no
such commands -- a `git` symlink to got would stop `make release` (measured
on got-portable 0.127, the command lists). Konrad chose got in addition,
git stays (2026-11-22).
Measured: tools/pkglist.sh bin lists devel/got next to devel/git-base.
Since ext/src/mcde and the other projects are submodules, `git ls-files` names
each one as a single gitlink -- and pax -rw, given that path, copied the whole
working tree behind it: .git and build output included. The root copy leaves
the gitlinks out now, and each submodule's tracked files are copied on their
own, so the source set carries the source and nothing else.
refs/ stays out as before: its five submodules are the 11 GB reference
checkouts, and only refs/AGENTS.md is part of a rebuild (the header says why).
Measured on the MacBook-built tree here:
- 7 submodules copied: splinter, krang, sshcrypt, kidstube, CNCL, mikronix,
mcde (~303 MB together, mcde 286 MB).
- mcde alone: 19,591 files copied == `git -C ext/src/mcde ls-files | wc -l`,
`find -name .git` = 0.
- sh -n tools/srctree-stage.sh rc=0.
Six rc.d scripts, all off by default (junction=YES etc. in /etc/rc.conf):
junction (the policy router, 127.0.0.1:8090), splinter (its MCP registry,
8098), wikid (8796), skilld (8790), tasksd (8781) and memoryd (8795).
The programs run in the foreground, so command_args ends in "&"; stop finds
them by their command, they write no pid file.
/etc/junction/junction.conf is a loopback listener with no endpoints and no
rules: a request is answered 503 naming why until one is added (the commented
block is the smallest working setup). /etc/splinter/splinter.conf has one
provider, the local junction, so the routing decision stays in
/etc/junction/junction.conf and not in splinter.
wikid and memoryd take their embeddings from the local junction and keep
their data in /var/db/<name>; each start_precmd makes the directory. skilld
and tasksd use their own stores, /var/db/skilld and /var/db/tasksd.
The scripts are installed by src/etc/rc.d/Makefile, the configurations by the
subdir loop in src/etc/Makefile, the directories by NetBSD.dist.base, and the
set list (src/distrib/sets/lists/etc/mi) carries all eight files.
Measured: sh -n on all six rc=0; /sbin/rcorder rc.d/* rc=0, junction at 113
before splinter (117), no stderr.
sandbox_run() assigned c=$1 and p=${1%/*} without local, so the second
sandbox_run in force's loop saw p=wm instead of p=wm/mcde: `pkgchroot force
wm/mcde` cleaned mcde and then ran `make -C /mnt/pkgsrc/wm reinstall`, a bulk
reinstall of every window manager in the category (measured 2026-11-22 on the
MacBook: after "Cleaning for mcde-0.1.0" it began to fetch 2bwm and afterstep).
The variables are prefixed (sr_path, sr_dir) so they cannot collide with a
caller's loop variable.
Measured: sh -n tools/pkgchroot.sh rc=0.
The "archive unchanged" check in tools/mcde-dist.sh was broken on NetBSD
(sha256sum does not exist, the key was empty), so the distfile was never
remade after the 64x64 icons and the AGENTS.md update: 66,941,013 bytes with
the old AGENTS.md (58,298) and the 32x32 pictures. Every build from it built
the old desktop.
The fixed script made the archive the submodule's tree really is:
66,940,999 bytes, AGENTS.md 61,013 bytes, IrixDisk.m.pm "64 64". Its
distinfo is be056d34 in the submodule; this commit bumps the gitlink and
carries the distfile and its key.
Measured: tools/mcde-dist.sh twice, the second run "archive unchanged
(HEAD ..., mcde 3d79fc80)".
The fork's history is split out (git subtree split -P ext/src/mcde, 404
commits) and pushed to git.kropa.tech/hiddenbox/mcde. This tree records the
commit 3d79fc80ca01e5afc94ea87db3c5a5f16c2284b5, whose tree is byte for byte
the tree of the last in-tree commit c723c7f277 for this path.
tools/mcde-dist.sh archives the submodule now: `git archive REV:ext/src/mcde'
in the parent writes an empty directory, because git does not descend into a
gitlink. The key beside the archive is hashed with sha256 when sha256sum is
missing -- NetBSD has no sha256sum, so the key was empty and the "archive
unchanged" comparison meaningless (measured 2026-11-22).
ext/AGENTS.md: a change to MCDE is a commit in the submodule, then a gitlink
bump here.
Measured: git submodule status -> 3d79fc80...; git rev-parse
c723c7f277:ext/src/mcde, mcde-split^{tree} and HEAD:ext/src/mcde are all
7469d5a621.
MCDE's history was split out of this tree (git subtree split -P
ext/src/mcde, 404 commits, head 3d79fc80ca01e5afc94ea87db3c5a5f16c2284b5)
and pushed to git.kropa.tech/hiddenbox/mcde. The tree comes back as a
submodule; the in-tree copy leaves the index in this commit, so the history
of both sides stays complete and no file is lost (the same bytes are in the
submodule).
The pkgsrc recipe and tools/mcde-dist.sh keep working: the distfile is made
with git archive from the submodule.
Measured: tree of 3d79fc80 == tree of the last in-tree commit c723c7f277 for
this path.
splinter (replacing the in-tree copy), krang, sshcrypt, kidstube, CNCL and
mikronix are tracked as submodules of git.kropa.tech/hiddenbox/* now, next to
junction, memoryd, skilld, tasksd and wikid. koder has no repository there
and is left out (Konrad, 2026-11-22).
The clone used a token for the private repositories; .gitmodules carries the
plain https URL.
It was committed as ordinary files, so a submodule entry could not be added
("already exists in the index"). The fork is replaced by the submodule of
git.kropa.tech/hiddenbox/splinter.
Seven paragraphs were out of date after this session's changes:
- System Settings is one window (1022x550, min equal to max, panes scroll in
an XmScrolledWindow, the tab strip is one of many); a pane's picture must
exist, three did not and one was used twice.
- The Dock has a pane again, and it works: ~/.dt/panel-apps, remove, add,
_DtWmRestartNoConfirm.
- Startup Disk is not a pane any more; startupdisk.c is no longer built.
- dttoolbox's window title is "dttoolchest".
- dtkeys asks the machine (hw.model "Mac...") before usbdevs, because the
internal keyboard may not be enumerated when the session starts.
- The panel defines its own arrow and keeps the busy cursor's handle (the
black 16x16 square came from the frame's cursor).
- The desktop draws the Foundation icons at 64x64 by file system, shapes the
icon window to picture and label, and maps/lowers it, so a raised window
covers it.
- dtbar sets _MCDE_NO_FOCUS and dtwm skips such a client in its
focus-follows-pointer path: the bar keeps the last program's menu.
tools/fti2xpm.py rastered at one size only (32x32). It takes the size as a
third argument now, and the six pictures the desktop shows come from the
Foundation .fti sources at 64x64: IrixDisk (scsi.fti), IrixCD
(cdrom.loaded.fti), IrixDVD (dvd.loaded.fti), IrixFloppy (floppy.loaded.fti),
IrixTape (dat.loaded.fti) and IrixNet (device.remote.fti). The array in the
file keeps the name of the old ones (IrixDisk_m_pm), so nothing that includes
them changes.
WmMcdeDesktop.c names them, and a medium picks its picture by file system:
cd9660 the CD, udf the DVD, msdos the diskette, tar/dump the tape, anything
else the disk. The cell grows to 96x96 for the 64 pixel picture and the
label under it.
Measured: make -C programs/dtwm rc=0, 0 errors (build/logs/dtwm-icons64.log).
Moving the pointer from a program to the bar took the keyboard away from that
program: dtbar set the input focus to PointerRoot on EnterNotify and dtwm
cleared the active client, so the bar showed the M menu instead of the
program's and a click could not act on it (t0255/t0257).
Now dtbar marks its window _MCDE_NO_FOCUS and leaves the focus alone, and
dtwm's focus-follows-pointer path (HandleWsFocusIn) skips a client that
carries the property: the last program stays focused while the pointer crosses
the bar, the bar keeps showing its menu, and an item acts on the client the
menu came from (ItemActivated sends the ClientMessage to that window, not to
whoever has the X focus).
Measured: make -C programs/dtwm rc=0 and make -C programs/dtbar rc=0, 0
errors each.
- No tile: the icon window is shaped (XShapeCombineMask) to the picture and
the label, so the backdrop shows between them; the label is drawn on it with
one pixel of black under it instead of a filled box.
- Bottom of the stack: the icons were mapped with XMapRaised, and an
override-redirect window is not restacked by the window manager, so they
stayed above every client. They are mapped and lowered now -- a raised
window, a full screen program included, covers them, as 4Dwm's desktop does.
Measured: make -C programs/dtwm rc=0, 0 errors (build/logs/dtwm-zorder2.log).
Not yet: the 64x64 pictures. The .pm files of programs/icons are 32x32 and
scaling them would only blur; the IRIX .fti sources raster at 64 with
tools/fti2xpm.py once it takes a size.
The busy cursor was created and thrown away (_DtGetHourGlassCursor's return
value went nowhere), so BUSY_START defined cursor None on the panel and the
pointer fell back to whatever the shell had inherited. On the MacBook that
was a black 16x16 square (measured with XFixes: 16x16, hotspot 8,8, every
pixel black, serial 16) over the whole front panel, while the root and the
xterm showed the arrow and the I-beam.
The return value is kept now, and the panel defines the standard arrow on
itself when it is mapped instead of inheriting one from its frame.
Measured: make -C programs/dtwm rc=0, 0 errors (build/logs/dtwm-cursor.log).
CDE names its icons with a capital (Dtterm.m.pm, Dtcalc.m.pm); a client's
WM_CLASS instance name is usually lower case and a kept program is written
with whatever the command names. The panel tried the name as stored and in
lower case only, so a lower-case class with a capitalised icon file fell back
to Dtactn. ClassIcon() tries the name as given, lower case and with a
capital, in that order, for the dock and for the drawers.
Measured: make -C programs/dtwm rc=0 on this tree (0 errors,
build/logs/dtwm-iconfix2.log).
- dtsystemsettings/panes.c: the icon of every pane is unique again (Backup
showed the same DtSystem.m.pm as System Information, Default Programs the
same Dtmail.t.pm as Internet Accounts) and the dock entry is indented like
its neighbours.
- startupdisk.c is no longer built: the pane was removed, the file stayed in
the SUBDIRS list.
- dttoolbox.msg: message 2 says "No dttoolchest menu", like message 1 says
"dttoolchest".
- dock.c stores the program's class as the command names it (lower case, as
WM_CLASS's instance name is), not with an invented capital. dtwm compares
classes with strcasecmp (WmMcdePanel.c:144, 233), so matching works either
way; the icon lookup by file name is what a made-up case could spoil.
CDE's upstream default is /usr/dt. On this development machine the desktop
lives in /usr/mdt (the running install is there since 2026-11-16), so a plain
./configure && make install went to /usr/local instead, next to the one that
is running. The pkgsrc recipe still passes its own --prefix (/usr/pkg/dt).
The Dock entry is back, and it is a pane of its own: it lists the programs
kept in the front panel (the CLASS and COMMAND lines of ~/.dt/panel-apps),
removes the chosen one, adds one from a command, writes the file at once and
restarts the window manager (_DtWmRestartNoConfirm) so the panel is built
again. The icon is Dtapps.m.pm -- the entry was PANE_LATER with
DtPanel.m.pm, which does not exist, so it was greyed out and had no picture.
install sees the package already recorded in the sysroot and does nothing,
so a change that does not bump the version went into no build at all
(measured 2026-11-21: the System Settings change). force throws the work
directory away and installs again.
- dtsystemsettings: the shell is 1022x550 and stays so (min/max equal); every
pane lives in it instead of growing the window (thirteen per-pane
XtVaSetValues(shell, width, height) calls are gone), and a taller pane
scrolls (the pages sit in an XmScrolledWindow with XmAUTOMATIC).
- panes.c: CDs & DVDs had no icon (Dtmedia.m.pm does not exist) - it shows
IrixCD.m.pm; Energy Saver shows SDtpowermgr.m.pm; Accounts had the same icon
as Startup (DtStart.pm) and shows McdeUser.t.pm. The "Startup Disk" entry
and the disabled "Dock" entry (no icon, PANE_LATER) are removed.
- McdePrefs: the tab strip is one of many (XmNradioBehavior,
XmNradioAlwaysOne). Without it every visited tab stayed pressed
(measured 2026-11-21: Keyboard, Mouse and Shortcuts all down at once).
- dttoolbox: the window title is "dttoolchest" (msg 1 of the catalog).
- McdeSys: mcde_sys_keyboard_is_mac asks the machine (hw.model "Mac...")
before usbdevs. At session start the internal keyboard may not be
enumerated yet, so dtkeys took a MacBook for a PC keyboard and exchanged
Alt and Command (_MCDE_KEYS said "pc", measured 2026-11-21).
sysupgrade(8) stopped the first real upgrade with "Configuration file
/usr/pkg/etc/sysupgrade.conf does not exist" before it began (measured
2026-11-21 on the MacBook). The release to install is on mxupgrade's command
line, but sysupgrade reads KERNEL, SETS and POSTINSTALL_AUTOFIX from that file,
so mxupgrade writes the defaults where the sysupgrade that runs looks for them
(/etc/sysupgrade.conf and /usr/pkg/etc/sysupgrade.conf), once, if absent.
Checked on the MacBook with a stub sysupgrade: the file is created and the run
reaches the end.
make sourcesets stopped with "2080 archives in build/distfiles: 2076 missing"
(build/logs/make-release-2026-11-21b.log): the source set is built from
build/distfiles, which tools/makronix-distfiles.sh fetch fills. It is a step
of the release now -- an archive path against its hash, an archive the shared
DISTDIR has is linked, nothing to download twice.
tools/makronix-distfiles.sh list, after ext-dist.sh and mcde-dist.sh wrote the
archives of mcde, afpfs-ng and splinter into distfiles/. make sourcesets
stopped with "distfiles.lst is stale" (build/logs/make-release-2026-11-21.log).
The release target ran build-stamp, build.sh release, sourcesets, iso and usb;
the packages of the makronix set were missing, and checkflist stopped on every
file under /usr/pkg (11,817 missing, measured 2026-11-19). tools/userland.sh
runs between the stamp and build.sh: it fills destdir/usr/pkg and generates
src/distrib/sets/lists/makronix/mi. With that the chain is green on both
hosts (makronix-build 2026-11-21 01:32, makronix-mbp 11:18), each with
fetch exit=0, userland exit=0, release exit=0.
xmlto (a dependency of wm/mcde) resolves the stylesheet of its manual through
the URL in the XML PI, and a chroot without a route stopped with "failed to
load external entity http://docbook.sourceforge.net/release/xsl/current/
manpages/docbook.xsl" (measured 2026-11-21 on the MacBook). docbook-xsl
ships the mapping in /usr/pkg/share/xsl/docbook/catalog.xml; XML_CATALOG_FILES
names it, so the build needs no network.
pkgsrc stops every package with "Please unset PKG_PATH before doing pkgsrc
work!" (measured 2026-11-21 on the MacBook). Dependencies are built here
like every other package, natively in the sysroot.