Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Antonin Godard" <antonin.godard@bootlin.com>
To: "Paul Barker" <paul@pbarker.dev>,
	<openembedded-core@lists.openembedded.org>
Cc: "Thomas Petazzoni" <thomas.petazzoni@bootlin.com>
Subject: Re: [OE-core] [PATCH 2/2] zstd: add nobench, nocompress, nodecompress, nodict to PACKAGECONFIG
Date: Thu, 26 Nov 2026 17:34:01 +0100	[thread overview]
Message-ID: <DN5AD86M5KPH.15X5BM1GZR7P1@bootlin.com> (raw)
In-Reply-To: <DN58E43X0JY2.H11X8K5K2H4T@pbarker.dev>

On Thu Nov 26, 2026 at 4:01 PM CET, Paul Barker wrote:
> On Wed Nov 25, 2026 at 10:03 AM GMT, Antonin Godard wrote:
>> Add PACKAGECONFIG knobs matching zstd's configuration knobs:
>>
>> - nobench disables the integrated benchmark module, which produces a
>>   smaller binary
>> - nocompress makes zstd compiled without compress support
>> - nodecompress makes zstd compiled without decompress support
>> - nodict compiles zstd without support for the integrated dictionary
>>   builder, which produces a smaller binary
>>
>> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
>> ---
>>  meta/recipes-extended/zstd/zstd_1.6.0.bb | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/meta/recipes-extended/zstd/zstd_1.6.0.bb b/meta/recipes-extended/zstd/zstd_1.6.0.bb
>> index 6e4e07050a..cba70007b8 100644
>> --- a/meta/recipes-extended/zstd/zstd_1.6.0.bb
>> +++ b/meta/recipes-extended/zstd/zstd_1.6.0.bb
>> @@ -25,6 +25,10 @@ CVE_PRODUCT = "zstandard"
>>  PACKAGECONFIG ??= ""
>>  PACKAGECONFIG[lz4] = "HAVE_LZ4=1,HAVE_LZ4=0,lz4"
>>  PACKAGECONFIG[lzma] = "HAVE_LZMA=1,HAVE_LZMA=0,xz"
>> +PACKAGECONFIG[nobench] = "ZSTD_NOBENCH=1,ZSTD_NOBENCH=0"
>> +PACKAGECONFIG[nocompress] = "ZSTD_NOCOMPRESS=1,ZSTD_NOCOMPRESS=0,,,,nodecompress"
>> +PACKAGECONFIG[nodecompress] = "ZSTD_NODECOMPRESS=1,ZSTD_NODECOMPRESS=0,,,,nocompress"
>> +PACKAGECONFIG[nodict] = "ZSTD_NODICT=1,ZSTD_NODICT=0"
>>  PACKAGECONFIG[zlib] = "HAVE_ZLIB=1,HAVE_ZLIB=0,zlib"
>>  
>>  # See programs/README.md for how to use this
>
> Hi Antonin,
>
> I think we can clean up the options that upstream gives us a little.
>
> We don't like PACKAGECONFIG values starting with 'no' as the logic is
> inverted. We should also be able to disable benchmarking and dictionary
> building by default as they are rarely going to be used. I don't see any
> case where people would want zstd but wouldn't want decompression
> support.
>
> So perhaps we need the following PACKAGECONFIGs:
>   - `benchmark`, disabled by default
>   - `dict-builder`, disabled by default
>   - `compress`, enabled by default
>
> How does that sound?

That makes total sense, I'll come up with a v2 with these changes shortly.

Thanks,
Antonin

      reply	other threads:[~2026-11-26 16:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 10:03 [PATCH 0/2] zstd: upgrade 1.5.7 -> 1.6.0 and PACKAGECONFIG update Antonin Godard
2026-11-25 10:03 ` [PATCH 1/2] zstd: upgrade 1.5.7 -> 1.6.0 Antonin Godard
2026-11-25 10:03 ` [PATCH 2/2] zstd: add nobench, nocompress, nodecompress, nodict to PACKAGECONFIG Antonin Godard
2026-11-26 15:01   ` Paul Barker
2026-11-26 16:34     ` Antonin Godard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DN5AD86M5KPH.15X5BM1GZR7P1@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=paul@pbarker.dev \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox