The session ran with LANG=C although dtlogin passed LANG=en_US.UTF-8 to
Xsession (dtlogin -debug 3: 'LANG=en_US.UTF-8'; ps -e on Xsession showed it).
Xsession is a ksh93 script, and ksh93 93u+m 1.0.10 on NetBSD rejects LANG as
'en_US.UTF-8: unknown locale' and leaves it empty when PATH comes earlier in
the environment (put_lang -> libast setlocale); Xsession then set LANG=C.
Measured in the installed system: env -i PATH=/bin:/usr/bin LANG=en_US.UTF-8
ksh93 -> empty, LANG before PATH -> kept, no PATH -> kept. verify.c now
creates LANG right after LOGNAME; setLang() replaces the value in place.
Tests: test-desktop-login's LOGIN and CORES checks matched padded ps and wc
output ('CORES= 0'); install-simple's .local lookup is bounded to 5 s per
round (the loop outlasted ENDCHK's 300 s without a network).
The museum message's title is cut by the screen handling ('...qqqj(B Museum?'),
so the test hung there; its body names it. The checks' own loops (mdnsd name,
Xorg) can take more than 150 s, which made the test fail after a correct
install (2026-11-18).
Xstartup's last line is 'exec sessreg -a ...' and Xreset's 'sessreg -d ...'.
configure (AC_CHECK_PROGS(SESSREG, sessreg)) recorded the bare name from the
build host, and Dtlogin*userPath had no /usr/X11R7/bin -- where NetBSD's
sessreg is. The session setup died with 'Xstartup[57]: exec: sessreg: not
found', dtlogin restarted the greeter: the password was accepted and the
login bounced (measured in the installed VM 2026-11-18, Xerrors).
- pkgsrc/Makefile: ac_cv_prog_SESSREG=/bin/sessreg
- dtlogin/config/Xconfig.src: NetBSD's userPath carries /usr/X11R7/bin
(xrdb, xset, xmodmap too)
- tools/install-simple.sh: answer the museum question (it hung there)
- tools/test-desktop-login.sh: the greeter test rebuilt: root shell first,
wait for X and dtgreet before typing (keys sent too early were lost), -g
restarts dtlogin with -debug.
--check now passes when the caller is inside the lock (make test/cdtest ->
tools/test.sh) and still refuses when another build holds it. test.sh,
mediacheck.sh, install-simple.sh and install-cgd.sh call it before they
touch the media or start a VM; a direct test beside a build stops with the
holder's pid.
- VMD=<dir> overrides the session directory (VMDIR for vmsh.sh), so two
sessions can test at the same time.
- install-cgd.sh answers the Makronix Games question; its loop hung there
on 2026-11-16 (the simple test already answered it).
The installation profile is a switch now (default: desktop from the CD,
full with -S/-U); the menu key follows it (a minimal, b desktop,
c full). The checks after the boot are split the same way: minimal
expects the base set, sshd/npf/dhcpcd, the user in wheel and operator,
and no makronix set, no /usr/pkg, no CDE, no /usr/src, no dtlogin and no
X server; desktop and full keep their checks. The X server probe is not
sent (and XORG=0 recorded) for minimal, so the test does not wait 60 s
for an X that never starts.
The source set is 5.8 GB; one ISO 9660 file can hold 4 GB (the size field
is 32 bits) and makefs truncated src.tgz to 1.5 GB (measured 2026-11-15:
the installer's gzip stopped with "unexpected end of file"). UDF would
hold the single file, but NetBSD rejected the makefs image with EINVAL
(measured 2026-11-16 on a dvdrom image and on a small test image).
- tools/cd-source.sh splits src.tgz into 2 GiB parts (src.tgz.aa, .ab,
...) and writes ISO 9660 with Rock Ridge; the README gives the
`cat ... | tar` command.
- sysinst: set_file_exists_p() accepts the first part, and the source set
is extracted with `sh -c 'cat .../src.tgz.* | tar --chroot -xzpf -'`.
run_program() splits its command into argv and has no shell: without
`sh -c`, cat wrote the parts to the terminal and tar never ran (measured
2026-11-16, build/logs/install-simple-source-2026-11-16f.log).
- tools/install-simple.sh: the -S test swaps in the source DVD for the
source prompt and back to the install DVD for the makronix set that
follows it; DVDISO/CDSRC can name copies outside RELEASEDIR, because a
release in another session removes images (measured 2026-11-15).
Measured (build/logs/install-simple-source-2026-11-16h.log): the full
profile asked for the source DVD, the parts were extracted, the installed
system passes "/usr/src holds the tree", "/usr/src has PINS and pkgsrc",
"all 1569 Makronix distfiles are in /usr/src/distfiles", and PINS names the
base. The run exits 1 on dbus and cupsd not enabled/running, unrelated to
the source set.
- menuc: a letter selects and activates a menu line in one keypress, as the
language menu reads; RETURN still activates the current line
(menu_sys.def).
- installmode: Minimal (base and core, no makronix set, no extras), Desktop
(the default system, no sources) and Full (the desktop and the source set,
asked for on its own DVD); Desktop is pre-selected. NetBSD's own way
(partitioning and sets by hand) stays in the code but is removed from the
menu at start-up (remove_advanced_options, main.c).
- Messages in all six languages; hello and choose_timezone describe the
one-key menus. The non-English catalogs are back in ISO-8859-1/2 (the
working tree had them as UTF-8 with U+FFFD); the set_src and nextcd_source
changes of the source-set work are kept.
- sysinst.8, AGENTS.md, install-simple.sh and install-cgd.sh follow the
profiles; the DVD/USB test uses Full, the CD test Desktop.
- manhtml set list: the 27 makronix-guide HTML pages, so checkflist is green.
Tested: make build (checkflist) and make release green; the boot-only CD
test passes and shows a: Minimal, > b: Desktop, c: Full, no Advanced. The
full DVD install reached the set extraction; the VM died there (parallel
builds on the host), so a login: from that run is not yet measured.
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>
Konrad, 2026-11-14: the binaries (Firefox, Thunderbird, Samba, CUPS,
RetroArch, ScummVM ...) are used for now because it is faster, but every one
of them is to be built here later, once there is a usable Makronix on the
MacBook; so the source set carries their sources already, and the binaries
stay what is used.
- makronix-distfiles.sh: the closure is that of ALL of packages.list (381
packages, 1992 archives, 4.7 GB unique; Rust, LLVM, Boost, Firefox's and
Thunderbird's 1.8 GB and the Rust crates), not only of the kinds built here.
- msrc-stage.sh: Firefox and Thunderbird must be whole, so the files whose
names ustar cannot store (235, of eleven packages; the installer's tar is
bin/pax -DSMALL -DNO_CPIO and reads nothing else) are no longer a reason to
leave a package out: they go into usr/msrc/pkgsrc-longnames.cpio
(pkgsrc-longnames.txt lists them), taken out of the ustar tree. A 103
character patch name made the round trip through nbpax -x cpio.
- sysinst setup.c: after the sets, the simple mode puts them back with the
installed system's /bin/pax (base set) in usr/msrc/pkgsrc and removes the
archive.
- installimage, installimage-bios: 10 GiB for the stick with /source (was
4482 MiB, a DVD): the sources are about 6 GB; a DVD no longer carries them.
- install-simple.sh -U: the target disk is 40G (was 20G; root was at 12.4G of
18G before the sources).
Not run yet: make sourcesets needs the distfiles (tools/makronix-distfiles.sh
fetch is running, build/logs/distfiles-fetch-2026-11-14.log).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The base (raw or qcow2) stays untouched; the target is a qcow2 layer over
it. Used with a 20G disk that carries an MBR partition and a stale
backup GPT in its last sectors (primary GPT zeroed; made with the
tooldir's nbgpt) -- the case wipe_disk_ends() missed when it counted in
whole MB: gpt create refuses a disk that still has a GPT. Measured on the
0.99.10 image of 2026-11-14 04:23: 41 PASS, new GPT with root and swap,
login: reached (build/logs/test-oldgpt-2026-11-14.log).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The simple mode destroyed the disk's partitioning in md_get_info(), before
MSG_lastchance (fixed in 8826ffa456). -n layers a qcow2 over a finished
installation (qemu-img -b, the base is not touched), goes through the
simple mode to "ready to install Makronix on your hard disk", answers no,
leaves sysinst and counts the GPT partitions. Measured on the 0.99.10
image of 2026-11-14 04:23: GPTPARTS=2, PASS
(build/logs/test-nolast-2026-11-14.log,
build/logs/install-nolast-bios-install-2026-11-14.log).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dtlogin starts "/usr/X11R7/bin/X :0" (MCDE Xservers, __NetBSD__), so
ps shows X, and the check "[X]org" failed while the server ran
(test-install-usb-2026-11-14b.log: 40 PASS, only that FAIL). Measured in
the installed VM: /usr/X11R7/bin/X :0 running, 0 (EE) lines in
Xorg.0.log, vesa with kbd/ws input, the dtlogin screen shown
(build/logs/install-usb-dtlogin-2026-11-14.png).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
- ISO volume ID MAKRONIX_INSTALL for CD 1, the DVD and the boot CDs
(Makefile.cdrom, Makefile.bootcd takes ISO_VOLID when set; ISO 9660
allows only [A-Z0-9_], makefs cd9660_valid_d_chars), MAKRONIX_INSTALL_CD2,
_CD3 ... for the others; publisher Makronix.
- src/etc/Makefile release: RELEASEDIR/<machine>/MAKRONIX with version,
codename, machine, NetBSD version, build date and commit; NetBSD copies
that directory onto CD 1, the DVD and the USB image.
- Version 0.99.10 (micro bumped with every release from now on); the test
scripts read it from src/sys/conf/makronix-release.
- install-simple.sh: PASS only when Xorg runs after the boot, the (EE)
lines of Xorg.0.log go into the log (dtlogin alone ran without X).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
install-simple.sh waited 1500 rounds (about 55 minutes) for sysinst. The
install from the USB stick is read through qemu's usb-storage and is much
slower than the DVD: on 2026-11-11 it was still unpacking msrc.tgz (626 MB)
when the limit came (build/logs/test-install-usb-2026-11-11.log), while
the DVD's install had passed. With -U it waits 3000 rounds.
tools/AGENTS.md: a paused build VM's clock lags, which made automake
regenerate configure in a loop during make userland; how to set it, and
the new key build/vm/id_vm.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
- 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.
setup.c calls set_network/add_new_user (configmenu.c wrappers) and
root_pw_setup while the target is mounted, instead of its own forms;
ordinary users get the desktop groups afterwards. dup_file_into_target
copies only a source that exists. Tests answer the new prompts.
Not built yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- patch 0014: the install image carries the binary packages (MD_IMGDIR_EXTRA,
amd64 installimage, 3072 MB) and consdev=auto in its boot.cfg
- sysinst disks.c: the disk whose wedge is the root is not listed (the stick
was offered as "a: sd0")
- vmsh.sh -U (image as USB stick, snapshot), install-simple.sh -U
Measured 2026-11-08: install from the stick (BIOS, USB) 38 PASS, with the extra
programs from the stick; the GPT image boots to sysinst in QEMU/UEFI.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- tools/cd-com0.sh: copy of an install CD with `consdev=com0' in /boot.cfg;
the UEFI loader (console=auto) did not take the serial port in the test VM
(a key through the serial pipe or the keyboard did not count; screen dump:
installer on VGA)
- install-cgd.sh: UEFI uses that copy, 4 GB RAM; install-simple.sh: no
Enter loop; vmsh.sh: VMSH_AHCI
Measured 2026-11-08: cgd UEFI 35 PASS, multi-CD (3 package CDs) 38 PASS.
Open: three guest freezes in write-heavy phases at 2 GB, cause unknown.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- 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>
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>