Files
lotherk 974603f8a6 pkgsrc: the forks of ext/ build from their tree, not from an archive
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
2026-11-23 19:49:07 +00:00

202 lines
9.3 KiB
Plaintext

# The pkgsrc packages Makronix ships: THE list. One PKGPATH a line, then
# optionally what kind it is (tools/pkglist.sh reads this file; nothing else
# does):
#
# PKGPATH in the "makronix" set: built here, installed into the
# sysroot, listed by tools/makronix-set.sh
# PKGPATH repo a binary package in the repository on the media
# (tools/cd3.sh), built here, installed by sysinst's choice
# PKGPATH games like fetch, in the group Makronix Games (sysinst asks)
# PKGPATH fetch the NetBSD project's binary package, taken instead of a
# build (tools/pkg-binaries.sh): hours of compiling for
# nothing a patch of ours changes
# PKGPATH bin like fetch, and also installed into the sysroot: the base
# set's own (vim, git, sysupgrade), and what a package built
# here needs to build (flex, ksh93, tcl); the "fetch" ones
# are only on the media, and sysinst installs them (t0205)
#
# ... @ARCH a third word limits a line to one platform (@aarch64:
# a package only the phone needs); ARCH in the environment
# says which platform is built, amd64 by default
#
# Every package builds cross (a non-NetBSD host) and native (a NetBSD host);
# the build detects which (tools/userland.sh). A package that does not is
# broken -- fix the recipe, never build it elsewhere (AGENTS.md).
#
# `tools/makronix-distfiles.sh list' derives from this file the distfiles that
# belong to Makronix (and only those) for the source set.
# flex bootstraps itself: it builds a stage1flex with $(CC) and then RUNS it to
# generate stage1scan.c. In a cross build that is a target binary and cannot run
# here ("stage1scan.c: Error 127", build/logs/userland-2026-11-14i.log:380ff); the
# compiler used for the program is not a separate knob. Unpatched by Makronix --
# the NetBSD project's binary is taken instead (t0172 for the same decision on
# ksh93). The flex TOOL that other packages use comes from build/pkg and is
# unaffected.
devel/flex bin
x11/mcde-motif
wm/mcde
# What Makronix does not patch comes as the NetBSD project's binary package
# (Konrad, 2026-11-13: "existing binary packages for userland instead of
# building everything"); they install because X is in the base again.
editors/vim bin
devel/git-base bin
# got (Game of Trees) is the portable OpenBSD VCS for Git repositories.
# It is not a Git command line: the build calls git archive, ls-files,
# ls-tree, rev-parse, config and submodule, which got does not have, so
# git-base stays and got comes on top (Konrad, 2026-11-22).
devel/got bin
# The upgrade of the base system (GOAL.md "Upgrade mit einem Klick", t0055):
# sets, kernel, etcupdate and postinstall are sysupgrade's job, unpatched, as the
# NetBSD project builds it (docs/reference/sysupgrade.txt). shtk comes with it.
sysutils/sysupgrade bin
# signify(1) checks a signed release: the upgrade command verifies the root
# key -> release key -> SHA512 chain before sysupgrade/pkg_add run as root
# (GOAL.md 2026-11-16, tools/upgrade-verify.sh). Not in the NetBSD base.
security/signify bin
# MCDE's dtksh: ksh93 builds through its own bin/package, which demands the
# compiler as an absolute path and refuses to cross-build (t0172).
shells/ksh93 bin
# MCDE's dtdocbook and the --with-tcl of its configure: lang/tcl's own
# configure takes the cross build for Linux and links -ldl, which NetBSD does
# not have (dlopen is in libc): "cannot find -ldl" (build/logs/
# userland-2026-11-14f.log). The NetBSD project's tcl, unpatched.
lang/tcl bin
# pkgsrc's own build tools want perl (devel/automake: USE_TOOLS=perl:run,
# devel/gmake: perl:test). NetBSD has no perl in the base system and no
# TOOLS_PLATFORM.perl, so pkgsrc must build lang/perl5 -- and then an
# automake built here cannot be installed: "pkg_add: no pkg found for
# 'perl>=5.0'" (build/logs/release-2026-11-23-mbp1.log:5212). Perl has to be
# in the sysroot before the tools that need it, and on the target: a user
# rebuilding a package with pkgsrc needs it too.
lang/perl5 bin
# dtchat (MCDE): libopus carries the calls, libretls (libtls) the IRC adapter's TLS;
# configure.ac stops without them, and they must stay in the sysroot: shared
# libraries of a program in the set. The NetBSD project's binaries, unpatched.
audio/libopus bin
security/libretls bin
# MCDE's Sharing and Backup (System Settings) and the network in the file
# manager: the servers SMB and AFP, the FUSE clients for SFTP and AFP, borg.
net/samba4 fetch
net/netatalk4 fetch
filesystems/fuse-sshfs fetch
filesystems/afpfs-ng
sysutils/py-borgbackup fetch
# X is the base's again (xsrc/, build.sh -x, X11_TYPE=native; Konrad,
# 2026-11-13): the server, its drivers, xterm, xinit ... are in the X sets
# (xbase, xserver, xfont, xetc, xcomp), not here. pkgsrc's modular X had no
# input driver, no keymap and no "fixed" font in the set ("The X-server can
# not be started on display :0", measured 2026-11-13).
# The media's repository: the sound daemon and its volume control, printing
# (CUPS with its filters): part of a desktop.
audio/pulseaudio fetch
audio/pavucontrol fetch
print/cups fetch
print/cups-filters fetch
# A video DVD in the drive starts the player (t0083, Konrad 2026-11-13: "wenn dvd
# eingelegt dann automatisch dvd player (xine) starten"): xine-ui with xine-lib,
# libdvdnav and libdvdread, the NetBSD project's binaries.
multimedia/xine-ui fetch
# QEMU for dtvirtualmachine, the MCDE frontend for virtual machines
# (t0344-t0355): it drives qemu-system-x86_64 and qemu-img; the NetBSD
# project's binary, not a build of ours (tools/pkg-binaries.sh: hours of
# compiling for nothing Makronix patches).
emulators/qemu fetch
www/firefox fetch
mail/thunderbird fetch
# Games (Konrad, 2026-11-13): RetroArch with every libretro core the NetBSD
# project publishes, ScummVM with its free games, Tux Racer. The NetBSD
# project's binaries, kind "games": the group Makronix Games, which sysinst
# offers on its own (yes by default) and installs from the medium.
emulators/retroarch games
emulators/libretro-beetle-ngp games
emulators/libretro-beetle-pce-fast games
emulators/libretro-beetle-psx games
emulators/libretro-beetle-psx-hw games
emulators/libretro-beetle-saturn games
emulators/libretro-beetle-sgx games
emulators/libretro-beetle-vb games
emulators/libretro-beetle-wswan games
emulators/libretro-bluemsx games
emulators/libretro-bsnes-mercury-accuracy games
emulators/libretro-bsnes-mercury games
emulators/libretro-bsnes-mercury-performance games
emulators/libretro-cap32 games
emulators/libretro-core-info games
emulators/libretro-desmume games
emulators/libretro-fbneo games
emulators/libretro-fceumm games
emulators/libretro-flycast games
emulators/libretro-freeintv games
emulators/libretro-fuse games
emulators/libretro-gambatte games
emulators/libretro-gearboy games
emulators/libretro-gearsystem games
emulators/libretro-genesis-plus-gx games
emulators/libretro-mame2010 games
emulators/libretro-mgba games
emulators/libretro-nestopia games
emulators/libretro-np2kai games
emulators/libretro-o2em games
emulators/libretro-parallel-n64 games
emulators/libretro-pcsx-rearmed games
emulators/libretro-picodrive games
emulators/libretro-prosystem games
emulators/libretro-sameboy games
emulators/libretro-smsplus games
emulators/libretro-snes9x2005 games
emulators/libretro-snes9x2010 games
emulators/libretro-snes9x games
emulators/libretro-stella games
emulators/libretro-vba-next games
emulators/libretro-vecx games
emulators/libretro-virtualjaguar games
games/libretro-2048 games
games/libretro-craft games
games/libretro-nxengine games
games/scummvm games
games/scummvm-bass games
games/scummvm-fotaq games
games/tuxracer games
# The Makronix Museum (Konrad, 2026-11-16): four vintage machines in QEMU
# (IRIX 6.5.29, SunOS 4.1.4, Mac OS 9.2, Mac OS X 10.4 Tiger). The museum
# program is in the base system (src/usr.bin/museum); this is its emulator,
# a NetBSD project binary like the other "fetch" packages, offered as its own
# group in sysinst (kind "museum", like "games"). The operating system media
# are proprietary and stay with their owner: nothing here downloads or ships
# them.
emulators/qemu museum
# splinter, the project's own agent harness (ext/src/splinter, IMPORT):
# C99/POSIX, its curses vendored, one library and the plugins. Part of the
# makronix set, so every Makronix carries it (Konrad, 2026-11-17).
misc/splinter
# pkgin, the binary package manager sysinst installs first: it runs
# `pkg_add <medium>/<arch>/packages/All/pkgin' (src/usr.sbin/sysinst/
# configmenu.c:387) and then points pkgin at that directory as the repository,
# so a person can install the rest of the media's packages after the
# installation. Without it that menu fails and there is no package manager on
# the installed system (measured 2026-11-23: no pkgin in build/packages or on
# any image; pkgsrc/pkgtools/pkgin is present but was never built).
# Kind "repo": it belongs on the medium beside junction and the other servers.
pkgtools/pkgin repo
# The project's own servers (ext/src/<name>, git submodules with their recipe in
# pkgsrc/): junction (model router), wikid, skilld, memoryd, tasksd (MCP
# servers). On the media's repository, not in the set: sysinst offers them.
misc/junction repo
misc/wikid repo
misc/skilld repo
misc/memoryd repo
misc/tasksd repo