packages.list: lang/perl5 is a bin, the tools pkgsrc builds need it

perl is a run-time dependency of devel/automake (USE_TOOLS=perl:run), and
NetBSD has no perl in the base system: the chroot build stopped at
"pkg_add: no pkg found for 'perl>=5.0'" (build/logs/release-2026-11-23-mbp1.log:5212).
Cross builds passed only because a Linux host has /usr/bin/perl in PATH.

fetch_binaries looked a package up by the last part of its PKGPATH (lang/perl5
-> perl5); the package is perl-5.44.0nb2.  It now reads the name from the
repository summary, which carries PKGPATH, and falls back to the path.

distfiles.lst regenerated as the union of the recipes and the earlier list:
2086 archives, 0 dropped, 10 added.  tools/makronix-distfiles.sh verify: matches.
This commit is contained in:
lotherk committed 2026-11-23 18:07:26 +00:00
1 parent e3065ad823
commit 38dd57df28
2 files changed
+22 -1

No files matched your search

+8
View File
@@ -63,6 +63,14 @@ shells/ksh93 bin
# not have (dlopen is in libc): "cannot find -ldl" (build/logs/
# userland-2026-11-14f.log). The NetBSD project's tcl, unpatched.
lang/tcl bin
# pkgsrc's own build tools want perl (devel/automake: USE_TOOLS=perl:run,
# devel/gmake: perl:test). NetBSD has no perl in the base system and no
# TOOLS_PLATFORM.perl, so pkgsrc must build lang/perl5 -- and then an
# automake built here cannot be installed: "pkg_add: no pkg found for
# 'perl>=5.0'" (build/logs/release-2026-11-23-mbp1.log:5212). Perl has to be
# in the sysroot before the tools that need it, and on the target: a user
# rebuilding a package with pkgsrc needs it too.
lang/perl5 bin
# dtchat (MCDE): libopus carries the calls, libretls (libtls) the IRC adapter's TLS;
# configure.ac stops without them, and they must stay in the sysroot: shared
# libraries of a program in the set. The NetBSD project's binaries, unpatched.
+14 -1
View File
@@ -423,7 +423,20 @@ fetch_binaries()
# 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
for pp in $("$TOP/tools/pkglist.sh" sysroot); do
# the name of a package is not the last part of its PKGPATH
# (lang/perl5 is perl-5.x, sysutils/py-borgbackup py313-...):
# ask the repository summary the fetch just wrote, and fall back
# to the path when it has no entry
n=
for sum in "$repo/pkg_summary.gz" "$TOP/build/packages/$ARCH/pkg_summary.repo.gz"; do
[ -s "$sum" ] || continue
n=$(zcat "$sum" 2>/dev/null |
awk -v p="$pp" '/^PKGNAME=/{n = substr($0, 9)}
/^PKGPATH=/{ if (substr($0, 9) == p && n != "") { print n; exit } }')
[ -n "$n" ] && break
done
[ -n "$n" ] || n=${pp##*/}
if "$TOP/build/pkg/sbin/pkg_info" -K "$db" -e "$n" > /dev/null 2>&1; then
continue
fi