mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Ian Abbott <abbotti@mev.co.uk>
Subject: Re: [ptxdist] [APPLIED] vim: allow vim to be installed alongside busybox vi and xxd
Date: Sun, 12 May 2024 15:16:40 +0200	[thread overview]
Message-ID: <20240512131640.3703556-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20240503180814.636648-1-abbotti@mev.co.uk>

Thanks, applied as e859fea01e033f691efac8124902478f8496233c.

Michael

[sent from post-receive hook]

On Sun, 12 May 2024 15:16:40 +0200, Ian Abbott <abbotti@mev.co.uk> wrote:
> Commit ad2eb34a07ed ("vim: prevent file name conflicts with busybox")
> prevented vim being selected if busybox vi is selected. However, the vim
> package does not currently install /usr/bin/vi, so the only conflict is
> between vim's xxd and busybox's xxd.
> 
> Allow vim to be installed alongside busybox vi. Also add a configuration
> option to allow installation of a /usr/bin/vi symbolic link to
> /usr/bin/vim, but only allow it to be selected if busybox vi is not
> selected.
> 
> Make the auto-selection of LIBC_M depend on VIM_VIM because VIM_XXD does
> not appear to require it.  While we are at it, remove the obsolete
> GCCLIBS_GCC_S and LIBC_DL selections.
> 
> Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
> Message-Id: <20240503180814.636648-1-abbotti@mev.co.uk>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/vim.in b/rules/vim.in
> index c4c9d14e6833..d16b54a2deb1 100644
> --- a/rules/vim.in
> +++ b/rules/vim.in
> @@ -1,14 +1,8 @@
>  ## 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
> +	select LIBC_M	if VIM_VIM
>  	select NCURSES
>  	prompt "vim                           "
>  	help
> @@ -18,18 +12,22 @@ 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' vi is selected!"
> +	depends on VIM_VIM && BUSYBOX_VI
> +
> +config VIM_VI_SYMLINK
> +	depends on VIM_VIM && !BUSYBOX_VI || ALLYES
> +	bool "install symbolic link /usr/bin/vi"
> +	default y
> +
>  comment "BusyBox' xxd is selected!"
>  	depends on BUSYBOX_XXD
>  
>  config VIM_XXD
> -	depends on !BUSYBOX_XXD
> +	depends on !BUSYBOX_XXD || ALLYES
>  	bool "XXD"
>  
>  endif
> diff --git a/rules/vim.make b/rules/vim.make
> index b03778e53f53..8700b70bdd82 100644
> --- a/rules/vim.make
> +++ b/rules/vim.make
> @@ -103,6 +103,10 @@ VIM_INSTALL_OPT := \
>  
>  VIM_LINKS := ex rview rvim view vimdiff
>  
> +ifdef PTXCONF_VIM_VI_SYMLINK
> +VIM_LINKS += vi
> +endif
> +
>  $(STATEDIR)/vim.targetinstall:
>  	@$(call targetinfo)
>  



      reply	other threads:[~2024-05-12 13:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-02 14:53 [ptxdist] [PATCH] " Ian Abbott
2024-05-03  6:59 ` Alexander Dahl
2024-05-03  9:12   ` Ian Abbott
2024-05-03  9:40     ` Alexander Dahl
2024-05-03 12:24       ` Ian Abbott
2024-05-03 12:29         ` Alexander Dahl
2024-05-03  9:14 ` [ptxdist] [PATCH v2] " Ian Abbott
2024-05-03 14:56   ` Michael Olbrich
2024-05-03 18:01   ` [ptxdist] [PATCH v3] " Ian Abbott
2024-05-03 18:08     ` [ptxdist] [PATCH v4] " Ian Abbott
2024-05-12 13:16       ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240512131640.3703556-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=abbotti@mev.co.uk \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox