mirror of
https://github.com/openwrt/packages.git
synced 2026-11-29 03:23:20 +04:00
zmq: add missing CONFLICTS between variants
libzmq-nc and libzmq-curve both install /usr/lib/libzmq.so.5.2.5. They share PROVIDES:=libzmq, so apk refuses to install both, but Kconfig lets both be selected and the image build then fails. Declare the conflict on libzmq-nc and mark it as the default variant, as include/package-pack.mk asks for variants that share a provide. czmq and lzmq depend on libzmq and select libzmq-nc when libzmq-curve is not selected, so a conflict on libzmq-curve would be a Kconfig dependency cycle. Checked with defconfig: libzmq-nc drops to m when both variants are selected, and czmq selects libzmq-nc only when libzmq-curve is not. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
1 parent
dd6be10ace
commit
735dc207ce
1 file changed
+3
-1
+3
-1
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=zeromq
|
||||
PKG_VERSION:=4.3.5
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/zeromq/libzmq/releases/download/v$(PKG_VERSION)
|
||||
@@ -46,7 +46,9 @@ endef
|
||||
define Package/libzmq-nc
|
||||
$(call Package/libzmq/default)
|
||||
VARIANT:=nc
|
||||
DEFAULT_VARIANT:=1
|
||||
DEPENDS+=+LIBZMQ_NC_WITH_OPENPGM:openpgm
|
||||
CONFLICTS:=libzmq-curve
|
||||
endef
|
||||
|
||||
define Package/libzmq-curve
|
||||
|
||||
Reference in new issue
Block a user