* [meta-oe][PATCH] vim: add recipe for vim-tiny
@ 2014-10-15 9:53 jackie.huang
2014-10-15 10:38 ` Martin Jansa
0 siblings, 1 reply; 7+ messages in thread
From: jackie.huang @ 2014-10-15 9:53 UTC (permalink / raw)
To: openembedded-devel
From: Jackie Huang <jackie.huang@windriver.com>
Changes:
- split the vim recipe to two files
- add bb for vim-tiny based on PACKAGECONFIG defined in .inc file
- use trim_version to get VIMDIR
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
meta-oe/recipes-support/vim/vim-tiny_7.4.373.bb | 15 ++++++
meta-oe/recipes-support/vim/vim.inc | 65 ++++++++++++++++++++++
meta-oe/recipes-support/vim/vim_7.4.373.bb | 71 ++-----------------------
3 files changed, 85 insertions(+), 66 deletions(-)
create mode 100644 meta-oe/recipes-support/vim/vim-tiny_7.4.373.bb
create mode 100644 meta-oe/recipes-support/vim/vim.inc
diff --git a/meta-oe/recipes-support/vim/vim-tiny_7.4.373.bb b/meta-oe/recipes-support/vim/vim-tiny_7.4.373.bb
new file mode 100644
index 0000000..f77a717
--- /dev/null
+++ b/meta-oe/recipes-support/vim/vim-tiny_7.4.373.bb
@@ -0,0 +1,15 @@
+require vim.inc
+
+PACKAGECONFIG += "tiny"
+
+do_install() {
+ install -d ${D}/${base_bindir}
+ install -m 0755 ${S}/vim ${D}/${base_bindir}/${BPN}
+ install -d ${D}/${datadir}/vim
+ install -m 0644 ../runtime/vimrc_example.vim ${D}/${datadir}/vim/virc
+}
+
+FILES_${PN} += "${datadir}/vim/virc"
+
+ALTERNATIVE_PRIORITY = "90"
+ALTERNATIVE_TARGET = "${base_bindir}/${BPN}"
diff --git a/meta-oe/recipes-support/vim/vim.inc b/meta-oe/recipes-support/vim/vim.inc
new file mode 100644
index 0000000..8729ee1
--- /dev/null
+++ b/meta-oe/recipes-support/vim/vim.inc
@@ -0,0 +1,65 @@
+SUMMARY = "Vi IMproved - enhanced vi editor"
+SECTION = "console/utils"
+DEPENDS = "ncurses gettext-native"
+# vimdiff doesn't like busybox diff
+RSUGGESTS_${PN} = "diffutils"
+LICENSE = "vim"
+LIC_FILES_CHKSUM = "file://../runtime/doc/uganda.txt;md5=b779e18be6ed77facc770691c967b8f8"
+
+SRC_URI = "hg://vim.googlecode.com/hg/;protocol=https;module=vim \
+ file://disable_acl_header_check.patch;patchdir=.. \
+ file://vim-add-knob-whether-elf.h-are-checked.patch;patchdir=.. \
+"
+SRCREV = "v${@d.getVar('PV', True).replace('.', '-')}"
+
+S = "${WORKDIR}/vim/src"
+
+VIMDIR = "vim${@oe.utils.trim_version('${PV}', 2).replace('.', '')}"
+
+inherit autotools update-alternatives
+inherit autotools-brokensep
+
+# vim configure.in contains functions which got 'dropped' by autotools.bbclass
+do_configure () {
+ rm -f auto/*
+ touch auto/config.mk
+ aclocal
+ autoconf
+ oe_runconf
+ touch auto/configure
+ touch auto/config.mk auto/config.h
+}
+
+#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny
+PACKAGECONFIG ??= ""
+PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'acl', 'acl', '', d)}"
+PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
+
+PACKAGECONFIG[gtkgui] = "--enable-gtk2-test --enable-gui=gtk2,--enable-gui=no,gtk+,"
+PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl,"
+PACKAGECONFIG[x11] = "--with-x,--without-x,xt,"
+PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,,"
+PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,"
+PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils,"
+
+EXTRA_OECONF = " \
+ --disable-gpm \
+ --disable-gtktest \
+ --disable-xim \
+ --disable-netbeans \
+ --with-tlib=ncurses \
+ ac_cv_small_wchar_t=no \
+ vim_cv_getcwd_broken=no \
+ vim_cv_memmove_handles_overlap=yes \
+ vim_cv_stat_ignores_slash=no \
+ vim_cv_terminfo=yes \
+ vim_cv_tgent=non-zero \
+ vim_cv_toupper_broken=no \
+ vim_cv_tty_group=world \
+ STRIP=/bin/true \
+"
+
+PARALLEL_MAKEINST = ""
+
+ALTERNATIVE_${PN} = "vi"
+ALTERNATIVE_LINK_NAME[vi] = "${base_bindir}/vi"
diff --git a/meta-oe/recipes-support/vim/vim_7.4.373.bb b/meta-oe/recipes-support/vim/vim_7.4.373.bb
index 81c0ddf..28e46c5 100644
--- a/meta-oe/recipes-support/vim/vim_7.4.373.bb
+++ b/meta-oe/recipes-support/vim/vim_7.4.373.bb
@@ -1,63 +1,4 @@
-SUMMARY = "Vi IMproved - enhanced vi editor"
-SECTION = "console/utils"
-DEPENDS = "ncurses gettext-native"
-# vimdiff doesn't like busybox diff
-RSUGGESTS_${PN} = "diffutils"
-LICENSE = "vim"
-LIC_FILES_CHKSUM = "file://../runtime/doc/uganda.txt;md5=b779e18be6ed77facc770691c967b8f8"
-
-SRC_URI = "hg://vim.googlecode.com/hg/;protocol=https;module=vim \
- file://disable_acl_header_check.patch;patchdir=.. \
- file://vim-add-knob-whether-elf.h-are-checked.patch;patchdir=.. \
-"
-SRCREV = "v7-4-373"
-
-S = "${WORKDIR}/${BPN}/src"
-
-VIMDIR = "${BPN}${@d.getVar('PV',1).split('.')[0]}${@d.getVar('PV',1).split('.')[1]}"
-
-inherit autotools update-alternatives
-inherit autotools-brokensep
-
-# vim configure.in contains functions which got 'dropped' by autotools.bbclass
-do_configure () {
- rm -f auto/*
- touch auto/config.mk
- aclocal
- autoconf
- oe_runconf
- touch auto/configure
- touch auto/config.mk auto/config.h
-}
-
-#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny
-PACKAGECONFIG ??= ""
-PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'acl', 'acl', '', d)}"
-PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
-
-PACKAGECONFIG[gtkgui] = "--enable-gtk2-test --enable-gui=gtk2,--enable-gui=no,gtk+,"
-PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl,"
-PACKAGECONFIG[x11] = "--with-x,--without-x,xt,"
-PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,,"
-PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,"
-PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils,"
-
-EXTRA_OECONF = " \
- --disable-gpm \
- --disable-gtktest \
- --disable-xim \
- --disable-netbeans \
- --with-tlib=ncurses \
- ac_cv_small_wchar_t=no \
- vim_cv_getcwd_broken=no \
- vim_cv_memmove_handles_overlap=yes \
- vim_cv_stat_ignores_slash=no \
- vim_cv_terminfo=yes \
- vim_cv_tgent=non-zero \
- vim_cv_toupper_broken=no \
- vim_cv_tty_group=world \
- STRIP=/bin/true \
-"
+require vim.inc
do_install_append() {
# Work around rpm picking up csh or awk or perl as a dep
@@ -69,8 +10,6 @@ do_install_append() {
install -m 0644 ../runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc
}
-PARALLEL_MAKEINST = ""
-
PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc"
FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax"
FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc"
@@ -96,7 +35,7 @@ FILES_${PN}-common = " \
# Recommend that runtime data is installed along with vim
RRECOMMENDS_${PN} = "${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-common"
-ALTERNATIVE_${PN} = "vi"
-ALTERNATIVE_TARGET[vi] = "${bindir}/${BPN}"
-ALTERNATIVE_LINK_NAME[vi] = "${base_bindir}/vi"
-ALTERNATIVE_PRIORITY[vi] = "100"
+RREPLACES_${PN} = "vim-tiny"
+
+ALTERNATIVE_PRIORITY = "100"
+ALTERNATIVE_TARGET = "${bindir}/${BPN}"
--
2.0.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [meta-oe][PATCH] vim: add recipe for vim-tiny
2014-10-15 9:53 [meta-oe][PATCH] vim: add recipe for vim-tiny jackie.huang
@ 2014-10-15 10:38 ` Martin Jansa
2014-10-15 17:45 ` Paul Barker
0 siblings, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2014-10-15 10:38 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 9789 bytes --]
On Wed, Oct 15, 2014 at 05:53:31AM -0400, jackie.huang@windriver.com wrote:
> From: Jackie Huang <jackie.huang@windriver.com>
>
> Changes:
> - split the vim recipe to two files
> - add bb for vim-tiny based on PACKAGECONFIG defined in .inc file
> - use trim_version to get VIMDIR
If you really want to revert following 2 patches, then you need to provide
more justifications for your patch and also confirm that the recipes don't
stage conflicting files in sysroot anymore (I don't see any change in recipe
preventing that).
commit 72a1427f116cbb516aeced7931aedc891865bac7
Author: Martin Jansa <Martin.Jansa@gmail.com>
Date: Mon Jan 28 12:38:19 2013 +0100
vim: implement gvim, vim-tiny as PACKAGECONFIG
* only one of those should be built in sysroot, otherwise they were
overwritting files provided by other alternatives
* define PACKAGECONFIG options
* there are no RCONFLICTS/RREPLACES/RPROVIDES, because it depends on
selected PACKAGECONFIGs
* add PN to VIMDIR and use VIMDIR where undefined VIMVER was
(e.g. "${PN}${VIMVER}")
* move checksums from .inc to recipe
* vim/gvim/vim-tiny conflict is now fatal, with
http://patches.openembedded.org/patch/43105/
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
and
commit 7be78a939bde5228a7f92a58ac08dd10901a8a4f
Author: Paul Barker <paul@paulbarker.me.uk>
Date: Fri Sep 13 20:08:22 2013 +0000
vim: upgrade to v7.4.27 and refactor
'vim.inc' is merged into the new recipe 'vim_7.4.27.bb', the recipe is slightly
reorganised and a minor omission in the comments is corrected.
DESCRIPTION is replaced with SUMMARY. PR and INC_PR values are dropped. The
variable PV_MAJOR is also dropped as it isn't used.
LIC_FILES_CHECKSUM is updated as an address and version number given in the
license have been modified. The main license text itself is unchanged.
The setting of PARALLEL_MAKE to force single-threaded compilation is removed as
there is no justification in the git history for this being needed and the
compilation completes fine without it.
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
>
> Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
> ---
> meta-oe/recipes-support/vim/vim-tiny_7.4.373.bb | 15 ++++++
> meta-oe/recipes-support/vim/vim.inc | 65 ++++++++++++++++++++++
> meta-oe/recipes-support/vim/vim_7.4.373.bb | 71 ++-----------------------
> 3 files changed, 85 insertions(+), 66 deletions(-)
> create mode 100644 meta-oe/recipes-support/vim/vim-tiny_7.4.373.bb
> create mode 100644 meta-oe/recipes-support/vim/vim.inc
>
> diff --git a/meta-oe/recipes-support/vim/vim-tiny_7.4.373.bb b/meta-oe/recipes-support/vim/vim-tiny_7.4.373.bb
> new file mode 100644
> index 0000000..f77a717
> --- /dev/null
> +++ b/meta-oe/recipes-support/vim/vim-tiny_7.4.373.bb
> @@ -0,0 +1,15 @@
> +require vim.inc
> +
> +PACKAGECONFIG += "tiny"
> +
> +do_install() {
> + install -d ${D}/${base_bindir}
> + install -m 0755 ${S}/vim ${D}/${base_bindir}/${BPN}
> + install -d ${D}/${datadir}/vim
> + install -m 0644 ../runtime/vimrc_example.vim ${D}/${datadir}/vim/virc
> +}
> +
> +FILES_${PN} += "${datadir}/vim/virc"
> +
> +ALTERNATIVE_PRIORITY = "90"
> +ALTERNATIVE_TARGET = "${base_bindir}/${BPN}"
> diff --git a/meta-oe/recipes-support/vim/vim.inc b/meta-oe/recipes-support/vim/vim.inc
> new file mode 100644
> index 0000000..8729ee1
> --- /dev/null
> +++ b/meta-oe/recipes-support/vim/vim.inc
> @@ -0,0 +1,65 @@
> +SUMMARY = "Vi IMproved - enhanced vi editor"
> +SECTION = "console/utils"
> +DEPENDS = "ncurses gettext-native"
> +# vimdiff doesn't like busybox diff
> +RSUGGESTS_${PN} = "diffutils"
> +LICENSE = "vim"
> +LIC_FILES_CHKSUM = "file://../runtime/doc/uganda.txt;md5=b779e18be6ed77facc770691c967b8f8"
> +
> +SRC_URI = "hg://vim.googlecode.com/hg/;protocol=https;module=vim \
> + file://disable_acl_header_check.patch;patchdir=.. \
> + file://vim-add-knob-whether-elf.h-are-checked.patch;patchdir=.. \
> +"
> +SRCREV = "v${@d.getVar('PV', True).replace('.', '-')}"
> +
> +S = "${WORKDIR}/vim/src"
> +
> +VIMDIR = "vim${@oe.utils.trim_version('${PV}', 2).replace('.', '')}"
> +
> +inherit autotools update-alternatives
> +inherit autotools-brokensep
> +
> +# vim configure.in contains functions which got 'dropped' by autotools.bbclass
> +do_configure () {
> + rm -f auto/*
> + touch auto/config.mk
> + aclocal
> + autoconf
> + oe_runconf
> + touch auto/configure
> + touch auto/config.mk auto/config.h
> +}
> +
> +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny
> +PACKAGECONFIG ??= ""
> +PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'acl', 'acl', '', d)}"
> +PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
> +
> +PACKAGECONFIG[gtkgui] = "--enable-gtk2-test --enable-gui=gtk2,--enable-gui=no,gtk+,"
> +PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl,"
> +PACKAGECONFIG[x11] = "--with-x,--without-x,xt,"
> +PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,,"
> +PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,"
> +PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils,"
> +
> +EXTRA_OECONF = " \
> + --disable-gpm \
> + --disable-gtktest \
> + --disable-xim \
> + --disable-netbeans \
> + --with-tlib=ncurses \
> + ac_cv_small_wchar_t=no \
> + vim_cv_getcwd_broken=no \
> + vim_cv_memmove_handles_overlap=yes \
> + vim_cv_stat_ignores_slash=no \
> + vim_cv_terminfo=yes \
> + vim_cv_tgent=non-zero \
> + vim_cv_toupper_broken=no \
> + vim_cv_tty_group=world \
> + STRIP=/bin/true \
> +"
> +
> +PARALLEL_MAKEINST = ""
> +
> +ALTERNATIVE_${PN} = "vi"
> +ALTERNATIVE_LINK_NAME[vi] = "${base_bindir}/vi"
> diff --git a/meta-oe/recipes-support/vim/vim_7.4.373.bb b/meta-oe/recipes-support/vim/vim_7.4.373.bb
> index 81c0ddf..28e46c5 100644
> --- a/meta-oe/recipes-support/vim/vim_7.4.373.bb
> +++ b/meta-oe/recipes-support/vim/vim_7.4.373.bb
> @@ -1,63 +1,4 @@
> -SUMMARY = "Vi IMproved - enhanced vi editor"
> -SECTION = "console/utils"
> -DEPENDS = "ncurses gettext-native"
> -# vimdiff doesn't like busybox diff
> -RSUGGESTS_${PN} = "diffutils"
> -LICENSE = "vim"
> -LIC_FILES_CHKSUM = "file://../runtime/doc/uganda.txt;md5=b779e18be6ed77facc770691c967b8f8"
> -
> -SRC_URI = "hg://vim.googlecode.com/hg/;protocol=https;module=vim \
> - file://disable_acl_header_check.patch;patchdir=.. \
> - file://vim-add-knob-whether-elf.h-are-checked.patch;patchdir=.. \
> -"
> -SRCREV = "v7-4-373"
> -
> -S = "${WORKDIR}/${BPN}/src"
> -
> -VIMDIR = "${BPN}${@d.getVar('PV',1).split('.')[0]}${@d.getVar('PV',1).split('.')[1]}"
> -
> -inherit autotools update-alternatives
> -inherit autotools-brokensep
> -
> -# vim configure.in contains functions which got 'dropped' by autotools.bbclass
> -do_configure () {
> - rm -f auto/*
> - touch auto/config.mk
> - aclocal
> - autoconf
> - oe_runconf
> - touch auto/configure
> - touch auto/config.mk auto/config.h
> -}
> -
> -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny
> -PACKAGECONFIG ??= ""
> -PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'acl', 'acl', '', d)}"
> -PACKAGECONFIG += "${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)}"
> -
> -PACKAGECONFIG[gtkgui] = "--enable-gtk2-test --enable-gui=gtk2,--enable-gui=no,gtk+,"
> -PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl,"
> -PACKAGECONFIG[x11] = "--with-x,--without-x,xt,"
> -PACKAGECONFIG[tiny] = "--with-features=tiny,--with-features=big,,"
> -PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux,"
> -PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils,"
> -
> -EXTRA_OECONF = " \
> - --disable-gpm \
> - --disable-gtktest \
> - --disable-xim \
> - --disable-netbeans \
> - --with-tlib=ncurses \
> - ac_cv_small_wchar_t=no \
> - vim_cv_getcwd_broken=no \
> - vim_cv_memmove_handles_overlap=yes \
> - vim_cv_stat_ignores_slash=no \
> - vim_cv_terminfo=yes \
> - vim_cv_tgent=non-zero \
> - vim_cv_toupper_broken=no \
> - vim_cv_tty_group=world \
> - STRIP=/bin/true \
> -"
> +require vim.inc
>
> do_install_append() {
> # Work around rpm picking up csh or awk or perl as a dep
> @@ -69,8 +10,6 @@ do_install_append() {
> install -m 0644 ../runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc
> }
>
> -PARALLEL_MAKEINST = ""
> -
> PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc"
> FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax"
> FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc"
> @@ -96,7 +35,7 @@ FILES_${PN}-common = " \
> # Recommend that runtime data is installed along with vim
> RRECOMMENDS_${PN} = "${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-common"
>
> -ALTERNATIVE_${PN} = "vi"
> -ALTERNATIVE_TARGET[vi] = "${bindir}/${BPN}"
> -ALTERNATIVE_LINK_NAME[vi] = "${base_bindir}/vi"
> -ALTERNATIVE_PRIORITY[vi] = "100"
> +RREPLACES_${PN} = "vim-tiny"
> +
> +ALTERNATIVE_PRIORITY = "100"
> +ALTERNATIVE_TARGET = "${bindir}/${BPN}"
> --
> 2.0.0
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-oe][PATCH] vim: add recipe for vim-tiny
2014-10-15 10:38 ` Martin Jansa
@ 2014-10-15 17:45 ` Paul Barker
2014-10-16 3:27 ` Huang, Jie (Jackie)
0 siblings, 1 reply; 7+ messages in thread
From: Paul Barker @ 2014-10-15 17:45 UTC (permalink / raw)
To: OE Devel
On 15 October 2014 11:38, Martin Jansa <martin.jansa@gmail.com> wrote:
> On Wed, Oct 15, 2014 at 05:53:31AM -0400, jackie.huang@windriver.com wrote:
>> From: Jackie Huang <jackie.huang@windriver.com>
>>
>> Changes:
>> - split the vim recipe to two files
>> - add bb for vim-tiny based on PACKAGECONFIG defined in .inc file
>> - use trim_version to get VIMDIR
>
> If you really want to revert following 2 patches, then you need to provide
> more justifications for your patch and also confirm that the recipes don't
> stage conflicting files in sysroot anymore (I don't see any change in recipe
> preventing that).
>
Agreed. There may be a use for having both vim and vim-tiny in a
package feed, but I think we need a better way of handling it than
this.
This patch is difficult to fully review as it mixes conceptually
different changes together. If this or something similar does go in
after further discussion, it needs to be split up.
Thanks
--
Paul Barker
Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-oe][PATCH] vim: add recipe for vim-tiny
2014-10-15 17:45 ` Paul Barker
@ 2014-10-16 3:27 ` Huang, Jie (Jackie)
2014-10-16 11:49 ` Paul Barker
0 siblings, 1 reply; 7+ messages in thread
From: Huang, Jie (Jackie) @ 2014-10-16 3:27 UTC (permalink / raw)
To: Martin Jansa (martin.jansa@gmail.com), paul@paulbarker.me.uk
Cc: openembedded-devel@lists.openembedded.org
> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org [mailto:openembedded-devel-
> bounces@lists.openembedded.org] On Behalf Of Paul Barker
> Sent: Thursday, October 16, 2014 1:45 AM
> To: OE Devel
> Subject: Re: [oe] [meta-oe][PATCH] vim: add recipe for vim-tiny
>
> On 15 October 2014 11:38, Martin Jansa <martin.jansa@gmail.com> wrote:
> > On Wed, Oct 15, 2014 at 05:53:31AM -0400, jackie.huang@windriver.com wrote:
> >> From: Jackie Huang <jackie.huang@windriver.com>
> >>
> >> Changes:
> >> - split the vim recipe to two files
> >> - add bb for vim-tiny based on PACKAGECONFIG defined in .inc file
> >> - use trim_version to get VIMDIR
> >
> > If you really want to revert following 2 patches, then you need to
Sorry that I didn't notice the 2 patches in the commit history.
> > provide more justifications for your patch and also confirm that the
> > recipes don't stage conflicting files in sysroot anymore (I don't see
> > any change in recipe preventing that).
In vim-tiny, there are only two files installed: the binary and the rc file,
and they are renamed to avoid the confliction:
$ find . -type f
./bin/vim-tiny (it's vim in vim package)
./usr/share/vim/virc (it's vimrc in vim package)
> >
>
> Agreed. There may be a use for having both vim and vim-tiny in a package feed, but I think we need a
We have been using like this for a long time and it works fine when both vim and vim-tiny are installed.
> better way of handling it than this.
I don't insist on this way and will be happy if there is a better way to handle this. We usually define what
need to be installed in different packagegroups and images, for smaller image, we need vim-tiny, some
others need vim, I know we can change PACKAGECONFIG to get different vims, but it doesn't work in
packagegroup or image. And it seems more clear to user/customer if we use name like vim-tiny,
gvim/vim-gui, or user may complain that vim is not fully featured when they see vim is installed but actually
it is the one with tiny feature.
>
> This patch is difficult to fully review as it mixes conceptually different changes together. If this or
> something similar does go in after further discussion, it needs to be split up.
Yeah, sorry for that, I will split it up if needed after further discussion here.
Thanks,
Jackie
>
> Thanks
>
> --
> Paul Barker
>
> Email: paul@paulbarker.me.uk
> http://www.paulbarker.me.uk
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-oe][PATCH] vim: add recipe for vim-tiny
2014-10-16 3:27 ` Huang, Jie (Jackie)
@ 2014-10-16 11:49 ` Paul Barker
2014-10-17 3:06 ` Huang, Jie (Jackie)
2014-10-19 21:47 ` Khem Raj
0 siblings, 2 replies; 7+ messages in thread
From: Paul Barker @ 2014-10-16 11:49 UTC (permalink / raw)
To: Huang, Jie (Jackie); +Cc: openembedded-devel@lists.openembedded.org
On 16 October 2014 04:27, Huang, Jie (Jackie)
<Jackie.Huang@windriver.com> wrote:
>
>
>> -----Original Message-----
>> From: openembedded-devel-bounces@lists.openembedded.org [mailto:openembedded-devel-
>> bounces@lists.openembedded.org] On Behalf Of Paul Barker
>> Sent: Thursday, October 16, 2014 1:45 AM
>> To: OE Devel
>> Subject: Re: [oe] [meta-oe][PATCH] vim: add recipe for vim-tiny
>>
>> On 15 October 2014 11:38, Martin Jansa <martin.jansa@gmail.com> wrote:
>> > On Wed, Oct 15, 2014 at 05:53:31AM -0400, jackie.huang@windriver.com wrote:
>> >> From: Jackie Huang <jackie.huang@windriver.com>
>> >>
>> >> Changes:
>> >> - split the vim recipe to two files
>> >> - add bb for vim-tiny based on PACKAGECONFIG defined in .inc file
>> >> - use trim_version to get VIMDIR
>> >
>> > If you really want to revert following 2 patches, then you need to
>
> Sorry that I didn't notice the 2 patches in the commit history.
>
>> > provide more justifications for your patch and also confirm that the
>> > recipes don't stage conflicting files in sysroot anymore (I don't see
>> > any change in recipe preventing that).
>
> In vim-tiny, there are only two files installed: the binary and the rc file,
> and they are renamed to avoid the confliction:
> $ find . -type f
> ./bin/vim-tiny (it's vim in vim package)
> ./usr/share/vim/virc (it's vimrc in vim package)
>
With just vim-tiny installed, the user should still be able to run
'vim' to start the program. We could make that an update-alternatives
link, but then we'd have to rename the executable for vim proper and
use update-alternatives there as well.
I'd rather see both packages use the 'vim' executable name and set
CONFLICTS/RCONFLICTS appropriately, unless there is a good reason a
user would want both 'vim' and 'vim-tiny' installed together.
>> >
>>
>> Agreed. There may be a use for having both vim and vim-tiny in a package feed, but I think we need a
>
> We have been using like this for a long time and it works fine when both vim and vim-tiny are installed.
>
>> better way of handling it than this.
>
> I don't insist on this way and will be happy if there is a better way to handle this. We usually define what
> need to be installed in different packagegroups and images, for smaller image, we need vim-tiny, some
> others need vim, I know we can change PACKAGECONFIG to get different vims, but it doesn't work in
> packagegroup or image. And it seems more clear to user/customer if we use name like vim-tiny,
> gvim/vim-gui, or user may complain that vim is not fully featured when they see vim is installed but actually
> it is the one with tiny feature.
I think this is a wider issue that may affect packages other than vim.
I seem to recall the question of whether PACKAGECONFIG values can be
set per image recipe being asked previously.
Is it possible to write a vim-tiny recipe without splitting vim.inc
from vim_*.bb? Can vim-tiny just 'require vim_7.4.373.bb' and change
PACKAGECONFIG and the do_install function?
>
>>
>> This patch is difficult to fully review as it mixes conceptually different changes together. If this or
>> something similar does go in after further discussion, it needs to be split up.
>
> Yeah, sorry for that, I will split it up if needed after further discussion here.
>
> Thanks,
> Jackie
>
Cheers,
--
Paul Barker
Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-oe][PATCH] vim: add recipe for vim-tiny
2014-10-16 11:49 ` Paul Barker
@ 2014-10-17 3:06 ` Huang, Jie (Jackie)
2014-10-19 21:47 ` Khem Raj
1 sibling, 0 replies; 7+ messages in thread
From: Huang, Jie (Jackie) @ 2014-10-17 3:06 UTC (permalink / raw)
To: Paul Barker; +Cc: openembedded-devel@lists.openembedded.org
> -----Original Message-----
> From: paul.betafive@gmail.com [mailto:paul.betafive@gmail.com] On Behalf Of Paul Barker
> Sent: Thursday, October 16, 2014 7:49 PM
> To: Huang, Jie (Jackie)
> Cc: Martin Jansa (martin.jansa@gmail.com); openembedded-devel@lists.openembedded.org
> Subject: Re: [oe] [meta-oe][PATCH] vim: add recipe for vim-tiny
>
> On 16 October 2014 04:27, Huang, Jie (Jackie) <Jackie.Huang@windriver.com> wrote:
> >
> >
> >> -----Original Message-----
> >> From: openembedded-devel-bounces@lists.openembedded.org
> >> [mailto:openembedded-devel- bounces@lists.openembedded.org] On Behalf
> >> Of Paul Barker
> >> Sent: Thursday, October 16, 2014 1:45 AM
> >> To: OE Devel
> >> Subject: Re: [oe] [meta-oe][PATCH] vim: add recipe for vim-tiny
> >>
> >> On 15 October 2014 11:38, Martin Jansa <martin.jansa@gmail.com> wrote:
> >> > On Wed, Oct 15, 2014 at 05:53:31AM -0400, jackie.huang@windriver.com wrote:
> >> >> From: Jackie Huang <jackie.huang@windriver.com>
> >> >>
> >> >> Changes:
> >> >> - split the vim recipe to two files
> >> >> - add bb for vim-tiny based on PACKAGECONFIG defined in .inc file
> >> >> - use trim_version to get VIMDIR
> >> >
> >> > If you really want to revert following 2 patches, then you need to
> >
> > Sorry that I didn't notice the 2 patches in the commit history.
> >
> >> > provide more justifications for your patch and also confirm that
> >> > the recipes don't stage conflicting files in sysroot anymore (I
> >> > don't see any change in recipe preventing that).
> >
> > In vim-tiny, there are only two files installed: the binary and the rc
> > file, and they are renamed to avoid the confliction:
> > $ find . -type f
> > ./bin/vim-tiny (it's vim in vim package) ./usr/share/vim/virc (it's
> > vimrc in vim package)
> >
>
> With just vim-tiny installed, the user should still be able to run 'vim' to start the program. We could
> make that an update-alternatives link, but then we'd have to rename the executable for vim proper
> and use update-alternatives there as well.
>
> I'd rather see both packages use the 'vim' executable name and set CONFLICTS/RCONFLICTS
Yeah, it would be better to do like this, I will change it.
> appropriately, unless there is a good reason a user would want both 'vim' and 'vim-tiny' installed
> together.
>
> >> >
> >>
> >> Agreed. There may be a use for having both vim and vim-tiny in a
> >> package feed, but I think we need a
> >
> > We have been using like this for a long time and it works fine when both vim and vim-tiny are
> installed.
> >
> >> better way of handling it than this.
> >
> > I don't insist on this way and will be happy if there is a better way
> > to handle this. We usually define what need to be installed in
> > different packagegroups and images, for smaller image, we need
> > vim-tiny, some others need vim, I know we can change PACKAGECONFIG to
> > get different vims, but it doesn't work in packagegroup or image. And
> > it seems more clear to user/customer if we use name like vim-tiny, gvim/vim-gui, or user may
> complain that vim is not fully featured when they see vim is installed but actually it is the one with tiny
> feature.
>
> I think this is a wider issue that may affect packages other than vim.
> I seem to recall the question of whether PACKAGECONFIG values can be set per image recipe being
> asked previously.
>
> Is it possible to write a vim-tiny recipe without splitting vim.inc from vim_*.bb? Can vim-tiny just
> 'require vim_7.4.373.bb' and change PACKAGECONFIG and the do_install function?
I had thought about this, but never try. I just checked that there are some evidence that "require bb"
should work, so it's possible and I think it would be a better way to handle this. I will re-work on it and
send v2, thanks!
Thanks,
Jackie
>
> >
> >>
> >> This patch is difficult to fully review as it mixes conceptually
> >> different changes together. If this or something similar does go in after further discussion, it needs
> to be split up.
> >
> > Yeah, sorry for that, I will split it up if needed after further discussion here.
> >
> > Thanks,
> > Jackie
> >
>
> Cheers,
>
> --
> Paul Barker
>
> Email: paul@paulbarker.me.uk
> http://www.paulbarker.me.uk
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-oe][PATCH] vim: add recipe for vim-tiny
2014-10-16 11:49 ` Paul Barker
2014-10-17 3:06 ` Huang, Jie (Jackie)
@ 2014-10-19 21:47 ` Khem Raj
1 sibling, 0 replies; 7+ messages in thread
From: Khem Raj @ 2014-10-19 21:47 UTC (permalink / raw)
To: openembedded-devel@lists.openembedded.org
On Thursday, October 16, 2014, Paul Barker <paul@paulbarker.me.uk> wrote:
> On 16 October 2014 04:27, Huang, Jie (Jackie)
> <Jackie.Huang@windriver.com <javascript:;>> wrote:
> >
> >
> >> -----Original Message-----
> >> From: openembedded-devel-bounces@lists.openembedded.org <javascript:;>
> [mailto:openembedded-devel- <javascript:;>
> >> bounces@lists.openembedded.org <javascript:;>] On Behalf Of Paul Barker
> >> Sent: Thursday, October 16, 2014 1:45 AM
> >> To: OE Devel
> >> Subject: Re: [oe] [meta-oe][PATCH] vim: add recipe for vim-tiny
> >>
> >> On 15 October 2014 11:38, Martin Jansa <martin.jansa@gmail.com
> <javascript:;>> wrote:
> >> > On Wed, Oct 15, 2014 at 05:53:31AM -0400, jackie.huang@windriver.com
> <javascript:;> wrote:
> >> >> From: Jackie Huang <jackie.huang@windriver.com <javascript:;>>
> >> >>
> >> >> Changes:
> >> >> - split the vim recipe to two files
> >> >> - add bb for vim-tiny based on PACKAGECONFIG defined in .inc file
> >> >> - use trim_version to get VIMDIR
> >> >
> >> > If you really want to revert following 2 patches, then you need to
> >
> > Sorry that I didn't notice the 2 patches in the commit history.
> >
> >> > provide more justifications for your patch and also confirm that the
> >> > recipes don't stage conflicting files in sysroot anymore (I don't see
> >> > any change in recipe preventing that).
> >
> > In vim-tiny, there are only two files installed: the binary and the rc
> file,
> > and they are renamed to avoid the confliction:
> > $ find . -type f
> > ./bin/vim-tiny (it's vim in vim package)
> > ./usr/share/vim/virc (it's vimrc in vim package)
> >
>
> With just vim-tiny installed, the user should still be able to run
> 'vim' to start the program. We could make that an update-alternatives
> link, but then we'd have to rename the executable for vim proper and
> use update-alternatives there as well.
>
> I'd rather see both packages use the 'vim' executable name and set
> CONFLICTS/RCONFLICTS appropriately, unless there is a good reason a
> user would want both 'vim' and 'vim-tiny' installed together.
>
> >> >
> >>
> >> Agreed. There may be a use for having both vim and vim-tiny in a
> package feed, but I think we need a
> >
> > We have been using like this for a long time and it works fine when both
> vim and vim-tiny are installed.
> >
> >> better way of handling it than this.
> >
> > I don't insist on this way and will be happy if there is a better way to
> handle this. We usually define what
> > need to be installed in different packagegroups and images, for smaller
> image, we need vim-tiny, some
> > others need vim, I know we can change PACKAGECONFIG to get different
> vims, but it doesn't work in
> > packagegroup or image. And it seems more clear to user/customer if we
> use name like vim-tiny,
> > gvim/vim-gui, or user may complain that vim is not fully featured when
> they see vim is installed but actually
> > it is the one with tiny feature.
>
> I think this is a wider issue that may affect packages other than vim.
> I seem to recall the question of whether PACKAGECONFIG values can be
> set per image recipe being asked previously.
This would need lot more plumbing if you want this to be per image then you
have to rebuild the package per image too
>
> Is it possible to write a vim-tiny recipe without splitting vim.inc
> from vim_*.bb? Can vim-tiny just 'require vim_7.4.373.bb' and change
> PACKAGECONFIG and the do_install function?
>
> >
> >>
> >> This patch is difficult to fully review as it mixes conceptually
> different changes together. If this or
> >> something similar does go in after further discussion, it needs to be
> split up.
> >
> > Yeah, sorry for that, I will split it up if needed after further
> discussion here.
> >
> > Thanks,
> > Jackie
> >
>
> Cheers,
>
> --
> Paul Barker
>
> Email: paul@paulbarker.me.uk <javascript:;>
> http://www.paulbarker.me.uk
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org <javascript:;>
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-10-19 21:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-15 9:53 [meta-oe][PATCH] vim: add recipe for vim-tiny jackie.huang
2014-10-15 10:38 ` Martin Jansa
2014-10-15 17:45 ` Paul Barker
2014-10-16 3:27 ` Huang, Jie (Jackie)
2014-10-16 11:49 ` Paul Barker
2014-10-17 3:06 ` Huang, Jie (Jackie)
2014-10-19 21:47 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.