Two things, both found by reading the whole list of files that call
themselves pkgsrc's.
1. The header. `ext/AGENTS.md` now says what the rule is: a file Makronix
wrote carries `#\t$Makronix$' in its first lines, a file taken from pkgsrc
keeps pkgsrc's `$NetBSD: <file>,v <rev> ... Exp $' (the revision says where
it came from), and the unfilled `$NetBSD$' is neither -- it is pkgsrc's
recipe skeleton before the revision is set. Three files carried it:
- ext/src/mcde/pkgsrc-motif/buildlink3.mk, ours throughout
(MCDE_MOTIF_BUILDLINK3_MK, BUILDLINK_TREE mcde-motif, PKGSRCDIR
../../x11/mcde-motif) -- committed there, pushed to kropa.
- PINS: makronix-pins.sh write now writes the header with it, check
still matches.
- distfiles.lst: cmd_list writes three `#' lines; every reader goes
through list_lines() (verify, fetch, stage, the superset merge) and
install-simple.sh skips them, so a comment cannot be read as a package
path. afpfs-ng keeps `$NetBSD: Makefile,v ... wiz Exp $' in its recipe:
that file is upstream's, unchanged (diff against
pkgsrc/filesystems/afpfs-ng is empty), not the template.
2. afpfs-ng's tarball was missing from distfiles.lst. gen_list dropped every
recipe under ext/ -- written when all of them build from their tree -- but
afpfs-ng still builds from afpfs-ng-0.8.1.tar.gz, so the source set
carried a recipe whose distfile it did not. The filter now drops only a
recipe with `DISTFILES= # empty' (the eight that build from ext/src/<name>)
and keeps the one with an archive. distfiles.lst: 2088 archives.
install-simple.sh counted `stage's fork lines on top of distfiles.lst; that
command is gone (nothing is fetched or staged for a tree recipe), the
archive now counts in distfiles.lst itself.
Tested: tools/test-tools.sh 42 ok, 0 bad (six cases added: the header rule
over ext/src/*/pkgsrc*, distfiles.lst's header, four fields a line, afpfs-ng
present). makronix-pins.sh check matches; makronix-distfiles.sh list, verify,
check, stage all green; stage carries distfiles/afpfs-ng-0.8.1.tar.gz and none
of the tree recipes; bmake -C pkgsrc/wm/mcde -V MOTIFLIB still resolves through
mcde-motif's buildlink3.mk.
Pins the five forks whose pkgsrc recipe stopped building from a tarball
(719c436, fdbaf84, 8a1b6e4, f85aaed, a7fe287; mcde 91967e9f was pinned by
the commit before). The four servers also carry libmcp's string-argument
fix from the remote, which was rebased onto, not overwritten.
Verified: bmake package built wikid, skilld, memoryd and tasksd from the
tree after the rebase (40-48 kB packages), splinter 505 kB, mcde 16 MB.
Each fork kept a recipe beside its source and a tarball in distfiles/ whose
distinfo had to be regenerated after every commit (tools/ext-dist.sh,
tools/mcde-dist.sh), and the work directory of a build could not see a later
commit at all (tools/ext-resync.sh merged an archive into it). Three tools,
one artefact per fork in git, and the failure mode that cost the 2026-11-23
release: mcde 288d1383 built from the commit of the day before, because the
recipe's mtime said "not stale".
Now the recipe builds the source tree itself, which is how pkgsrc's own
net/fetch and pkgtools/pkg_install do it: DISTFILES= # empty, do-extract
fills WRKSRC. What is gone with that:
- the tarballs (distfiles/{mcde,splinter,junction,wikid,skilld,memoryd,
tasksd}-*) and their .key
- tools/ext-dist.sh, tools/mcde-dist.sh, tools/ext-resync.sh and its test
- fork_archives in tools/makronix-distfiles.sh (nothing to fetch or stage)
- the distinfo files of the eight recipes
What replaces it: tools/ext-extract.sh, called from do-extract. It hashes
the tree, copies only the files that differ, keeps the time stamp of the rest
(so a commit rebuilds what it touched and not 27 minutes of MCDE) and
removes the copy when a file left the tree. The build key of a fork carries
the source commit for the same reason: a commit does not change the recipe.
The recipes keep $Makronix$ as their header; afpfs-ng keeps its upstream
$NetBSD: ...$ line and its real distfile, and fork_src() leaves it alone.
Verified:
- bmake package built all eight recipes from the tree with no distinfo:
splinter, junction, wikid, skilld, memoryd, tasksd, mcde (16 MB), and
mcde-motif's shared tree
- tools/test-tools.sh: 38 ok, 0 bad (5 new cases for ext-extract.sh)
- tools/makronix-distfiles.sh check: 0 missing, 0 wrong hash
- tools/makronix-pins.sh check: PINS matches
pkgsrc was gitignored, so a fresh checkout of the tree had no pkgsrc at all
and tools/userland.sh could not build a single package. It is a submodule
now (.gitmodules, pinned 3c1118e9 in PINS), like the forks of ext/.
The five server recipes (junction, wikid, skilld, memoryd, tasksd) had their
distfiles built but untracked: tools/makronix-distfiles.sh check counted them
as missing, so the source set could not be staged from a clean clone. They
are part of the repository now, like splinter's and MCDE's.
Test: git ls-files -s shows the gitlink for pkgsrc; git check-ignore says the
distfiles are not ignored; git status is clean for distfiles/.
Two bugs made the native release ship code from the day before:
- tools/pkgchroot.sh ran 'install' in a work directory pkgsrc had already
built. pkg_add printed 'already recorded as installed' and the step
counted as done, so MCDE and splinter in the 2026-11-23e run were the
binaries of 2026-11-22 21:39 while their distfiles were written 08:38
(build/logs/release-2026-11-23e.log:30,44). sandbox_stale() now drops a
work directory that is older than its recipe, and the old registration
goes with it -- the cross path in tools/userland.sh did that already.
- ensure_bootstrap returned at once for every mode but cross, so a fresh
tree without build/pkg stopped in tools/makronix-set.sh (pkg_info) and in
the reinstall logic (pkg_delete). It now bootstraps in all three modes.
The target system needs none of it: /usr/bin/make and /usr/sbin/pkg_add are
in base-util-bin and base-pkgutil-bin.
Test: sandbox_stale() against a work directory dated 2026-11-22 21:39 and
the recipe of 2026-11-23 -- stale: removed; fresh: kept. dash -n on both
scripts. The release itself is not run yet.
ext/src/mcde 288d1383: dtphoto, one CMD_SHOWOPTIONS case
ext/src/splinter f7c374b: embed.c, <signal.h> for kill/SIGKILL
misc/splinter stopped in the cross build of make release: memcpy() is a
three-argument macro in NetBSD's ssp/string.h and the commas of a compound
literal counted as its arguments. The fork builds its colours with rgb()
now. Test: clean make -j8 in the submodule, binary runs.
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>
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>
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.
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.
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
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.
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.
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.
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"
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.
-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).
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).
-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.
-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.
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.
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).
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.
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.
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.
The selection was a rectangle, so the lasso, the magic wand and every
command that should honour a selected shape had nothing to work on. It
is a bit mask now: the lasso collects a path, the wand floods by colour
distance, Select > Inverse and Edit > Clear read the same mask, and a
command paints only inside it.
Move and Crop had no press or motion branch at all -- two of the 22
buttons did nothing. Move snapshots picture and mask at the press and
rebuilds from that snapshot on every motion event: rebuilding from the
last frame walks the pixels twice as far, and the release must not
recompute the offset, because a drag that ends on the frame gives a
position outside the canvas and moved the picture back. Without a
selection it moves the whole picture, as the original does. Crop drags
a rectangle and crops to it on release. Type opens a prompt and draws
one line over an undo snapshot (the drawing moved out of the dialog
callback so it is reachable without a dialog). The magnifier doubles on
the left button and halves on the right, the hand pans the view.
The six retouching tools (blur, sharpen, smudge, dodge, burn, sponge)
are new here -- dtpaint has none to copy -- and read a patch around the
dab in one GetImageRGB round trip, not one per pixel.
Two latent bugs found while testing: Unique() sorts the colour keys in
place but the bsearch afterwards ran over the reduced count, so lookups
past the holes failed (ReadPatch and GetImageRGB both had it), and
RGBToPixel returned 0 -- black -- when XAllocColor failed on a full
256-cell map, losing the pixel instead of taking the nearest cell.
Test evidence, headless, depth 24 and depth 8, all green:
-movetest 10x10 block moved (10,5), mask travelled, background hole
-croptest 40x30 -> 20x30, only blue kept
-typetest 75 dark pixels, corner still white
-selecttest wand 800 of 2400 exact, inverse 1600, lasso in/out, clear
only inside the mask
-retouchtest all six tools move the values the expected way
-selftest 1024x768 round trip PASS
Mouse-verified on Xvfb with xdotool: zoom 200% -> 400% -> 200%,
crop 1024x768 -> 200x150, move dragged twice (40,30 then 80,60) with
78,011 pixels changed.
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.