diff --git a/AGENTS.md b/AGENTS.md index 0b6902d23f..a7fb1d92bf 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -45,6 +45,13 @@ comes from elsewhere keeps its own licence: `src/` (NetBSD, BSD), `xsrc/`, or later) and their changes to files that already had a licence. A new file in a fork gets the CNCL line; a changed upstream file keeps the notice it has. +The header line says where a file came from: `#\t$Makronix$` (or +`/*\t$Makronix$\t*/` in C) in a file Makronix wrote, `$NetBSD: ,v +... Exp $` in a file taken from pkgsrc. The unfilled `$NetBSD$` is pkgsrc's +recipe template before the revision is set and belongs to neither -- a recipe +written here takes `$Makronix$`, also when it is modelled on a pkgsrc recipe +(`ext/AGENTS.md`, "Header"; `tools/test-tools.sh` fails if one comes back). + ## What belongs where - `src/` is **Makronix's NetBSD tree**, tracked here. It began as the upstream diff --git a/src/lib/libmxlinux/mx_fgetwln.c b/src/lib/libmxlinux/mx_fgetwln.c index 23ca849157..a3bdcea356 100644 --- a/src/lib/libmxlinux/mx_fgetwln.c +++ b/src/lib/libmxlinux/mx_fgetwln.c @@ -1,3 +1,5 @@ +/* $Makronix$ */ + /* mx_fgetwln.c -- fgetwln(3) for the phone (libmxlinux; moved from rev/), from its manual page * * rev(1) reads its input with NetBSD's fgetwln() (src/usr.bin/rev/rev.c:93), diff --git a/src/lib/libmxlinux/mx_locale.c b/src/lib/libmxlinux/mx_locale.c index 0313ea3292..ce377c7fb3 100644 --- a/src/lib/libmxlinux/mx_locale.c +++ b/src/lib/libmxlinux/mx_locale.c @@ -1,3 +1,5 @@ +/* $Makronix$ */ + /* * mx_locale.c -- NetBSD's LC_C_LOCALE on glibc (libmxlinux). * diff --git a/src/lib/libmxlinux/mx_termios.h b/src/lib/libmxlinux/mx_termios.h index ec19786c16..97537bd3d6 100644 --- a/src/lib/libmxlinux/mx_termios.h +++ b/src/lib/libmxlinux/mx_termios.h @@ -1,3 +1,5 @@ +/* $Makronix$ */ + /* * mx_termios.h -- the NetBSD / names that glibc * does not have, and NetBSD's numeric speeds (cfsetospeed(t, 9600)), for diff --git a/src/lib/libmxlinux/mxlinux.h b/src/lib/libmxlinux/mxlinux.h index 513263f982..5caa03e40a 100644 --- a/src/lib/libmxlinux/mxlinux.h +++ b/src/lib/libmxlinux/mxlinux.h @@ -1,3 +1,5 @@ +/* $Makronix$ */ + /* * mxlinux.h -- what a program of src/ expects from NetBSD's headers and * glibc's do not give, for a Linux target (Makronix/Linux; src/lib/libmxlinux). diff --git a/tools/userland.sh b/tools/userland.sh index d9d317b78c..05a6a83359 100755 --- a/tools/userland.sh +++ b/tools/userland.sh @@ -402,6 +402,10 @@ fetch_binaries() { [ -n "$("$TOP/tools/pkglist.sh" fetch)" ] || return 0 echo "=== binary packages (fetch)" + # a fresh clone has no build/logs: the directory is what this run writes + # into, and redirecting into a directory that does not exist fails before + # pkg-binaries.sh runs (measured 2026-11-24 on a clone, step 2/7) + mkdir -p "$TOP/build/logs" || die "cannot create build/logs" "$TOP/tools/pkg-binaries.sh" -a "$ARCH" fetch \ > "$TOP/build/logs/pkg-binaries-$ARCH.log" 2>&1 || die "tools/pkg-binaries.sh fetch failed (build/logs/pkg-binaries-$ARCH.log)"