* [PATCH 0/2] zstd: upgrade 1.5.7 -> 1.6.0 and PACKAGECONFIG update
@ 2026-11-25 10:03 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
0 siblings, 2 replies; 5+ messages in thread
From: Antonin Godard @ 2026-11-25 10:03 UTC (permalink / raw)
To: openembedded-core; +Cc: Thomas Petazzoni, Antonin Godard
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
Antonin Godard (2):
zstd: upgrade 1.5.7 -> 1.6.0
zstd: add nobench, nocompress, nodecompress, nodict to PACKAGECONFIG
...01-cli-tests-skip-zstd-max-level-when-memory-is-insuffi.patch | 4 ++--
meta/recipes-extended/zstd/{zstd_1.5.7.bb => zstd_1.6.0.bb} | 9 +++++++--
2 files changed, 9 insertions(+), 4 deletions(-)
---
base-commit: 7412d08ab2ee94354a93f3765b94479d84c6b034
change-id: 20261124-zstd-1-6-0-621e66520e4d
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] zstd: upgrade 1.5.7 -> 1.6.0
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 ` Antonin Godard
2026-11-25 10:03 ` [PATCH 2/2] zstd: add nobench, nocompress, nodecompress, nodict to PACKAGECONFIG Antonin Godard
1 sibling, 0 replies; 5+ messages in thread
From: Antonin Godard @ 2026-11-25 10:03 UTC (permalink / raw)
To: openembedded-core; +Cc: Thomas Petazzoni, Antonin Godard
Changelog summary:
This release comes mid-way through an effort that was initially meant to
bring you the next version of Zstandard. Instead, it was refocused on
answering the avalanche of reports received in the past few weeks.
Thankfully, most of them are minor (or duplicates), but one of them is
going to be published as a CVE, and that is why we are publishing this
early release today.
Full changelog:
https://github.com/meta/zstd/releases/tag/v1.6.0
Verified that ptests passed on qemux86-64, and fix an issue with zstd's
usage of dd not being compatible with the one provided by busybox.
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
.../0001-cli-tests-skip-zstd-max-level-when-memory-is-insuffi.patch | 4 ++--
meta/recipes-extended/zstd/{zstd_1.5.7.bb => zstd_1.6.0.bb} | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-extended/zstd/zstd/0001-cli-tests-skip-zstd-max-level-when-memory-is-insuffi.patch b/meta/recipes-extended/zstd/zstd/0001-cli-tests-skip-zstd-max-level-when-memory-is-insuffi.patch
index d7559f7269..6163201bf2 100644
--- a/meta/recipes-extended/zstd/zstd/0001-cli-tests-skip-zstd-max-level-when-memory-is-insuffi.patch
+++ b/meta/recipes-extended/zstd/zstd/0001-cli-tests-skip-zstd-max-level-when-memory-is-insuffi.patch
@@ -1,4 +1,4 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From 5182d7671cb65346b55d3ff8eda6388f876a7431 Mon Sep 17 00:00:00 2001
From: Pratik Farkase <pratik.farkase@est.tech>
Date: Thu, 27 Aug 2026 12:00:00 +0000
Subject: [PATCH] cli-tests: skip zstd --max level when memory is insufficient
@@ -15,7 +15,7 @@ Signed-off-by: Pratik Farkase <pratik.farkase@est.tech>
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/cli-tests/compression/levels.sh b/tests/cli-tests/compression/levels.sh
-index b8230f2..7846d3e 100755
+index b8230f2a3..7846d3ec0 100755
--- a/tests/cli-tests/compression/levels.sh
+++ b/tests/cli-tests/compression/levels.sh
@@ -16,8 +16,8 @@ zstd --fast=10 file -o file-f10.zst -q
diff --git a/meta/recipes-extended/zstd/zstd_1.5.7.bb b/meta/recipes-extended/zstd/zstd_1.6.0.bb
similarity index 94%
rename from meta/recipes-extended/zstd/zstd_1.5.7.bb
rename to meta/recipes-extended/zstd/zstd_1.6.0.bb
index 4c3b377c14..6e4e07050a 100644
--- a/meta/recipes-extended/zstd/zstd_1.5.7.bb
+++ b/meta/recipes-extended/zstd/zstd_1.6.0.bb
@@ -17,7 +17,7 @@ SRC_URI = "git://github.com/facebook/zstd.git;branch=release;protocol=https;tag=
file://0001-cli-tests-skip-zstd-max-level-when-memory-is-insuffi.patch \
"
-SRCREV = "f8745da6ff1ad1e7bab384bd1f9d742439278e99"
+SRCREV = "916e8e70b33317d469a41ee837e47317807815c8"
UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
CVE_PRODUCT = "zstandard"
@@ -81,4 +81,5 @@ do_install_ptest() {
rm -f ${D}${PTEST_PATH}/tests/cli-tests/compression/levels.sh.stderr.exact
}
-RDEPENDS:${PN}-ptest += "bash grep less python3-core python3-modules"
+# we need coreutils' dd for the cli-tests because busybox's dd doesn't support "status=none"
+RDEPENDS:${PN}-ptest += "bash grep less python3-core python3-modules coreutils"
--
2.56.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] zstd: add nobench, nocompress, nodecompress, nodict to PACKAGECONFIG
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 ` Antonin Godard
2026-11-26 15:01 ` Paul Barker
1 sibling, 1 reply; 5+ messages in thread
From: Antonin Godard @ 2026-11-25 10:03 UTC (permalink / raw)
To: openembedded-core; +Cc: Thomas Petazzoni, Antonin Godard
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
--
2.56.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] zstd: add nobench, nocompress, nodecompress, nodict to PACKAGECONFIG
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 ` [OE-core] " Antonin Godard
0 siblings, 1 reply; 5+ messages in thread
From: Paul Barker @ 2026-11-26 15:01 UTC (permalink / raw)
To: Antonin Godard, openembedded-core; +Cc: Thomas Petazzoni
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?
Best regards,
--
Paul Barker
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH 2/2] zstd: add nobench, nocompress, nodecompress, nodict to PACKAGECONFIG
2026-11-26 15:01 ` Paul Barker
@ 2026-11-26 16:34 ` Antonin Godard
0 siblings, 0 replies; 5+ messages in thread
From: Antonin Godard @ 2026-11-26 16:34 UTC (permalink / raw)
To: Paul Barker, openembedded-core; +Cc: Thomas Petazzoni
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-26 16:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [OE-core] " Antonin Godard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.