---
title: "Waiting on Packages: Inside the FreeBSD Build Backlog"
author: "Morgan Davis"
pubDate: "Sat, 21 Nov 2026 21:28:00 +0000"
updated: "Tue, 01 Dec 2026 20:58:04 +0000"
description: "A look at FreeBSD’s binary package pipeline, where its delays come from, and what it would take to close the gap between an upstream patch and an installable pa..."
link: "https://dev.morgandavis.net/post/why-freebsd-packages-take-so-long"
image: "/content/uploads/2026/11/why-freebsd-packages-take-so-long-1.webp"
categories: ["Code", "FreeBSD", "Linux", "Security", "Tech"]
urlNext: "/post/emissivity.md"
---

## ... and What It Would Actually Take to Fix It

[![A wide shot of a cavernous warehouse filled with towering shelves of brown cardboard boxes, each printed with a muted red FreeBSD horned-sphere logo. In the foreground on a worn wooden workbench sits a single battered cardboard box with crushed corners and a torn side patched together with strips of packing tape.](/content/uploads/2026/11/why-freebsd-packages-take-so-long-1.webp)](/content/uploads/2026/11/why-freebsd-packages-take-so-long-1.webp "Waiting on Packages: Inside the FreeBSD Build Backlog")

*A look at FreeBSD's binary package pipeline, where its delays come from, and what it would take to close the gap between an upstream patch and an installable package. Shaped by conversations with FreeBSD developers on the project's Discord and with BSD users on Mastodon.*

## The Problem

A critical fix for nginx or PHP lands upstream. The port is updated within hours. The binary package doesn't show up for days, because the repository is only republished when a bulk build finishes. Each run covers the entire ports tree: it reuses packages that haven't changed, rebuilds those that have along with everything that depends on them (sometimes a huge port like Chromium, often thousands of small packages after a deep dependency moves), and then publishes the complete set to every mirror. A server operator who needs one package waits on a process sized for the whole repository, including software they'll never install.

The gap between "patch exists" and "`pkg upgrade` installs it" is what these questions set out to explain.

## The Questions

**1. How does the `pkg` pipeline work? Automated or ad-hoc?**
Automated. Each builder runs `poudriere bulk -a` in a loop for its assigned combinations of architecture, FreeBSD version, and `latest`/`quarterly`: when one run finishes, the next starts from the ports tree as it stands at that moment. No one launches runs by hand, and nothing jumps the queue.

That sets the worst case. A fix committed just after a run starts misses that run, waits for it to finish, then waits for the whole next run, then for publishing (below). The time you wait is roughly two runs plus distribution, whatever the fix is.

**2. Is there a vetting process before release?**
No per-package human review. Vetting is code review at commit time plus a successful build. A port that fails to build isn't published, and neither is anything that depends on it. At the set level, a threshold check (roughly "at least X% built") keeps a badly broken run from going out. Past that, publishing is automatic. portmgr can hold a set, but isn't a routine step in the process.

Publishing is slow too. According to a FreeBSD developer, it can take 10-15 hours, because the complete new set has to reach every mirror before the cluster flips a symlink so all mirrors start serving the new set at once. That keeps the mirrors consistent, but it adds most of a day to every release, security fixes included.

**3. Is there an expedited path for critical security fixes?**
No binary hotfix lane. Security fixes hit the ports tree quickly, but the package waits for the next bulk run to finish and publish. `quarterly` adds a step: a committer has to merge the fix into the quarterly branch (an MFH). Security fixes fall under blanket approval, so no sign-off is needed and the merge can happen the same day, but someone still has to do it, and the package then waits for a quarterly run. Most production servers track `quarterly`. The official advice for urgent cases is to build locally.

**4. Would more clusters with staggered start times fix it?**
They'd lower the average wait, not the worst case. The constraint is build duration and dependency depth, not when a run starts. More clusters improve average freshness; they don't create a hotfix path.

**5. What would an "as fresh as possible" design look like?**
A dependency-driven distributed build graph: a coordinator dispatches jobs in dependency order and publishes results as soon as a consistent set is ready, instead of publishing everything at the end. "Consistent" is the hard part. Publishing a single package the moment it finishes can break packages that were built against the old version of a dependency and haven't been rebuilt yet. The unit of publication has to be a dependency-closed set: a changed package plus every reverse dependency that needs rebuilding with it.

Poudriere already computes that set at the start of every run (see the log in Q6). What's missing is publishing it on its own instead of waiting for the rest of the tree.

The alternative is to build a new repository alongside the old one and let users switch when the part they care about is complete. That keeps everything consistent, but it costs more storage and builder time, and you still wait for the last package you need in the new set. That's an argument for tiered repositories (see below): for a server-only tier, "the last package you need" arrives much sooner.

The longest single builds are Chromium, Electron, and qt6-webengine: hours on fast amd64 hardware, considerably longer on ARM64.

**6. Isn't the real problem that the whole tree rebuilds when one thing changes? Could `pkg` offer independent pools?**
Not quite. Every bulk run covers the entire tree, but it's incremental: unchanged packages are reused, and only changed ports and their reverse dependencies are rebuilt. Poudriere sorts this out at the start of each run. Here's the opening of a small build by Dan Langille ([FreshPorts](https://freshports.org)), asked for just two ports:

```
[00:00:07] Deleting zstd-1.5.7_2.pkg: new version: 1.5.7_3
[00:00:07] Deleting autoconf-2.73_1.pkg: missing dependency: m4-1.4.21,1
[00:00:08] Deleting help2man-1.49.3_1.pkg: missing dependency: gettext-runtime-1.0_1
[00:00:08] Deleting libidn2-2.3.8.pkg: missing dependency: libunistring-1.4.2
[00:00:08] Deleting libpsl-0.23.3.pkg: missing dependency: libidn2-2.3.8
```

"New version" means the port itself changed. "Missing dependency" means something the package was built against has changed, so it's thrown out and rebuilt too, even though its own port didn't change. The last two lines show the cascade: libunistring changed, so libidn2 goes, so libpsl goes. Many runs rebuild a small fraction of the tree this way. When a widely used dependency changes, though, the rebuild set can reach tens of thousands of packages, most small and quick on their own but slow in aggregate.

The structural problem is publication, not rebuild scope. The repository is published atomically at the end of each run, so a one-line nginx fix waits on everything else in that run, then on the full-set mirror sync. `pkg` already supports multiple repositories with priorities, so independent pools are technically possible, but the official repository is still monolithic (`latest` / `quarterly`). Tiered repositories are a known gap, not a feature.

**7. If only a dependency changed, why not just relink?**
Because in general it isn't safe. A library's headers are compiled into its consumers, so a changed header means changed object code, and relinking stale objects against a new library can produce a binary that is silently wrong. Poudriere avoids the question by building every package from pristine source in a fresh jail, which guarantees correctness.

The cost shows up on the largest ports. When a library changes without changing anything Chromium compiles against, only the link step would produce a different result, yet Chromium still goes through a full extract, configure, compile, and link. Build systems that hash every step's inputs and cache its outputs (Bazel, Nix) can prove when only the link needs to rerun. Adopting that model would mean rebuilding the ports infrastructure, not tuning it.

**8. Isn't building one port locally a can of worms?**
There's real risk: shared-library bumps, file conflicts. But `pkg` conflict detection fails loudly rather than silently, and building in a clean Poudriere jail instead of the live system removes most of the mess. It trades consistency for speed. It isn't a safe default.

**9. With RCE patches landing constantly, isn't DIY the wrong answer? Shouldn't one build serve everyone?**
Yes. But FreeBSD doesn't currently have the resources to run that shared service. DIY is a fallback under constraint, not a design goal.

**10. How fast is an nginx fix in the apt world, and what does Ubuntu do differently?**
Typically one to a few days. The structural differences: a staffed security team, a separate security pocket with unattended upgrades on by default, and a backport model that patches the shipped version in place instead of moving to a new upstream release and its dependency cascade.

**11. Isn't "have a dedicated security team" just an industry-wide problem?**
Partly. Fast, reliable patching across all ecosystems is unsolved, particularly for statically linked Go and Rust software where rebuild cascades are opaque. But FreeBSD's specific failure mode, server packages waiting on desktop builds in a monolithic repo, has known remedies that other projects already use.

**12. Could upstreams be required to patch several back versions so graft-style rebuilds work on older build sets?**
That isn't how open source works. Most projects maintain one active branch, and grafting depends on ABI compatibility across versions that upstreams don't promise. FreeBSD doesn't support arbitrary historical build sets either. The workable version is distributor-level backporting, which Debian and Ubuntu already do.

## Two Recent Cases

**PHP2Shell, October 2026.** CVE-2026-109618 and CVE-2026-109619 (CVSS 4.0: 9.2) allowed unauthenticated RCE. PHP shipped fixes on October 21; CISA added both to its Known Exploited Vulnerabilities catalog on October 26. On the FreeBSD forums, users waited for updated packages, saw them reach `latest` before `quarterly`, and in several cases built PHP from ports rather than switch branches on a production server.

A second gap showed up as well: some users reported that the vulnerable packages weren't flagged by the daily `periodic` security run. That check is `pkg audit` against VuXML, so a missing flag means the VuXML entry hadn't been added yet, which is a separate problem from the build pipeline with its own fix.

**nginx, November 2026.** On November 18, nginx 1.30.7 (stable) and 1.31.9 (mainline) fixed nine and ten vulnerabilities respectively, including HTTP/2 memory corruption and use-after-free bugs. The FreeBSD port maintainer committed the `www/nginx` update to 1.30.7 the same day (16:32 UTC), reportedly within about an hour of the upstream release. Ubuntu published USN-9159-1 the next morning.

The fix reached the quarterly branch four hours later (20:32 UTC), with no approval needed. People did their part within the same afternoon.

The packages didn't keep up. Three days later, on November 21, FreshPorts still listed 1.30.6 for the amd64 `latest` packages on FreeBSD 14 and 15, and for every `quarterly` package. By November 25, amd64 `quarterly` had 1.30.7, but aarch64 `quarterly` on both 14 and 15 was still on 1.30.6, a week after the fix was committed. Nothing was waiting on a person. The delay came entirely from the pipeline: finish the run in progress, run again, sync every mirror, and on arm64, share a builder.

On my own FreeBSD 15.1 amd64 server tracking `latest`, the fastest branch on the best-equipped architecture, nothing was available on November 24. The upgrade showed up on November 25:

```
nginx: 1.30.6_18,3 -> 1.30.7,3 [FreeBSD] (vulnerable!)
WARNING: 1 package(s) have known vulnerabilities
```

That's about a week from port commit to installable package. The version string also gives an estimate of the run itself: the package is `1.30.7,3`, not the `1.30.7_1,3` revision bump committed on November 19, so the set was built from a tree taken within a day of the fix and took roughly six days to build and publish.

### Vulnerable on arrival

Note the flag. Here's `pkg audit` right after the upgrade:

```
nginx-1.30.7,3 is vulnerable:
  nginx -- excessive CPU usage with TLS 1.3 early data
  CVE: CVE-2026-132779
  WWW: https://vuxml.FreeBSD.org/freebsd/cee7773d-e7dd-11f1-9b74-3497f65b111b.html
```

nginx 1.30.8 fixed that bug, and the port was updated on November 24. The VuXML entry went in at the same time, so `pkg audit` knew about the new problem immediately. The package that fixes it is now at the back of the same queue 1.30.7 just spent a week in.

To be fair about severity: this one is a denial of service (a worker spinning on CPU), not the HTTP/2 code-execution bugs 1.30.7 fixed, so installing 1.30.7 was still the right move. But the pattern matters more than this particular CVE. When upstream fixes arrive faster than one pipeline cycle, a server tracking official packages is never current. It goes from one known vulnerability to the next, and the vulnerability database tells it so faster than the package pipeline can fix it.

This is the real cost of the delay. If packages take a week to arrive and fixes come faster than once a week, you never catch up. nginx alone had security updates in ports on September 15, October 15, November 18, and November 24. The last gap was six days, shorter than the pipeline. A real server runs more than nginx: add PHP, OpenSSL, curl, and Python, and the combined rate of fixes means a server tracking official packages is practically never fully patched. It isn't a question of waiting a while for each fix. It's a permanent state of being behind.

Faster full builds would shrink the gap, but not close it: even an instant build leaves the run already in progress and the 10-15 hour mirror sync. Staying current takes a delivery path faster than upstream's release rate, which means hours, not days. That is what a security lane is for.

## The Other Delay: Delivery

There's a second complaint about FreeBSD packages that often gets mixed up with this one: how slowly the packages download once they exist.

Jason Tubnor, a co-host of the BSD Now podcast who manages a fleet of machines from Australia, recently compared the two BSDs. On DragonFly, `pkg update`, `pkg upgrade` and `pkg install` fill the pipe; on FreeBSD, the metadata and package downloads are, in his words, "like a dripping tap." Installing is just as fast on both. Downloading isn't.

The difference is in how the packages are distributed. DragonFly's default repository uses a mirror-selection service that gives each client a list of nearby community mirrors: universities, user groups, ISPs. FreeBSD serves `pkg` only from mirrors run by its cluster admins: `pkg -d update` shows requests for `pkg.FreeBSD.org` going to `pkgmir.geo.freebsd.org`, a GeoDNS name that resolves to a nearby project mirror. The Handbook says the Fastly CDN also serves `pkg.FreeBSD.org`, but from my US server that name resolved to a project machine in Internet Systems Consortium's address space, not to Fastly. Community mirrors still carry FreeBSD release images, but not the package repositories. The project does run an official mirror in Australia, but it's a single site serving a continent, where DragonFly can spread the same clients across several local ISP and university mirrors. The policy goes back at least to 2012, when it was summarized on the mirror-hosts list as no mirrors under `*.FreeBSD.org` that the project doesn't fully control.

Tubnor's position is that this control buys nothing: packages are signed and fetched over HTTPS, so integrity doesn't depend on who runs the mirror. For tampering, he's right. But there are two things signatures don't cover, and both matter here:

- **Freshness.** A signature proves a catalog is genuine, not that it's current. A community mirror that syncs late, or quietly stops syncing, serves a validly signed old catalog, including vulnerable packages that pass every check. `pkg` doesn't check how old a signed catalog is. Update frameworks such as TUF add signed timestamps with short expiry for exactly this reason.
- **Consistency.** The 10-15 hour sync and symlink flip exist so every mirror serves the same set at the same moment. Community mirrors sync on their own schedules, so different users would see different sets for hours.

Other projects have already solved both in practice. Tubnor runs an AlmaLinux mirror in Australia: it stays within about four hours of upstream, and any mirror that falls more than a day behind is dropped from the geo pool, so users never reach it. DragonFly's mirror selector, by contrast, only checks whether each mirror is up, not whether it's current, so a reachable but stale mirror still gets handed to nearby clients. Its much less frequent package releases hide most of that risk. Fedora's mirror system goes further than either and checks on the client side: `dnf` gets the checksum of the current repository metadata from a central service and rejects any mirror that doesn't match. In his words, running mirrors with fat pipes is the easy part. What hurts users is latency, and from Australia every round trip to a distant server adds up across hundreds of metadata and package requests.

So FreeBSD's setup isn't the only safe design. It's one that is still too slow for operators far from the project's servers. But the two problems need different fixes. Community mirrors and better CDN coverage fix throughput. They don't fix lag, and without freshness checks they can make it worse. As I replied to Jason, a faster download of a package that's still vulnerable doesn't help much. The security lane helps both: a small security set syncs everywhere in minutes and downloads instantly wherever it's served from.

**A fleet workaround.** On my own servers, the update tool runs a full `pkg upgrade` on one host first. The others then rsync that host's ABI-matching repository catalog and upgrade against it, which makes each subsequent upgrade fast and takes load off the project's servers. One caveat: the receiving hosts trust the copied catalog instead of verifying its signature themselves, so do this only between machines in the same trust boundary. A caching HTTP proxy in front of `pkg.FreeBSD.org` does the same job for package files too, so each package downloads once per fleet instead of once per host.

## What the Fix Requires

**Compute.** The scale: the official builders consider more than 38,500 port-packages (counting flavors) for every combination of architecture, FreeBSD version, and `latest`/`quarterly`. amd64 gets roughly one builder per combination. arm64 has more combinations than fast builders, so at least one machine alternates between two of them. Two problems need compute: a few huge ports that run for hours, and mass rebuilds of thousands of small packages when a widely used dependency changes. Fixing both means a dedicated builder for every combination, the fastest single-core machines assigned to the huge ports, and enough parallel capacity that the dependency graph's critical path is the only wait, not the queue.

**Storage and bandwidth.** Room for several concurrent build trees, and a distribution path that doesn't take most of a day. Today a set reaches users only after it has synced to every mirror and the symlink flips. A small security set (a handful of packages instead of a full repository) could sync in minutes under the same all-mirrors-consistent rule. Separately, enough regional capacity that downloads aren't a bottleneck either, whether from more project mirrors, better CDN coverage, or community mirrors with freshness checks.

**Continuous orchestration.** Not a loop of full-tree bulk runs, but a process that watches the ports tree, computes the minimal rebuild set, dispatches it in dependency order, and publishes each dependency-closed set as soon as it completes. Plus a priority lane for security commits, and VuXML entries landing alongside the fix.

**Tiered repositories.** So an operator who subscribes only to server packages isn't waiting on a browser build. That's a policy and infrastructure change as much as a compute one.

## Has Anyone Solved This?

Mostly, yes. Nix and Guix store every package under a hash of its exact inputs, so a new library version gets a new path and nothing already published can break. Packages can be published the moment they finish, with no all-or-nothing repository flip. For security fixes deep in the graph, Guix "grafts" a patched library into existing binaries without waiting for a mass rebuild. Debian and Ubuntu solve the same problem differently, with a separate security archive and in-place backports.

Neither model is free. Content addressing means abandoning the traditional single-version filesystem layout, which is why Nix and Guix had to start from scratch, and even Nix still spends days on a base-toolchain rebuild. But the computer science is no longer the obstacle. The question for FreeBSD is which proven model to adopt, and who pays to run it.

## Why It Hasn't Happened

Nobody is unaware of the problem. It has come up in community talks (EuroBSDCon 2025 included a session reassessing the state of the ports tree), in portmgr discussions about resourcing, and in the plain fact that there's no security build lane. FreeBSD relies on volunteers, non-profit donations, and corporate upstreaming; Canonical funds Ubuntu's equivalent infrastructure through enterprise subscriptions, consulting, and cloud partnerships.

Funding isn't the whole story, though. Debian is volunteer-run too, and still ships security fixes within days, because its security archive builds and publishes only the affected source package, independent of the main archive. That points to per-package publication as the decisive design choice; funding decides how quickly it can be staffed and kept running.

Some of the groundwork already exists. The FreeBSD Foundation's Sovereign Tech Agency-funded infrastructure work includes reproducible builds, CI for the ports tree, and ports SBOM generation, which is exactly the kind of tooling that makes minimal rebuilds tractable.

[![A home lab with FreeBSD logo with a bandaid.](/content/uploads/2026/11/why-freebsd-packages-take-so-long.webp)](/content/uploads/2026/11/why-freebsd-packages-take-so-long.webp "Patched FreeBSD")

## Bottom Line

Every binary distribution has the same tension: the dependency graph is shared, and a patch to one node forces rebuilds downstream. What differs is how each project manages it. Debian and Ubuntu isolate security updates in a separate, per-package pipeline. FreeBSD publishes everything in one atomic batch. When the batch takes about a week and security fixes come faster than that, a server on official packages is never current: November's nginx package was flagged vulnerable by `pkg audit` the moment it installed.

The design is known and achievable. What's missing is the operational commitment to run it, whether that comes from the Foundation prioritizing it, a commercial sponsor, or a paid tier for fast binary updates. Until then, a local Poudriere build is the fallback for time-critical patches.
