Skip to contentSkip to conversation

vim: add recipe for vim-tiny

PATCH Superseded [email protected] 4 participants 7 messages Oct 15, 2014 – Oct 19, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vim: add recipe for vim-tiny

From: Jackie Huang <[email protected]>

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

---
 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
meta-oe/recipes-support/vim/vim-tiny_7.4.373.bb new file +15 -0
new file mode 100644
index 0000000..f77a717
@@ -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}"
meta-oe/recipes-support/vim/vim.inc new file +65 -0

65 lines not on this page · raw message

meta-oe/recipes-support/vim/vim_7.4.373.bb +5 -66

83 lines not on this page · raw message

Signature · 1 line
2.0.0
#1 lore raw
Quoted 6 lines · On Wed, Oct 15, 2014 at 05:53:31AM -0400, [email protected] wrote:

From: Jackie Huang <[email protected]>

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 <[email protected]>
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/

and

commit 7be78a939bde5228a7f92a58ac08dd10901a8a4f

Author: Paul Barker <[email protected]>
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.

Quoted 200 lines
---
 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
meta-oe/recipes-support/vim/vim-tiny_7.4.373.bb new file +15 -0
new file mode 100644
index 0000000..f77a717
@@ -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}"
meta-oe/recipes-support/vim/vim.inc new file +65 -0
new file mode 100644
index 0000000..8729ee1
@@ -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"
meta-oe/recipes-support/vim/vim_7.4.373.bb +5 -66
index 81c0ddf..28e46c5 100644
@@ -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}"
Signature · 7 lines
2.0.0

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
Quoted 8 lines · Martin Jansa
Quoted 6 lines · On Wed, Oct 15, 2014 at 05:53:31AM -0400, [email protected] wrote:

From: Jackie Huang <[email protected]>

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

Quoted 5 lines

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

Signature · 4 lines
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk
#3 lore raw
Quoted 19 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] 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

Quoted 9 lines · Martin Jansa
Quoted 6 lines · On Wed, Oct 15, 2014 at 05:53:31AM -0400, [email protected] wrote:

From: Jackie Huang <[email protected]>

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.

Quoted 3 lines
Quoted 3 lines

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)
Quoted 3 lines
Quoted 1 line

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.

Quoted 1 line

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.

Quoted 3 lines

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

Quoted 13 lines

Thanks

--
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw
Quoted 26 lines · Jie (Jackie)
Quoted 19 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] 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

Quoted 9 lines · Martin Jansa
Quoted 6 lines · On Wed, Oct 15, 2014 at 05:53:31AM -0400, [email protected] wrote:

From: Jackie Huang <[email protected]>

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.

Quoted 3 lines
Quoted 3 lines

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).

Quoted 6 lines

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.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

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.

Quoted 8 lines
Quoted 1 line

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?

Quoted 10 lines
Quoted 4 lines

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,

Signature · 4 lines
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk
#5 lore raw
Quoted 44 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Paul Barker
Sent: Thursday, October 16, 2014 7:49 PM
To: Huang, Jie (Jackie)
Cc: Martin Jansa ([email protected]); [email protected]
Subject: Re: [oe] [meta-oe][PATCH] vim: add recipe for vim-tiny

Quoted 27 lines · Jie (Jackie)
Quoted 10 lines

-----Original Message-----
From: [email protected] [mailto:openembedded-devel- [email protected]] 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

Quoted 10 lines
Quoted 9 lines · Martin Jansa
Quoted 6 lines · On Wed, Oct 15, 2014 at 05:53:31AM -0400, [email protected] wrote:

From: Jackie Huang <[email protected]>

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.

Quoted 3 lines
Quoted 3 lines

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).

Quoted 6 lines

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)
Quoted 5 lines

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.

Quoted 22 lines

appropriately, unless there is a good reason a user would want both 'vim' and 'vim-tiny' installed together.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

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.

Quoted 9 lines
Quoted 2 lines

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.

Quoted 6 lines

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

Quoted 20 lines
Quoted 5 lines
Quoted 5 lines

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.

Quoted 6 lines

Yeah, sorry for that, I will split it up if needed after further discussion here.

Thanks,
Jackie

Cheers,

--
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk

#6 lore raw
In reply to Paul Barker
Quoted 65 lines · Paul Barker
Quoted 4 lines · On 16 October 2014 04:27, Huang, Jie (Jackie) <[email protected]…
Quoted 4 lines

-----Original Message-----
From: [email protected] <javascript:;>

[mailto:openembedded-devel- <javascript:;>

Quoted 6 lines
Quoted 6 lines

[email protected] <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 <[email protected]

Quoted 1 line · <javascript:;>> wrote:
Quoted 1 line
Quoted 1 line

On Wed, Oct 15, 2014 at 05:53:31AM -0400, [email protected]

Quoted 9 lines · <javascript:;> wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

From: Jackie Huang <[email protected] <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

Quoted 7 lines

Sorry that I didn't notice the 2 patches in the commit history.

Quoted 3 lines
Quoted 3 lines

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,

Quoted 5 lines

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.

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

Agreed. There may be a use for having both vim and vim-tiny in a

package feed, but I think we need a

Quoted 2 lines

We have been using like this for a long time and it works fine when both

vim and vim-tiny are installed.

Quoted 4 lines
Quoted 2 lines

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

Quoted 1 line

need to be installed in different packagegroups and images, for smaller

image, we need vim-tiny, some

Quoted 1 line

others need vim, I know we can change PACKAGECONFIG to get different

vims, but it doesn't work in

Quoted 1 line

packagegroup or image. And it seems more clear to user/customer if we

Quoted 8 lines

use name like vim-tiny,

Quoted 1 line

gvim/vim-gui, or user may complain that vim is not fully featured when

they see vim is installed but actually

Quoted 1 line

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

Quoted 32 lines

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?

Quoted 3 lines
Quoted 3 lines

This patch is difficult to fully review as it mixes conceptually

different changes together. If this or

Quoted 1 line
Quoted 1 line

something similar does go in after further discussion, it needs to be

split up.

Quoted 2 lines

Yeah, sorry for that, I will split it up if needed after further

discussion here.

Quoted 4 lines

Thanks,
Jackie

Cheers,

--
Paul Barker

Email: [email protected] <javascript:;>
http://www.paulbarker.me.uk
--
_______________________________________________
Openembedded-devel mailing list [email protected] <javascript:;>
http://lists.openembedded.org/mailman/listinfo/openembedded-devel