tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: zstd headers?
Hi Tobias,
Tobias Nygren wrote:
> So this started with me wanting to add zstd support to pkg_create -F to
> evaluate if that could enhance pkg_add performance in bulk builds.
>
> like with xz, we only reasonably want to enable zstd in pkgsrc's
> pkg_install if it is an OS builtin. NetBSD ships with the zstd shlib
> but not the headers nor the pkg-config file so applications cannot use
> it and a builtin.mk in pkgsrc would not detect it even if added.
>
> The header is in the comp flist but was marked obsolete.
> I'm not sure of the reason hence opening this thread for discussion.
I asked about this a while ago [1] and got a response off-list that we
don't want to expose the base-system zstd because that could conflict
with pkgsrc zstd, especially if pkgsrc has a newer version.
One suggestion was to put the zstd shared library in /usr/lib/private
where the ssh library is. Any program wanting to use zstd can then
.include "${NETBSDSRCDIR}/external/bsd/zstd/Makefile.zstd" .
That shouldn't be too hard, but I never got around to looking any
further at this. If Someone(tm) gets this bit done, I've got patches
for zcat/gzip and libarchive to use zstd ready. pkg_install then
gets zstd support for "free" via libarchive.
Cheers,
Simon.
--
[1] https://mail-index.netbsd.org/tech-userlevel/2026/01/14/msg014886.html
Home |
Main Index |
Thread Index |
Old Index