<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">I figured out that I could call `pkg repo -m meta.conf /usr/packages` where meta.conf contains:<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">       </span>version = 2;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>packing_format = "txz";</div></div><div><br></div><div><div><br></div></div><div>will be enough to force pkg-repo to use the working txz (as opposed to the broken tzst) format.</div><div><br></div><div>Crawling through <a href="https://github.com/freebsd/pkg/blob/main/libpkg/pkg_repo_create.c">https://github.com/freebsd/pkg/blob/main/libpkg/pkg_repo_create.c</a> has been instructive.</div><div><br></div><div>Autumn</div><div><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Apr 9, 2026, at 7:24 PM, Autumn Jolitz <autumn.jolitz@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div>I tried to create a `tzst` format pkg but it failed with: "pkg: zstd is supported, but not builtin."<br><br>This is on a 6.5 system running latest master and pkg 2.2.0.<br><br>This could be a problem as `tzst` is the default pkg format (https://lists.freebsd.org/archives/freebsd-ports/2025-January/007185.html) — a bare `pkg create …` will complain about zstd despite /usr/local/etc/pkg.conf having all defaults.<br><br>Since pkg farms out archive unpacking to libarchive:<br><br>$ ldd /usr/local/sbin/pkg | grep libarchive<br>        libarchive.so.5 => /usr/lib/libarchive.so.5 (0x800bda000)<br><br>Taking a look at ``/usr/src/contrib/libarchive/README.DRAGONFLY``, I notice it has<br><br>    Configured with<br>    ===============<br>    ./configure --without-nettle --with-openssl --without-xml2 --without-zstd \<br>                --without-lz4 --without-lzo2 \<br>                ac_cv_lib_md_MD5Init=no ac_cv_lzma_has_mt=no<br><br>Hm, yeah that would do it. If we’re using pkg 2.0.2+, the bundled libarchive will likely need to have zstd support added if pkg will be able to make use of tzst.<br><br>I notice this cause I build binary packages locally using pkg create and pkg repo. <br><br>`pkg repo` certainly isn’t working with missing zstd support and doesn’t seem to respect pkg.conf ``COMPRESSION_FORMAT = txz`` at all. 😕<br><br>Autumn</div></div></blockquote></div><br></div></body></html>