mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] vim: prevent file name conflicts with busybox
@ 2023-04-04 21:04 Roland Hieber
  2023-04-12  6:29 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Hieber @ 2023-04-04 21:04 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

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>
---
 rules/vim.in | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/rules/vim.in b/rules/vim.in
index f09b93b47cfd..c4c9d14e6833 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
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] vim: prevent file name conflicts with busybox
  2023-04-04 21:04 [ptxdist] [PATCH] vim: prevent file name conflicts with busybox Roland Hieber
@ 2023-04-12  6:29 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2023-04-12  6:29 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

Thanks, applied as ad2eb34a07ed0ba8868bcf2341555ed59e02ea4a.

Michael

[sent from post-receive hook]

On Wed, 12 Apr 2023 08:29:52 +0200, Roland Hieber <rhi@pengutronix.de> wrote:
> 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>
> 
> diff --git a/rules/vim.in b/rules/vim.in
> index f09b93b47cfd..c4c9d14e6833 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-12  6:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-04 21:04 [ptxdist] [PATCH] vim: prevent file name conflicts with busybox Roland Hieber
2023-04-12  6:29 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox