packages.list: the kind bin (a NetBSD binary that is also installed into the sysroot); userland.sh puts only those there (t0205)
vim, git-base, sysupgrade (the base set) and flex, ksh93, tcl (build needs) are bin; samba4, netatalk4, cups, firefox ... stay on the media only. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
26c5e01021
commit
51c89ff23a
3 files changed
+25
-12
No files matched your search
+10
-6
@@ -10,6 +10,10 @@
|
||||
# PKGPATH fetch the NetBSD project's binary package, taken instead of a
|
||||
# build (tools/pkg-binaries.sh): hours of compiling for
|
||||
# nothing a patch of ours changes
|
||||
# PKGPATH bin like fetch, and also installed into the sysroot: the base
|
||||
# set's own (vim, git, sysupgrade), and what a package built
|
||||
# here needs to build (flex, ksh93, tcl); the "fetch" ones
|
||||
# are only on the media, and sysinst installs them (t0205)
|
||||
#
|
||||
# ... @ARCH a third word limits a line to one platform (@aarch64:
|
||||
# a package only the phone needs); ARCH in the environment
|
||||
@@ -29,27 +33,27 @@
|
||||
# the NetBSD project's binary is taken instead (t0172 for the same decision on
|
||||
# ksh93). The flex TOOL that other packages use comes from build/pkg and is
|
||||
# unaffected.
|
||||
devel/flex fetch
|
||||
devel/flex bin
|
||||
x11/mcde-motif
|
||||
wm/mcde
|
||||
|
||||
# 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
|
||||
editors/vim bin
|
||||
devel/git-base bin
|
||||
# The upgrade of the base system (GOAL.md "Upgrade mit einem Klick", t0055):
|
||||
# sets, kernel, etcupdate and postinstall are sysupgrade's job, unpatched, as the
|
||||
# NetBSD project builds it (docs/reference/sysupgrade.txt). shtk comes with it.
|
||||
sysutils/sysupgrade fetch
|
||||
sysutils/sysupgrade bin
|
||||
# MCDE's dtksh: ksh93 builds through its own bin/package, which demands the
|
||||
# compiler as an absolute path and refuses to cross-build (t0172).
|
||||
shells/ksh93 fetch
|
||||
shells/ksh93 bin
|
||||
# MCDE's dtdocbook and the --with-tcl of its configure: lang/tcl's own
|
||||
# configure takes the cross build for Linux and links -ldl, which NetBSD does
|
||||
# not have (dlopen is in libc): "cannot find -ldl" (build/logs/
|
||||
# userland-2026-11-14f.log). The NetBSD project's tcl, unpatched.
|
||||
lang/tcl fetch
|
||||
lang/tcl bin
|
||||
|
||||
# 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.
|
||||
|
||||
+11
-5
@@ -3,11 +3,15 @@
|
||||
#
|
||||
# pkglist.sh -- the packages of packages.list, by kind
|
||||
#
|
||||
# usage: pkglist.sh set|repo|fetch|games|built|all [-n]
|
||||
# usage: pkglist.sh set|repo|fetch|bin|sysroot|games|built|all [-n]
|
||||
#
|
||||
# set the packages of the "makronix" set (no second word)
|
||||
# repo the packages of the media's repository ("repo")
|
||||
# fetch the NetBSD project's binaries, taken not built ("fetch")
|
||||
# fetch the NetBSD project's binaries, taken not built ("fetch" and "bin")
|
||||
# bin those of them that are also installed into the sysroot ("bin"): the
|
||||
# base set's (vim, git, sysupgrade) and what a package built here needs
|
||||
# (flex, ksh93, tcl); the others are only on the media (t0205)
|
||||
# sysroot the same as bin: what tools/userland.sh puts into the sysroot
|
||||
# games the NetBSD project's binaries of the games group ("games"):
|
||||
# Makronix Games, which sysinst offers on its own (extras.c)
|
||||
# built set and repo: what is built here
|
||||
@@ -24,8 +28,8 @@ set -eu
|
||||
TOP=$(cd "$(dirname "$0")/.." && pwd)
|
||||
KIND=${1:-}
|
||||
case $KIND in
|
||||
set|repo|fetch|games|built|all) ;;
|
||||
*) echo "usage: ${0##*/} set|repo|fetch|games|built|all [-n]" >&2; exit 2 ;;
|
||||
set|repo|fetch|bin|sysroot|games|built|all) ;;
|
||||
*) echo "usage: ${0##*/} set|repo|fetch|bin|sysroot|games|built|all [-n]" >&2; exit 2 ;;
|
||||
esac
|
||||
|
||||
awk -v kind="$KIND" -v names="${2:-}" -v arch="${ARCH:-amd64}" '
|
||||
@@ -33,7 +37,7 @@ awk -v kind="$KIND" -v names="${2:-}" -v arch="${ARCH:-amd64}" '
|
||||
{
|
||||
if ($3 ~ /^@/ && arch != "all" && substr($3, 2) != arch) next
|
||||
k = ($2 == "") ? "set" : $2
|
||||
if (k != "set" && k != "repo" && k != "fetch" && k != "games") {
|
||||
if (k != "set" && k != "repo" && k != "fetch" && k != "bin" && k != "games") {
|
||||
print "pkglist: " $1 ": unknown kind \"" k "\"" > "/dev/stderr"
|
||||
bad = 1
|
||||
next
|
||||
@@ -43,6 +47,8 @@ awk -v kind="$KIND" -v names="${2:-}" -v arch="${ARCH:-amd64}" '
|
||||
# building their dependency trees for host tools (the games pull
|
||||
# librsvg, rust, boost) was a mistake until 2026-11-13
|
||||
if (kind == "all" || kind == k ||
|
||||
(kind == "fetch" && k == "bin") ||
|
||||
(kind == "sysroot" && k == "bin") ||
|
||||
(kind == "built" && (k == "set" || k == "repo"))) {
|
||||
p = $1
|
||||
if (names == "-n") sub(".*/", "", p)
|
||||
|
||||
+4
-1
@@ -239,7 +239,10 @@ fetch_binaries()
|
||||
dest=$TOP/build/obj/destdir.$ARCH/usr/pkg
|
||||
db=$dest/pkgdb
|
||||
fi
|
||||
for n in $("$TOP/tools/pkglist.sh" fetch -n); do
|
||||
# only the kind "bin": the others are on the media for sysinst, and pkg_add into
|
||||
# the sysroot refused most of them anyway (a library it could not find, a name
|
||||
# that is not the last part of the PKGPATH) -- noise in every run (t0205)
|
||||
for n in $("$TOP/tools/pkglist.sh" sysroot -n); do
|
||||
if "$TOP/build/pkg/sbin/pkg_info" -K "$db" -e "$n" > /dev/null 2>&1; then
|
||||
continue
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user