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>