Page MenuHomeFreeBSD

packages: Move xz to the minimal set
ClosedPublic

Authored by ivy on Mar 3 2026, 10:36 AM.
Tags
None
Referenced Files
F153234714: D55630.diff
Sun, Apr 19, 11:43 PM
Unknown Object (File)
Fri, Apr 17, 9:30 AM
Unknown Object (File)
Fri, Apr 17, 7:48 AM
Unknown Object (File)
Tue, Apr 14, 11:24 PM
Unknown Object (File)
Sun, Apr 12, 6:36 PM
Unknown Object (File)
Sat, Apr 11, 11:34 AM
Unknown Object (File)
Fri, Apr 10, 2:19 AM
Unknown Object (File)
Wed, Apr 8, 12:33 PM

Details

Summary

pkg(8), via its daily periodic script, requires xz. We don't have
a way to encode dependencies from ports on base packages right now,
so instead move xz to the minimal set so it's always installed.

This isn't an ideal solution, but it's justified in this case since
pkg(8) is always installed, so having its dependencies always
installed is acceptable.

MFC after: 1 week (stable/15 only)
Sponsored by: https://www.patreon.com/bsdivy

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.Mar 3 2026, 10:36 AM

Makes sense to me.
Maybe we can switch pkg to zstd?

Maybe we can switch pkg to zstd?

i'd be happy with that too, and zstd is already in minimal, but it would be a more user-visible change. @bapt any thoughts?

xz is required by the pkg-backup, it can be changed easily to zstd by default and the compression made configurable.

xz is required by the pkg-backup, it can be changed easily to zstd by default and the compression made configurable.

will you do this or should i land this change as-is?

it will be part of pkg 2.7 which is in exp-run, now uses zstd -c by default and configurable.

des added a subscriber: des.

xz is also (still, for now) our preferred compression algorithm for release images and ISOs etc., it should imo be in minimal even if pkg switches to zstd (which is already in minimal)

This revision is now accepted and ready to land.Wed, Mar 25, 2:38 PM

okay, i think bapt change is good (to use zstd as default in pkg) but i'll land this as is since xz is considered minimal.

Yeah, I think this change is necessary for now. We should continue migrating periodic scripts and other consumers over time, and maybe move this back out (much) later on.

This revision was automatically updated to reflect the committed changes.