27 Commits
Author SHA1 Message Date
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
lotherk 38dd57df28 packages.list: lang/perl5 is a bin, the tools pkgsrc builds need it
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.
2026-11-23 18:07:26 +00:00
lotherkandClaude Sonnet 5.5 e3f12eee94 packages.list: junction, wikid, skilld, memoryd, tasksd as repo packages
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 08:41:13 +00:00
lotherk abe9bd18c4 packages.list: got comes in next to git
got (Game of Trees, pkgsrc devel/got) is installed in the makronix set as a
second, OpenBSD-style VCS for Git repositories.  It does not replace
git-base: Makronix's build calls `git archive`, `ls-files`, `ls-tree`,
`rev-parse`, `config`, `reset`, `restore` and `submodule`, and got has no
such commands -- a `git` symlink to got would stop `make release` (measured
on got-portable 0.127, the command lists).  Konrad chose got in addition,
git stays (2026-11-22).

Measured: tools/pkglist.sh bin lists devel/got next to devel/git-base.
2026-11-22 12:56:34 +01:00
lotherk 3044a703e3 splinter: the project's own agent harness as a fork (IMPORT)
ext/src/splinter is git archive of the project's HEAD (dc9a1c6), unchanged,
with the IMPORT that says where it comes from and how an update is merged
(-X subtree=ext/src/splinter; a submodule would be empty in git archive, and
both the package and the source set build from that archive).

Recipe ext/src/splinter/pkgsrc: a POSIX Makefile plus the vendored NetBSD
curses (GNU make for that one), CFLAGS appended so the tree's dialect and
include paths survive, no -Werror, libsplinter.so and the 15 plugins in the
PLIST.  packages.list: misc/splinter, in the makronix set.
2026-11-17 23:14:03 +00:00
lotherk f5a5d1efc4 mcde recipe: libopus and libretls for dtchat, and in packages.list as bin
configure.ac stops with 'libopus not found; dtchat needs it for audio' in the cross
userland (build/logs/userland-2026-11-17-fix2.log:1324), so wm/mcde never reached the
sysroot and the images kept the Nov 15 MCDE (wrong PAM file, host xrdb path, CDE logo).
The NetBSD project's binaries are taken; they must stay in the sysroot as the shared
libraries of dtchat.
2026-11-17 08:51:07 +00:00
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 8e80656ab0 packages.list: QEMU for the MCDE virtual machine frontend
dtvirtualmachine (t0344-t0355) drives qemu-system-x86_64 and qemu-img.
The NetBSD project publishes qemu-11.1.1nb1 for amd64/11.0_2026Q3 with
its dependencies; Makronix patches nothing in it, so it is the project's
binary, kind fetch.  tools/pkg-binaries.sh -a amd64 list resolves it
(280 packages, 936974492 bytes).
2026-11-16 16:51:19 +00:00
lotherk 21551deb62 packages.list: signify for the upgrade's release check
The target needs signify(1) to verify the chain in /etc/signify (root key ->
release key -> SHA512) before the upgrade runs sysupgrade/pkg_add as root
(tools/upgrade-verify.sh, tasksd t0078).  Kind bin: the NetBSD project's
binary package (security/signify 20250520, present on the CDN, 61 KB),
installed into the sysroot and carried by the makronix set.
2026-11-16 11:21:45 +00:00
lotherkandClaude Sonnet 5.5 51c89ff23a packages.list: the kind bin (a NetBSD binary that is also installed into the sysroot); userland.sh puts only those there (t0205)
vim, git-base, sysupgrade (the base set) and flex, ksh93, tcl (build needs) are bin; samba4, netatalk4, cups, firefox ... stay on the media only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 00:25:56 +00:00
lotherkandClaude Sonnet 5.5 5f32deef85 The set of the 0.99.10 image: all registered packages with their directories, the closure from everything installed; xine-ui for video DVDs (t0083); ext-resync.sh executable
makronix-set.sh: set packages resolved by PKGPATH, normalised @cwd, no names
with spaces, directories in the list and METALOG; the regenerated makronix list.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 22:53:22 +00:00
lotherkandClaude Sonnet 5.5 ceae177fb5 mxupgrade: upgrade the base system with one command (t0055)
sysutils/sysupgrade (the NetBSD project's binary) joins the makronix set;
mxupgrade(8) turns file:// into a path, says what comes, runs sysupgrade and
copies kernel and cgdroot.kmod to /cgdboot on an encrypted system; sysinst
writes /etc/sysupgrade.conf.  docs/reference/sysupgrade.txt has what the
decisions rest on.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 12:09:08 +00:00
lotherk 70e26abb20 userland: flex comes as the NetBSD project's binary, not cross-built
flex 2.6.4 bootstraps itself: the Makefile builds a stage1flex with $(CC) and
then runs it to generate stage1scan.c.  In a cross build that binary is built for
the target and cannot run here -- 'stage1scan.c: Error 127', while the file it
wants is a NetBSD ELF (build/logs/userland-2026-11-14i.log:380ff; the compiler for
that program is not a separate knob, CC_FOR_BUILD exists in the Makefile but the
stage1flex link does not use it).  Makronix does not patch flex, so it is taken as
the NetBSD project's binary like ksh93 (t0172); the flex TOOL other packages use
lives in build/pkg and is untouched.
2026-11-14 06:39:08 +00:00
lotherkandClaude Opus 5.5 55c19dd0d8 packages.list: lang/tcl is the NetBSD project's binary -- its cross build links -ldl
wm/mcde needs tcl (configure --with-tcl, dtdocbook).  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).  Unpatched, so it comes like ksh93
as a fetch package that fetch_binaries() puts into the sysroot before the
build; installed by hand with the same pkg_add -P: tcl-8.6.18 registered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:50:05 +00:00
lotherk ca5a4c4ac7 userland: the fetch packages are installed into the sysroot before the build; ksh93 is one of them
wm/mcde depends on ksh93 for dtksh, and ksh93 1.0.10 refuses to cross-build: its
bin/package wants the compiler as an absolute path (bin/package:2919-2922, 'cc:
not found -- set CC=C-compiler', build/logs/userland-2026-11-14d.log:5299) while
pkgsrc passes CC=<name>.  Konrad's choice on 2026-11-14: take the NetBSD project's
binary (packages.list, kind fetch), as for vim, git and samba.

For that the binaries have to be in the sysroot before the build loop: until now
only tools/cd3.sh (the media) called tools/pkg-binaries.sh, so a package built
here could not depend on a fetched one.  userland.sh now fetches and installs
them first (pkg_add with PKG_PATH at the repository, into the sysroot in a cross
build, into /usr/pkg in a native one).  The makronix set is read back from what
is installed, so it lists these binaries instead of whatever an earlier run left
behind.
2026-11-14 05:32:37 +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 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 Sonnet 5.5 7ac9830e9d afpfs-ng: builds with GCC 14 -- real fixes of the C, back in the build
closedt took a pointer and htons()'d it; the cleartext change-password
function had 3 arguments for a 4-argument slot; token_data was request +
sizeof(*request); remove_opened_fork got a struct; missing prototypes and
includes; full_url defined in a header; fi->fh from a pointer; pthread_t
no longer compared with NULL.  pkgsrc's patch-lib_loop.c is in the tree
now (the recipe's patches/ is gone).  tools/ext-dist.sh makes the archive
of a fork (mcde-dist.sh for any ext/src/NAME); userland.sh uses it.
Library and afpcmd compile on the host with -std=gnu17 (GCC 16,
--disable-fuse); the FUSE side is tested in the VM.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 13:22:58 +00:00
lotherkandClaude Sonnet 5.5 cbe80f8716 MCDE: Mac OS X keyboard shortcuts through the desktop (Cmd+space dtlaunch, f.mcde_app, bar commands, dtterm/dtfile keys); fuse-afpfs-ng dropped from the build
The makronix set list is regenerated (46569 entries,
build/logs/x-userland-2026-11-13d.log); mcde-host exit=0
(build/logs/mcde-host-2026-11-13c.log).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 12:05:06 +00:00
lotherkandClaude Opus 5.5 0c702d7fc9 Makronix's Motif: x11/mcde-motif from MCDE's motif/, wm/mcde links it
make userland stopped in the build VM (build/logs/x-userland-2026-11-13a.log:
"Makefile.am: error: required file './AUTHORS' not found", in motif/): since
081fb4c4b (2026-11-11) MCDE configures motif/ as a subpackage by default, and
pkgsrc's autoreconf -fiv of wm/mcde reached it; the last VM build (dd7c19207)
was before.  Against pkgsrc's unchanged x11/motif MCDE does not build at all
since 92e52775b (_XmMenuBarSetExported is ours).

Konrad, 2026-11-13: MCDE builds its own Motif only where it is not Makronix;
on Makronix the system's Motif comes from motif/ (configure.ac:622-626 says
so; the package did not exist).  Now:
- ext/src/mcde/pkgsrc-motif: x11/mcde-motif-2.3.8, built from the MCDE
  archive with WRKSRC motif/; pkgsrc's x11/motif recipe and PLIST otherwise
  (its 28 patches are folded in, d07ef09e1, checked with patch -R
  --dry-run: 28 of 28); CONFLICTS motif, lesstif, openmotif.
- wm/mcde: --without-private-motif and x11/mcde-motif's buildlink3.mk
  instead of mk/motif.buildlink3.mk.
- motif/Makefile.am: AUTOMAKE_OPTIONS foreign (autoreconf -fi of motif/
  exit 0 afterwards, on a copy of HEAD's motif/).
- tools: ext-sync takes ext/src/<name>/pkgsrc-<part> as
  <category>/<name>-<part>; mcde-dist writes the distinfo for both recipes
  and leaves pkgsrc-* out of the archive; the VM builds x11/mcde-motif before
  wm/mcde with the same GCC 14 settings, and a conflicting x11/motif needed
  by the old wm/mcde is removed with -f (wm/mcde is rebuilt after it);
  mk-cde.conf sets MOTIFBASE so other Motif packages take ours.
- packages.list and packages.vm.list name x11/mcde-motif.

Checked on the host with pkgsrc's bmake: x11/mcde-motif PKGNAME
mcde-motif-2.3.8, WRKSRC ${WRKDIR}/${DISTNAME}/motif; wm/mcde show-depends
"mcde-motif>=2.3.8:../../x11/mcde-motif", CONFIGURE_ARGS
--without-private-motif.  Not yet built in the VM: make userland next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 07:06:33 +00:00
lotherkandClaude Opus 5.5 9dcaa2b46b makronix set: samba4, netatalk4, sshfs, afpfs-ng and borg; FUSE mounts for users
MCDE's Sharing (SMB, AFP), Backup (borg) and the network in the file
manager (sshfs, afpfs through FUSE) need these packages; they are built in
the build VM.  Users mount shares themselves: vfs.generic.usermount=1 in
sysctl.conf and /dev/putter 666 (NetBSD: 600) -- a finding, kept here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 19:18:12 +00:00
lotherkandClaude Opus 5.5 946e501710 makronix set: MCDE instead of CDE
packages.list and packages.vm.list name wm/mcde.  userland.sh makes MCDE's
archive (mcde-dist.sh, now into pkgsrc's own DISTDIR) and copies the ext/
recipes into the host's and the VM's pkgsrc; vm-pkgbuild.sh removes an
installed package the new one CONFLICTS with (cde for mcde) and gives wm/mcde
the GCC 14 settings of wm/cde; vm-pkgcollect.sh removes from the sysroot the
files the last pack had and this one has not, so CDE's files leave the set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 06:04:46 +00:00
lotherk e7f5f446a7 X: build Xorg and the clients natively in the build VM
The cross build of modular-xorg-server trips over its build tool chain
(cmake/meson/curl are TOOL_DEPENDS and get the target compiler; see the
tradcpp finding).  The VM is NetBSD, builds them natively, and the runtime
closure goes into the sysroot.  The host fetches the distfiles and serves
build/distfiles on 10.0.2.2:8000; the VM's mk.conf gets MASTER_SITE_OVERRIDE
and X11_TYPE=modular.
2026-11-10 00:02:10 +00:00
lotherk 4cea7f3c2d packages.list: the pkgsrc path is x11/modular-xorg-server 2026-11-09 23:46:32 +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 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