Skip to content

Instantly share code, notes, and snippets.

@jperkin
jperkin / bob-on-omnios.md
Created May 1, 2026 19:53
bob on omnios

Assumes you have rust, gcc14, etc installed via pkg.

Everything will be stored under /data. Assumes everything runs as root (required to run bob anyway).

Install

Install bob (currently requires installing via git due to patched crates)

$ cargo install --git https://github.com/jperkin/bob
diff --git a/actions.c b/actions.c
index 41a0cc4..b373b65 100644
--- a/actions.c
+++ b/actions.c
@@ -653,6 +653,34 @@ pkgin_install(char **pkgargs, int do_inst, int upgrade)
break;
}
}
+ /*
+ * Filter out ACTION_REFRESH packages that were
@jperkin
jperkin / example.md
Last active January 8, 2026 19:05
Example bob scan session

Step 1, install bob:

$ cargo install pkgbob

Step 2, create scan.lua:

options = {
@jperkin
jperkin / pbulk-index.mk.diff
Last active December 23, 2025 19:39
scan index skip unnecessary MULTI_VERSION
diff --git a/mk/pbulk/pbulk-index.mk b/mk/pbulk/pbulk-index.mk
index 5340119107bb..4b7486fdd1b8 100644
--- a/mk/pbulk/pbulk-index.mk
+++ b/mk/pbulk/pbulk-index.mk
@@ -15,40 +15,49 @@
# _PBULK_MULTI_LIST.foo enumerates the supported settings
# _PBULK_MULTI_VAR.foo forces a specific version
# _PBULK_MULTI_DEFAULT.foo contains the default value
+# _PBULK_MULTI_PREFIX.foo contains the PKGNAME prefix

While testing latest bindfs I wanted to see if there were any differences, so:

  • Create macos-trunk-arm64 sandbox
  • Build sysutils/coreutils
  • Time 'bmake' after depends has done.

Results:

original bindfs 1.17.7 --multithreaded

diff --git a/codex-rs/process-hardening/Cargo.toml b/codex-rs/process-hardening/Cargo.toml
index 7294b6e2..54e93c82 100644
--- a/codex-rs/process-hardening/Cargo.toml
+++ b/codex-rs/process-hardening/Cargo.toml
@@ -19,3 +19,6 @@ libc = { workspace = true }
[target.'cfg(target_os = "macos")'.dependencies]
libc = { workspace = true }
+
+[target.'cfg(target_os = "illumos")'.dependencies]
@jperkin
jperkin / marathons-and-ultras.md
Last active October 20, 2025 13:32
Marathons and Ultras
Number What When
1 London Marathon 2016-04
2 Dartmoor Marathon 2017-09
3 Serpent Trail 50k 2018-07
4 Gatliff Marathon 2022-10
5 Hurtwood 50k 2022-11
6 North Downs Ridge 50k 2023-02
7 South West Traverse 45m 2023-04
8 Three Forts Challenge Marathon 2023-04
diff --git a/lang/pear/distinfo b/lang/pear/distinfo
index c64ae88672ca..a568f9a492b7 100644
--- a/lang/pear/distinfo
+++ b/lang/pear/distinfo
@@ -3,5 +3,5 @@ $NetBSD: distinfo,v 1.51 2025/02/08 03:24:29 taca Exp $
BLAKE2s (pearweb_phars-1.10.24.tgz) = 6e6b480f76485871130f8a6974808f96957a8506feaa64e8435c3406d44f5c19
SHA512 (pearweb_phars-1.10.24.tgz) = 64b81b84b815f46cabebd5bba57ce67e86fbec9208e19438997e70dde9fdeaab5f517d2fb92889954f51040627f3188e9a37d86fa796dd51c65d38d804309cc5
Size (pearweb_phars-1.10.24.tgz) = 1205796 bytes
-SHA1 (patch-src_PEAR_Start.php) = 0c5df7164aa1c92063580565781c5af95e8b0867
+SHA1 (patch-src_PEAR_Start.php) = d8038a23e5250e8b2c0a022ba5e8adfd73d1fcd7
#!/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
===> 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