Skip to content

Instantly share code, notes, and snippets.

@jperkin
Last active January 8, 2026 19:05
Show Gist options
  • Select an option

  • Save jperkin/c4e461df22eadbdb0fe982944b0b7103 to your computer and use it in GitHub Desktop.

Select an option

Save jperkin/c4e461df22eadbdb0fe982944b0b7103 to your computer and use it in GitHub Desktop.
Example bob scan session

Step 1, install bob:

$ cargo install pkgbob

Step 2, create scan.lua:

options = {
    scan_threads = 8,
    strict_scan = true,
}

pkgsrc = {
    -- You will obviously need to change these for your environment
    basedir = "/work/cvs/pkgsrc",
    logdir = "./logs",
    make = "/opt/pkg/bin/bmake",
    scanenv = {
        NATIVE_OPSYS = "Darwin",
        NATIVE_OPSYS_VERSION = "150703",
        NATIVE_OS_VERSION = "24.6.0",
    },
}

Step 3, perform the scan:

$ bob -c scan.lua scan
Discovering packages...
Discovered 20204 package paths
Scanning packages...
Scanned 20204 in 4m 2s (20204 succeeded, 0 cached, 0 failed, 0 skipped)
Resolving dependencies...
Error: Unresolved dependencies:
  No match found for php85-imap>=8.5.0 in php85-fengoffice-3.11.8.0

If you find that your scans are too slow due to excessive forks, you'll probably want a varcache file generated by https://github.com/TritonDataCenter/pkgsrc-extra/blob/main/varcache/Makefile plus any extra MAKEFLAGS added to your mk.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment