make_repo asked show-depends-recursive, which lists the build tools too
(pkgtools/cwrappers, libnbcompat, mktools, digest). Those are built for the
build host and have no package for the target, so every release printed seven
'no package ... .tgz' lines and copied nothing for them. The built package
itself records its run-time dependencies: +CONTENTS has them as
"@pkgdep name>=version". The closure is now read from there and closed until
it stops growing; a missing run-time dependency is still reported.
Test: the five repo packages plus their closure -> 5 tgz, 'missing: none';
the eight-package pkgtools noise is gone.
grep exits 1 when every line is filtered out -- which is exactly the good
case, every submodule at its pin. Under set -e the script died there in
silence (measured 2026-11-23: step 2, exit 1, no message, no work done).
`|| true' on the pipeline.
The reference trees are tens of gigabytes (the Linux kernel alone) and no
build step reads them: srctree-stage.sh keeps them out of the source set. A
fresh clone's `make release` pulled 36 GB before the timeout (measured
2026-11-23). refs/ is filtered out; the rest of the pinned submodules are
checked out.
A fresh clone has none of pkgsrc, ext/src/* checked out, and the release dies
in step 2 with 'no pkgsrc/bootstrap (pkgsrc submodule, PINS)'. The tree
carries everything it needs, so the build fetches it: the pinned submodules
are checked out at the start of userland, pkgsrc and the ext/ forks are then
required to be there, and the private trees the build does not read only warn.
Test: git submodule status marks the five private trees '-' (krang, sshcrypt,
kidstube, mikronix, CNCL) and the awk selects exactly those; a missing
pkgsrc/bootstrap dies with the message above.
pkgsrc's DISTDIR default is ${PKGSRCDIR}/distfiles, and PKGSRCDIR is
/usr/src/pkgsrc -- but tools/makronix-distfiles.sh stages the archives into
/usr/src/distfiles, and srctree-stage.sh puts them there in the source set.
On the installed system 'make -V DISTDIR' inside /usr/src/pkgsrc/wm/mcde
printed ${PKGSRCDIR}/distfiles while mcde-0.1.0.tar.gz lay one directory
up (measured 2026-11-23 on the MacBook), so a package build fetched an
archive it already had or failed without a network.
The file is what mk.conf(5) makes of /etc/mk.conf: one setting, a config
file at mode 644 that an update does not rewrite. It is in the etc set
(lists/etc/mi, etc-sys-etc) and installed from src/etc/Makefile with the
other CONFIGFILES.
Verified: the file was written by tools/makronix-distfiles.sh stage earlier
this session (1644 archives in /usr/src/distfiles on the running system);
bmake -V DISTDIR in src/etc is checked with the build that carries it.
pkgsrc/ stopped being an ignored copy at the top of the tree: it is a git
submodule of github.com/NetBSD/pkgsrc, pinned in PINS, so a fresh clone
gets it with 'git submodule update' and make release has what it needs.
The mtime test said nothing on the MacBook: a git checkout does not renew the
time of a file whose content changed in an earlier commit, so
/usr/src/pkgsrc/wm/mcde/Makefile kept 2026-11-22 10:27 after mcde 288d1383 was
checked out, and the work directory of 21:55 counted as newer. The release
then installed the binary of the day before again (run f, 12:30: no rebuild).
sandbox_stale() now hashes what the build reads -- Makefile, options.mk,
patches, PLIST, distinfo (which tools/ext-dist.sh writes from the archive) --
and compares that with the key it stored after the last build. A package
without a key is rebuilt once, which is the cost of the fix.
Test: key for wm/mcde computes (dc7b25d0...); dash -n; the release is not run
with it yet.
A fresh clone has empty directories where the submodules would be, and the
source set only needs the ones the build reads (the forks of ext/ and pkgsrc).
The rest -- krang, sshcrypt, kidstube, CNCL, mikronix -- are repositories whose
remotes ask for a password, so 'git submodule update --recursive' aborts on
them (measured 2026-11-23 on the MacBook, ext/src/mikronix) and step 5 of
make release then died on 'submodule ... is not checked out'.
Test: dash -n; the check is ls -A on the directory, and the root file list
already drops each submodule path before pax runs.
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>
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>
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>
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>
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.
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 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.
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.
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 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).