Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Martin Jansa <martin.jansa@gmail.com>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] vim: Rework things so vim adds features not vim-tiny removes
Date: Sat, 18 May 2019 15:03:27 -0400	[thread overview]
Message-ID: <20190518190327.GL22232@bill-the-cat> (raw)
In-Reply-To: <CA+chaQdA-jTDBMz_S9gMDLzSU8NWd3b4tvfyRPVdLkq46_vKSQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4521 bytes --]

On Sat, May 18, 2019 at 08:57:02PM +0200, Martin Jansa wrote:
> Thanks Tom for quick update.
> 
> ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd"
> ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd"
> looks strange, IIRC TARGET and LINK_NAME should always point to different
> filepath, it was added in meta-oe commit:
> 
> commit 897c10b7c17c138a85bdeb36cf72e7201daf0e0e
> Author: Dan McGregor <dan.mcgregor@usask.ca>
> Date:   Thu Oct 18 09:46:27 2018 -0600
> 
>     vim: alternatify xxd
> 
>     toybox also provides xxd.
> 
> but I wonder what u-a does (or is supposed to do in this scenario). Maybe
> u-a bbclass automatically adds .${BPN} suffix to TARGET and renames the
> installed file?

I'll double check, but also toybox doesn't have anything for xxd today,
so I'll add that into my build and come up with something sane for both
if needed, thanks!

> 
> On Sat, May 18, 2019 at 8:34 PM Tom Rini <trini@konsulko.com> wrote:
> 
> > Now that we have a common inc file for both vim and vim-tiny move a few
> > bits of logic out of vim.inc and in to vim_$VER.bb so that vim adds
> > things rather than vim-tiny removes them.
> >
> > Suggested-by: Martin Jansa <martin.jansa@gmail.com>
> > Signed-off-by: Tom Rini <trini@konsulko.com>
> > ---
> >  meta/recipes-support/vim/vim-tiny_8.1.1240.bb | 3 ---
> >  meta/recipes-support/vim/vim.inc              | 8 +-------
> >  meta/recipes-support/vim/vim_8.1.1240.bb      | 9 +++++++++
> >  3 files changed, 10 insertions(+), 10 deletions(-)
> >
> > diff --git a/meta/recipes-support/vim/vim-tiny_8.1.1240.bb
> > b/meta/recipes-support/vim/vim-tiny_8.1.1240.bb
> > index 139e626e4444..e4c26d23f69d 100644
> > --- a/meta/recipes-support/vim/vim-tiny_8.1.1240.bb
> > +++ b/meta/recipes-support/vim/vim-tiny_8.1.1240.bb
> > @@ -2,9 +2,6 @@ require vim.inc
> >
> >  SUMMARY += " (with tiny features)"
> >
> > -PROVIDES_remove = "xxd"
> > -ALTERNATIVE_${PN}_remove = "xxd"
> > -
> >  PACKAGECONFIG += "tiny"
> >
> >  do_install() {
> > diff --git a/meta/recipes-support/vim/vim.inc
> > b/meta/recipes-support/vim/vim.inc
> > index f5c74684bfa7..433f23344826 100644
> > --- a/meta/recipes-support/vim/vim.inc
> > +++ b/meta/recipes-support/vim/vim.inc
> > @@ -1,7 +1,6 @@
> >  SUMMARY = "Vi IMproved - enhanced vi editor"
> >  SECTION = "console/utils"
> >
> > -PROVIDES = "xxd"
> >  DEPENDS = "ncurses gettext-native"
> >  # vimdiff doesn't like busybox diff
> >  RSUGGESTS_${PN} = "diffutils"
> > @@ -52,7 +51,6 @@ PACKAGECONFIG += " \
> >      ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \
> >      ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \
> >  "
> > -PACKAGECONFIG_class-native = ""
> >
> >  PACKAGECONFIG[gtkgui] = "--enable-gui=gtk2,--enable-gui=no,gtk+,"
> >  PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl,"
> > @@ -130,12 +128,8 @@ RDEPENDS_${BPN} = "ncurses-terminfo-base"
> >  # Recommend that runtime data is installed along with vim
> >  RRECOMMENDS_${BPN} = "${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc
> > ${PN}-common"
> >
> > -ALTERNATIVE_${PN} = "vi vim xxd"
> > +ALTERNATIVE_${PN} = "vi vim"
> >  ALTERNATIVE_PRIORITY = "100"
> >  ALTERNATIVE_TARGET = "${bindir}/${BPN}.${BPN}"
> >  ALTERNATIVE_LINK_NAME[vi] = "${base_bindir}/vi"
> >  ALTERNATIVE_LINK_NAME[vim] = "${bindir}/vim"
> > -ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd"
> > -ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd"
> > -
> > -BBCLASSEXTEND = "native"
> > diff --git a/meta/recipes-support/vim/vim_8.1.1240.bb
> > b/meta/recipes-support/vim/vim_8.1.1240.bb
> > index baaaacc0b77f..60946a181f42 100644
> > --- a/meta/recipes-support/vim/vim_8.1.1240.bb
> > +++ b/meta/recipes-support/vim/vim_8.1.1240.bb
> > @@ -1 +1,10 @@
> >  require vim.inc
> > +
> > +PROVIDES = "xxd"
> > +
> > +PACKAGECONFIG_class-native = ""
> > +BBCLASSEXTEND = "native"
> > +
> > +ALTERNATIVE_${PN}_append = " xxd"
> > +ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd"
> > +ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd"
> > --
> > 2.7.4
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >

> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2019-05-18 19:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-17 13:53 [PATCH] vim: split the common part into vim.inc Alexander Kanavin
2019-05-17 14:27 ` Martin Jansa
2019-05-17 14:29   ` Martin Jansa
2019-05-17 14:34     ` Alexander Kanavin
2019-05-18 11:35       ` Tom Rini
2019-05-18 14:46         ` Alexander Kanavin
2019-05-18 18:34 ` [PATCH] vim: Rework things so vim adds features not vim-tiny removes Tom Rini
2019-05-18 18:57   ` Martin Jansa
2019-05-18 19:03     ` Tom Rini [this message]
2019-05-19  0:13       ` Tom Rini

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=20190518190327.GL22232@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=martin.jansa@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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