libgd: add conflicts to each other
authorJosef Schlehofer <pepe.schlehofer@gmail.com>
Mon, 22 Aug 2022 12:58:19 +0000 (14:58 +0200)
committerRosen Penev <rosenp@gmail.com>
Wed, 24 Aug 2022 04:16:45 +0000 (21:16 -0700)
The full variant should conflict with the default variant. This prevents that
libgd and libgd-full could be installed side by side, and also, the full
variant should provide the libgd. Otherwise, if you install libgd-full,
you can not install vnstat.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
libs/libgd/Makefile

index 0e614ea1fa91a368f6d847d503b5e49cb877e2d1..83a61ca6b72484e4d8151b95535fd5cde8dca1c4 100644 (file)
@@ -43,6 +43,8 @@ define Package/libgd-full
   DEPENDS+=+libtiff +libfreetype
   TITLE+=(full)
   VARIANT:=full
+  PROVIDES:=libgd
+  CONFLICTS:=libgd
 endef
 
 define Package/libgd/description/default