11 Commits
Author SHA1 Message Date
lotherkandClaude Sonnet 5.5 beab1997a6 BUILD-CONTRACT: make all install measured on the MacBook, dtlogin is back
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 11:34:04 +00:00
lotherkandClaude Sonnet 5.5 7be4eb53d8 BUILD-CONTRACT: what the native MacBook build measured on 2026-11-24
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 07:39:33 +00:00
lotherk 93aa5bacf2 MCDE: make debian / debian-install -- the desktop as one Debian package
Konrad, 2026-11-22: "i want mcde to support 'make debian' and it'll fully
create and download all required build dependencies and shit and make debian
debian-install would make the deb and all and then even install" and
"inkluding our own motif stuff xyz".

tools/mcde-debian.sh does the three steps in one lock:

  build    installs the build dependencies through apt-get (the ones
           configure.ac stops on and each -dev the tree compiles against),
           builds MCDE from a copy of ext/src/mcde with the path step of
           tools/mcde-host.sh, installs into build/mcde-debian-stage, strips,
           and packs build/mcde-debian/mcde_<version>_<arch>.deb
  install  installs that package
  clean    removes both directories

The package carries its own Motif: libXm, libMrm, libUil, the uil compiler
and the headers live in /usr/mdt, so the desktop runs from its own toolkit
and never from the system's libxm4 (--with-private-motif, as Konrad asked).

Four things cost a run each and are written where they bit:

- dpkg-shlibdeps matches a shlibs line on the SONAME version (libXm.so.4 ->
  4), not on the file version (4.0.4).  With 4.0.4 it ignored the line, found
  the system's libxm4 and put it in Depends.
- -L is the override file dpkg-shlibdeps READS; -T is where it writes the
  substvars it produced.  The first version passed -T and got nothing.
- -x$PKG, or the package depends on itself (every binary links /usr/mdt/lib).
- The version carries the commit, so a rebuild leaves a second .deb beside
  the first and `dpkg -i *.deb' installs both -- the older wins.  One package,
  one file: the old one goes.

debian-mcde/ holds what the package manager cannot do for the desktop: the
control paragraph, a postinst that indexes the fonts MCDE carries under
/usr/mdt/fonts for the X server, and the session entry (Type=XSession,
/usr/share/xsessions/mcde.desktop) -- without it a display manager lists the
host's desktops and not MCDE.

Verified on this host (2026-11-22):
  bmake debian from an empty build/mcde-debian exit=0,
    build/mcde-debian/mcde_0.1.0+git420f66c19e_amd64.deb (42M, 180280 KiB
    installed, 4583 files)
  Depends is free of libxm4/libuil4/libmrm4 and free of mcde itself
  the package carries usr/mdt/lib/libXm.so.4.0.4, libMrm, libUil and the
    uil compiler; /etc/pam.d/dtlogin and dtsession are conffiles
  dpkg -i installs it, postinst runs
  ldd /usr/mdt/bin/dtwm -> /usr/mdt/lib/libXm.so.4 (its own)
  on a private Xvfb: dtsession, dtwm, dtlaunch, dtpad, dtfile and the
    front panel (Applications/Files/Desktop/System/Network) run, no errors
  bmake debian-install exit=0, "mcde 0.1.0+git420f66c19e install ok
    installed", 0 upgraded / 0 newly installed

AGENTS.md and docs/BUILD-CONTRACT.md list mcde-debian.sh among the tools that
need the build lock, next to mcde-host.sh.

t0768
2026-11-22 17:35:17 +00:00
lotherk b207c2c8ad make release builds the whole release: sets, source set, ISO, USB image
Konrad, 2026-11-18: 'make release heisst ein RELEASE, ein RELEASE enthaelt
natuerlich ALLES'.  release now runs build.sh release, then sourcesets, iso
and usb inside its own (re-entrant) lock; iso and usb keep checking the stamp
with -c, so nothing built in the same run is discarded.  cdtest no longer
calls iso a second time.  AGENTS.md and docs/BUILD-CONTRACT.md say so.
2026-11-18 14:21:06 +00:00
lotherk 9bb5f0f6cb docs: tests check the build lock before they start
test.sh, mediacheck.sh, install-simple.sh, install-cgd.sh and mcde-tests.sh
call build-lock.sh --check; an existing build stops them, while make
test/cdtest pass because they hold the lock.
2026-11-16 12:16:16 +00:00
lotherk 09e05087b3 docs: the build lock covers cdtest, the MCDE builds and the tools
AGENTS.md, tools/AGENTS.md and docs/BUILD-CONTRACT.md name the re-entrant
lock, cdtest's whole run, mcde-linux/mcde-host, and the tools that refuse
to write build/obj or releasedir outside the lock (build-lock.sh --held).
2026-11-16 12:11:53 +00:00
lotherk 0fb59ccf63 docs: BUILD-CONTRACT names the gap to the decided targets
The contract describes the decided surface (make release builds everything,
make install installs the makronix set and the packages).  Neither is in the
Makefile yet -- t0051/t0246 and t0056 -- so the file says what is true today
instead of describing a build the tree does not have.
2026-11-16 08:34:11 +00:00
lotherk de446b10fb docs: record Konrad's decisions of 2026-11-16; rewrite the build contract
GOAL.md names the decisions: an own signify key for updates (private key
offline with Konrad, public key in /etc/signify, release signs the SHA512 of
the sets and of the medium's package list); the makronix packages as binary
packages installed with pkg_add, not unregistered files; sshd on with root
and password as before, but the firewall lets port 22 in from the local
network only; make release builds everything in one run (userland,
distribution/release, source set, install DVD, USB image) with test and
compress as separate commands; make install installs base, X, the makronix
set and the packages; BUILD-CONTRACT is rewritten now.

BUILD-CONTRACT.md is rewritten for the current tree: the four entry points,
cross and native as one build, checkflist as the gate, the three sections of
a card, the reviewer's own run, and what "done" means for build, medium,
encryption and source set.  docs/AGENTS.md loses the stale-parts note.
2026-11-16 08:17:27 +00:00
lotherkandClaude Sonnet 5.5 73c9de51a6 licence: the CNCL line in every file Makronix wrote (tools, docs, www, mobile, top level)
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>
2026-11-14 11:50:26 +00:00
lotherk e7bd6d9407 tree: drop xsrc, track src, X from pkgsrc
- 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.
2026-11-09 23:30:07 +00:00
makronix fbe0f4ed1b handoff: measured state of the FDE medium, and the build order that fixes it
The installer cannot read its own CD: cd9660.kmod is 62 hours older than the
kernel inside the same ISO, so the module does not load. build.sh iso-image
only packages releasedir; the kmods come from distribution. Two steps, in this
order, with the timestamp check as the gate.

docs/HANDOFF-2026-11-05.md carries the measurements, the file map and what is
already proven (unencrypted GPT/EFI install boots to login:).
2026-11-05 16:00:21 +00:00