Skip to contentSkip to conversation

package/zstd: disable optional compression libraries for host build

PATCH In review James Hilliard 2 participants 2 messages Nov 9 – Nov 10 Zstd

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/zstd: disable optional compression libraries for host build

host-zstd auto-detects system zlib, liblzma and liblz4. Updating the build host's LZ4 to 1.11.0 breaks compilation due to the removed contentChecksum_t alias, even with an unchanged Buildroot tree.

Disable these unused codecs to avoid undeclared host dependencies.

https://github.com/meta/zstd/issues/4897

---
 package/zstd/zstd.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
package/zstd/zstd.mk +6 -1
index c5a19c76f3..b0fbf3a1a5 100644
@@ -114,7 +114,12 @@ define ZSTD_INSTALL_TARGET_CMDS
 	$(ZSTD_INSTALL_PZSTD)
 endef
 
-HOST_ZSTD_OPTS += PREFIX=$(HOST_DIR)
+# Disable auto-detection of optional compression libraries.
+HOST_ZSTD_OPTS += \
+	PREFIX=$(HOST_DIR) \
+	HAVE_ZLIB=0 \
+	HAVE_LZMA=0 \
+	HAVE_LZ4=0
 HOST_ZSTD_ENV = $(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS)
 
 # We are a ccache dependency, so we can't use ccache
Signature · 6 lines
2.53.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi James,

Quoted 8 lines · James Hilliard

host-zstd auto-detects system zlib, liblzma and liblz4. Updating the build host's LZ4 to 1.11.0 breaks compilation due to the removed contentChecksum_t alias, even with an unchanged Buildroot tree.

Disable these unused codecs to avoid undeclared host dependencies.

https://github.com/meta/zstd/issues/4897

I hit this as well, but didn't get around yet to send the fix :).

Applied to master, thanks!
Marcus
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot