From 9570e48bdce06e02f3619b330341d1bd0d2f7009 Mon Sep 17 00:00:00 2001 From: lotherk Date: Sun, 22 Nov 2026 22:13:42 +0000 Subject: [PATCH] ext: pkgsrc recipes for splinter, junction, wikid, skilld, memoryd, tasksd (pins moved); ext-dist.sh archives a submodule from its own repository The recipes live in the project repositories (committed there, not pushed yet). Co-Authored-By: Claude Sonnet 5.5 --- ext/AGENTS.md | 7 ++++--- ext/src/junction | 2 +- ext/src/memoryd | 2 +- ext/src/skilld | 2 +- ext/src/splinter | 2 +- ext/src/tasksd | 2 +- ext/src/wikid | 2 +- tools/ext-dist.sh | 23 +++++++++++++++++++---- 8 files changed, 29 insertions(+), 13 deletions(-) diff --git a/ext/AGENTS.md b/ext/AGENTS.md index 73487a30c0..ebd4ab879a 100644 --- a/ext/AGENTS.md +++ b/ext/AGENTS.md @@ -16,9 +16,10 @@ its recipe in `pkgsrc-/` and becomes `/-` `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. They carry no `pkgsrc/` recipe or `IMPORT` yet (splinter's - recipe was dropped from the tree with the move; `pkgsrc/misc/splinter` is only - an untracked copy). + moves the pin. Each keeps its recipe in its own `pkgsrc/` (misc/, + PKGNAME -0.1) and an `IMPORT`; `tools/ext-sync.sh` copies the recipe + into pkgsrc and `tools/ext-dist.sh` archives the submodule's commit. They are + built when `packages.list` names them (misc/splinter does; the others not yet). - `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`). diff --git a/ext/src/junction b/ext/src/junction index 7c78ce1a7c..0a6373e954 160000 --- a/ext/src/junction +++ b/ext/src/junction @@ -1 +1 @@ -Subproject commit 7c78ce1a7c0be936d7bd8c8732a9907c9429fb19 +Subproject commit 0a6373e9547317be2a0bc88f8241ef790e334997 diff --git a/ext/src/memoryd b/ext/src/memoryd index ec8c00c09a..c724d5668d 160000 --- a/ext/src/memoryd +++ b/ext/src/memoryd @@ -1 +1 @@ -Subproject commit ec8c00c09a4994aa29351343c8b532f4bcd4b599 +Subproject commit c724d5668dbcef1399526578b7c36eda37a2d183 diff --git a/ext/src/skilld b/ext/src/skilld index de8dab44f5..e9608d6d52 160000 --- a/ext/src/skilld +++ b/ext/src/skilld @@ -1 +1 @@ -Subproject commit de8dab44f5e8b0e9226de82c858734b76f503769 +Subproject commit e9608d6d529cd43a835bd57505b2f8de3ee0e1ed diff --git a/ext/src/splinter b/ext/src/splinter index f6211362cb..11c3db109c 160000 --- a/ext/src/splinter +++ b/ext/src/splinter @@ -1 +1 @@ -Subproject commit f6211362cb2d38a7af3c50a007ca92414c40937b +Subproject commit 11c3db109ce495391dc617901edca2652d86f5fc diff --git a/ext/src/tasksd b/ext/src/tasksd index 84d39a19cd..92c0d4f63c 160000 --- a/ext/src/tasksd +++ b/ext/src/tasksd @@ -1 +1 @@ -Subproject commit 84d39a19cd50bd04d2b4f89944ec9ee27672b517 +Subproject commit 92c0d4f63c7fd8938cb32515beee6ef84d266178 diff --git a/ext/src/wikid b/ext/src/wikid index ec3087b43b..d5d772bd68 160000 --- a/ext/src/wikid +++ b/ext/src/wikid @@ -1 +1 @@ -Subproject commit ec3087b43b24b19abaa25c0c4ff7205be2a60624 +Subproject commit d5d772bd68e8b925ae8626284afc0e162ac8c4ea diff --git a/tools/ext-dist.sh b/tools/ext-dist.sh index c6d2a5f839..75d1c054ca 100755 --- a/tools/ext-dist.sh +++ b/tools/ext-dist.sh @@ -5,6 +5,7 @@ # # usage: tools/ext-dist.sh NAME [-r REV] # +# (A git submodule of ext/ is archived from its own repository.) # The same as tools/mcde-dist.sh (which see for why) for any fork # ext/src/NAME with a recipe ext/src/NAME/pkgsrc whose DISTNAME= is NAME-VERSION: # DISTDIR/NAME-VERSION.tar.gz from `git archive' of REV (default HEAD), the @@ -82,10 +83,24 @@ fi mkdir -p "$DISTDIR" OUT=$DISTDIR/$NAME.tar.gz -MTIME=$(git -C "$TOP" log -1 --format=%ct "$REV" -- "ext/src/$SRC" \ - ":(exclude)ext/src/$SRC/pkgsrc" ":(exclude)ext/src/$SRC/pkgsrc-*") -git -C "$TOP" archive --format=tar --mtime="@$MTIME" --prefix="$NAME/" \ - "$REV:ext/src/$SRC" ':(exclude)pkgsrc' ':(exclude)pkgsrc-*' > "$OUT.tar.tmp" +# A project that is a git submodule (ext/AGENTS.md: splinter, junction, wikid, +# ...) is archived from its own repository, at its own root; a tree that is +# part of this repository from ext/src/NAME here. Either way the recipes +# (pkgsrc, pkgsrc-*) are left out, so a commit that only changes a recipe or +# its distinfo does not change the archive. +if [ -e "$TOP/ext/src/$SRC/.git" ]; then + G="$TOP/ext/src/$SRC" + TREE=$REV + PFX=. +else + G=$TOP + TREE=$REV:ext/src/$SRC + PFX=ext/src/$SRC +fi +MTIME=$(git -C "$G" log -1 --format=%ct "$REV" -- "$PFX" \ + ":(exclude)$PFX/pkgsrc" ":(exclude)$PFX/pkgsrc-*") +git -C "$G" archive --format=tar --mtime="@$MTIME" --prefix="$NAME/" \ + "$TREE" ':(exclude)pkgsrc' ':(exclude)pkgsrc-*' > "$OUT.tar.tmp" gzip -n -9 < "$OUT.tar.tmp" > "$OUT.tmp" rm -f "$OUT.tar.tmp" mv "$OUT.tmp" "$OUT"