Groups | Search | Server Info | Login | Register


Groups > muc.lists.netbsd.tech.userlevel > #11750

Re: zstd headers?

From Simon Burge <simonb@NetBSD.org>
Newsgroups muc.lists.netbsd.tech.userlevel
Subject Re: zstd headers?
Date 2026-04-26 21:18 +1000
Organization Newsgate at muc.de e.V.
Message-ID <20260426111844.1096884DAC@mail.netbsd.org> (permalink)
References <20260423170500.2981145a9390505a5c933323@NetBSD.org>

Show all headers | View raw


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

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

Back to muc.lists.netbsd.tech.userlevel | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

zstd headers? Tobias Nygren <tnn@NetBSD.org> - 2026-04-23 17:05 +0200
  Re: zstd headers? Simon Burge <simonb@NetBSD.org> - 2026-04-26 21:18 +1000
    Re: zstd headers? Thor Lancelot Simon <tls@panix.com> - 2026-04-26 19:42 -0400
      Re: zstd headers? Martin Husemann <martin@duskware.de> - 2026-04-27 11:53 +0200
        Re: zstd headers? Christos Zoulas <christos@zoulas.com> - 2026-04-27 07:43 -0400
          Re: zstd headers? Tobias Nygren <tnn@NetBSD.org> - 2026-04-27 19:37 +0200

csiph-web