diff options
author | Roland Hieber <rhi@pengutronix.de> | 2023-04-04 23:04:35 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2023-04-10 21:29:03 +0200 |
commit | ad2eb34a07ed0ba8868bcf2341555ed59e02ea4a (patch) | |
tree | a6db613d193e1870c801b31f4655303fedd09919 /rules/vim.in | |
parent | 5a26295b272ed81e8814a78b386b2e5032e5d7e1 (diff) | |
download | ptxdist-ad2eb34a07ed0ba8868bcf2341555ed59e02ea4a.tar.gz ptxdist-ad2eb34a07ed0ba8868bcf2341555ed59e02ea4a.tar.xz |
vim: prevent file name conflicts with busybox
Busybox can install both xxd and vi, which will conflict with the files
installed by the vim package. If both busybox tools are selected, don't
make the vim menu selectable at all, otherwise make only the tools
selectable that are not installed by busybox.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Message-Id: <20230404210435.3363032-1-rhi@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/vim.in')
-rw-r--r-- | rules/vim.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rules/vim.in b/rules/vim.in index f09b93b47..c4c9d14e6 100644 --- a/rules/vim.in +++ b/rules/vim.in @@ -1,7 +1,11 @@ ## SECTION=editors +comment "BusyBox' vi and xxd is selected!" + depends on BUSYBOX_VI && BUSYBOX_XXD + menuconfig VIM tristate + depends on !(BUSYBOX_VI && BUSYBOX_XXD) select LIBC_DL select LIBC_M select GCCLIBS_GCC_S @@ -14,10 +18,18 @@ menuconfig VIM if VIM +comment "BusyBox' vi is selected!" + depends on BUSYBOX_VI + config VIM_VIM + depends on !BUSYBOX_VI bool "Vim Editor" +comment "BusyBox' xxd is selected!" + depends on BUSYBOX_XXD + config VIM_XXD + depends on !BUSYBOX_XXD bool "XXD" endif |