Files
lotherk 1529fce6db $Makronix$ in the files that carry it, and afpfs-ng's archive back
Two things, both found by reading the whole list of files that call
themselves pkgsrc's.

1. The header.  `ext/AGENTS.md` now says what the rule is: a file Makronix
   wrote carries `#\t$Makronix$' in its first lines, a file taken from pkgsrc
   keeps pkgsrc's `$NetBSD: <file>,v <rev> ... Exp $' (the revision says where
   it came from), and the unfilled `$NetBSD$' is neither -- it is pkgsrc's
   recipe skeleton before the revision is set.  Three files carried it:

   - ext/src/mcde/pkgsrc-motif/buildlink3.mk, ours throughout
     (MCDE_MOTIF_BUILDLINK3_MK, BUILDLINK_TREE mcde-motif, PKGSRCDIR
     ../../x11/mcde-motif) -- committed there, pushed to kropa.
   - PINS: makronix-pins.sh write now writes the header with it, check
     still matches.
   - distfiles.lst: cmd_list writes three `#' lines; every reader goes
     through list_lines() (verify, fetch, stage, the superset merge) and
     install-simple.sh skips them, so a comment cannot be read as a package
     path.  afpfs-ng keeps `$NetBSD: Makefile,v ... wiz Exp $' in its recipe:
     that file is upstream's, unchanged (diff against
     pkgsrc/filesystems/afpfs-ng is empty), not the template.

2. afpfs-ng's tarball was missing from distfiles.lst.  gen_list dropped every
   recipe under ext/ -- written when all of them build from their tree -- but
   afpfs-ng still builds from afpfs-ng-0.8.1.tar.gz, so the source set
   carried a recipe whose distfile it did not.  The filter now drops only a
   recipe with `DISTFILES= # empty' (the eight that build from ext/src/<name>)
   and keeps the one with an archive.  distfiles.lst: 2088 archives.

   install-simple.sh counted `stage's fork lines on top of distfiles.lst; that
   command is gone (nothing is fetched or staged for a tree recipe), the
   archive now counts in distfiles.lst itself.

Tested: tools/test-tools.sh 42 ok, 0 bad (six cases added: the header rule
over ext/src/*/pkgsrc*, distfiles.lst's header, four fields a line, afpfs-ng
present).  makronix-pins.sh check matches; makronix-distfiles.sh list, verify,
check, stage all green; stage carries distfiles/afpfs-ng-0.8.1.tar.gz and none
of the tree recipes; bmake -C pkgsrc/wm/mcde -V MOTIFLIB still resolves through
mcde-motif's buildlink3.mk.
2026-11-24 03:19:19 +00:00

3.5 KiB

ext/ -- third-party sources that Makronix ships and changes

What it is for

ext/src/<name>/ is an upstream tree Makronix owns as a fork. Its pkgsrc recipe is ext/src/<name>/pkgsrc/; IMPORT records pkgsrc path, version, archive, hash, signature and licence. A second package from the same tree has its recipe in pkgsrc-<part>/ and becomes <category>/<name>-<part> (tools/ext-sync.sh): ext/src/mcde/pkgsrc-motif is x11/mcde-motif.

What is in it

  • src/mcde/ -- MCDE, the fork of CDE 2.5.3 (src/mcde/AGENTS.md). It is a submodule of git.kropa.tech/hiddenbox/mcde since 2026-11-22; the parent records the commit, the history is split out of this repository (git subtree split -P ext/src/mcde, 404 commits, head 3d79fc80) and complete in the submodule. A change to MCDE is a commit in that repository and then a gitlink bump here -- git -C ext/src/mcde commit, git add ext/src/mcde.
  • src/afpfs-ng/ -- AFP client, with recipe pkgsrc/.
  • src/splinter/, src/junction/, src/wikid/, src/skilld/, src/memoryd/, src/tasksd/ -- Makronix's own projects (git.kropa.tech/hiddenbox), each its own repository, here as a git submodule (.gitmodules; git submodule update --init). Changes are committed in the project's repository, and this tree moves the pin. Each keeps its recipe in its own pkgsrc/ (misc/, PKGNAME -0.1) and an IMPORT; the recipe builds from this tree itself (DISTFILES= # empty, do-extract copies ext/src/<name> into WRKSRC), so there is no archive and no distinfo. tools/ext-sync.sh makes the recipe visible inside pkgsrc: a mirror of symlinks to these files. They are built when packages.list names them: misc/splinter is in the set, the other five are repo (the media's repository).
  • src/glibc/ -- glibc 2.44 for Makronix/Linux; no pkgsrc/: its recipe is mx/, a NetBSD-style Makefile run by the Makronix/Linux build (LFS-style, from upstream; mobile/docs/NETBSD-USERLAND.md).

What may be changed

  • The forks, as ordinary commits. Nothing has to be regenerated afterwards: the recipe builds the tree as it is, so a commit is what the next build compiles.
  • An update to a newer upstream is a merge onto the fork with IMPORT renewed, never a silent overwrite.

Header

A file Makronix wrote carries $Makronix$ in its first three lines: #\t$Makronix$ in a shell script, Makefile or PLIST, /*\t$Makronix$\t*/ in C. A file taken from pkgsrc keeps pkgsrc's $NetBSD: <file>,v <rev> ... Exp $ -- the revision says where it came from and is not a template to fill in.

The unfilled $NetBSD$ is neither: it is what pkgsrc's recipe skeleton has before the revision is set, it means nothing in this tree, and it reads as if the file were pkgsrc's when it is ours (ext/src/mcde/pkgsrc-motif/ buildlink3.mk carried it until 2026-11-23; tools/test-tools.sh fails if one comes back). A recipe written here -- Makefile, options.mk, buildlink3.mk, PLIST -- takes $Makronix$; that includes the files modelled on a pkgsrc recipe, because the content is ours.

What must not be touched

  • The first commit of a tree is the upstream archive and recipe, unchanged (signature checked and named in IMPORT), so every later change is a visible diff. Import with git add -f: upstream .gitignore files hide files that are in the archive.
  • Nothing here is built by build.sh; pkgsrc builds it from the recipe.