Commit Graph
18 Commits
Author SHA1 Message Date
lotherk c7fdb6957a museum: four vintage machines in QEMU (Makronix Museum group)
IRIX 6.5.29, SunOS 4.1.4, Mac OS 9.2 and Mac OS X 10.4 Tiger as QEMU
machines: /usr/bin/museum (base system, CNCL) links the owner's media,
creates the qcow2 disks, prints the exact command and checks what is
missing; the emulator comes from pkgsrc, offered by the installer as the
new group "Makronix Museum" (kind museum, like games).

Measured 2026-11-16 with QEMU 11.1.2: the Mac OS 9.2.2 CD reaches the
Finder and the Tiger 10.4.6 DVD the language chooser through
`museum install'.  OpenBIOS cannot boot the SunOS 4.1.4 CD (the SS-5 PROM
ss5.bin is required); stock QEMU has no SGI Indy (qemu-sgi-ip22 or MAME
indy_4610).  The operating system media are proprietary and stay with
their owner.

checkflist after installing the program: only the pre-existing missing
makronix-guide-vm.7 remains (another session's file).
2026-11-16 17:02:04 +00:00
lotherk 5982a0ddde build: lock cdtest and the native MCDE builds; tools refuse outside the lock
- cdtest takes one lock around release, iso and the VM test; the nested
  make calls reuse it through BUILD_LOCK_HELD (re-entrant).  MAKE_CMD keeps
  make -n cdtest from executing the recipe: GNU make runs a recipe with
  $(MAKE) even under -n, and the rest of the line starts a VM.
- mcde-linux and mcde-host take the lock too; they read ext/src/mcde and
  the distfiles a release reads.
- build-lock.sh: --held for the tools, --check for read-only callers, pid
  plus process start time for stale locks, the child is killed on INT/TERM,
  and nested calls reuse the outer lock.
- build-stamp, cd2, cd3, cd-source, images, srctree-stage, userland,
  mcde-linux and mcde-host refuse to run outside the lock (the file and the
  message name the way in: make or tools/build-lock.sh).
2026-11-16 12:10:23 +00:00
lotherk 6d0c92ae38 signify: sign the release automatically, verify it before an upgrade
- make sourcesets signs RELEASEDIR/source/sets/SHA512 inside the build lock
  when SIGNIFY_SECKEY is set (tools/sign-release.sh auto); a build without
  the key says so and stays unsigned.
- make iso signs the package summary first; tools/cd3.sh puts
  pkg_summary.gz.sig next to the summary on the DVD and on every package CD.
- tools/cd-source.sh carries SHA512.sig on the source DVD and the README
  names the two verification commands.
- tools/upgrade-verify.sh: verifies root key -> release key -> SHA512 and
  then the SHA512 of the set files; the upgrade command (tasksd t0055) calls
  it before sysupgrade/pkg_add run as root.

Measured 2026-11-16: the source SHA512 signed with the release key verifies
through the chain ("signed by the root key", "good signature"), the copy
extracted from the source DVD too, the package summary verifies, and
upgrade-verify checks src.tgz (5.8 GB) against SHA512.  `make iso` itself
was not run to the end: a commit in another session changed src/ during the
release, so build-stamp refused the packaging
(build/logs/release-iso-2026-11-16-signed.log).
2026-11-16 10:38:59 +00:00
lotherk 9aacf8f92c cd3: the package lists ended the script under set -e
`[ -f "$1/All/$f" ] && echo "$f"' is the last command of the two list
loops; when the last package of a closure is not on the medium the test
returns 1, the pipeline returns 1 and set -e ends tools/cd3.sh without a
message.  `make iso' stopped there after building CD 2 (measured
2026-11-15, build/logs/iso-2026-11-15-sourcec.log); with plain ifs it
builds CD 3 and CD 4 (671 MB and 104 MB).
2026-11-15 23:02:43 +00:00
lotherk da06f8781d cd3: the "stage" check ended the script under set -e
tools/cd3.sh runs with set -e; `[ "${1:-}" = stage ] && { ...; exit 0; }'
returns 1 when no argument is given, and the failed AND-list ends the
script before it is built: `make iso' stopped at `tools/cd3.sh' with
Error 1 and no message (measured 2026-11-15,
build/logs/iso-2026-11-15-source.log).  A plain if does the same and does
not fail when the argument is absent.
2026-11-15 22:38:34 +00:00
lotherk 129222a556 docs: remove dead overlay/patch references from build docs, install media and tools (t0085) 2026-11-15 15:52:48 +00:00
lotherk b59e2afa9e cd3: exclude bin packages from media desktop set (t0242, partial)
bin packages are installed in the makronix set/sysroot; do not ship them
again on package CDs/DVD desktop.list/top.list or the staged DVD package
dir. Syntax checked: dash -n/sh -n tools/cd3.sh.
2026-11-15 13:35:12 +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 a8e0b1438e Makronix Games: a group sysinst offers (yes by default), installed from the medium
Konrad, 2026-11-13: RetroArch with the emulators already there, ScummVM,
Tux Racer -- as a group in sysinst (his choice over a set tarball: the
packages stay registered for pkg_add -u).
- packages.list: kind games (RetroArch, every libretro core the NetBSD
  project publishes, ScummVM with BASS and FOTAQ, Tux Racer);
  pkglist.sh and pkg-binaries.sh know it.
- cd3.sh: per medium desktop.list and games.list, the files of the
  closure in dependency order that are on that medium; the DVD stage takes
  only what the summary names.
- extras.c: games_ask (all six catalogues), install_from() installs the
  files of desktop.list (and games.list) from the null-mounted medium.
- install-simple.sh answers the question.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 20:34:37 +00:00
lotherkandClaude Opus 5.5 82b0f2fe27 sysinst: extra packages straight from the medium (null mount), CD after CD; cd3.sh packs dependencies first
Konrad, 2026-11-13: why copy all packages into the target first?
- extras.c: install_from() null-mounts the medium's packages directory
  into the target (mount_null; NULLFS is in GENERIC through
  conf/filesystems.config) and runs the target's pkg_add in the chroot
  with PKG_PATH there.  No copy to /var/tmp any more.  The package CDs
  are installed one after the other, each before the next is asked for;
  DVD and USB are medium 1 of 1.  read_names() is gone with the copy.
- ramdisk: mount_null (list.ramdisk).
- cd3.sh: packages in dependency order (depth-first over DEPENDS of the
  summary), CDs filled one after the other in that order, so every
  dependency is on the same CD or an earlier one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 20:27:28 +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 efa96ca4f7 One package list: packages.list (kinds set/repo/fetch, @ARCH), read by tools/pkglist.sh; userland.sh detects cross or native and builds all of it; nothing is built in a VM any more
Removed: packages.{amd64,aarch64,binary*}.list, tools/packages.vm.list,
tools/vm-pkgbuild.sh, tools/vm-pkgcollect.sh, tools/vmbuild/, make binaries.
A package that fails no longer stops the others; they are named at the end.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 17:50:29 +00:00
lotherkandClaude Opus 5.5 870676e771 make binaries: the binary packages built in the build VM, as a repository for the media
The project's binaries need X in the base, Makronix has X from pkgsrc.
userland.sh binaries (make binaries; BINARIES=... before the lists name
them) builds packages.binary*.list in the build VM, vm-pkgbuild.sh repo packs
them with their run-time closure and pkg_summary.gz, and the host unpacks the
repository into build/packages/ARCH/All, where tools/cd3.sh takes it from.
The VM's mk.conf gets DEPENDS_TARGET=package-install (every dependency as a
binary package); a dependency installed before gets its package from its
PKGPATH.  vmprep() is the VM preparation that vm() and binaries() share.
The lists name PKGPATHs (still paused); cd3.sh, pkg-binaries.sh and the
tests' wanted() take the last part as the name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 17:18:20 +00:00
lotherkandClaude Opus 5.5 4df23f53ab binary packages paused: they need X in the base, Makronix has X from pkgsrc
The NetBSD project's binaries (firefox, thunderbird, qemu, pulseaudio,
pavucontrol, cups, cups-filters) link /usr/X11R7/lib/libX11.so.7 and the
other libraries of the X sets; since X comes from pkgsrc they do not install
("Please make sure to install the X sets", 7 package additions failed,
build/logs/install-src-bios-install-2026-11-10.log) and make test failed on
13 checks.  The lists name none for now; cd3.sh puts no packages on the media
then; install-simple.sh and install-cgd.sh run the checks of a binary package
only when the lists name it (wanted, a SKIP line otherwise).  They come back
built for Makronix in the build VM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 16:28:15 +00:00
lotherk 656e449204 tools: stale comments after src is tracked and xsrc is gone 2026-11-09 23:32:28 +00:00
lotherkandClaude Sonnet 5.5 2cda72050a Rebrand: Makronix 0.99.9, based on NetBSD
Kernel banner, boot loaders, motd, /etc/release, getty banner, boot.cfg menus,
sysinst messages and the media names say Makronix (patch 0015, overlay).
kern.ostype stays NetBSD on purpose.  install-simple: 38 PASS.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 13:52:49 +00:00
lotherkandClaude Sonnet 5.5 840782e24c sysinst, media, tests: desktop defaults, four CDs, Portuguese, AHCI test VMs
- sysinst simple mode: sshd on with root login by password, npf firewall,
  mDNS (mdnsd, nsswitch), PulseAudio, CUPS, dbus; extra programs from N
  package CDs (extras.c); cgd root fix (mnt2_mounted)
- Portuguese (pt_BR) catalogs and patch 0013; welcome text for DVD/CDs
- media: console=auto (0008), RAM-disk installer with two CDs (0012),
  package CDs and DVD packages (cd3.sh), userland.sh for the build VM
- tests: line-by-line checks, mDNS pattern, UEFI Enter loop, VMSH_AHCI
  (QEMU 11.1.2 loses PIIX IDE interrupts under load)
- docs: UPDATING.md, npf-default.conf, AGENTS.md updates

Measured 2026-11-07: simple 37 PASS, DVD+sources 42 PASS, cgd BIOS 35 PASS;
cgd UEFI with console=auto not green yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 21:09:35 +00:00
lotherkandClaude Sonnet 5.5 6c714a0ea7 tools, Makefile, package lists: media (CD 2, CD 3), install tests, build VM, source sets, binary packages
make iso now also writes CD 2 (makronix set) and CD 3 (binary packages); make sourcesets/isosrc make the source sets and the DVD with them. tools: cd2.sh cd3.sh, install-simple.sh install-cgd.sh (end-to-end tests on the serial console), vmsh.sh devvm.sh (QEMU sessions, the kept build VM), vm-pkgbuild.sh vm-pkgcollect.sh (native pkgsrc builds), pkg-binaries.sh (the project's binary packages), host-nfs-setup.sh (NFS for the build VM; loopback-only through an nftables rule), makronix-distfiles.sh makronix-pins.sh msrc-stage.sh. Package lists: common, per platform, and binary.

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