Commit Graph
981 Commits
Author SHA1 Message Date
lotherkandClaude Sonnet 5.5 669b27783a junction pin: -D_NETBSD_SOURCE, usleep is hidden without it on NetBSD
make release on the MacBook (build/logs/release-2026-11-23d.log): src/mcp.c:640
'implicit declaration of function usleep'.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 10:58:26 +00:00
lotherkandClaude Sonnet 5.5 7e9d92d75f pkg-binaries.sh: a size mismatch means the cached summary is stale -- drop it and the bad file
make release on the MacBook (build/logs/pkg-binaries-amd64.log): 24 packages 'is N bytes, want M'; the
cached pkg_summary.repo.gz was from 2026-11-19.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 09:59:30 +00:00
lotherkandClaude Sonnet 5.5 db91645aab pkgchroot.sh: cncl-1.0, Makronix's own licence, is acceptable
make release on the MacBook (build/logs/release-2026-11-23b.log): junction, wikid, skilld, memoryd, tasksd
'has an unacceptable license condition: cncl-1.0'.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 09:25:55 +00:00
lotherkandClaude Sonnet 5.5 21148822b2 mcde distfile and pins: mcde 87687d5e (distinfo of the merged tree), splinter 9b83b10
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 08:45:08 +00:00
lotherkandClaude Sonnet 5.5 e3f12eee94 packages.list: junction, wikid, skilld, memoryd, tasksd as repo packages
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 08:41:13 +00:00
lotherkandClaude Sonnet 5.5 19a70fb37d build-stamp.sh: the kernel configuration key uses sha256_in (no sha256sum on NetBSD)
make release on the MacBook: 'tools/build-stamp.sh: sha256sum: not found'.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 08:39:09 +00:00
lotherkandClaude Sonnet 5.5 0d629ae70a Merge kropa/main: MCDE and splinter are submodules; the Makronix-tree work is in the mcde fork
ext/src/mcde is the gitlink of hiddenbox/mcde at 222417e6, which carries the 27
commits of plain-file MCDE work (dtphoto, dtbar, dtsystemsettings, dtwm, icons)
merged into the fork by hand.  splinter: the pin with its pkgsrc recipe.
.gitmodules is the union.  tools/pkgchroot.sh and README.md take kropa's
(newer) version.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 08:36:20 +00:00
lotherkandClaude Sonnet 5.5 a730d9e743 ext: splinter pin follows its repository (recipe rebased onto upstream)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 08:26:47 +00:00
lotherkandClaude Sonnet 5.5 af3ebceb0f mcde dtsystemsettings: dock.c, the source my build-output ignore swallowed
make release (build/logs/release-2026-11-22b.log:35328): No rule to make target 'dock.c'.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 06:17:30 +00:00
lotherkandClaude Sonnet 5.5 9570e48bdc ext: pkgsrc recipes for splinter, junction, wikid, skilld, memoryd, tasksd (pins moved); ext-dist.sh archives a submodule from its own repository
The recipes live in the project repositories (committed there, not pushed yet).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 22:13:42 +00:00
lotherkandClaude Sonnet 5.5 f731d1291b tools: userland.sh drops the parent make's MAKEFLAGS; build-stamp.sh defaults MACHINE
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 22:06:01 +00:00
lotherkandClaude Sonnet 5.5 ca01d56c9d build: the userland builds in a chroot on Makronix; release gains the userland step; set list, mxupgrade, installimage and pins follow
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 22:01:30 +00:00
lotherkandClaude Sonnet 5.5 08f37a293b MCDE: dtphoto, dtbar, dtsystemsettings, dtwm, icons and thumbnails; recipes follow the host-flag settings
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-22 22:01:24 +00:00
lotherk 6d39469c4f mcde: ignore the build outputs of an in-tree build 2026-11-22 22:01:17 +00:00
lotherk 07207f25bc ext: splinter, junction, wikid, skilld, memoryd, tasksd as git submodules 2026-11-22 22:01:16 +00:00
lotherk a537a3b57d pkgchroot: force deinstalls, and `mount' keeps its mounts
Two bugs, both measured on 2026-11-22 while rebuilding wm/mcde:

1. `force' ran `clean' + `reinstall'.  reinstall is `install-clean
   install' (mk/install/deinstall.mk:50) and install-clean only removes
   state files, it does not deinstall.  So pkg_add saw the package
   already recorded, refused with "package `mcde-0.1.0' already
   recorded as installed" and returned 0 -- the sysroot kept the
   pre-fix binaries: dtphoto stayed at 15:15 while the binary package
   carried the 21:28 build.  pkgsrc documents the way itself in
   mk/install/install.mk:225: `make deinstall reinstall'.  `deinstall
   || true' because the package may not be installed yet.

2. sandbox_mount set `trap umount_all EXIT INT TERM HUP', so the
   `mount' subcommand unmounted everything again before the caller
   could use it, and still printed "pkgchroot: mounted".  The trap
   belongs to the modes that mount and work: build and force.

Test: `pkgchroot.sh mount' leaves 5 mounts standing and
/mnt/pkgsrc/wm/mcde is visible in the chroot; `pkgchroot.sh umount'
brings it back to 0.  `deinstall' in the chroot removed
/usr/pkg/dt/bin/dtphoto and deregistered mcde-0.1.0.
2026-11-22 21:56:11 +00:00
lotherk 15e7ca0349 mcde: the gitlink follows the fork, distinfo for the dtphoto fix
bf039caf carries the checksums of the archive that 4e51d6dd builds.
2026-11-22 20:36:02 +00:00
lotherk b86ec198cf mcde: the gitlink brings the dtphoto fix for the strict POSIX build
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.
2026-11-22 20:34:12 +00:00
lotherk c8cc69aac5 tools: dtlogin-check.sh, the installed package through dtlogin
The dev tree has mcde-desktop.sh; the .deb path (/usr/mdt, /etc/mdt) had
no test that logs in.  This one starts dtlogin on :94 against the
installed package, logs in with pam_permit, and requires the front
panel's Applications menu in the window tree.

Three things it learned in the runs, each a real failure first:

- -ac on the Xvfb line: dtlogin starts the server as nobody and nothing
  can look at it otherwise (xwininfo, xdotool, import all refused).
- Roll dtlogin.log before the run: a previous run's "Greeter started"
  satisfied the wait loop and the test measured a display that never
  came up.
- Kill the display's dtlogin and its Xvfb BEFORE restoring $HOME/.dt:
  dtsession writes sessions/current and errorlog on its way out, and a
  copy put back while it still ran was written over again.

Also: dtsession restores the last session, so without an empty $HOME/.dt
the screenshot showed the user's own Firefox and xterm, not the package
(a 682k-pixel white block).  $HOME/.dt is backed up and restored, and
the session's copy is kept in build/dtlogin-check/home.dt.session.

Test: sh tools/dtlogin-check.sh -> rc=0, clients dtwm, dtlaunch,
dtterm, mcdesoundd; screenshot is the MCDE desktop (no Firefox);
diff of $HOME/.dt against the pre-run copy: IDENTISCH.
2026-11-22 18:32:01 +00:00
lotherk 272217f0ea Merge remote-tracking branch 'origin/main' 2026-11-22 19:09:32 +01:00
lotherk b6ce45f6ab mcde: the panel, Style Manager and session fonts are IRIX Helvetica
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.
2026-11-22 19:09:30 +01:00
lotherk 691bf6e543 pkgchroot: the file index is rebuilt before any build
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).
2026-11-22 18:06:47 +00:00
lotherk c5b90ef7ad mcde: the session UI is the IRIX Helvetica
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.
2026-11-22 19:02:41 +01:00
lotherk 64f2c0b3f0 mcde: the panel takes dropped programs into the dock
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.
2026-11-22 18:41:57 +01:00
lotherk 93aa5bacf2 MCDE: make debian / debian-install -- the desktop as one Debian package
Konrad, 2026-11-22: "i want mcde to support 'make debian' and it'll fully
create and download all required build dependencies and shit and make debian
debian-install would make the deb and all and then even install" and
"inkluding our own motif stuff xyz".

tools/mcde-debian.sh does the three steps in one lock:

  build    installs the build dependencies through apt-get (the ones
           configure.ac stops on and each -dev the tree compiles against),
           builds MCDE from a copy of ext/src/mcde with the path step of
           tools/mcde-host.sh, installs into build/mcde-debian-stage, strips,
           and packs build/mcde-debian/mcde_<version>_<arch>.deb
  install  installs that package
  clean    removes both directories

The package carries its own Motif: libXm, libMrm, libUil, the uil compiler
and the headers live in /usr/mdt, so the desktop runs from its own toolkit
and never from the system's libxm4 (--with-private-motif, as Konrad asked).

Four things cost a run each and are written where they bit:

- dpkg-shlibdeps matches a shlibs line on the SONAME version (libXm.so.4 ->
  4), not on the file version (4.0.4).  With 4.0.4 it ignored the line, found
  the system's libxm4 and put it in Depends.
- -L is the override file dpkg-shlibdeps READS; -T is where it writes the
  substvars it produced.  The first version passed -T and got nothing.
- -x$PKG, or the package depends on itself (every binary links /usr/mdt/lib).
- The version carries the commit, so a rebuild leaves a second .deb beside
  the first and `dpkg -i *.deb' installs both -- the older wins.  One package,
  one file: the old one goes.

debian-mcde/ holds what the package manager cannot do for the desktop: the
control paragraph, a postinst that indexes the fonts MCDE carries under
/usr/mdt/fonts for the X server, and the session entry (Type=XSession,
/usr/share/xsessions/mcde.desktop) -- without it a display manager lists the
host's desktops and not MCDE.

Verified on this host (2026-11-22):
  bmake debian from an empty build/mcde-debian exit=0,
    build/mcde-debian/mcde_0.1.0+git420f66c19e_amd64.deb (42M, 180280 KiB
    installed, 4583 files)
  Depends is free of libxm4/libuil4/libmrm4 and free of mcde itself
  the package carries usr/mdt/lib/libXm.so.4.0.4, libMrm, libUil and the
    uil compiler; /etc/pam.d/dtlogin and dtsession are conffiles
  dpkg -i installs it, postinst runs
  ldd /usr/mdt/bin/dtwm -> /usr/mdt/lib/libXm.so.4 (its own)
  on a private Xvfb: dtsession, dtwm, dtlaunch, dtpad, dtfile and the
    front panel (Applications/Files/Desktop/System/Network) run, no errors
  bmake debian-install exit=0, "mcde 0.1.0+git420f66c19e install ok
    installed", 0 upgraded / 0 newly installed

AGENTS.md and docs/BUILD-CONTRACT.md list mcde-debian.sh among the tools that
need the build lock, next to mcde-host.sh.

t0768
2026-11-22 17:35:17 +00:00
lotherk 420f66c19e docs: dtphoto PSD reader and writer recorded
The PSD paragraphs still said TIFF and PSD were open and that saving
wrote anything unknown as BMP.  PSD has been read and written for a while
now, so the two places that said otherwise are corrected.

The RLE layout is the part worth remembering: Photoshop writes all the row
lengths first, then the rows.  The first version interleaved them and the
program's own reader interleaved them the same way, so the round trip was
green while the file was wrong.  ImageMagick said InvalidLength; after both
sides changed it reads the composite and the layer at the pixels the test
wrote.

Measured 2026-11-22: 13 headless tests x 2 depths (24 and 8) green, a 64x64
picture with one hard edge 2436 bytes packed against 12530 raw, and
`-psdread` reads a 16x12 file ImageMagick wrote.

Tested: menutest optest selmodtest retouchtest movetest croptest typetest
cliptest viewtest drawtest layertest psdtest rletest on :91 (depth 24) and
:98 (depth 8) -- 26 of 26 PASS.
2026-11-22 17:23:49 +00:00
lotherk 0700376bae sets: the junction and splinter directories are in the etc set
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).
2026-11-22 18:02:16 +01:00
lotherk 7b0369f49b etc: /opt/src points at the projects' sources
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.
2026-11-22 17:50:43 +01:00
lotherk 40f1b545df mcde: the tree archive of the merged tree
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.
2026-11-22 17:43:35 +01:00
lotherk 3d1339539d Merge origin/main: tree archive and the UTF-8 titles
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.
2026-11-22 17:39:59 +01:00
lotherk bb262a6c8f mcde: the merged tree (distfile follows) 2026-11-22 17:37:35 +01:00
lotherk 90abae663e mcde: merge of the UTF-8 titles with the other agent (distfile follows) 2026-11-22 17:35:58 +01:00
lotherk b13d6cd081 mcde-dist: archive the tree, not the commit
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).
2026-11-22 16:33:54 +00:00
lotherk 4306f29ce6 mcde: UTF-8 window titles in the IRIX face
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.
2026-11-22 17:33:48 +01:00
lotherk eb35bf6aac MCDE dtphoto: the clipboard carries the selection's shape, and Cut
stays inside it

Three faults in Edit, all measured against pixels:

- Copy took the bounding rectangle of the selection, so Paste brought
  back what a lasso had excluded.  The clipboard is now RGB plus one
  coverage byte per pixel (PasteBlend/SelectFromCover), not a pixmap,
  which also blends a feathered edge and keeps both depths identical.
- Cut was MaskClear plus a full XFillRectangle: cutting a lasso wiped
  the whole picture.  It is now Copy followed by PaintMask, which is
  mask-aware.
- Paste Into called PasteFromClip() with no limit and was a second
  Paste; it now clips to the selection's coverage.

And one fault at the root: MaskFromRect() called MaskClear(), which
drops hasSel, after every caller had set hasSel = 1 -- so the marquee
produced a mask nothing believed in.  Copy fell back to the whole
picture, Clear/Fill/Crop ignored the rectangle.  MaskFromRect claims
the selection itself now, and no caller has to remember.

Evidence:
  -cliptest  PASS on depth 24 and depth 8: lasso hole kept through
             Copy/Paste, cut-left/cut-right outside the band intact,
             paste-into limited to the selection, soft paste blends,
             a whole-picture clip stays opaque.
  full run   24 green, 0 red (12 modes x 2 depths)
  mouse      dragged 60x60 box -> "dtphoto: copied 60x60";
             Select > None, same Copy -> "dtphoto: copied 1024x768";
             Edit > Cut -> "copied 60x60" then "cut";
             Edit > Paste Into -> "pasted 60x60 into the selection"
2026-11-22 16:22:34 +00:00
lotherk 02aa4ce6d4 MCDE dtphoto: the layer stack is real -- coverage, a palette, options
A new layer used to be a white sheet that hid the picture: layers carried
RGB only, so nothing could say "this pixel is empty".  LayerAbsorb made it
worse by copying the whole composite into the active layer, so the layer
below appeared twice.

- Layer carries coverage (0..255 per pixel) beside RGB; the background has
  none (it covers everything), a new layer starts with an empty one, and
  WritePatch sets the coverage of the layer being painted, so a stroke is
  opaque while the rest of the layer stays clear.
- LayerAbsorb takes only the covered pixels of a layer that has coverage;
  the background still takes the whole picture.
- The Layers palette is a list, not a label: one row per layer, top of the
  stack first, an eye to hide it, the name to make it active.  Rows are
  rebuilt where the stack changes (new/duplicate/delete/merge), never from
  inside a row's own callback.
- Layer Options sets opacity and blend mode through FieldDialog, and does
  not absorb first: a property is not new pixels, and reading the composite
  back baked the old blend in (50% gave 127,0,0; multiply over white went
  black).
- New -layertest drives the real CanvasInput -- stack first, then the
  stroke, the order that matters, because LayerEnsure after the stroke
  would read the pixmap back and hide the fault.

Verified: 26/26 green (13 modes on depth 24 and depth 8), 206 menu paths
bound, 0 unbound, 0 doubled; build without warnings.
2026-11-22 15:54:56 +00:00
lotherk f7716b640d MCDE dtphoto: every menu entry does something, and the test proves it
-menutest read only the command table against itself, so a menu line with
no command stayed invisible: it could be green while an entry did nothing.
It now reads dtphoto.menu and counts what resolves to no command -- 206
items, 0 unbound.  Counter-check: Select/Grow set to CMD_NONE makes it
print "1 unbound" and FAIL.

Four entries only refused before and now work: Window > Show Commands
opens a palette listing the command table itself (206 rows, measured
206x26 px of text in the widget, so it cannot drift from the menu),
Publisher Options sets the EPS resolution (72 and 288 dpi, the
%%BoundingBox scales with it), Adjustment Options the default for new
adjustment layers, and Show Channels/Show Paths show measurements from the
picture and the lasso path.  File > Acquire still refuses: there is no
scan source, and saying so beats a button that does nothing.

Real bug found on the way: Layer > Type > Horizontal/Vertical switched to
tool 7, which is crop; type is slot 8.

Measured on both depths (TrueColor :91, PseudoColor :98): 14 tests x 2 =
28 green, 0 red -- filtertest optest drawtest seltest movetest croftest
croptest typetest retouchtest selecttest selmodtest menutest exporttest
placetest printtest (the last with MCDE_PRINT_COMMAND=/tmp/dtpbin/lp,
230454 bytes spooled).
2026-11-22 15:26:45 +00:00
lotherk 5fe3281496 docs: README for the tree, drop harness-specific .claude config
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.
2026-11-22 14:12:28 +00:00
lotherk 8c6835e027 mcde: dtsystemsettings links again, and the distfile is that tree
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).
2026-11-22 15:06:05 +01:00
lotherk 3e3817a83d MCDE dtphoto: the colour-model and layer entries under test, affine centre fixed
-filtertest now also covers the six entry points that sat outside every
test: CMYK Preview (must not flatten the picture to one colour), Gamut
Warning (saturated ink -> warning grey 128, printable pixel untouched),
the 5x5 Custom identity kernel, Perspective (0% identity, 50% reads the
top-left from inside the picture), a 90 degree Affine rotation as a
permutation, and Drop Shadow leaving the picture's own pixels alone.

That permutation check found a real bug: OpAffine mapped around w/2
instead of (w-1)/2, so a 90 degree turn of a 24-wide picture lost a whole
row to the background -- 552 of 576 pixels hit.  Every sampler that maps
by inverse mapping now uses the same centre.

Measured: 12 test modes x depth 24 and depth 8 = 24/24 green, build with
0 warnings (make dtphoto, forced rebuild).  The three false expectations
I wrote first were my arithmetic, not the code: gamut marks by ink above
0.9 (250,30,30 is 0.88), perspective squeezes towards the top so the
corner reads from inside, and (9,4) is 2 px from the edge.
2026-11-22 13:59:18 +00:00
lotherk c6974849ae MCDE dtphoto: the other 43 filters proven, no build warnings
-filtertest hands a structured 24x24 picture to every remaining filter
-- the four blurs, unsharp, high pass, find edges, emboss, trace contour,
facet, fragment, median, offset, clouds, crystallize, pointillize, color
halftone, mezzotint, diffuse, extrude, tiles, wind, deinterlace, NTSC
colors, dust and scratches, the nine distortions and the Image mode
family -- and checks a property of the result, not "it changed":
grayscale leaves r == g == b, bitmap only 0 and 255, indexed 4 only the
ladder 0/85/170/255, offset is a permutation (same sum and sum of
squares), equalize never narrows the range, inverting twice returns the
picture.

Two of those are judged against what the display can hold.  On a
256-cell PseudoColor map a second inversion of a 576-colour picture
drifts 42/255 -- the map, not the operation -- so the involution runs on
a four-colour picture (floor 0) and grayscale gets the 10/255 the
nearest-cell search costs.  The test prints the floor it measured (0 on
TrueColor, 30 on PseudoColor) instead of carrying a guessed tolerance.

XmLoc is now the one place that casts a catalogue string for
XmStringCreateLocalized: Tr promises const because its English fallback
is a literal, the widget asks for char *.  Six dialogs warned before,
the file builds without a single warning now.

Measured on Xvfb 1024x768x24 (:91) and x8 (:98): menutest, viewtest,
optest, selmodtest, retouchtest, selecttest, movetest, croptest,
typetest, drawtest, filtertest all PASS on both depths (22), plus
selftest PASS (64x48) on both -- 24 of 24 green, 0 build warnings.
2026-11-22 13:51:29 +00:00
lotherk 208ec91ba9 MCDE dtphoto: every menu path bound, the View switches drawn and read
All 206 paths of dtphoto.menu resolve to a command the callback switches
on.  The table had 43 doubled entries and 11 paths that named a menu
entry the menu does not have ("Image/Adjust/Image Size..." instead of
"Image/Image Size...", "@3.0" tags the reader already strips); both are
gone, CommandOf walks the table to its NULL entry, and -menutest now
proves the table against itself: 206 paths, 0 doubled, 0 bad, and an
unknown path stays CMD_NONE.  DTPHOTO_CMDS=1 used to bind 38, now 206,
none on CMD_NONE.

The View switches were flags nobody read.  SnapX/SnapY pull a marquee or
crop drag onto the grid or a guide a guide in reach wins over the grid,
Lock Guides refuses new and keeps existing ones), DrawGuides paints the
grid, the guides and the rulers on the canvas and not into the picture.

Two new headless tests, both green on depth 24 and depth 8:
  -viewtest  snapping arithmetic: 37 -> 32 on a 16 grid, 40 -> 48, a
             guide at 35 catches 37, a vertical guide leaves y alone,
             locked guides neither grow nor clear.
  -drawtest  counts the pixels on a real pixmap: grid 12509, one guide
             280 (= the canvas height), rulers 558 and none of them
             inside the canvas.

Measured: drawtest, viewtest, menutest, optest, selmodtest, retouchtest,
selecttest, movetest, croptest, typetest -> 20 green, 0 red (10 tests x
depth 24/depth 8); -selftest PASS on both, byte-identical output.
2026-11-22 13:09:53 +00:00
lotherk 2e3b300bb0 mcde: the distfile of 285ea4b3 (icons, iconv, README) 2026-11-22 13:56:59 +01:00
lotherk 0958f4243c mcde: icons above the wallpaper, dtchat links iconv, a README that is MCDE
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).
2026-11-22 13:52:21 +01:00
lotherk d6479ef90f MCDE: PNG, JPEG and GIF in dtphoto, one picture writer in libDtSvc
dtphoto read only BMP and ICO and wrote only BMP; PNG, JPEG and GIF were
listed as open in docs/MCDE-PROGRAMS.md since 2026-11-12.  The reader was
already there: McdeThumbRead in libDtSvc has all five formats, is X-free and
is what dtfile uses for its miniatures.  dtphoto calls it for everything its
own reader does not know, so the program carries no second decoder.

There was no picture writer anywhere in the tree, so McdeThumbWrite now sits
next to the reader: PNG through libpng's simplified API, BMP in C99, the
ending decides, an unknown ending is refused instead of silently becoming a
BMP.

Measured on Xvfb depth 24 (2026-11-22):
- 40x30 PNG -> PNG, 1200 of 1200 pixels identical, CRC checked.
- 40x30 GIF -> PNG, 0 of 1200 pixels different.
- 40x30 JPEG q100 -> PNG, at most 3 steps per channel (compression, not the
  reader); the same picture written from libpng is 0 steps.
- Depth 8: a 32-colour picture comes back 0 of 256 pixels different; a
  1200-colour ramp differs by mean 28.6/255, which is the colormap -- the
  same ramp is 0 on depth 24.

test_thumb writes a 13x7 ramp (every pixel unique) as PNG and BMP and reads
it back pixel for pixel.  Proved the test bites: writing the BMP rows
top-down turns it red at 78 of 91 pixels, PNG_FORMAT_BGR at 91 of 91.  The
unknown-ending and zero-size cases are checked too.

dtphoto: the file dialog filters on every format it reads, not on *.bmp.
All 18 dtphoto test modes stay green on depth 24 and depth 8, test_thumb ok.
2026-11-22 12:06:04 +00:00
lotherk d234b8be2e docs: README for the tree, drop harness-specific .claude config
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. All relative links resolve.

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.

Verification: sh -n tools/claude-build-gate.sh ok; tools/claude-build-gate-test.sh
25 ok, 0 bad; git check-ignore -v .claude/settings.json matches /.claude/;
README links checked against the tree.
2026-11-22 12:04:30 +00:00
lotherk abe9bd18c4 packages.list: got comes in next to git
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.
2026-11-22 12:56:34 +01:00
lotherk 028161f296 MCDE dtphoto: the Image and Filter menus carry real operations
Image: Invert, Desaturate, Brightness/Contrast, Flip horizontal/vertical,
Rotate 180/90 CW/90 CCW, Image Size and Canvas Size.  Filter: Blur,
Blur More, Sharpen, Sharpen More, Find Edges, Emboss, Solarize, Add Noise,
Median/Despeckle, Mosaic.  All of them read and write through the same RGB
buffer, so no operation costs an X round trip per pixel.

Two bugs found while wiring them:
 - A per-pixel correction ignored the selection.  Invert, Desaturate,
   Brightness and Solarize changed the whole picture even with a mask.
   They now share OpPerPixel, so a new operation cannot forget the mask.
 - A menu entry was bound by its label, but the reference has "Horizontal"
   in Image > Flip and in Layer > Type.  CommandOf takes the full path now
   ("Image/Flip/Horizontal"), the reader stores it in Item.path.

Verified, depth 24 and depth 8, 16 runs, 0 red:
 - -menutest: 31 paths each resolve to the command the callback switches
   on; an unknown path stays CMD_NONE.
 - -optest against the arithmetic, not "the picture changed": a hard edge
   blurred to 170 (six of nine window pixels white), the same edge
   sharpened clamped to 255 and 0, mosaic cells to their mean (100,30,128),
   noise deterministic and inside the range, mask inside changed and
   outside untouched.
 - -selftest on a 1024x768 24-bit BMP: byte-identical (2,359,350 bytes,
   0 differing).
 - -retouchtest -selecttest -movetest -croptest -typetest still green.
 - DTPHOTO_CMDS=1 reports 37 bound entries, the 11 Filter paths among them.
2026-11-22 11:05:24 +00:00
lotherk ce2d3211e1 srctree-stage: submodules go into the source set as tracked files
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.
2026-11-22 11:44:22 +01:00
lotherk 62d9bb9c71 etc: junction, splinter and the four daemons as native services
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.
2026-11-22 11:40:50 +01:00