Skip to contentSkip to conversation

package/zstd: disable optional compression libraries for host build

Buildroot Marcus Hoffmann via buildroot 1 participant 1 message Nov 10 Zstd

lore
Share & tools
lore
#0 lore raw

commit: https://gitlab.com/buildroot.org/buildroot/-/commit/c2f93a8076b27880754d827f2b5801f19de801fc
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/master

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.

Proposed fix in zstd: https://github.com/meta/zstd/issues/4897

[Marcus: add context to upstream link]
---
 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

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