libzip: add missing CONFLICTS between variants

libzip-gnutls, libzip-mbedtls, libzip-openssl and libzip-nossl all
install /usr/lib/libzip.so.5.5. They share PROVIDES:=libzip, so apk
refuses to install two of them, but Kconfig lets several be selected
and the image build then fails.

Declare each pair on one side only. libzip-gnutls conflicts with the
other three, because packages that depend on libzip, such as zipcmp,
select libzip-gnutls when no other variant is selected, and a conflict
pointing at it would be a Kconfig dependency cycle. libzip-mbedtls
conflicts with libzip-openssl and libzip-nossl, and libzip-openssl with
libzip-nossl.

Checked with defconfig: of two selected variants, the one declaring the
conflict drops to m, and zipcmp selects libzip-gnutls only when no
other variant is selected.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
Josef Schlehofer authored and Michael Heimpold committed 2026-11-02 21:12:44 +01:00
1 parent 8dcfb14243
commit 1f7abcb512
1 file changed
+5 -4
+5 -4
View File
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libzip
PKG_VERSION:=1.11.4
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://libzip.org/download/
@@ -33,6 +33,7 @@ define Package/libzip/Default
DEPENDS:=+zlib $(3)
VARIANT:=$(1)
PROVIDES:=libzip
CONFLICTS:=$(4)
endef
define Package/libzip-$(BUILD_VARIANT)/description
@@ -40,9 +41,9 @@ define Package/libzip-$(BUILD_VARIANT)/description
endef
Package/libzip-nossl=$(call Package/libzip/Default,nossl,w/o encryption support)
Package/libzip-openssl=$(call Package/libzip/Default,openssl,OpenSSL,+PACKAGE_libzip-openssl:libopenssl)
Package/libzip-gnutls=$(call Package/libzip/Default,gnutls,GnuTLS,+PACKAGE_libzip-gnutls:libgnutls)
Package/libzip-mbedtls=$(call Package/libzip/Default,mbedtls,mbedTLS,+PACKAGE_libzip-mbedtls:libmbedtls)
Package/libzip-openssl=$(call Package/libzip/Default,openssl,OpenSSL,+PACKAGE_libzip-openssl:libopenssl,libzip-nossl)
Package/libzip-gnutls=$(call Package/libzip/Default,gnutls,GnuTLS,+PACKAGE_libzip-gnutls:libgnutls,libzip-mbedtls libzip-openssl libzip-nossl)
Package/libzip-mbedtls=$(call Package/libzip/Default,mbedtls,mbedTLS,+PACKAGE_libzip-mbedtls:libmbedtls,libzip-openssl libzip-nossl)
define Package/zipcmp
TITLE:=zipcmp