Skip to contentSkip to conversation

package/zeromq: fix libsodium support

PATCH New Pieterjan Camerlynck 1 participant 1 message Nov 9

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/zeromq: fix libsodium support

From: Pieterjan Camerlynck <[email protected]>

Since zeromq 4.1.5, --with-libsodium no longer takes a prefix: the configure script only looks for libsodium (using pkg-config) when the option is exactly "yes". Passing --with-libsodium=$(STAGING_DIR)/usr therefore silently disabled libsodium, and zeromq fell back to its bundled tweetnacl for CURVE security. Since zeromq 4.3.5, tweetnacl is no longer bundled, so zeromq is now built without CURVE support at all.

Pass --with-libsodium without a value, and add host-pkgconf to the dependencies, as configure uses pkg-config to find libsodium.

Fixes bcb8e31e0d ("zeromq: bump to version 4.1.5")
Assisted-by Claude:claude-opus-5-5
---
 package/zeromq/zeromq.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/zeromq/zeromq.mk +2 -2
index f1a1f02f9e..80e72e3958 100644
@@ -86,8 +86,8 @@ endif
 
 # ZeroMQ uses libsodium if it's available.
 ifeq ($(BR2_PACKAGE_LIBSODIUM),y)
-ZEROMQ_DEPENDENCIES += libsodium
-ZEROMQ_CONF_OPTS += --with-libsodium="$(STAGING_DIR)/usr"
+ZEROMQ_DEPENDENCIES += host-pkgconf libsodium
+ZEROMQ_CONF_OPTS += --with-libsodium
 else
 ZEROMQ_CONF_OPTS += --without-libsodium
 endif
Signature · 6 lines
2.56.0

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