Files
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

64 lines
2.7 KiB
Bash
Executable File

#!/bin/sh
# License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree.
#
# pkglist.sh -- the packages of packages.list, by kind
#
# usage: pkglist.sh set|repo|fetch|bin|sysroot|games|museum|built|all [-n]
#
# set the packages of the "makronix" set (no second word)
# repo the packages of the media's repository ("repo")
# fetch the NetBSD project's binaries, taken not built ("fetch" and "bin")
# bin those of them that are also installed into the sysroot ("bin"): the
# base set's (vim, git, sysupgrade) and what a package built here needs
# (flex, ksh93, tcl); the others are only on the media (t0205)
# sysroot the same as bin: what tools/userland.sh puts into the sysroot
# games the NetBSD project's binaries of the games group ("games"):
# Makronix Games, which sysinst offers on its own (extras.c)
# museum the NetBSD project's binaries of the museum group ("museum"):
# Makronix Museum, offered the same way; the museum program itself
# is in the base system (src/usr.bin/museum)
# built set and repo: what is built here
# all every line
#
# One PKGPATH a line. -n: the name (the last part of the PKGPATH) instead.
# A third word @ARCH (@aarch64) limits a line to that platform; ARCH in the
# environment (default amd64; "all" for every platform) says which one is built.
# packages.list is the one place that says what Makronix ships; this is the
# one reader (root AGENTS.md, "Building"). PACKAGES_LIST overrides the list file.
set -eu
TOP=$(cd "$(dirname "$0")/.." && pwd)
KIND=${1:-}
case $KIND in
set|repo|fetch|bin|sysroot|games|museum|built|all) ;;
*) echo "usage: ${0##*/} set|repo|fetch|bin|sysroot|games|museum|built|all [-n]" >&2; exit 2 ;;
esac
LIST=${PACKAGES_LIST:-$TOP/packages.list}
awk -v kind="$KIND" -v names="${2:-}" -v arch="${ARCH:-amd64}" '
/^[ \t]*(#|$)/ { next }
{
if ($3 ~ /^@/ && arch != "all" && substr($3, 2) != arch) next
k = ($2 == "") ? "set" : $2
if (k != "set" && k != "repo" && k != "fetch" && k != "bin" && k != "games" && k != "museum") {
print "pkglist: " $1 ": unknown kind \"" k "\"" > "/dev/stderr"
bad = 1
next
}
# "built" is set and repo exactly: "games" are the NetBSD
# project binaries like "fetch" (tools/pkg-binaries.sh), and
# building their dependency trees for host tools (the games pull
# librsvg, rust, boost) was a mistake until 2026-11-13
if (kind == "all" || kind == k ||
(kind == "fetch" && k == "bin") ||
(kind == "sysroot" && k == "bin") ||
(kind == "built" && (k == "set" || k == "repo"))) {
p = $1
if (names == "-n") sub(".*/", "", p)
print p
}
}
END { exit bad }
' "$LIST"