UilLexPars.h/.c are tracked and Uil.c gets a newer mtime in a fresh copy, so the rule runs
and 'ln -s' fails with File exists (MacBook native build, 2026-11-24, mcde-motif).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The plain-file ext/src/mcde of the Makronix tree carried dtphoto (layers, PSD,
clipboard shape, JPEG/GIF/XPM writers), dtbar, dtsystemsettings (Startup Disk,
dock), dtwm and icon changes that this fork did not have. Resolved by hand:
dtphoto.c, McdeThumb.c, Thumb.h, dtsystemsettings, dtphoto.msg, AGENTS.md take
the Makronix side (a strict continuation of what the fork mirrored); the fork's
own changes are kept (M_PI guard and the front[] fix of 4e51d6dd, 'No
dttoolchest menu', DeskLowerBackdrops, distinfo until the next ext-dist).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
With the real prototypes in wml.h the grammar's boolean rules no longer compile:
they hand the token value (ATTRTRUE/ATTRFALSE, an int) to a function whose
parameter is char* -- wmlsynbld.c casts it back to long for EXCLUDE ('val ...
must be ATTRTRUE | ATTRFALSE'). The cast says so now, and the four call sites
are the only ones (grep yytknval1, yytknval2 in wmlparse.y).
The generated parser also calls yylex (wmllex.c) and yyerror (Uil.c) without a
declaration; GCC 14 and later refuse that in C99 and later, where the 1990s build
only warned (build/logs/userland-2026-11-13w.log:3620ff).
wml.h declared the builders of wmlsynbld.c with empty parentheses; C23 (GCC 14
and later) reads that as 'takes no arguments', so the generated parser's calls
stopped with 'too many arguments to function' for LexIssueError,
wmlCreateEnumValue, wmlCreateCharset, wmlAddEnumSetValue,
wmlAddEnumValueAttribute and wmlAddCharsetAttribute (build/logs/
userland-2026-11-13v.log:3901ff). The prototypes now carry the types of the
definitions in wmlsynbld.c; wmlAddCtrList and wmlAddCtrListControl have no
definition and stay as they are.
makestrs.c declared two dispatch tables as 'void (*table[])()' -- unspecified
parameters -- and GCC 14 rejects the initialisers and the two-argument call
(-Wincompatible-pointer-types is an error there; build/logs/
userland-2026-11-13u.log:1267-1313). The six header writers all take
(FILE*, File*) and the five source writers take (int), so the arrays say so.
Checked with gcc -fsyntax-only -std=gnu17 against the sysroot headers.
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>
Motif refuses accelerators of an unmanaged menu bar (RCPopup.c,
AllWidgetsAccessible), and the global menu unmanages the program's bar:
no menu shortcut worked while dtbar ran. Our Motif gets
_XmMenuBarSetExported; McdeGlobalMenu.c marks the bars it hides. A
preferences/options/settings item without a shortcut gets Command+comma.
Tested on Xvfb with dtbar: dtpad Command+F opens Find/Change, dtterm
Command+comma opens Global Options.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dtkeys makes it Mod4 at login (a PC keyboard's left Alt and Windows keys
are exchanged, a Macintosh keyboard is so already; ~/.dt/keyboard chooses,
McdeSys tells a Macintosh keyboard). Motif's text fields copy, cut, paste
and select all with Command+C/X/V/A; dtterm pastes, copies, opens and
closes tabs and switches them with Command; dtwm's switching, minimizing,
zones and full screen go by Command too. Option is Alt, where Motif's
menu mnemonics stay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
--with-private-motif (the default) builds motif/ with the options of
pkgsrc x11/motif and MCDE's C dialect and installs libXm, libMrm, libUil
and uil in ${prefix}/lib, for MCDE's programs; --without-private-motif
links the system's (Makronix: x11/motif from motif/, next). Motif fixes:
<string.h> in XpmI.h on every system, and an Xft rendition that came with
a core font from the resources is loaded all the same -- before, it kept
no Xft font and XmStringExtent read through a NULL pointer
(dtsystemsettings crashed at start).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Applied as pkgsrc applies them (patch -p0 in the source, pkgsrc
3c1118e94432, x11/motif PKGREVISION 4): fixes for current compilers and
for NetBSD, Xpm and the render table among them. Nothing of MCDE's own
yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The toolkit MCDE is built with, from now on part of MCDE and installed
with it: the same Motif on every system, whatever the system has (the
host's Motif 2.3.8 without pkgsrc's patches made dtsystemsettings crash in
XmStringExtent). The archive as it is (sha512 in IMPORT); pkgsrc's
patches and the build follow as commits of their own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>