vim: variants conflict with each other
authorKarel Kočí <cynerd@email.cz>
Mon, 22 Aug 2022 12:31:21 +0000 (14:31 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Wed, 24 Aug 2022 06:25:54 +0000 (08:25 +0200)
This adds conflicts between the variants,
because they provide the same files, and it should not be
possible to install them side by side. Otherwise, it might happen that
half files would be from one variant and the other half from the
other.

Also, adds provides as if you request to install ``vim`` and
``vim-full``, then the request could be satisfied even they collide,
because ``vim-full`` provides ``vim`` package.

Signed-off-by: Karel Kočí <cynerd@email.cz>
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
[add commit message]
(cherry picked from commit 46c058468aeaf7747c2e94e579020aa7f595c649)

utils/vim/Makefile

index 5d9b21c73cfe445ab88e07d261c92c8cc202e589..9789e833a5fcc9f7f432d720e8d3cbe6b91d48df 100644 (file)
@@ -46,12 +46,16 @@ endef
 define Package/vim-full
   $(call Package/vim/Default)
   TITLE+= (Normal)
+  PROVIDES:=vim
+  CONFLICTS:=vim
 endef
 
 
 define Package/vim-fuller
   $(call Package/vim/Default)
   TITLE+= (Big)
+  PROVIDES:=vim vim-full
+  CONFLICTS:=vim vim-full
 endef
 
 define Package/vim-runtime