tools/mcde-dist.sh made the archive again from mcde 285ea4b3: 67,010,712
bytes (the README and the two screenshots are in it now). These are its
checksums.
tools/mcde-dist.sh's "archive unchanged" check hashed with sha256sum, which
NetBSD does not have: the key was empty, both sides compared equal, and the
distfile was never remade after the 64x64 icons and the AGENTS.md update. The
archive the recipe named was 66,941,013 bytes and held the old AGENTS.md
(58,298 bytes) and the 32x32 pictures.
The fixed script made the archive again: 66,940,999 bytes, AGENTS.md 61,013
bytes, IrixDisk.m.pm begins "64 64". These are its checksums.
Measured: tools/mcde-dist.sh from the parent at 7e20c712, mcde 3d79fc80.
These are the changes the cross (Linux) path needed before the chroot path
made them unnecessary on Makronix; they are kept because that path still
builds for the same sysroot on a host that is not Makronix.
tools/pkgsrc-cross.mk.conf names the host side in one place instead of in the
recipes: HOST_TOOLS_BIN on PREPEND_PATH (autoreconf stopped with "Can't exec
libtoolize"), HOST_X11BASE (the include path of the host's X), HOST_X11_LIBS
and HOST_FL_A (the archives the host tools link) and HOST_BUILD_CFLAGS
(-std=gnu17 -fPIE: the 1990s C of the forks, and NetBSD links PIE by default
so tradcpp failed with "relocation R_X86_64_32 ... can not be used when
making a PIE object"). /usr/pkg/lib comes before the base X when linking: a
library pkgsrc builds because the base copy is too old must be the one a
package links (the base freetype is 2.10.4, pkgsrc's 2.15.0 was ignored and
libfontconfig.so needed .19). x11-links keeps the sysroot override only on a
host without X of its own (on Makronix it doubled the path, 7 instead of 111
pkg-config links, x11/libXft then "Package 'x11' not found").
ext/src/mcde/pkgsrc-motif and ext/src/mcde/pkgsrc use those variables; the
build tools (makestrs, wml, wmldbcreate) are built and run by the host, so
their CFLAGS come from HOST_BUILD_CFLAGS and their include path from
HOST_X11BASE.
Measured on makronix-build before the chroot path: mcde-motif rc=0 in 529 s,
wm/mcde rc=0 in 1506 s.
The cross branch named ${MAKRONIX_TOP}/build/pkg/lib/libXt.a and friends. That
is a Linux host, where userland builds them as host tools; on Makronix the
builtin libXt is used, the bootstrap has no libXt.a, and makestrs stopped at
the link ("cannot find /usr/src/build/pkg/lib/libX11.a", measured 2026-11-20).
Where /usr/X11R7/lib/libXt.a and /usr/lib/libfl.a exist, they are named
instead; the bootstrap path stays for the Linux host.
makestrs, wml and wmldbcreate are built and RUN by the build host, and in a
cross build prefix is the target ( /usr/pkg ): there /usr/pkg/include has no
X11, and makestrs stopped with "X11/Xos.h: No such file or directory" on
Makronix (measured 2026-11-20) while the Linux host had the buildlink stub in
that directory. Where the host has its own X (/usr/X11R7), the tools use it;
else the old -I${PREFIX}/include stays.
tools/userland.sh decided by uname: on NetBSD it took a "native" branch that
built the forks for the bootstrap's prefix (build/pkg), never installed
anything into build/obj/destdir/usr/pkg and never ran tools/makronix-set.sh.
Measured 2026-11-20 on makronix-build: userland exit=0, then build.sh release
stopped at checkflist with "9422 missing files", all under ./usr/pkg. The
cross branch builds what the set needs -- the sysroot, PREFIX /usr/pkg, this
tree's own toolchain from build.sh (tooldir.NetBSD-11.99.9-amd64 on Makronix)
-- and that is the same build on Linux and on Makronix (AGENTS.md: cross and
native are one build). It is the default now; USERLAND_MODE=native keeps the
old branch for packages of the running host. mk-host.conf takes the archives
from distfiles/ of the tree.
tools/ext-dist.sh and tools/mcde-dist.sh: digest_of() (digest when it exists,
else SHA512 from cksum) and no hash line without a value. This was meant for
0c91b0cddf and stayed staged when that commit stopped at the ignored recipe
paths. ext/src/mcde/pkgsrc-motif/distinfo names the archive in distfiles/.
test-desktop-login on the installed VM with this dtlogin: 12 of 12 PASS,
the session runs with LANG=en_US.UTF-8 (build/logs/desktop-login-2026-11-18f.log).
mcde-dist from HEAD (7f80d71c74, tradcpp target-OS fix) and makronix-set after installing the rebuilt mcde into destdir.amd64 (adds dt/bin/dtscreenshot now present in the package).
tools/mcde-dist.sh and tools/ext-dist.sh archive a commit, not the working
tree, so the checksums have to be renewed after the change is committed: the
mcde archive of HEAD (7f764fddc9) now carries programs/dtscreenshot, and
pkgsrc-motif, which builds the same archive, gets the same three lines.
mcde-dist: /home/lotherk/src/distfiles/mcde-0.1.0.tar.gz, 61719603 bytes,
BLAKE2s 591c6e04be4ccbc4388f47c3eb06133c9bbcb40f0aca5a01e1d8de80a883fe4c
ext-dist afpfs-ng: 459861 bytes,
BLAKE2s ece337077bbb159740ecd828b1c3a08aaafac455eb5983e4898af242ffd69de0
The archive in DISTDIR and the copy in build/distfiles are hard links and
hash the same; ext/src/mcde/pkgsrc and pkgsrc-motif differ by nothing;
tools/ext-sync.sh put the recipes into pkgsrc/ (wm/mcde, x11/mcde-motif,
filesystems/afpfs-ng).
The Dts.c and McdeSys commits change what git archive HEAD:ext/src/mcde makes;
tools/mcde-dist.sh renewed the checksums. Cross-checked with an archive made
by hand from HEAD: SHA512 64d39d7b..., 61669464 bytes, equal.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The committed distinfo named the archive of an older HEAD; a fresh clone failed
the checksum. Measured: git archive HEAD:ext/src/mcde (tools/mcde-dist.sh's
command) gives SHA512 df4ada94..., 61667349 bytes, as in these files.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Two more stops from build/logs/userland-2026-11-14h.log:
- devel/flex linked stage1flex without libintl: its gnulib decides gettext is
needed in a cross build but adds no library, 'undefined reference to gettext'
(log:393-398). The target's base has no libintl, and flex's messages do not
need translating: PKG_OPTIONS.flex= -nls, which its own option turns into
--disable-nls (verified with show-var: CONFIGURE_ARGS carries it).
- wm/mcde stopped linking ttdbck on libXm.la: libtool had recorded a
sysroot-relative '=<workdir>/.buildlink/lib/libpng16.la' in dependency_libs, so
the consumer looked for <sysroot>/<workdir>/... (log:5370ff). pkgsrc rewrites
dependency_libs (mk/buildlink3/bsd.buildlink3.mk:859ff) but not a path starting
with '='. The Motif recipe's post-install gives the installed .la files the
target's path.
The pkgsrc recipe adds TOOL_DEPENDS libXt inside `.if ${X11_TYPE} != "native"`
within the cross branch, with the reasoning that native builds get libXt through
libXmu. That holds only when host and target are the same machine: here the wml
tools run on this host, link the target's libXt through the buildlink directory
and die on NetBSD's libc.so.12 (build/logs/userland-2026-11-14b.log:3698ff).
The dependency is unconditional in the cross branch now, and LIBS_FOR_BUILD
names the host archives it produces (9fd08ec250 and this commit).
The link took -lfl from wmluiltok_LDADD in tools/wml/Makefile, not from LEXLIB,
so the LEXLIB setting of 41bdd94470 changed nothing (build/logs/
userland-2026-11-14a.log:3678ff is the same failure). The variable that decides
the link is overridden now.
wmluiltok is a host tool and links -lfl; -L${LOCALBASE}/lib becomes the buildlink
directory in a cross build, so the linker took the TARGET's flex library and
stopped on NetBSD's libc.so.12 against the host's libc ('errno@@GLIBC_PRIVATE ...
TLS definition ... mismatches non-TLS definition', build/logs/
userland-2026-11-13z.log:3680ff). The path is only set for a cross build; a
native build has flex in its own prefix.
git archive stamps every file with the commit's time, so make saw the checked-in
wmlparse.c as up to date and compiled it although wmlparse.y had changed: the
prototype fixes of a4da3c7870 were ignored and the errors named line numbers of
the old grammar (build/logs/userland-2026-11-13y.log:3660ff, the displayed line
empty). The recipe removes the generated parser in post-extract; yacc (already
in USE_TOOLS) regenerates it.
build/logs/userland-2026-11-13x.log:396: '/bin/make: invalid option -- '='' --
pkgsrc hands MAKE_FLAGS to make as command-line words, so CFLAGS_FOR_BUILD=-O2
-std=gnu17 split and make tried to read -std=gnu17 itself. The variable is set
apart and passed with :Q, as the CPPFLAGS_FOR_BUILD line above already does.
The bare 'Makefile' line in ext/src/mcde/.gitignore hid pkgsrc-motif/Makefile,
so that recipe lived only in the working tree -- found when the change below
could not be committed. It is a recipe, not a generated Makefile; the negation
keeps it visible to git (pkgsrc/Makefile was force-added earlier).
The recipe now passes CFLAGS_FOR_BUILD=-O2 -std=gnu17: config/util/makestrs and
tools/wml are host tools (CC_FOR_BUILD=NATIVE_CC), this host's compiler defaults
to C23 where '()' means 'no arguments', and the fork's 1990s sources stop with
'too many arguments to function' (build/logs/userland-2026-11-13v.log:3646).
The target code is unaffected: the tree's cross gcc defaults to C17
(__STDC_VERSION__ 201710L, measured).
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>
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>