installworld puts no kernel on the system. build now ends with build.sh kernel=$(KERNEL), install
runs tools/kernel-install.sh on the result: /netbsd with /netbsd.old kept, and the same on
/cgdboot of an encrypted installation, as mxupgrade(8) does. No restart.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
checkflist stopped the MacBook release with 105 extra files in DESTDIR: ./mnt/dev, ./mnt/pkgsrc,
./mnt/work ... (the sandbox's mount points), plus debris of earlier runs (a nested usr/src tree,
var/tmp/cwdtest*, dev/null, etc/usermgmt.conf), which were removed from build/obj by hand.
The mount points are rmdir'ed now, never rm -rf'ed: a mounted directory is not touched.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The native MacBook build got through every package (mcde-0.1.0, mcde-motif-2.3.8 built) and
stopped here: 'pkg_install-20260227 ... marked as not for deletion'. The target's pkg_install
comes from the distribution; the delete runs against the sysroot (-P $DESTDIR) only.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Under set -e the cat of the absent options.mk ended the key's group before the source id
was written: a commit in ext/src/mcde never changed the key, so the MacBook kept building
the old work directory (UilLexPars.h: File exists, three runs). Optional files get '|| :';
find -L, because the recipe mirror is symlinks and PLIST/patches were not hashed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
sandbox_stale matched " $(fork_recipes) " against " <path> ", but the list is one path per line,
so only the first and the last entry had a space on both sides. x11/mcde-motif is not among
them: its source commit never reached the staleness key and a fix in ext/src/mcde was built
into the old work directory (MacBook 2026-11-24, UilLexPars.h: File exists, again).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
NetBSD fails the extract of every fork with 'xargs: sha256sum: No such file'
(MacBook, 2026-11-24). Same line format, '<hex> <path>'.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
On the MacBook every recipe mirror came out empty (realpath: unknown option
-- m), so userland.sh found 'don't know how to make install' for mcde,
splinter, tasksd. Checked with a scratch tree: misc/tasksd links resolve,
no dangling link.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Three gaps, all found by running `make release' on a fresh clone instead of
trusting the tree that had been built in for weeks.
1. tools/userland.sh: fetch_binaries redirects into build/logs/, but nothing
created that directory: a clone has no build/ below AGENTS.md, so step 2/7
died with "Error code 1" from the shell, before pkg-binaries.sh ran, and
the log it points at was never written. mkdir -p first. The other two
redirects into build/logs (pkg-add, pkg-delete) come after it.
2. src/lib/libmxlinux: four files had no header at all (mx_termios.h,
mxlinux.h, mx_locale.c, mx_fgetwln.c). They now carry `/*\t$Makronix$\t*/'
like the other 61 there, and all 71 files of the directory have one.
Checked with gcc -fsyntax-only on each of the four.
3. AGENTS.md says the header rule once, in "Licence": `#\t$Makronix$' in a
file Makronix wrote, `$NetBSD: <file>,v <rev> ... Exp $' in one taken from
pkgsrc, never the unfilled template -- the detail is in ext/AGENTS.md
("Header").
Tested: tools/test-tools.sh 42 ok, 0 bad. gcc -fsyntax-only clean on the four
files. The directory builds through `make userland' (mobile/userland/mk/
mx.prog.mk: mx-lib), not standalone: a plain `bmake' in src/lib/libmxlinux has
no NETBSDSRCDIR (getopt.c comes through .PATH) -- not caused by this change,
the same command failed the same way before it.
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.
The recipes of the forks are tracked in their submodules and the set carries
them, but a recipe builds only from inside pkgsrc's own tree, so
tools/ext-sync.sh places a mirror at pkgsrc/<category>/<name>. That mirror is
named in pkgsrc's .git/info/exclude, so `git ls-files --others' does not list
it and the copy left it out: a tree built from the set had the recipe in
ext/src/<name>/pkgsrc and no way for pkgsrc to build it. It is written into
the set now, with the symlinks resolved -- a link copied as a link would point
out of the set once it is unpacked somewhere else.
Verified: the staging loop writes pkgsrc/misc/splinter/Makefile and the other
seven mirrors as files, 0 symlinks below the staged pkgsrc, and the content is
the recipe (# $Makronix$ as the first line).
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
perl is a run-time dependency of devel/automake (USE_TOOLS=perl:run), and
NetBSD has no perl in the base system: the chroot build stopped at
"pkg_add: no pkg found for 'perl>=5.0'" (build/logs/release-2026-11-23-mbp1.log:5212).
Cross builds passed only because a Linux host has /usr/bin/perl in PATH.
fetch_binaries looked a package up by the last part of its PKGPATH (lang/perl5
-> perl5); the package is perl-5.44.0nb2. It now reads the name from the
repository summary, which carries PKGPATH, and falls back to the path.
distfiles.lst regenerated as the union of the recipes and the earlier list:
2086 archives, 0 dropped, 10 added. tools/makronix-distfiles.sh verify: matches.
.make_repo read .fetch-files from $ARCH/All, but tools/pkg-binaries.sh writes
it in $ARCH: the manifest was never found, every .tgz looked foreign, and the
282 downloaded packages were deleted before pkg_add could install them
(measured 2026-11-23 on the MacBook: 'userland: 0 packages in
build/packages/amd64/All', then automake failed on 'perl>=5.0' because perl
was gone). The function now keeps its own list, .repo-files, and clears only
what it copied itself.
The second loop wrote $tmp/files again, so .fetch-files had two lines
per package (measured 2026-11-23 on the MacBook: 564 lines for 282
packages). Its size lookup then read the wrong record and threw away
the archives it had just fetched.
pkgsrc removes DESTDIR on package-clean only; an install that died before
writing .install_done leaves the staging tree in place, and the next install
then fails on a file that is already there. pkgconf's
'ln -s pkgconf .destdir/usr/pkg/bin/pkg-config: File exists' stopped
x11/mcde-motif and wm/mcde on the MacBook.
Test: with .build_done and no .install_done the .destdir is removed; with
.install_done it stays. Both cases checked in a scratch tree.
verify compared the list for equality, so a run on Linux (where gmake, m4,
bison, gtar, bash, gsed, libXft are in PATH) rewrote the list without them and
would have broken an offline rebuild on Makronix. Now list only adds, and
verify asks for every implied line to be present, extras allowed.
Test: tools/makronix-distfiles.sh verify -> matches the recipes; the list kept
all 2076 lines, 0 lines lost against HEAD.
make_repo did rm -rf on build/packages/ARCH/All, the directory
tools/pkg-binaries.sh downloads the NetBSD project's binary packages
into: every release deleted the download and fetched it again, four
times on the MacBook on 2026-11-23, 20 minutes each. The manifest and
the key are now written before the first download rather than after the
last, and make_repo clears only what the manifest does not name.
Verified: a directory with a.tgz, b.tgz (in the manifest) and mine.tgz
(not) keeps the first two and loses the third; dash -n on both scripts.
In the chroot path every package of packages.list went through 'install',
which keeps an old registration and builds no archive: build/packages/All
held 64 packages and none of the five the media's repository names, so
make_repo said 'no package for: junction-0.1 wikid-0.1 ...' and the release
stopped. The target is now per package, as the cross path already had it.
build-lock: the nested path (make release -> sourcesets -> build-lock) ran
sh -c without dropping MAKEFLAGS, so step 5 hit the same read-only
.MAKE.LEVEL.ENV as step 4 did.
Debian's bmake exports .MAKE.LEVEL.ENV=MAKELEVEL, and the bmake that comes
with pkgsrc refuses to start with it ('Cannot delete ".MAKE.LEVEL.ENV" as
it is read-only'). Every bmake -V in a package directory came back empty, so
step 4 of a cross release took 0 archives from the shared DISTDIR and then
failed on all 26 it had to fetch.
install removes the .tgz again (_KEEP_BIN_PKGS defaults to no, and install
builds no package to begin with), so the MacBook's build/packages/All held
64 packages and none of the ones packages.list names as repo: make_repo had
nothing to copy and the release stopped there.
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.
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.
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
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.
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 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).
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
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).
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.
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.
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.
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 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.
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).
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.
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.
Two things the MacBook needed once its sysroot was empty:
- build/sandbox/work belongs to the way it was built like /usr/pkg does: a
cross work directory says .depends_done and then installs a package whose
dependencies this sysroot no longer has. A change of way moves it aside.
- pkg_add inside the chroot had no PKG_PATH, so a dependency pkgsrc did not
build stopped mcde-motif with "no pkg found for libXft>=2.3.8nb1". The
binary repository of the set is mounted at /mnt/repo and named in PKG_PATH
(measured 2026-11-21).
The packages in the sysroot belong to the way they were built: a cross build
writes .la dependencies as "=/usr/pkg/lib/..." and paths into its work tree,
a native build writes the plain path. pkg_add does not replace a package that
is already recorded as installed, so the MacBook kept the cross libgcrypt.la
and xmlto stopped with "/usr/pkg/lib/libintl.la is not a valid libtool
archive" (measured 2026-11-21). build/.sysroot-mode names the way; when it
differs, /usr/pkg is moved to build/usr-pkg.<old-way>-<date> and the run
starts from an empty one.