<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/nbd/tools/zstd, branch master</title>
<subtitle>Felix Fietkaus staging tree</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/nbd/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/'/>
<updated>2025-02-22T19:30:00Z</updated>
<entry>
<title>tools: zstd: update to 1.5.7</title>
<updated>2025-02-22T19:30:00Z</updated>
<author>
<name>Shiji Yang</name>
</author>
<published>2025-02-21T13:12:23Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=ce67f0844987a9c3aac2ed510de9ddaaa1ed612f'/>
<id>urn:sha1:ce67f0844987a9c3aac2ed510de9ddaaa1ed612f</id>
<content type='text'>
This new version has some performance enhancements.

Changelog:
https://github.com/facebook/zstd/releases/tag/v1.5.7

Upstreamed patch:
001-Provide-variant-pkg-config-file-for-multi-threaded-s.patch[1]

[1] https://github.com/facebook/zstd/commit/f1f1ae369a4cefd3474b3528e8d1847b18750605

Signed-off-by: Shiji Yang &lt;yangshiji66@qq.com&gt;
Link: https://github.com/openwrt/openwrt/pull/18064
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/zstd: enable position independent code compilation</title>
<updated>2024-04-24T10:16:48Z</updated>
<author>
<name>Bryan Roessler</name>
</author>
<published>2024-04-24T01:37:25Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=98cc65d9a0c4e7beb4b9a8f8482ab8908435290b'/>
<id>urn:sha1:98cc65d9a0c4e7beb4b9a8f8482ab8908435290b</id>
<content type='text'>
Currently, trying to compile LLVM-BPF will fail with:
[2225/3517] Linking CXX shared library lib/libLLVM-15.so
FAILED: lib/libLLVM-15.so
/usr/bin/ld: staging_dir/host/lib/libzstd.a(zstd_common.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status

So, to fix it enable PIC for the host ZSTD.

Fixes: #15247
Signed-off-by: Bryan Roessler &lt;bryanroessler@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: zstd: update patch with upstream version</title>
<updated>2024-04-17T09:29:14Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-04-17T09:28:58Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=2b6923bc7601c732a62d0e169c69106638af0a84'/>
<id>urn:sha1:2b6923bc7601c732a62d0e169c69106638af0a84</id>
<content type='text'>
Proposed fixup has been replaced and merged with an advanced version.

install-pc-mt has been dropped and replaced for intall-pc MT=1 to
generate a .pc file with multithread libs.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: zstd: dont override CLI max level</title>
<updated>2024-04-09T16:39:36Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2024-04-08T16:35:45Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=e65800d9484e49e81c5d226cc64f2bb47782c089'/>
<id>urn:sha1:e65800d9484e49e81c5d226cc64f2bb47782c089</id>
<content type='text'>
Now that instead of relying on env variables for the GH download script
invoking ZSTD tarball compression it passes the full arguments via tar -I
we can drop the CLI max compression level override.

Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: zstd: add patch fixing wrong generated .pc with lib-mt</title>
<updated>2024-04-06T12:58:48Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-04-06T12:58:48Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=f2fabf7aaaacec6fdc50226f57f4be2c19d8cace'/>
<id>urn:sha1:f2fabf7aaaacec6fdc50226f57f4be2c19d8cace</id>
<content type='text'>
The current .pc generated by make build system for zstd is wrong and
always assume a single-threaded library is used.

This wasn't the case for the meson build system that used his own logic
to generate the pkg-config file.

Add a patch to fix this by introducing install-mt-pc make target to
generate the correct pkg-config gile.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: zstd: install headers as well</title>
<updated>2024-04-06T10:10:51Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2024-04-06T10:05:56Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=076e86041862ff7962c395706238c69fc8b83594'/>
<id>urn:sha1:076e86041862ff7962c395706238c69fc8b83594</id>
<content type='text'>
We forgot to make sure install-includes is called for the libzstd in
order for it to install the required headers.

Fixes: 4b920e799fba ("tools: zstd: convert to make and drop meson dependency")
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: zstd: dont override ZSTD_LEGACY_SUPPORT</title>
<updated>2024-04-06T09:24:18Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2024-04-05T13:44:40Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=d5c4cb0a8d251883d7a17d4426311090d6791249'/>
<id>urn:sha1:d5c4cb0a8d251883d7a17d4426311090d6791249</id>
<content type='text'>
We dont really have a reason to deviate from the upstream default for
ZSTD_LEGACY_SUPPORT value of 5, as it will save a bit of space but
prevent decompressing data compressed with legacy ZSTD versions.

Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: zstd: override max safe compression level</title>
<updated>2024-04-06T09:24:18Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-04-05T12:29:50Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=ed149717eec3bfe42d4cc32ee1d74cc53a19bad5'/>
<id>urn:sha1:ed149717eec3bfe42d4cc32ee1d74cc53a19bad5</id>
<content type='text'>
ZTSD limits the safe compression level to a max of 19 as 20 to 22 cause
increased RAM usage. Higher levels require --ultra arg passed.

There isn't currently a way to set --ultra using ENV options similar to
ZSTD_CLEVEL and ZSTD_CLEVEL is limited to 19.

To fix this, we can increase the max safe compression level by providing
a custom ZSTDCLI_CLEVEL_MAX value with CFLAGS.

The max safe level is increased to 20.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: zstd: convert to make and drop meson dependency</title>
<updated>2024-04-06T09:24:18Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-04-02T23:07:14Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=4b920e799fba445c450d9bc86843c0a37e202e7f'/>
<id>urn:sha1:4b920e799fba445c450d9bc86843c0a37e202e7f</id>
<content type='text'>
Convert to make and drop meson dependency since it's not a core tools
and can't depend on advanced build system like cmake or meson.

On top of this make is the official build support and cmake/meson are
supported by 3rd parties.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>zstd: update to 1.5.6</title>
<updated>2024-04-02T14:19:39Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2024-04-02T11:18:50Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/nbd/commit/?id=004c8530193891f451b92095e26f09345fc308ec'/>
<id>urn:sha1:004c8530193891f451b92095e26f09345fc308ec</id>
<content type='text'>
Full changelog here:
https://github.com/facebook/zstd/releases/tag/v1.5.6

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
</feed>
