pkgsrc builds on macOS have historically been significantly more unreliable than all other operating systems.
In my most recent builds there were over 400 instances of the error:
pkg_add: no pkg found for '<pkgname>', sorry.
===> Skipping vulnerability checks. | |
WARNING: No /opt/pkg/.pkgdb/pkg-vulnerabilities file found. | |
WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/.pkgdb fetch-pkg-vulnerabilities'. | |
===> Testing for bmake-20240711 | |
cd /Volumes/Work/git/pkgsrc/devel/bmake/work/bmake/unit-tests && MAKEFLAGS= /Volumes/Work/git/pkgsrc/devel/bmake/work/bmake/bmake -r -m / test | |
bmake[2]: "/Volumes/Work/git/pkgsrc/devel/bmake/work/bmake/unit-tests/Makefile" line 512: warning: Skipping broken tests: shell-ksh | |
--- /Volumes/Work/git/pkgsrc/devel/bmake/work/bmake/unit-tests/deptgt-silent-jobs.exp 2024-07-12 12:58:46 | |
+++ deptgt-silent-jobs.out 2024-07-12 12:59:20 | |
@@ -2,6 +2,9 @@ | |
compat: testing 2 |
Userland arguments work for functions from the main object, but not those in shared libraries.
An example from the main smbd
program is ok:
$ dtrace -lvn 'pid$target:smbd:samba_cmdline_init:entry' -p 76224
ID PROVIDER MODULE FUNCTION NAME
96158 pid76224 smbd samba_cmdline_init entry
Probe Description Attributes
--- pkg_io.o --- | |
pkg_io.c:81:20: error: incomplete definition of type 'struct url' | |
if (strcasecmp(url->scheme, SCHEME_HTTP) == 0 || | |
~~~^ | |
./lib.h:342:8: note: forward declaration of 'struct url' | |
struct url *find_best_package(const char *, const char *, int); | |
^ | |
pkg_io.c:82:20: error: incomplete definition of type 'struct url' | |
strcasecmp(url->scheme, SCHEME_FTP) == 0) | |
~~~^ |
botan-1.10.17nb2/install.log:ERROR: /opt/pkg/lib/libiconv.so.2: libiconv-1.17 is not a runtime dependency | |
botan-1.10.17nb2/install.log:ERROR: /opt/pkg/lib/libintl.so.8: gettext-lib-0.22.3 is not a runtime dependency | |
botan-2.19.3nb3/install.log:ERROR: /opt/pkg/lib/libiconv.so.2: libiconv-1.17 is not a runtime dependency | |
botan-2.19.3nb3/install.log:ERROR: /opt/pkg/lib/libintl.so.8: gettext-lib-0.22.3 is not a runtime dependency | |
botan3-3.2.0nb1/install.log:ERROR: /opt/pkg/lib/libiconv.so.2: libiconv-1.17 is not a runtime dependency | |
botan3-3.2.0nb1/install.log:ERROR: /opt/pkg/lib/libintl.so.8: gettext-lib-0.22.3 is not a runtime dependency | |
cgoban-1.9.14/install.log:ERROR: /opt/pkg/lib/libICE.so.6: libICE-1.1.1 is not a runtime dependency | |
cgoban-1.9.14/install.log:ERROR: /opt/pkg/lib/libSM.so.6: libSM-1.2.4 is not a runtime dependency | |
cmark-0.30.3nb1/install.log:ERROR: /opt/pkg/lib/libiconv.so.2: libiconv-1.17 is not a runtime dependency | |
cmark-0.30.3nb1/install.log:ERROR: /opt/pkg/lib/libintl.so.8: gettext-lib-0.2 |
Index: mk/buildlink3/bsd.buildlink3.mk | |
=================================================================== | |
RCS file: /cvsroot/pkgsrc/mk/buildlink3/bsd.buildlink3.mk,v | |
retrieving revision 1.261 | |
diff -u -r1.261 bsd.buildlink3.mk | |
--- mk/buildlink3/bsd.buildlink3.mk 27 Jun 2023 10:40:09 -0000 1.261 | |
+++ mk/buildlink3/bsd.buildlink3.mk 20 Nov 2023 13:02:42 -0000 | |
@@ -226,9 +226,41 @@ | |
. endfor | |
.endfor |
Before:
$ bmake _check-shlibs
=> Checking for missing run-time search paths in nodejs-21.2.0
$
This is wrong. node is linked against gettext-lib and iconv, neither of which are deps, but are pulled in implicitly by others.
#!/bin/sh | |
# | |
# Look for any known-to-hang processes that have been running for longer than | |
# 2 hours, these are not caught by the ulimit -t set by pbulk as they are not | |
# using any CPU time. | |
# | |
# Run from cron and redirect output to a log | |
# | |
if [ "$1" = "-n" ]; then |
diff --git a/tools/codemap.mjs b/tools/codemap.mjs | |
index 985e721c34..1e1d2c55f8 100644 | |
--- a/tools/codemap.mjs | |
+++ b/tools/codemap.mjs | |
@@ -67,7 +67,8 @@ export class CodeMap { | |
constructor(useBigInt=false) { | |
this.useBigInt = useBigInt; | |
- this.kPageSize = useBigInt ? BigInt(kPageSize) : kPageSize; | |
+ this.parseAddr = useBigInt ? BigInt : parseInt; |