Commit Graph
23 Commits
Author SHA1 Message Date
lotherk a5ee20710d signify: a root key signs the release key, the release key signs a release
Konrad, 2026-11-16: the master key model.  The root key stays offline with
Konrad and signs release keys only; the release key (0.99) signs the SHA512
of a release.  Rotation is a new release key plus one signature by the root
key, not a new root.

- src/etc/signify/makronix-root.pub and makronix-0.99.pub.sig are installed
  next to the release key (etc set, etc-sys-etc); the private root and
  release keys are outside the tree (SIGNIFY_ROOT_SECKEY, SIGNIFY_SECKEY).
- tools/sign-release.sh: sign, verify (checks root -> release key -> file)
  and sign-key (root signs a new release public key).
- GOAL.md names the chain.

Measured: sign-key with the root key produces the same Ed25519 signature;
verify prints "signed by the root key" and "good signature" for a signed
test file.
2026-11-16 09:58:57 +00:00
lotherk de446b10fb docs: record Konrad's decisions of 2026-11-16; rewrite the build contract
GOAL.md names the decisions: an own signify key for updates (private key
offline with Konrad, public key in /etc/signify, release signs the SHA512 of
the sets and of the medium's package list); the makronix packages as binary
packages installed with pkg_add, not unregistered files; sshd on with root
and password as before, but the firewall lets port 22 in from the local
network only; make release builds everything in one run (userland,
distribution/release, source set, install DVD, USB image) with test and
compress as separate commands; make install installs base, X, the makronix
set and the packages; BUILD-CONTRACT is rewritten now.

BUILD-CONTRACT.md is rewritten for the current tree: the four entry points,
cross and native as one build, checkflist as the gate, the three sections of
a card, the reviewer's own run, and what "done" means for build, medium,
encryption and source set.  docs/AGENTS.md loses the stale-parts note.
2026-11-16 08:17:27 +00:00
lotherk bfb8f1a32e source set: one tree, usr/src, the whole repository
The source medium carried six sets: NetBSD's src, gnusrc, syssrc and
sharesrc at /usr/src, xsrc at /usr/xsrc and msrc at /usr/msrc.  Makronix is
one tree, so there is one set now: src.tgz, unpacked to /usr/src, with the
repository as it is -- src/, xsrc/, ext/, pkgsrc/, mobile/, www/, docs/,
tools/, the root files, PINS, packages.list, distfiles.lst and distfiles/
(only the archives of the Makronix packages).

- makesrctars -m packs the staged tree as usr/src and skips the split sets.
  It keeps the modes and the links of the repository (pkgsrc and tools run
  their scripts directly); build.sh gets the directory as MAKROSRCDIR.
- tools/srctree-stage.sh replaces tools/msrc-stage.sh.  It copies git's file
  list of the root repository and of pkgsrc (tracked files plus the untracked
  Makronix recipes: AGENTS.md, wm/mcde, x11/mcde-motif,
  filesystems/afpfs-ng), stages the distfiles, and puts the pkgsrc patch
  names that ustar cannot store into pkgsrc-longnames.cpio.
- makesrctars removes source sets of the old layout from
  RELEASEDIR/source/sets before it writes, so no stale gnusrc/msrc/xsrc can
  travel on a medium.

Measured: tools/srctree-stage.sh -> 462655 entries, 11 GB, 214 names in
pkgsrc-longnames.cpio; make sourcesets verified distfiles.lst (2010 archives,
0 missing, 0 wrong hash) and wrote RELEASEDIR/source/sets/src.tgz
(build/logs/sourcesets-2026-11-15.log).

The installer side is not in this commit: it is being changed in the same
tree by the sysinst profile work (tasksd t0260) -- one SET_SRC, the long-name
extraction from /usr/src/pkgsrc, the messages and sysinst.8.
docs/OFFLINE-BUILD.md, docs/BUILD-VM.md, docs/LICENSES.md and GOAL.md
describe the one tree.
2026-11-15 21:45:20 +00:00
lotherk 5bf8a42643 docs: version bump to 0.99.10 in GOAL, download, STUPID 2026-11-15 13:29:03 +00:00
lotherkandClaude Sonnet 5.5 1003a8ac68 GOAL.md: how an encrypted root starts under EFI is settled, with its evidence (t0009, first item)
The question was 'read it in sysinst and the loader before code is written'.  That
was done and tested: docs/reference/cgdroot-design.txt, section UEFI (the EFI
loader's default device is the first FFS partition, biosdisk_findpartition;
boot.cfg comes from esp:/EFI/NetBSD/boot.cfg; layout ESP 128m + cgd.conf 256m FFS
+ cgdroot; tools/install-cgd.sh -f uefi passed).  Not tested, and said so: real
NVRAM boot entries, a wrong passphrase, a kernel update.  The source set's name
stays open.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:49:42 +00:00
lotherkandClaude Sonnet 5.5 73c9de51a6 licence: the CNCL line in every file Makronix wrote (tools, docs, www, mobile, top level)
consmirror.c: the BSD notice is replaced (Makronix's own file).  Files with
changes of other sessions pending are left for their commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 11:50:26 +00:00
lotherkandClaude Opus 5.5 175e4d29c4 X in the base again: build.sh -x -X xsrc, X11_TYPE=native; unpatched packages as NetBSD binaries
- Makefile: -x -X $(XSRC); build-stamp keys on xsrc/ too; PINS and
  makronix-pins.sh carry xsrc/BASE.
- pkgsrc-cross.mk.conf: X11_TYPE=native (pkgsrc uses the sysroot's /usr/X11R7).
- packages.list: no pkgsrc X any more (the X sets carry server, drivers,
  fonts, clients); built here only the forks of ext/ (MCDE, Motif,
  afpfs-ng) and flex; vim, git, samba, netatalk, sshfs, borg, pulseaudio,
  pavucontrol, cups, firefox, thunderbird and the games (RetroArch with
  all libretro cores, ScummVM with BASS and FOTAQ, Tux Racer) are the
  NetBSD project's binaries (kind fetch).
- pkg-binaries.sh: resolve by PKGPATH (samba4 is samba-4.x), an empty
  queue no longer trips set -u; cd3.sh top.list by PKGPATH as well.
- userland.sh: the host tools of the whole dependency closure.
- AGENTS.md, GOAL.md: the decision and why (measured: "The X-server can
  not be started on display :0").

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 20:14:39 +00:00
lotherkandClaude Sonnet 5.5 784dbaf0eb GOAL.md: the upgrade source is a URL, file:// allowed, default the directory make release fills
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 17:52:34 +00:00
lotherk e7bd6d9407 tree: drop xsrc, track src, X from pkgsrc
- xsrc/ deleted; X11_TYPE=modular, Xorg and the X libraries come from pkgsrc
  (packages.list), in the cross configuration and the build VM.
- overlay/ and patches/ are gone; their content is in src/ (commit 64934f16).
- Makefile: no -x/-X, no overlay target, stamp no longer syncs an overlay.
- makronix-pins.sh: src/BASE + pkgsrc; msrc-stage: no .git/xsrc, src comes
  from the NetBSD source sets.
- AGENTS/GOAL/docs updated to the new model (src tracked, refs/ read-only).
- mobile: kernel source is refs/linux/7.0.0, patches stay in
  mobile/kernel/patches; fetch-kernel clones it locally and checks the pin.
2026-11-09 23:30:07 +00:00
lotherkandClaude Opus 5.5 f25c2fd9a9 GOAL.md: dtsystemsettings layout and categories
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:39:55 +00:00
lotherkandClaude Opus 5.5 12f3730a2f GOAL.md: dtsystemsettings and the top bar share McdeSys; order of work
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:39:27 +00:00
lotherkandClaude Opus 5.5 7f59129e95 GOAL.md: MCDE top bar: M menu, the active program's menu bar (Motif fork), clock, status icons, tray
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:39:09 +00:00
lotherkandClaude Opus 5.5 c2c4646cac GOAL.md: MCDE programs: dtfile navigation, dtterm tabs/profiles/split/drop-down, a launcher with snippets and clipboard history
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:02:35 +00:00
lotherkandClaude Opus 5.5 a03dc5c336 GOAL.md, NEXT.md: describe the goals on their own terms
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:00:08 +00:00
lotherkandClaude Opus 5.5 32a13997ab GOAL.md: sysinst has the Makronix way (Mac OS X-simple, setup before the reboot) and the NetBSD way; simple-mode finish measured
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:29:43 +00:00
lotherkandClaude Opus 5.5 3b72bc1e18 GOAL.md: MCDE, the desktop like Mac OS X 10.4-10.6 built with CDE/Motif/Xlib only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:28:13 +00:00
lotherkandClaude Opus 5.5 55dd380c6c GOAL.md: upgrades as simple as Mac OS X 10.4-10.6 (sysupgrade, registered packages, one command); syspkgs dropped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:24:31 +00:00
lotherk c21721cb63 docs: 3.1 step 6 (sysinst simple mode config-menu flow, wsrc); NEXT.md 3.2 status 2026-11-09 09:40:04 +00:00
lotherkandClaude Sonnet 5.5 035aff1794 logo: palette-driven theme, 0.99.9 is Camouflage; 'based on NetBSD' without version
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 16:10:48 +00:00
lotherkandClaude Sonnet 5.5 4a66afedb6 GOAL, PLATFORMS: Raspberry Pi 4/Zero 2 W, ODROID M1/N2/U3+ as targets
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 13:47:39 +00:00
lotherkandClaude Sonnet 5.5 fa6936c000 GOAL: make release builds the media of all supported platforms
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 13:47:20 +00:00
lotherkandClaude Sonnet 5.5 bcdb727059 GOAL, PLATFORMS: platforms with QEMU tests, names, planned pkgsrc X and in-tree src
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 13:31:40 +00:00
lotherkandClaude Sonnet 5.5 b83aaa425b docs: GOAL, AGENTS.md in every directory, build VM, offline build, references
Measurements named with their logs: the installs (BIOS, UEFI, encrypted, two CDs), the NetBSD self-build in the build VM (2 h 02 min, stopping only at checkflist for the missing userland), 9p and NFS against the local disk.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 12:53:21 +00:00