Commit Graph
5 Commits
Author SHA1 Message Date
lotherk b41be1885a MCDE: the dthelp parser generators build for the host (t0230, block 1)
Inventory of build/logs/mcde-allerrors-2026-11-14.log (the last docs-enabled
cross build): 826 error lines, 774 of them Error 127 (a target binary run on
the build host).  The tools that were not found: instant 654 calls,
dtcodegen 44, tt_type_comp 18, dtdocbook2infolib 14; 50 Error 1 come from the
parser's missing context.h (the generators had not run), 2 from XDONE.
instant is the SGML converter for both help volumes and man pages, so it is
the next block.

This block is the dthelp parser's own generators: pass1, canon1 and pass2
run "build" and "eltdef" while the parser is compiled, and they must run on
the build host.  Each of their directories now compiles for the host (CC,
CPPFLAGS, CFLAGS, LDFLAGS from the *_FOR_BUILD values AM_MAKEFLAGS forwards,
the same pattern as util/tradcpp and dtinfo/tools/misc), and links a new
libutil_host.a built in util/ with CC_FOR_BUILD from the same sources as the
target libutil.a (context/fclndir had that already; libutil.a stays target
for the installed parser programs).

Measured: make -C build/mcde-linux/programs/dthelp/parser clean, then
make mcde-linux MCDE_DIRS="programs/dthelp/parser": exit=0, 0 Error lines;
the log shows "ar cru libutil_host.a", "./build < .../hptag.dtd",
"./eltdef ../helptag/help.if"; BDONE and EDONE are written; file(1) says
pass1/build/build, pass1/eltdef/eltdef, pass2/build/build and
pass2/eltdef/eltdef are x86-64 Linux ELF; the generated Makefile carries
"CC = $(CC_FOR_BUILD)" after the configured CC.

Still open for t0230: instant, dtdocbook2infolib and the pass1/2 parser
(dthelp_htag2, run by dtdocbook2sdl) as host tools, then turn docs on in
tools/pkgsrc-cross.mk.conf; man pages follow instant; dtappbuilder's
dtcodegen and tt_type_comp are their own blocks.
2026-11-16 15:06:08 +00:00
lotherkandClaude Sonnet 5.5 797fa173d6 MCDE: dthelptag (the help volume compiler) is built with the docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 11:50:49 +00:00
lotherkandClaude Sonnet 5.5 455f5c2327 MCDE: build tools run on the build host; docs and appbuilder are options (cross build)
mkcatdefs/merge, dfiles/pmaker, the dthelp parsers' context/fclndir are
compiled with CC_FOR_BUILD; sym2num runs with KSH_FOR_BUILD; documentation
and dtappbuilder/ttsnoop (dtcodegen) are options the cross build turns off.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 11:29:16 +00:00
lotherkandClaude Sonnet 5.5 c01da186a7 MCDE: dtksh is out; dterror.ds is a Motif program; dtterm keeps starting the login shell
Konrad, 2026-11-14: "was soll dtksh ueberhaupt sein... einfach ne shell von
CDE? fuck it. schmeiss das komplett raus aus MCDE."  dtksh is CDE's ksh93
with Motif bindings for scripting dialogs; its bundled ksh93 (AT&T ast's
bin/package) compiles and RUNS test programs while it builds, which a cross
build for NetBSD on a Linux host cannot do -- the reason wm/mcde did not
build for days ("cc: not found", userland-2026-11-14g.log).

- programs/dtksh removed (1204 files); not in programs/Makefile.am,
  configure.ac, the recipe (REPLACE_INTERPRETER dtksh, KSH_CC), PLIST (bin,
  lib, man page, six catalogues), msg.C.am (dtksh.cat), AGENTS.md.
- What used dtksh:
  * dterror.src, dtfile_error.cpp, types/error.ds.src: an error dialog with a
    message.  New programs/dterror/dterror.c (about 70 lines of Motif), built
    as dterror.ds: dterror.ds MESSAGE [TITLE [OK-LABEL]], the convention of
    every caller (the data types, dtopen, dtfile ModAttr.c).  dtfile_error
    was only the 'test' entry of dtfile.config and ModAttr.c's fallback; the
    entry is gone and ModAttr.c calls dterror.ds.
  * dthelpgen.dtsh: the "building help" dialog helpgen.c forked; it runs
    silently now (childPid stays -1).
  * dtprintegrate/dtlp.src: the print dialog (1711 lines of dtksh); printing
    is to come back through CUPS (tasksd t0177, t0193).  dtlp's man page is
    out of the doc build and PLIST with it.
  * The data types DTKSH_SCRIPT (*.ds) and DTKSH_CONV (*.dtsh) in dt.dt.src:
    they would have classed dterror.ds as a script.
- dtterm needs no change: lib/DtTerm/TermPrim/TermPrimSubproc.c takes /usr/bin/zsh,
  then the shell of the passwd entry, then /bin/sh, and never started dtksh.
- ksh93 stays as the NetBSD binary for the scripts that say ksh (Xsession).

Measured: make mcde-linux exit=0 (build/logs/mcde-linux-nodtksh-2026-11-14.log),
autogen picked up programs/dterror; dterror.ds under Xvfb shows the error
icon, a two-line message and one button "Understood", and exits 0 on Return.

Not in this commit: the other agents' pending dtfile edits (Search.c,
Navigation.c) and the regenerated distinfo files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 09:12:55 +00:00
lotherkandClaude Opus 5.5 3b2a54c64b ext/src/mcde: import CDE 2.5.3 and pkgsrc wm/cde unchanged (the base of the MCDE fork)
cde-2.5.3.tar.gz, SHA512 a01b413b... as in pkgsrc distinfo; recipe from
pkgsrc 3c1118e94432.  Added with -f: CDE's .gitignore hides 612 files of
the archive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 19:36:46 +00:00