X in the base again: build.sh -x -X xsrc, X11_TYPE=native; unpatched packages as NetBSD binaries
- Makefile: -x -X $(XSRC); build-stamp keys on xsrc/ too; PINS and makronix-pins.sh carry xsrc/BASE. - pkgsrc-cross.mk.conf: X11_TYPE=native (pkgsrc uses the sysroot's /usr/X11R7). - packages.list: no pkgsrc X any more (the X sets carry server, drivers, fonts, clients); built here only the forks of ext/ (MCDE, Motif, afpfs-ng) and flex; vim, git, samba, netatalk, sshfs, borg, pulseaudio, pavucontrol, cups, firefox, thunderbird and the games (RetroArch with all libretro cores, ScummVM with BASS and FOTAQ, Tux Racer) are the NetBSD project's binaries (kind fetch). - pkg-binaries.sh: resolve by PKGPATH (samba4 is samba-4.x), an empty queue no longer trips set -u; cd3.sh top.list by PKGPATH as well. - userland.sh: the host tools of the whole dependency closure. - AGENTS.md, GOAL.md: the decision and why (measured: "The X-server can not be started on display :0"). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c1c0713359
commit
175e4d29c4
11 files changed
+144
-49
No files matched your search
@@ -41,7 +41,10 @@ quiet change in the tree.
|
||||
- `src/` is **Makronix's NetBSD tree**, tracked here. It began as the upstream
|
||||
commit in `src/BASE` and is edited directly: no patches, no overlay.
|
||||
`refs/netbsd/src` is upstream trunk, shallow and read-only -- look there,
|
||||
never build from it. X comes from pkgsrc (`X11_TYPE=modular`).
|
||||
never build from it.
|
||||
- `xsrc/` is **Makronix's X tree** (since 2026-11-13 again), tracked the same
|
||||
way: the upstream commit in `xsrc/BASE`, built by `build.sh -x -X xsrc` into
|
||||
the X sets; pkgsrc uses it (`X11_TYPE=native`).
|
||||
- `mobile/` is the Linux tree for the phones: kernel from `refs/linux/7.0.14`,
|
||||
our changes as `mobile/kernel/patches/`. The imported tree is read-only.
|
||||
- `ext/` holds third-party sources Makronix ships and changes (MCDE, afpfs-ng,
|
||||
|
||||
@@ -68,8 +68,8 @@ Makronix kann sich 100 % offline selbst bauen. Dafür trägt das Medium die
|
||||
Quellen mit:
|
||||
|
||||
- NetBSD-`src` über die vorhandenen Source-Sets von NetBSD
|
||||
(`makesrctars`: `src`, `gnusrc`, `syssrc`, `sharesrc`). `xsrc` gibt es
|
||||
nicht mehr: X kommt aus pkgsrc (`X11_TYPE=modular`).
|
||||
(`makesrctars`: `src`, `gnusrc`, `syssrc`, `sharesrc`). Dazu `xsrc` (wieder
|
||||
seit 2026-11-13, siehe "X wieder in der Basis").
|
||||
- Ein eigenes Set (Arbeitsname `msrc`) mit allem, was NetBSD nicht
|
||||
abdeckt: `pkgsrc`, `tools`, `Makefile`, `docs`, die Distfiles und
|
||||
eine Datei mit den Pins.
|
||||
@@ -164,6 +164,18 @@ das offen in `docs/PLATFORMS.md`, und der Beleg kommt von echter Hardware.
|
||||
Das System heißt Makronix 0.99.9, "based on NetBSD". `uname -s` bleibt NetBSD
|
||||
(pkgsrc und `config.guess` entscheiden danach); Patch `0015`.
|
||||
|
||||
## Entschieden: X wieder in der Basis, Pakete als Binärpakete (Konrad, 2026-11-13)
|
||||
|
||||
Überholt die Entscheidung vom 2026-11-09 (unten). `xsrc/` ist wieder im Baum, roh
|
||||
importiert wie `src/` (Upstream-Commit in `xsrc/BASE`), gebaut mit `build.sh -x`
|
||||
in die X-Sets (`xbase`, `xcomp`, `xetc`, `xfont`, `xserver`); pkgsrc nimmt das X
|
||||
der Basis (`X11_TYPE=native`). Grund, gemessen am 2026-11-13: das X aus pkgsrc
|
||||
im `makronix`-Set startete auf keinem Rechner (kein Eingabetreiber, keine
|
||||
Tastaturbelegung, keine Schrift "fixed"; dtlogin: "The X-server can not be
|
||||
started on display :0"), und der eigene Bau des ganzen Xorg hing an Rust. Was
|
||||
Makronix nicht patcht, kommt als Binärpaket des NetBSD-Projekts
|
||||
(`packages.list`, Art `fetch`); selbst gebaut werden die Forks aus `ext/`.
|
||||
|
||||
## Entschieden: X aus pkgsrc statt `xsrc` (Konrad, 2026-11-09)
|
||||
|
||||
`xsrc/` ist gelöscht, `X11_TYPE=modular`. Xorg, die X-Bibliotheken und die
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
|
||||
TOP := $(CURDIR)
|
||||
SRC := $(TOP)/src
|
||||
# X for the base, as NetBSD builds it (build.sh -x -X, src/BUILDING): imported
|
||||
# like src/, its upstream commit in xsrc/BASE (Konrad, 2026-11-13).
|
||||
XSRC := $(TOP)/xsrc
|
||||
OBJ := $(TOP)/build/obj
|
||||
JOBS ?= $(shell nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 2)
|
||||
|
||||
@@ -28,7 +31,7 @@ endif
|
||||
|
||||
BUILD_SH := cd $(SRC) && ./build.sh \
|
||||
-U -u -j $(JOBS) -m $(MACHINE) \
|
||||
-M $(OBJ) -O $(OBJ)
|
||||
-M $(OBJ) -O $(OBJ) -x -X $(XSRC)
|
||||
|
||||
.PHONY: all build release install tools kernel clean-sanity stamp test compress
|
||||
sourcesets isosrc cdtest userland usb mcde-linux mcde-host
|
||||
|
||||
@@ -3,4 +3,5 @@
|
||||
# it was taken from (also src/BASE). refs/netbsd/src is upstream trunk, for
|
||||
# watching, not a build input.
|
||||
src e523df740a5bedc3e9fab13d5758f22a29f2d3c2
|
||||
xsrc 99aacae3060c7409b82101d7e873fc500e602b8b
|
||||
pkgsrc 3c1118e9443240d45c83193ab89f92e0eb20b2ff
|
||||
+76
-26
@@ -22,40 +22,90 @@
|
||||
# belong to Makronix (and only those) for the source set.
|
||||
|
||||
devel/flex
|
||||
editors/vim
|
||||
x11/mcde-motif
|
||||
wm/mcde
|
||||
devel/git-base
|
||||
|
||||
# What Makronix does not patch comes as the NetBSD project's binary package
|
||||
# (Konrad, 2026-11-13: "existing binary packages for userland instead of
|
||||
# building everything"); they install because X is in the base again.
|
||||
editors/vim fetch
|
||||
devel/git-base fetch
|
||||
|
||||
# MCDE's Sharing and Backup (System Settings) and the network in the file
|
||||
# manager: the servers SMB and AFP, the FUSE clients for SFTP and AFP, borg.
|
||||
net/samba4
|
||||
net/netatalk4
|
||||
filesystems/fuse-sshfs
|
||||
net/samba4 fetch
|
||||
net/netatalk4 fetch
|
||||
filesystems/fuse-sshfs fetch
|
||||
filesystems/afpfs-ng
|
||||
sysutils/py-borgbackup
|
||||
sysutils/py-borgbackup fetch
|
||||
|
||||
# X comes from pkgsrc (X11_TYPE=modular): the base has no xsrc any more.
|
||||
x11/modular-xorg-server
|
||||
x11/xinit
|
||||
x11/xterm
|
||||
x11/xauth
|
||||
x11/xrdb
|
||||
x11/xsetroot
|
||||
x11/xmodmap
|
||||
x11/xhost
|
||||
# X is the base's again (xsrc/, build.sh -x, X11_TYPE=native; Konrad,
|
||||
# 2026-11-13): the server, its drivers, xterm, xinit ... are in the X sets
|
||||
# (xbase, xserver, xfont, xetc, xcomp), not here. pkgsrc's modular X had no
|
||||
# input driver, no keymap and no "fixed" font in the set ("The X-server can
|
||||
# not be started on display :0", measured 2026-11-13).
|
||||
|
||||
# The media's repository: the sound daemon and its volume control, printing
|
||||
# (CUPS with its filters): part of a desktop.
|
||||
audio/pulseaudio repo
|
||||
audio/pavucontrol repo
|
||||
print/cups repo
|
||||
print/cups-filters repo
|
||||
audio/pulseaudio fetch
|
||||
audio/pavucontrol fetch
|
||||
print/cups fetch
|
||||
print/cups-filters fetch
|
||||
|
||||
# Paused on 2026-11-10: the NetBSD project's binaries are built with X in the
|
||||
# base (/usr/X11R7, libX11.so.7); X comes from pkgsrc here, so they do not
|
||||
# install ("Please make sure to install the X sets",
|
||||
# build/logs/install-src-bios-install-2026-11-10.log). A line comes back when
|
||||
# the package is built against this tree's X.
|
||||
#www/firefox fetch
|
||||
#mail/thunderbird fetch
|
||||
www/firefox fetch
|
||||
mail/thunderbird fetch
|
||||
|
||||
# Games (Konrad, 2026-11-13): RetroArch with every libretro core the NetBSD
|
||||
# project publishes, ScummVM with its free games, Tux Racer. The NetBSD
|
||||
# project's binaries; for now through the media's repository like the rest of
|
||||
# "fetch" -- a set of their own, makronix-games, is to come.
|
||||
emulators/retroarch fetch
|
||||
emulators/libretro-beetle-ngp fetch
|
||||
emulators/libretro-beetle-pce-fast fetch
|
||||
emulators/libretro-beetle-psx fetch
|
||||
emulators/libretro-beetle-psx-hw fetch
|
||||
emulators/libretro-beetle-saturn fetch
|
||||
emulators/libretro-beetle-sgx fetch
|
||||
emulators/libretro-beetle-vb fetch
|
||||
emulators/libretro-beetle-wswan fetch
|
||||
emulators/libretro-bluemsx fetch
|
||||
emulators/libretro-bsnes-mercury-accuracy fetch
|
||||
emulators/libretro-bsnes-mercury fetch
|
||||
emulators/libretro-bsnes-mercury-performance fetch
|
||||
emulators/libretro-cap32 fetch
|
||||
emulators/libretro-core-info fetch
|
||||
emulators/libretro-desmume fetch
|
||||
emulators/libretro-fbneo fetch
|
||||
emulators/libretro-fceumm fetch
|
||||
emulators/libretro-flycast fetch
|
||||
emulators/libretro-freeintv fetch
|
||||
emulators/libretro-fuse fetch
|
||||
emulators/libretro-gambatte fetch
|
||||
emulators/libretro-gearboy fetch
|
||||
emulators/libretro-gearsystem fetch
|
||||
emulators/libretro-genesis-plus-gx fetch
|
||||
emulators/libretro-mame2010 fetch
|
||||
emulators/libretro-mgba fetch
|
||||
emulators/libretro-nestopia fetch
|
||||
emulators/libretro-np2kai fetch
|
||||
emulators/libretro-o2em fetch
|
||||
emulators/libretro-parallel-n64 fetch
|
||||
emulators/libretro-pcsx-rearmed fetch
|
||||
emulators/libretro-picodrive fetch
|
||||
emulators/libretro-prosystem fetch
|
||||
emulators/libretro-sameboy fetch
|
||||
emulators/libretro-smsplus fetch
|
||||
emulators/libretro-snes9x2005 fetch
|
||||
emulators/libretro-snes9x2010 fetch
|
||||
emulators/libretro-snes9x fetch
|
||||
emulators/libretro-stella fetch
|
||||
emulators/libretro-vba-next fetch
|
||||
emulators/libretro-vecx fetch
|
||||
emulators/libretro-virtualjaguar fetch
|
||||
games/libretro-2048 fetch
|
||||
games/libretro-craft fetch
|
||||
games/libretro-nxengine fetch
|
||||
games/scummvm fetch
|
||||
games/scummvm-bass fetch
|
||||
games/scummvm-fotaq fetch
|
||||
games/tuxracer fetch
|
||||
@@ -32,14 +32,14 @@ mkdir -p "$OBJ"
|
||||
|
||||
key=$(
|
||||
{
|
||||
# what a build reads: src/, the Makefile and STAMPED -- not the
|
||||
# what a build reads: src/, xsrc/, the Makefile and STAMPED -- not the
|
||||
# whole commit. Keyed on HEAD, a commit to ext/, docs/ or
|
||||
# mobile/ during a `make release' (or another agent's edit in
|
||||
# mobile/) made `make iso' refuse a release that was current
|
||||
# (build/logs/x-iso-2026-11-10-mcde.log).
|
||||
git -C "$TOP" rev-parse HEAD:src HEAD:Makefile $(for f in $STAMPED; do echo "HEAD:$f"; done) \
|
||||
git -C "$TOP" rev-parse HEAD:src HEAD:xsrc HEAD:Makefile $(for f in $STAMPED; do echo "HEAD:$f"; done) \
|
||||
2>/dev/null || echo no-head
|
||||
git -C "$TOP" ls-files -m -o --exclude-standard -- src $STAMPED \
|
||||
git -C "$TOP" ls-files -m -o --exclude-standard -- src xsrc $STAMPED \
|
||||
Makefile 2>/dev/null | sort | sha256sum
|
||||
cat "$TOP/tools/pkgsrc-cross.mk.conf" 2>/dev/null
|
||||
} | sha256sum | cut -d' ' -f1
|
||||
|
||||
+11
-5
@@ -65,10 +65,16 @@ fi
|
||||
toplist()
|
||||
{
|
||||
: > "$1"
|
||||
{ "$TOP/tools/pkglist.sh" repo -n; "$TOP/tools/pkglist.sh" fetch -n; } |
|
||||
while read -r n; do
|
||||
ls "$PKGS"/"$n"-[0-9]*.tgz > /dev/null 2>&1 && echo "$n" >> "$1"
|
||||
done
|
||||
# by PKGPATH, through the repository's summary: the name of a package
|
||||
# is not the last part of its path (net/samba4 is samba-4.x)
|
||||
zcat "$PKGS/pkg_summary.gz" | awk -v want="$(
|
||||
{ "$TOP/tools/pkglist.sh" repo; "$TOP/tools/pkglist.sh" fetch; } | tr '\n' ' ')" '
|
||||
BEGIN { n = split(want, w, " "); for (i = 1; i <= n; i++) ok[w[i]] = 1 }
|
||||
/^PKGNAME=/ { name = substr($0, 9) }
|
||||
/^PKGPATH=/ { path = substr($0, 9) }
|
||||
/^$/ { if (path in ok) { sub(/-[0-9][^-]*$/, "", name); print name }
|
||||
name = path = "" }
|
||||
' | sort -u > "$1"
|
||||
[ -s "$1" ] || die "no wanted package is in ${PKGS#$TOP/}"
|
||||
}
|
||||
|
||||
@@ -130,7 +136,7 @@ while [ $i -le "$ncd" ]; do
|
||||
cdno=$((FIRSTCD + i - 1))
|
||||
OUT=$REL/images/Makronix-$ver-amd64-cd$cdno.iso
|
||||
rm -f "$OUT"
|
||||
"$MAKEFS" -t cd9660 -o rockridge,label=MAKRONIX_CD$cdno,publisher=Makronix "$OUT" "$d"
|
||||
"$MAKEFS" -t cd9660 -o rockridge,label=MAKRONIX_INSTALL_CD$cdno,publisher=Makronix "$OUT" "$d"
|
||||
size=$(wc -c < "$OUT" | tr -d ' ')
|
||||
echo "cd3: ${OUT#$TOP/}: package CD $i of $ncd, $(du -h "$OUT" | cut -f1), $size bytes"
|
||||
[ "$size" -le "$LIMIT" ] || echo "cd3: WARNING: $size bytes do not fit on the CD (limit $LIMIT)"
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
# usage: makronix-pins.sh write write PINS
|
||||
# makronix-pins.sh check compare PINS (exit 1 if not)
|
||||
#
|
||||
# src/ is tracked in this repository; its upstream base is src/BASE (the
|
||||
# NetBSD commit the fork started from). pkgsrc is still its own repository.
|
||||
# src/ and xsrc/ are tracked in this repository; their upstream bases are
|
||||
# src/BASE and xsrc/BASE (the NetBSD commits the forks started from). pkgsrc is still its own repository.
|
||||
# PINS goes into the msrc source set, so a system rebuilt from the set knows
|
||||
# what it was built from.
|
||||
|
||||
@@ -24,6 +24,8 @@ emit()
|
||||
{
|
||||
[ -f "$TOP/src/BASE" ] || die "no src/BASE"
|
||||
printf 'src %s\n' "$(sed -e '1q' "$TOP/src/BASE")"
|
||||
[ -f "$TOP/xsrc/BASE" ] || die "no xsrc/BASE"
|
||||
printf 'xsrc %s\n' "$(sed -e '1q' "$TOP/xsrc/BASE")"
|
||||
c=$(git -C "$TOP/pkgsrc" rev-parse HEAD 2>/dev/null) ||
|
||||
die "pkgsrc is not a git repository"
|
||||
printf 'pkgsrc %s\n' "$c"
|
||||
|
||||
+14
-4
@@ -72,12 +72,14 @@ SUMMARY=$OUT/pkg_summary.repo.gz
|
||||
die "cannot fetch $REPO/pkg_summary.gz"
|
||||
|
||||
# one line a package: name <TAB> size <TAB> file <TAB> dependency patterns
|
||||
# <TAB> PKGPATH
|
||||
zcat "$SUMMARY" | awk '
|
||||
/^PKGNAME=/ { n = substr($0, 9); dep = ""; file = ""; size = 0 }
|
||||
/^PKGNAME=/ { n = substr($0, 9); dep = ""; file = ""; size = 0; path = "" }
|
||||
/^PKGPATH=/ { path = substr($0, 9) }
|
||||
/^FILE_NAME=/ { file = substr($0, 11) }
|
||||
/^FILE_SIZE=/ { size = substr($0, 11) }
|
||||
/^DEPENDS=/ { dep = dep substr($0, 9) " " }
|
||||
/^$/ { if (n != "") printf "%s\t%s\t%s\t%s\n", n, size, file, dep; n = "" }
|
||||
/^$/ { if (n != "") printf "%s\t%s\t%s\t%s\t%s\n", n, size, file, dep, path; n = "" }
|
||||
' > "$tmp/index"
|
||||
|
||||
# the base name of a pattern or a package name: up to the first -<digit>, or
|
||||
@@ -97,9 +99,15 @@ best()
|
||||
done | LC_ALL=C sort -V | tail -1
|
||||
}
|
||||
|
||||
# the wanted names
|
||||
# the wanted packages, by PKGPATH: the name of a package is not the last part
|
||||
# of its path (net/samba4 is samba-4.x, sysutils/py-borgbackup py313-...);
|
||||
# the newest package of that path, as a pattern for the closure below
|
||||
: > "$tmp/want"
|
||||
"$TOP/tools/pkglist.sh" fetch -n >> "$tmp/want"
|
||||
for p in $("$TOP/tools/pkglist.sh" fetch); do
|
||||
n=$(awk -F'\t' -v p="$p" '$5 == p { print $1 }' "$tmp/index" |
|
||||
LC_ALL=C sort -V | tail -1)
|
||||
if [ -n "$n" ]; then echo "$n" >> "$tmp/want"; else echo "${p##*/}" >> "$tmp/want"; fi
|
||||
done
|
||||
[ -s "$tmp/want" ] || die "no packages named (packages.list: fetch)"
|
||||
|
||||
# closure
|
||||
@@ -108,6 +116,8 @@ queue=$(cat "$tmp/want")
|
||||
missing=
|
||||
while [ -n "$queue" ]; do
|
||||
set -- $queue
|
||||
# the queue can hold only blanks (a package without dependencies)
|
||||
[ $# -gt 0 ] || break
|
||||
pat=$1
|
||||
shift
|
||||
queue="$*"
|
||||
|
||||
@@ -62,9 +62,10 @@ CROSS_LOCALBASE= /usr/pkg
|
||||
CROSS_SYSCONFBASE= /etc
|
||||
CROSS_VARBASE= /var
|
||||
|
||||
# X comes from pkgsrc (modular), not from an xsrc in the base: the tree has no
|
||||
# xsrc any more. Every X library and the server are built under /usr/pkg.
|
||||
X11_TYPE= modular
|
||||
# X is in the base again (xsrc/, build.sh -x; Konrad, 2026-11-13): pkgsrc uses
|
||||
# the X of the sysroot, /usr/X11R7, as on every NetBSD -- and the NetBSD
|
||||
# project's binary packages, built the same way, install.
|
||||
X11_TYPE= native
|
||||
|
||||
# devel/tradcpp is a TOOL_DEPENDS of modular-xorg-server. pkgsrc's cross mode
|
||||
# builds it with the target compiler, and the host pkg_add refuses the result;
|
||||
|
||||
+9
-2
@@ -151,8 +151,15 @@ PACKAGES= $TOP/build/packages-host
|
||||
TOOLS_PLATFORM.awk?= $TOP/build/pkg/bin/nawk
|
||||
.endif
|
||||
CONF
|
||||
wanted=$(for p in $("$TOP/tools/pkglist.sh" built); do
|
||||
(cd "$PKGSRC/$p" && "$BMAKE" show-var VARNAME=TOOL_DEPENDS 2> /dev/null)
|
||||
# the tools of every package that gets built, not only of the listed
|
||||
# ones: a dependency's TOOL_DEPENDS (cmake, curl for a library of the X
|
||||
# server) is built on the way just the same
|
||||
dirs=$(for p in $("$TOP/tools/pkglist.sh" built); do
|
||||
echo "$p"
|
||||
(cd "$PKGSRC/$p" && "$BMAKE" show-depends-recursive 2> /dev/null)
|
||||
done | sort -u)
|
||||
wanted=$(for d in $dirs; do
|
||||
(cd "$PKGSRC/$d" && "$BMAKE" show-var VARNAME=TOOL_DEPENDS 2> /dev/null)
|
||||
done | tr ' ' '\n' | grep ':\.\./\.\./' | sort -u)
|
||||
hostfailed=
|
||||
for t in $wanted; do
|
||||
|
||||
Reference in new issue
Block a user