r/freebsd • u/fsr31415 • 14d ago
discussion Package 'Latest' release timing
How long does it take for a new package to be available in the 'Latest' ABI?
eg php83 updated 19/11 to version 8.3.37, Latest has 8.3.36_2 (23/10)
https://www.freshports.org/lang/php83/
Nginx updated 19/11 to 1.30.7 Latest has 1.30.6_18 (12/11 - 5 releases behind)
https://www.freshports.org/www/nginx/
both these contain patches for high severity CVE's. Is there a way to install package sooner?
18
Upvotes
•
u/spotlight-app Mod Bot 🤖 14d ago
Mods have pinned a comment by u/bdrewery:
7
u/inkeliz newbie 14d ago
I comment about that recently. If you have a single server, you can compile it from ports. However, if you have multiple servers/VMs, the best option is to setup a custom Poudriere server. The Poudriere can compile only what you use, so don't worry about compiling 35000+ packages.
However, I think FreeBSD needs to improve it. Maybe security patches gets a "fast pass" (a priority) in the building pipeline.
11
u/Tau-is-2Pi 14d ago
Build the package locally (from the ports).
8
u/bdrewery FreeBSD committer 14d ago •
I’m involved with the package builders and maintain Poudriere.
If you have public infrastructure needing to stay secure I suggest building your own packages locally. Otherwise if you cannot then practice defense-in-depth and allowlist access to your systems, vlans, jails, vms, use vpns like tailscale or mTLS, or just keep on top of mitigations like disabling http2 for nginx.
There’s not much we can do to quickly get security updates out quicker. Poudriere’s architecture and incremental algorithm, along with limitations of ports metadata and `pkg`, mean that even small number of ports can cause too much to rebuild. I spent a few years on a quicker algorithm but hit some edge cases that stopped me from making it default (aka undocumented PKG_NO_VERSION_FOR_DEPS which is far less to rebuild but causes hard to debug upgrade failures). There is work underway to improve things but it wont come fast. Ports moving to “provides/requires” is basically the same thing as the feature I referenced but is more complete. As far as I understand someone else is actively working towards making that happen.
It’s been hard to find enough time for this stuff. We got Poudriere working to provide packages which was good enough for a long time. Even I think security update packages should be available within a few hours of the patch, and that days is unacceptable. The thing is I have a day job, and family, and, like most others involved with FreeBSD, am just a volunteer in my spare time.
6
u/BougainvilleaGarden 14d ago edited 14d ago
When packages are built in consequence to a port having been modified, all ports in the build-set (i.e. all ports not explicitly blacklisted) that have a build-dependency on the modified port will also be rebuilt, which might consume a significant amount of time.
You can review the status of the pkg official repository's build agents by analyzing the list of it's build slaves at https://pkg-status.freebsd.org/builds?type=package to determine which agent builds the packages for your platform (the "jail" column of the table) and ports branch (the "ports" column of the table), and then clicking the small bomb icon next to the agent's name in the "server" column of the table.
For FreeBSD-15.1-amd64 it's "beefy21" for quarterly ports and "beefy23" for main/default ports, where the bomb icon should link to https://pkg-status.freebsd.org/beefy21/ and https://pkg-status.freebsd.org/beefy23/ respectively.
The mainline ports take significantly more time to have their binary packages published on the repository then the quarterly ports do. The reason is that while we run each pipeline using multiple concurrent port build jobs, there is only one pipeline for each supported ports branch. A commit to the main branch that causes a large number of ports to require being rebuilt will therefore consume the main branch runner for a significant time, preventing it from quickly starting to process any security hotfix that might be pushed while the runner is busy processing it's current pipeline. The quarterly branch on the other hand "should" not receive large scale updates that cause the runner to have to rebuild "significant numbers" of packages, therefore the quarterly runner will usually complete it's pipeline in less time and be able to start running the next pipeline, which contains a security hotfix, at a lower delay then the main pipeline does.
3
u/GeneralAd3238 10d ago
I strongly agree with the concerns raised here.
If an official package management system leaves software with CVSS 9.2 vulnerabilities unpatched for several days, particularly software that is inherently used to provide publicly exposed services, we have a fundamental problem.
System administrators are effectively being forced to choose between running vulnerable services, taking those services offline, or maintaining their own package build infrastructure.
At that point, why provide official binary repositories at all? We might as well return to a ports-only distribution model and explicitly acknowledge that compiling software is a requirement for running FreeBSD securely.
This is not about demanding the latest software versions. It is about being able to trust the official package distribution system.
I have enormous respect for the developers, maintainers and people working behind FreeBSD. If additional funding, infrastructure or human resources are needed, then let's have a serious and transparent discussion about that. These are legitimate problems that can and should be addressed.
However, accepting several days of exposure to critical vulnerabilities as normal, or suggesting that every professional user should maintain an independent build infrastructure, cannot be a sustainable answer.
The purpose of a package management system is not simply to make software installation more convenient. It must also provide a reliable mechanism for maintaining the security of deployed systems.
For me, this is an existential problem for FreeBSD as a production server platform, not merely a technical inconvenience.
FreeBSD can have an excellent kernel, an outstanding network stack, ZFS, jails and a technically superior architecture in many respects. But all these advantages gradually lose their relevance if administrators cannot trust the security update delivery process.
I believe this deserves to be treated as a strategic priority by both the FreeBSD Project and the FreeBSD Foundation.
0
u/Xzenor seasoned user 13d ago
The hoops we have to jump through to be able to keep running FreeBSD securely... It's sad. Giving priority to packages that have security holes is apparently impossible.
Meanwhile most Linux distributions have patches ready and tested within a day. I guess they don't have to use poudriere