* [PATCH] vim: split the common part into vim.inc @ 2019-05-17 13:53 Alexander Kanavin 2019-05-17 14:27 ` Martin Jansa 2019-05-18 18:34 ` [PATCH] vim: Rework things so vim adds features not vim-tiny removes Tom Rini 0 siblings, 2 replies; 10+ messages in thread From: Alexander Kanavin @ 2019-05-17 13:53 UTC (permalink / raw) To: openembedded-core Previously vim-tiny would include the vim recipe wholesale; this meant that they had to be upgraded in a single transaction which devtool cannot cope with. This thwarted the latest AUH run in particular. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> --- meta/recipes-support/vim/vim-tiny_8.1.1240.bb | 2 +- meta/recipes-support/vim/vim.inc | 141 +++++++++++++++++ meta/recipes-support/vim/vim_8.1.1240.bb | 142 +----------------- 3 files changed, 143 insertions(+), 142 deletions(-) create mode 100644 meta/recipes-support/vim/vim.inc 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 74464833adb..139e626e444 100644 --- a/meta/recipes-support/vim/vim-tiny_8.1.1240.bb +++ b/meta/recipes-support/vim/vim-tiny_8.1.1240.bb @@ -1,4 +1,4 @@ -require vim_${PV}.bb +require vim.inc SUMMARY += " (with tiny features)" diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc new file mode 100644 index 00000000000..f5c74684bfa --- /dev/null +++ b/meta/recipes-support/vim/vim.inc @@ -0,0 +1,141 @@ +SUMMARY = "Vi IMproved - enhanced vi editor" +SECTION = "console/utils" + +PROVIDES = "xxd" +DEPENDS = "ncurses gettext-native" +# vimdiff doesn't like busybox diff +RSUGGESTS_${PN} = "diffutils" +LICENSE = "vim" +LIC_FILES_CHKSUM = "file://runtime/doc/uganda.txt;endline=287;md5=f1f82b42360005c70b8c19b0ef493f72" + +SRC_URI = "git://github.com/vim/vim.git \ + file://disable_acl_header_check.patch \ + file://vim-add-knob-whether-elf.h-are-checked.patch \ + file://0001-src-Makefile-improve-reproducibility.patch \ +" +SRCREV = "d96dbd6f95ea22f609042cc9c6272f14a21ff1a5" + +S = "${WORKDIR}/git" + +VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" + +inherit autotools-brokensep update-alternatives + +CLEANBROKEN = "1" + +# vim configure.in contains functions which got 'dropped' by autotools.bbclass +do_configure () { + cd src + rm -f auto/* + touch auto/config.mk + aclocal + autoconf + cd .. + oe_runconf + touch src/auto/configure + touch src/auto/config.mk src/auto/config.h +} + +do_compile() { + # We do not support fully / correctly the following locales. Attempting + # to use these with msgfmt in order to update the ".desktop" files exposes + # this problem and leads to the compile failing. + for LOCALE in cs fr ko pl sk zh_CN zh_TW;do + echo -n > src/po/${LOCALE}.po + done + autotools_do_compile +} + +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny +PACKAGECONFIG ??= "" +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," +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_tgetent=non-zero \ + vim_cv_toupper_broken=no \ + vim_cv_tty_group=world \ + STRIP=/bin/true \ +" + +do_install() { + autotools_do_install + + # Work around file-rdeps picking up csh, awk, perl or python as a dep + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/vim132 + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/mve.awk + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.pl + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.py + + # Install example vimrc from runtime files + install -m 0644 runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc + + # we use --with-features=big as default + mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} + + if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', d)}; then + # The mouse being autoenabled is just annoying in xfce4-terminal (mouse + # drag make vim go into visual mode and there is no right click menu), + # delete the block. + sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc + fi +} + +PARALLEL_MAKEINST = "" + +PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-tools" +FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" +FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" +FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor ${bindir}/${BPN}tutor" +FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" +FILES_${PN}-data = "${datadir}/${BPN}" +FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" +FILES_${PN}-common = " \ + ${datadir}/${BPN}/${VIMDIR}/*.vim \ + ${datadir}/${BPN}/${VIMDIR}/autoload \ + ${datadir}/${BPN}/${VIMDIR}/colors \ + ${datadir}/${BPN}/${VIMDIR}/compiler \ + ${datadir}/${BPN}/${VIMDIR}/ftplugin \ + ${datadir}/${BPN}/${VIMDIR}/indent \ + ${datadir}/${BPN}/${VIMDIR}/keymap \ + ${datadir}/${BPN}/${VIMDIR}/lang \ + ${datadir}/${BPN}/${VIMDIR}/macros \ + ${datadir}/${BPN}/${VIMDIR}/plugin \ + ${datadir}/${BPN}/${VIMDIR}/print \ + ${datadir}/${BPN}/${VIMDIR}/spell \ + ${datadir}/icons \ +" + +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_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 f5c74684bfa..baaaacc0b77 100644 --- a/meta/recipes-support/vim/vim_8.1.1240.bb +++ b/meta/recipes-support/vim/vim_8.1.1240.bb @@ -1,141 +1 @@ -SUMMARY = "Vi IMproved - enhanced vi editor" -SECTION = "console/utils" - -PROVIDES = "xxd" -DEPENDS = "ncurses gettext-native" -# vimdiff doesn't like busybox diff -RSUGGESTS_${PN} = "diffutils" -LICENSE = "vim" -LIC_FILES_CHKSUM = "file://runtime/doc/uganda.txt;endline=287;md5=f1f82b42360005c70b8c19b0ef493f72" - -SRC_URI = "git://github.com/vim/vim.git \ - file://disable_acl_header_check.patch \ - file://vim-add-knob-whether-elf.h-are-checked.patch \ - file://0001-src-Makefile-improve-reproducibility.patch \ -" -SRCREV = "d96dbd6f95ea22f609042cc9c6272f14a21ff1a5" - -S = "${WORKDIR}/git" - -VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" - -inherit autotools-brokensep update-alternatives - -CLEANBROKEN = "1" - -# vim configure.in contains functions which got 'dropped' by autotools.bbclass -do_configure () { - cd src - rm -f auto/* - touch auto/config.mk - aclocal - autoconf - cd .. - oe_runconf - touch src/auto/configure - touch src/auto/config.mk src/auto/config.h -} - -do_compile() { - # We do not support fully / correctly the following locales. Attempting - # to use these with msgfmt in order to update the ".desktop" files exposes - # this problem and leads to the compile failing. - for LOCALE in cs fr ko pl sk zh_CN zh_TW;do - echo -n > src/po/${LOCALE}.po - done - autotools_do_compile -} - -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny -PACKAGECONFIG ??= "" -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," -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_tgetent=non-zero \ - vim_cv_toupper_broken=no \ - vim_cv_tty_group=world \ - STRIP=/bin/true \ -" - -do_install() { - autotools_do_install - - # Work around file-rdeps picking up csh, awk, perl or python as a dep - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/vim132 - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/mve.awk - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.pl - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.py - - # Install example vimrc from runtime files - install -m 0644 runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc - - # we use --with-features=big as default - mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} - - if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', d)}; then - # The mouse being autoenabled is just annoying in xfce4-terminal (mouse - # drag make vim go into visual mode and there is no right click menu), - # delete the block. - sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc - fi -} - -PARALLEL_MAKEINST = "" - -PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-tools" -FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" -FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" -FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor ${bindir}/${BPN}tutor" -FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" -FILES_${PN}-data = "${datadir}/${BPN}" -FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" -FILES_${PN}-common = " \ - ${datadir}/${BPN}/${VIMDIR}/*.vim \ - ${datadir}/${BPN}/${VIMDIR}/autoload \ - ${datadir}/${BPN}/${VIMDIR}/colors \ - ${datadir}/${BPN}/${VIMDIR}/compiler \ - ${datadir}/${BPN}/${VIMDIR}/ftplugin \ - ${datadir}/${BPN}/${VIMDIR}/indent \ - ${datadir}/${BPN}/${VIMDIR}/keymap \ - ${datadir}/${BPN}/${VIMDIR}/lang \ - ${datadir}/${BPN}/${VIMDIR}/macros \ - ${datadir}/${BPN}/${VIMDIR}/plugin \ - ${datadir}/${BPN}/${VIMDIR}/print \ - ${datadir}/${BPN}/${VIMDIR}/spell \ - ${datadir}/icons \ -" - -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_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" +require vim.inc -- 2.17.1 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] vim: split the common part into vim.inc 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-18 18:34 ` [PATCH] vim: Rework things so vim adds features not vim-tiny removes Tom Rini 1 sibling, 1 reply; 10+ messages in thread From: Martin Jansa @ 2019-05-17 14:27 UTC (permalink / raw) To: Alexander Kanavin; +Cc: Patches and discussions about the oe-core layer [-- Attachment #1: Type: text/plain, Size: 12910 bytes --] To simplify meta/recipes-support/vim/vim-tiny_8.1.1240.bb which currently has: PROVIDES_remove = "xxd" ALTERNATIVE_${PN}_remove = "xxd" Can you move xxd from the .inc file and put it only in vim_8.1.1240.bb? On Fri, May 17, 2019 at 3:53 PM Alexander Kanavin <alex.kanavin@gmail.com> wrote: > Previously vim-tiny would include the vim recipe wholesale; > this meant that they had to be upgraded in a single transaction > which devtool cannot cope with. This thwarted the latest AUH > run in particular. > > Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> > --- > meta/recipes-support/vim/vim-tiny_8.1.1240.bb | 2 +- > meta/recipes-support/vim/vim.inc | 141 +++++++++++++++++ > meta/recipes-support/vim/vim_8.1.1240.bb | 142 +----------------- > 3 files changed, 143 insertions(+), 142 deletions(-) > create mode 100644 meta/recipes-support/vim/vim.inc > > 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 74464833adb..139e626e444 100644 > --- a/meta/recipes-support/vim/vim-tiny_8.1.1240.bb > +++ b/meta/recipes-support/vim/vim-tiny_8.1.1240.bb > @@ -1,4 +1,4 @@ > -require vim_${PV}.bb > +require vim.inc > > SUMMARY += " (with tiny features)" > > diff --git a/meta/recipes-support/vim/vim.inc > b/meta/recipes-support/vim/vim.inc > new file mode 100644 > index 00000000000..f5c74684bfa > --- /dev/null > +++ b/meta/recipes-support/vim/vim.inc > @@ -0,0 +1,141 @@ > +SUMMARY = "Vi IMproved - enhanced vi editor" > +SECTION = "console/utils" > + > +PROVIDES = "xxd" > +DEPENDS = "ncurses gettext-native" > +# vimdiff doesn't like busybox diff > +RSUGGESTS_${PN} = "diffutils" > +LICENSE = "vim" > +LIC_FILES_CHKSUM = > "file://runtime/doc/uganda.txt;endline=287;md5=f1f82b42360005c70b8c19b0ef493f72" > + > +SRC_URI = "git://github.com/vim/vim.git \ > + file://disable_acl_header_check.patch \ > + file://vim-add-knob-whether-elf.h-are-checked.patch \ > + file://0001-src-Makefile-improve-reproducibility.patch \ > +" > +SRCREV = "d96dbd6f95ea22f609042cc9c6272f14a21ff1a5" > + > +S = "${WORKDIR}/git" > + > +VIMDIR = > "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" > + > +inherit autotools-brokensep update-alternatives > + > +CLEANBROKEN = "1" > + > +# vim configure.in contains functions which got 'dropped' by > autotools.bbclass > +do_configure () { > + cd src > + rm -f auto/* > + touch auto/config.mk > + aclocal > + autoconf > + cd .. > + oe_runconf > + touch src/auto/configure > + touch src/auto/config.mk src/auto/config.h > +} > + > +do_compile() { > + # We do not support fully / correctly the following locales. > Attempting > + # to use these with msgfmt in order to update the ".desktop" files > exposes > + # this problem and leads to the compile failing. > + for LOCALE in cs fr ko pl sk zh_CN zh_TW;do > + echo -n > src/po/${LOCALE}.po > + done > + autotools_do_compile > +} > + > +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny > +PACKAGECONFIG ??= "" > +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," > +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_tgetent=non-zero \ > + vim_cv_toupper_broken=no \ > + vim_cv_tty_group=world \ > + STRIP=/bin/true \ > +" > + > +do_install() { > + autotools_do_install > + > + # Work around file-rdeps picking up csh, awk, perl or python as a dep > + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/vim132 > + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/mve.awk > + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.pl > + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.py > + > + # Install example vimrc from runtime files > + install -m 0644 runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc > + > + # we use --with-features=big as default > + mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} > + > + if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', > d)}; then > + # The mouse being autoenabled is just annoying in xfce4-terminal > (mouse > + # drag make vim go into visual mode and there is no right click > menu), > + # delete the block. > + sed -i '/the mouse works just fine/,+4d' > ${D}/${datadir}/${BPN}/vimrc > + fi > +} > + > +PARALLEL_MAKEINST = "" > + > +PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc > ${PN}-tools" > +FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" > +FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" > +FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor > ${bindir}/${BPN}tutor" > +FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" > +FILES_${PN}-data = "${datadir}/${BPN}" > +FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" > +FILES_${PN}-common = " \ > + ${datadir}/${BPN}/${VIMDIR}/*.vim \ > + ${datadir}/${BPN}/${VIMDIR}/autoload \ > + ${datadir}/${BPN}/${VIMDIR}/colors \ > + ${datadir}/${BPN}/${VIMDIR}/compiler \ > + ${datadir}/${BPN}/${VIMDIR}/ftplugin \ > + ${datadir}/${BPN}/${VIMDIR}/indent \ > + ${datadir}/${BPN}/${VIMDIR}/keymap \ > + ${datadir}/${BPN}/${VIMDIR}/lang \ > + ${datadir}/${BPN}/${VIMDIR}/macros \ > + ${datadir}/${BPN}/${VIMDIR}/plugin \ > + ${datadir}/${BPN}/${VIMDIR}/print \ > + ${datadir}/${BPN}/${VIMDIR}/spell \ > + ${datadir}/icons \ > +" > + > +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_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 f5c74684bfa..baaaacc0b77 100644 > --- a/meta/recipes-support/vim/vim_8.1.1240.bb > +++ b/meta/recipes-support/vim/vim_8.1.1240.bb > @@ -1,141 +1 @@ > -SUMMARY = "Vi IMproved - enhanced vi editor" > -SECTION = "console/utils" > - > -PROVIDES = "xxd" > -DEPENDS = "ncurses gettext-native" > -# vimdiff doesn't like busybox diff > -RSUGGESTS_${PN} = "diffutils" > -LICENSE = "vim" > -LIC_FILES_CHKSUM = > "file://runtime/doc/uganda.txt;endline=287;md5=f1f82b42360005c70b8c19b0ef493f72" > - > -SRC_URI = "git://github.com/vim/vim.git \ > - file://disable_acl_header_check.patch \ > - file://vim-add-knob-whether-elf.h-are-checked.patch \ > - file://0001-src-Makefile-improve-reproducibility.patch \ > -" > -SRCREV = "d96dbd6f95ea22f609042cc9c6272f14a21ff1a5" > - > -S = "${WORKDIR}/git" > - > -VIMDIR = > "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" > - > -inherit autotools-brokensep update-alternatives > - > -CLEANBROKEN = "1" > - > -# vim configure.in contains functions which got 'dropped' by > autotools.bbclass > -do_configure () { > - cd src > - rm -f auto/* > - touch auto/config.mk > - aclocal > - autoconf > - cd .. > - oe_runconf > - touch src/auto/configure > - touch src/auto/config.mk src/auto/config.h > -} > - > -do_compile() { > - # We do not support fully / correctly the following locales. > Attempting > - # to use these with msgfmt in order to update the ".desktop" files > exposes > - # this problem and leads to the compile failing. > - for LOCALE in cs fr ko pl sk zh_CN zh_TW;do > - echo -n > src/po/${LOCALE}.po > - done > - autotools_do_compile > -} > - > -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny > -PACKAGECONFIG ??= "" > -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," > -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_tgetent=non-zero \ > - vim_cv_toupper_broken=no \ > - vim_cv_tty_group=world \ > - STRIP=/bin/true \ > -" > - > -do_install() { > - autotools_do_install > - > - # Work around file-rdeps picking up csh, awk, perl or python as a dep > - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/vim132 > - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/mve.awk > - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.pl > - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.py > - > - # Install example vimrc from runtime files > - install -m 0644 runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc > - > - # we use --with-features=big as default > - mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} > - > - if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', > d)}; then > - # The mouse being autoenabled is just annoying in xfce4-terminal > (mouse > - # drag make vim go into visual mode and there is no right click > menu), > - # delete the block. > - sed -i '/the mouse works just fine/,+4d' > ${D}/${datadir}/${BPN}/vimrc > - fi > -} > - > -PARALLEL_MAKEINST = "" > - > -PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc > ${PN}-tools" > -FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" > -FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" > -FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor > ${bindir}/${BPN}tutor" > -FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" > -FILES_${PN}-data = "${datadir}/${BPN}" > -FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" > -FILES_${PN}-common = " \ > - ${datadir}/${BPN}/${VIMDIR}/*.vim \ > - ${datadir}/${BPN}/${VIMDIR}/autoload \ > - ${datadir}/${BPN}/${VIMDIR}/colors \ > - ${datadir}/${BPN}/${VIMDIR}/compiler \ > - ${datadir}/${BPN}/${VIMDIR}/ftplugin \ > - ${datadir}/${BPN}/${VIMDIR}/indent \ > - ${datadir}/${BPN}/${VIMDIR}/keymap \ > - ${datadir}/${BPN}/${VIMDIR}/lang \ > - ${datadir}/${BPN}/${VIMDIR}/macros \ > - ${datadir}/${BPN}/${VIMDIR}/plugin \ > - ${datadir}/${BPN}/${VIMDIR}/print \ > - ${datadir}/${BPN}/${VIMDIR}/spell \ > - ${datadir}/icons \ > -" > - > -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_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" > +require vim.inc > -- > 2.17.1 > > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core > [-- Attachment #2: Type: text/html, Size: 16945 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] vim: split the common part into vim.inc 2019-05-17 14:27 ` Martin Jansa @ 2019-05-17 14:29 ` Martin Jansa 2019-05-17 14:34 ` Alexander Kanavin 0 siblings, 1 reply; 10+ messages in thread From: Martin Jansa @ 2019-05-17 14:29 UTC (permalink / raw) To: Alexander Kanavin; +Cc: Patches and discussions about the oe-core layer [-- Attachment #1: Type: text/plain, Size: 13489 bytes --] Actually the BBCLASSEXTEND = "native" as well, as we don't need both vim recipes to provide xxd-native. On Fri, May 17, 2019 at 4:27 PM Martin Jansa <martin.jansa@gmail.com> wrote: > To simplify meta/recipes-support/vim/vim-tiny_8.1.1240.bb which currently > has: > > PROVIDES_remove = "xxd" > ALTERNATIVE_${PN}_remove = "xxd" > > Can you move xxd from the .inc file and put it only in vim_8.1.1240.bb? > > > On Fri, May 17, 2019 at 3:53 PM Alexander Kanavin <alex.kanavin@gmail.com> > wrote: > >> Previously vim-tiny would include the vim recipe wholesale; >> this meant that they had to be upgraded in a single transaction >> which devtool cannot cope with. This thwarted the latest AUH >> run in particular. >> >> Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> >> --- >> meta/recipes-support/vim/vim-tiny_8.1.1240.bb | 2 +- >> meta/recipes-support/vim/vim.inc | 141 +++++++++++++++++ >> meta/recipes-support/vim/vim_8.1.1240.bb | 142 +----------------- >> 3 files changed, 143 insertions(+), 142 deletions(-) >> create mode 100644 meta/recipes-support/vim/vim.inc >> >> 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 74464833adb..139e626e444 100644 >> --- a/meta/recipes-support/vim/vim-tiny_8.1.1240.bb >> +++ b/meta/recipes-support/vim/vim-tiny_8.1.1240.bb >> @@ -1,4 +1,4 @@ >> -require vim_${PV}.bb >> +require vim.inc >> >> SUMMARY += " (with tiny features)" >> >> diff --git a/meta/recipes-support/vim/vim.inc >> b/meta/recipes-support/vim/vim.inc >> new file mode 100644 >> index 00000000000..f5c74684bfa >> --- /dev/null >> +++ b/meta/recipes-support/vim/vim.inc >> @@ -0,0 +1,141 @@ >> +SUMMARY = "Vi IMproved - enhanced vi editor" >> +SECTION = "console/utils" >> + >> +PROVIDES = "xxd" >> +DEPENDS = "ncurses gettext-native" >> +# vimdiff doesn't like busybox diff >> +RSUGGESTS_${PN} = "diffutils" >> +LICENSE = "vim" >> +LIC_FILES_CHKSUM = >> "file://runtime/doc/uganda.txt;endline=287;md5=f1f82b42360005c70b8c19b0ef493f72" >> + >> +SRC_URI = "git://github.com/vim/vim.git \ >> + file://disable_acl_header_check.patch \ >> + file://vim-add-knob-whether-elf.h-are-checked.patch \ >> + file://0001-src-Makefile-improve-reproducibility.patch \ >> +" >> +SRCREV = "d96dbd6f95ea22f609042cc9c6272f14a21ff1a5" >> + >> +S = "${WORKDIR}/git" >> + >> +VIMDIR = >> "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" >> + >> +inherit autotools-brokensep update-alternatives >> + >> +CLEANBROKEN = "1" >> + >> +# vim configure.in contains functions which got 'dropped' by >> autotools.bbclass >> +do_configure () { >> + cd src >> + rm -f auto/* >> + touch auto/config.mk >> + aclocal >> + autoconf >> + cd .. >> + oe_runconf >> + touch src/auto/configure >> + touch src/auto/config.mk src/auto/config.h >> +} >> + >> +do_compile() { >> + # We do not support fully / correctly the following locales. >> Attempting >> + # to use these with msgfmt in order to update the ".desktop" files >> exposes >> + # this problem and leads to the compile failing. >> + for LOCALE in cs fr ko pl sk zh_CN zh_TW;do >> + echo -n > src/po/${LOCALE}.po >> + done >> + autotools_do_compile >> +} >> + >> +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny >> +PACKAGECONFIG ??= "" >> +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," >> +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_tgetent=non-zero \ >> + vim_cv_toupper_broken=no \ >> + vim_cv_tty_group=world \ >> + STRIP=/bin/true \ >> +" >> + >> +do_install() { >> + autotools_do_install >> + >> + # Work around file-rdeps picking up csh, awk, perl or python as a dep >> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/vim132 >> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/mve.awk >> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.pl >> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.py >> + >> + # Install example vimrc from runtime files >> + install -m 0644 runtime/vimrc_example.vim >> ${D}/${datadir}/${BPN}/vimrc >> + >> + # we use --with-features=big as default >> + mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} >> + >> + if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', >> d)}; then >> + # The mouse being autoenabled is just annoying in xfce4-terminal >> (mouse >> + # drag make vim go into visual mode and there is no right click >> menu), >> + # delete the block. >> + sed -i '/the mouse works just fine/,+4d' >> ${D}/${datadir}/${BPN}/vimrc >> + fi >> +} >> + >> +PARALLEL_MAKEINST = "" >> + >> +PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor >> ${PN}-vimrc ${PN}-tools" >> +FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" >> +FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" >> +FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor >> ${bindir}/${BPN}tutor" >> +FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" >> +FILES_${PN}-data = "${datadir}/${BPN}" >> +FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" >> +FILES_${PN}-common = " \ >> + ${datadir}/${BPN}/${VIMDIR}/*.vim \ >> + ${datadir}/${BPN}/${VIMDIR}/autoload \ >> + ${datadir}/${BPN}/${VIMDIR}/colors \ >> + ${datadir}/${BPN}/${VIMDIR}/compiler \ >> + ${datadir}/${BPN}/${VIMDIR}/ftplugin \ >> + ${datadir}/${BPN}/${VIMDIR}/indent \ >> + ${datadir}/${BPN}/${VIMDIR}/keymap \ >> + ${datadir}/${BPN}/${VIMDIR}/lang \ >> + ${datadir}/${BPN}/${VIMDIR}/macros \ >> + ${datadir}/${BPN}/${VIMDIR}/plugin \ >> + ${datadir}/${BPN}/${VIMDIR}/print \ >> + ${datadir}/${BPN}/${VIMDIR}/spell \ >> + ${datadir}/icons \ >> +" >> + >> +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_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 f5c74684bfa..baaaacc0b77 100644 >> --- a/meta/recipes-support/vim/vim_8.1.1240.bb >> +++ b/meta/recipes-support/vim/vim_8.1.1240.bb >> @@ -1,141 +1 @@ >> -SUMMARY = "Vi IMproved - enhanced vi editor" >> -SECTION = "console/utils" >> - >> -PROVIDES = "xxd" >> -DEPENDS = "ncurses gettext-native" >> -# vimdiff doesn't like busybox diff >> -RSUGGESTS_${PN} = "diffutils" >> -LICENSE = "vim" >> -LIC_FILES_CHKSUM = >> "file://runtime/doc/uganda.txt;endline=287;md5=f1f82b42360005c70b8c19b0ef493f72" >> - >> -SRC_URI = "git://github.com/vim/vim.git \ >> - file://disable_acl_header_check.patch \ >> - file://vim-add-knob-whether-elf.h-are-checked.patch \ >> - file://0001-src-Makefile-improve-reproducibility.patch \ >> -" >> -SRCREV = "d96dbd6f95ea22f609042cc9c6272f14a21ff1a5" >> - >> -S = "${WORKDIR}/git" >> - >> -VIMDIR = >> "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" >> - >> -inherit autotools-brokensep update-alternatives >> - >> -CLEANBROKEN = "1" >> - >> -# vim configure.in contains functions which got 'dropped' by >> autotools.bbclass >> -do_configure () { >> - cd src >> - rm -f auto/* >> - touch auto/config.mk >> - aclocal >> - autoconf >> - cd .. >> - oe_runconf >> - touch src/auto/configure >> - touch src/auto/config.mk src/auto/config.h >> -} >> - >> -do_compile() { >> - # We do not support fully / correctly the following locales. >> Attempting >> - # to use these with msgfmt in order to update the ".desktop" files >> exposes >> - # this problem and leads to the compile failing. >> - for LOCALE in cs fr ko pl sk zh_CN zh_TW;do >> - echo -n > src/po/${LOCALE}.po >> - done >> - autotools_do_compile >> -} >> - >> -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny >> -PACKAGECONFIG ??= "" >> -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," >> -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_tgetent=non-zero \ >> - vim_cv_toupper_broken=no \ >> - vim_cv_tty_group=world \ >> - STRIP=/bin/true \ >> -" >> - >> -do_install() { >> - autotools_do_install >> - >> - # Work around file-rdeps picking up csh, awk, perl or python as a dep >> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/vim132 >> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/mve.awk >> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.pl >> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.py >> - >> - # Install example vimrc from runtime files >> - install -m 0644 runtime/vimrc_example.vim >> ${D}/${datadir}/${BPN}/vimrc >> - >> - # we use --with-features=big as default >> - mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} >> - >> - if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', >> d)}; then >> - # The mouse being autoenabled is just annoying in xfce4-terminal >> (mouse >> - # drag make vim go into visual mode and there is no right click >> menu), >> - # delete the block. >> - sed -i '/the mouse works just fine/,+4d' >> ${D}/${datadir}/${BPN}/vimrc >> - fi >> -} >> - >> -PARALLEL_MAKEINST = "" >> - >> -PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor >> ${PN}-vimrc ${PN}-tools" >> -FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" >> -FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" >> -FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor >> ${bindir}/${BPN}tutor" >> -FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" >> -FILES_${PN}-data = "${datadir}/${BPN}" >> -FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" >> -FILES_${PN}-common = " \ >> - ${datadir}/${BPN}/${VIMDIR}/*.vim \ >> - ${datadir}/${BPN}/${VIMDIR}/autoload \ >> - ${datadir}/${BPN}/${VIMDIR}/colors \ >> - ${datadir}/${BPN}/${VIMDIR}/compiler \ >> - ${datadir}/${BPN}/${VIMDIR}/ftplugin \ >> - ${datadir}/${BPN}/${VIMDIR}/indent \ >> - ${datadir}/${BPN}/${VIMDIR}/keymap \ >> - ${datadir}/${BPN}/${VIMDIR}/lang \ >> - ${datadir}/${BPN}/${VIMDIR}/macros \ >> - ${datadir}/${BPN}/${VIMDIR}/plugin \ >> - ${datadir}/${BPN}/${VIMDIR}/print \ >> - ${datadir}/${BPN}/${VIMDIR}/spell \ >> - ${datadir}/icons \ >> -" >> - >> -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_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" >> +require vim.inc >> -- >> 2.17.1 >> >> -- >> _______________________________________________ >> Openembedded-core mailing list >> Openembedded-core@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-core >> > [-- Attachment #2: Type: text/html, Size: 17497 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] vim: split the common part into vim.inc 2019-05-17 14:29 ` Martin Jansa @ 2019-05-17 14:34 ` Alexander Kanavin 2019-05-18 11:35 ` Tom Rini 0 siblings, 1 reply; 10+ messages in thread From: Alexander Kanavin @ 2019-05-17 14:34 UTC (permalink / raw) To: Martin Jansa, Tom Rini; +Cc: Patches and discussions about the oe-core layer This is up to the recipe maintainer (Tom) to do; I only want to ensure AUH does not choke on the recipe. Alex On Fri, 17 May 2019 at 16:29, Martin Jansa <martin.jansa@gmail.com> wrote: > > Actually the BBCLASSEXTEND = "native" as well, as we don't need both vim recipes to provide xxd-native. > > On Fri, May 17, 2019 at 4:27 PM Martin Jansa <martin.jansa@gmail.com> wrote: >> >> To simplify meta/recipes-support/vim/vim-tiny_8.1.1240.bb which currently has: >> >> PROVIDES_remove = "xxd" >> ALTERNATIVE_${PN}_remove = "xxd" >> >> Can you move xxd from the .inc file and put it only in vim_8.1.1240.bb? >> >> >> On Fri, May 17, 2019 at 3:53 PM Alexander Kanavin <alex.kanavin@gmail.com> wrote: >>> >>> Previously vim-tiny would include the vim recipe wholesale; >>> this meant that they had to be upgraded in a single transaction >>> which devtool cannot cope with. This thwarted the latest AUH >>> run in particular. >>> >>> Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> >>> --- >>> meta/recipes-support/vim/vim-tiny_8.1.1240.bb | 2 +- >>> meta/recipes-support/vim/vim.inc | 141 +++++++++++++++++ >>> meta/recipes-support/vim/vim_8.1.1240.bb | 142 +----------------- >>> 3 files changed, 143 insertions(+), 142 deletions(-) >>> create mode 100644 meta/recipes-support/vim/vim.inc >>> >>> 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 74464833adb..139e626e444 100644 >>> --- a/meta/recipes-support/vim/vim-tiny_8.1.1240.bb >>> +++ b/meta/recipes-support/vim/vim-tiny_8.1.1240.bb >>> @@ -1,4 +1,4 @@ >>> -require vim_${PV}.bb >>> +require vim.inc >>> >>> SUMMARY += " (with tiny features)" >>> >>> diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc >>> new file mode 100644 >>> index 00000000000..f5c74684bfa >>> --- /dev/null >>> +++ b/meta/recipes-support/vim/vim.inc >>> @@ -0,0 +1,141 @@ >>> +SUMMARY = "Vi IMproved - enhanced vi editor" >>> +SECTION = "console/utils" >>> + >>> +PROVIDES = "xxd" >>> +DEPENDS = "ncurses gettext-native" >>> +# vimdiff doesn't like busybox diff >>> +RSUGGESTS_${PN} = "diffutils" >>> +LICENSE = "vim" >>> +LIC_FILES_CHKSUM = "file://runtime/doc/uganda.txt;endline=287;md5=f1f82b42360005c70b8c19b0ef493f72" >>> + >>> +SRC_URI = "git://github.com/vim/vim.git \ >>> + file://disable_acl_header_check.patch \ >>> + file://vim-add-knob-whether-elf.h-are-checked.patch \ >>> + file://0001-src-Makefile-improve-reproducibility.patch \ >>> +" >>> +SRCREV = "d96dbd6f95ea22f609042cc9c6272f14a21ff1a5" >>> + >>> +S = "${WORKDIR}/git" >>> + >>> +VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" >>> + >>> +inherit autotools-brokensep update-alternatives >>> + >>> +CLEANBROKEN = "1" >>> + >>> +# vim configure.in contains functions which got 'dropped' by autotools.bbclass >>> +do_configure () { >>> + cd src >>> + rm -f auto/* >>> + touch auto/config.mk >>> + aclocal >>> + autoconf >>> + cd .. >>> + oe_runconf >>> + touch src/auto/configure >>> + touch src/auto/config.mk src/auto/config.h >>> +} >>> + >>> +do_compile() { >>> + # We do not support fully / correctly the following locales. Attempting >>> + # to use these with msgfmt in order to update the ".desktop" files exposes >>> + # this problem and leads to the compile failing. >>> + for LOCALE in cs fr ko pl sk zh_CN zh_TW;do >>> + echo -n > src/po/${LOCALE}.po >>> + done >>> + autotools_do_compile >>> +} >>> + >>> +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny >>> +PACKAGECONFIG ??= "" >>> +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," >>> +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_tgetent=non-zero \ >>> + vim_cv_toupper_broken=no \ >>> + vim_cv_tty_group=world \ >>> + STRIP=/bin/true \ >>> +" >>> + >>> +do_install() { >>> + autotools_do_install >>> + >>> + # Work around file-rdeps picking up csh, awk, perl or python as a dep >>> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/vim132 >>> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/mve.awk >>> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.pl >>> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.py >>> + >>> + # Install example vimrc from runtime files >>> + install -m 0644 runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc >>> + >>> + # we use --with-features=big as default >>> + mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} >>> + >>> + if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', d)}; then >>> + # The mouse being autoenabled is just annoying in xfce4-terminal (mouse >>> + # drag make vim go into visual mode and there is no right click menu), >>> + # delete the block. >>> + sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc >>> + fi >>> +} >>> + >>> +PARALLEL_MAKEINST = "" >>> + >>> +PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-tools" >>> +FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" >>> +FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" >>> +FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor ${bindir}/${BPN}tutor" >>> +FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" >>> +FILES_${PN}-data = "${datadir}/${BPN}" >>> +FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" >>> +FILES_${PN}-common = " \ >>> + ${datadir}/${BPN}/${VIMDIR}/*.vim \ >>> + ${datadir}/${BPN}/${VIMDIR}/autoload \ >>> + ${datadir}/${BPN}/${VIMDIR}/colors \ >>> + ${datadir}/${BPN}/${VIMDIR}/compiler \ >>> + ${datadir}/${BPN}/${VIMDIR}/ftplugin \ >>> + ${datadir}/${BPN}/${VIMDIR}/indent \ >>> + ${datadir}/${BPN}/${VIMDIR}/keymap \ >>> + ${datadir}/${BPN}/${VIMDIR}/lang \ >>> + ${datadir}/${BPN}/${VIMDIR}/macros \ >>> + ${datadir}/${BPN}/${VIMDIR}/plugin \ >>> + ${datadir}/${BPN}/${VIMDIR}/print \ >>> + ${datadir}/${BPN}/${VIMDIR}/spell \ >>> + ${datadir}/icons \ >>> +" >>> + >>> +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_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 f5c74684bfa..baaaacc0b77 100644 >>> --- a/meta/recipes-support/vim/vim_8.1.1240.bb >>> +++ b/meta/recipes-support/vim/vim_8.1.1240.bb >>> @@ -1,141 +1 @@ >>> -SUMMARY = "Vi IMproved - enhanced vi editor" >>> -SECTION = "console/utils" >>> - >>> -PROVIDES = "xxd" >>> -DEPENDS = "ncurses gettext-native" >>> -# vimdiff doesn't like busybox diff >>> -RSUGGESTS_${PN} = "diffutils" >>> -LICENSE = "vim" >>> -LIC_FILES_CHKSUM = "file://runtime/doc/uganda.txt;endline=287;md5=f1f82b42360005c70b8c19b0ef493f72" >>> - >>> -SRC_URI = "git://github.com/vim/vim.git \ >>> - file://disable_acl_header_check.patch \ >>> - file://vim-add-knob-whether-elf.h-are-checked.patch \ >>> - file://0001-src-Makefile-improve-reproducibility.patch \ >>> -" >>> -SRCREV = "d96dbd6f95ea22f609042cc9c6272f14a21ff1a5" >>> - >>> -S = "${WORKDIR}/git" >>> - >>> -VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" >>> - >>> -inherit autotools-brokensep update-alternatives >>> - >>> -CLEANBROKEN = "1" >>> - >>> -# vim configure.in contains functions which got 'dropped' by autotools.bbclass >>> -do_configure () { >>> - cd src >>> - rm -f auto/* >>> - touch auto/config.mk >>> - aclocal >>> - autoconf >>> - cd .. >>> - oe_runconf >>> - touch src/auto/configure >>> - touch src/auto/config.mk src/auto/config.h >>> -} >>> - >>> -do_compile() { >>> - # We do not support fully / correctly the following locales. Attempting >>> - # to use these with msgfmt in order to update the ".desktop" files exposes >>> - # this problem and leads to the compile failing. >>> - for LOCALE in cs fr ko pl sk zh_CN zh_TW;do >>> - echo -n > src/po/${LOCALE}.po >>> - done >>> - autotools_do_compile >>> -} >>> - >>> -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny >>> -PACKAGECONFIG ??= "" >>> -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," >>> -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_tgetent=non-zero \ >>> - vim_cv_toupper_broken=no \ >>> - vim_cv_tty_group=world \ >>> - STRIP=/bin/true \ >>> -" >>> - >>> -do_install() { >>> - autotools_do_install >>> - >>> - # Work around file-rdeps picking up csh, awk, perl or python as a dep >>> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/vim132 >>> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/mve.awk >>> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.pl >>> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.py >>> - >>> - # Install example vimrc from runtime files >>> - install -m 0644 runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc >>> - >>> - # we use --with-features=big as default >>> - mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} >>> - >>> - if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', d)}; then >>> - # The mouse being autoenabled is just annoying in xfce4-terminal (mouse >>> - # drag make vim go into visual mode and there is no right click menu), >>> - # delete the block. >>> - sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc >>> - fi >>> -} >>> - >>> -PARALLEL_MAKEINST = "" >>> - >>> -PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-tools" >>> -FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" >>> -FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" >>> -FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor ${bindir}/${BPN}tutor" >>> -FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" >>> -FILES_${PN}-data = "${datadir}/${BPN}" >>> -FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" >>> -FILES_${PN}-common = " \ >>> - ${datadir}/${BPN}/${VIMDIR}/*.vim \ >>> - ${datadir}/${BPN}/${VIMDIR}/autoload \ >>> - ${datadir}/${BPN}/${VIMDIR}/colors \ >>> - ${datadir}/${BPN}/${VIMDIR}/compiler \ >>> - ${datadir}/${BPN}/${VIMDIR}/ftplugin \ >>> - ${datadir}/${BPN}/${VIMDIR}/indent \ >>> - ${datadir}/${BPN}/${VIMDIR}/keymap \ >>> - ${datadir}/${BPN}/${VIMDIR}/lang \ >>> - ${datadir}/${BPN}/${VIMDIR}/macros \ >>> - ${datadir}/${BPN}/${VIMDIR}/plugin \ >>> - ${datadir}/${BPN}/${VIMDIR}/print \ >>> - ${datadir}/${BPN}/${VIMDIR}/spell \ >>> - ${datadir}/icons \ >>> -" >>> - >>> -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_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" >>> +require vim.inc >>> -- >>> 2.17.1 >>> >>> -- >>> _______________________________________________ >>> Openembedded-core mailing list >>> Openembedded-core@lists.openembedded.org >>> http://lists.openembedded.org/mailman/listinfo/openembedded-core ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] vim: split the common part into vim.inc 2019-05-17 14:34 ` Alexander Kanavin @ 2019-05-18 11:35 ` Tom Rini 2019-05-18 14:46 ` Alexander Kanavin 0 siblings, 1 reply; 10+ messages in thread From: Tom Rini @ 2019-05-18 11:35 UTC (permalink / raw) To: Alexander Kanavin; +Cc: Patches and discussions about the oe-core layer [-- Attachment #1: Type: text/plain, Size: 15003 bytes --] On Fri, May 17, 2019 at 04:34:14PM +0200, Alexander Kanavin wrote: > This is up to the recipe maintainer (Tom) to do; I only want to ensure > AUH does not choke on the recipe. What's proper etiquette here? Shall I grab, v2 and include Martin's suggestions, or follow-up and Suggested-by them? Thanks! > > Alex > > On Fri, 17 May 2019 at 16:29, Martin Jansa <martin.jansa@gmail.com> wrote: > > > > Actually the BBCLASSEXTEND = "native" as well, as we don't need both vim recipes to provide xxd-native. > > > > On Fri, May 17, 2019 at 4:27 PM Martin Jansa <martin.jansa@gmail.com> wrote: > >> > >> To simplify meta/recipes-support/vim/vim-tiny_8.1.1240.bb which currently has: > >> > >> PROVIDES_remove = "xxd" > >> ALTERNATIVE_${PN}_remove = "xxd" > >> > >> Can you move xxd from the .inc file and put it only in vim_8.1.1240.bb? > >> > >> > >> On Fri, May 17, 2019 at 3:53 PM Alexander Kanavin <alex.kanavin@gmail.com> wrote: > >>> > >>> Previously vim-tiny would include the vim recipe wholesale; > >>> this meant that they had to be upgraded in a single transaction > >>> which devtool cannot cope with. This thwarted the latest AUH > >>> run in particular. > >>> > >>> Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> > >>> --- > >>> meta/recipes-support/vim/vim-tiny_8.1.1240.bb | 2 +- > >>> meta/recipes-support/vim/vim.inc | 141 +++++++++++++++++ > >>> meta/recipes-support/vim/vim_8.1.1240.bb | 142 +----------------- > >>> 3 files changed, 143 insertions(+), 142 deletions(-) > >>> create mode 100644 meta/recipes-support/vim/vim.inc > >>> > >>> 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 74464833adb..139e626e444 100644 > >>> --- a/meta/recipes-support/vim/vim-tiny_8.1.1240.bb > >>> +++ b/meta/recipes-support/vim/vim-tiny_8.1.1240.bb > >>> @@ -1,4 +1,4 @@ > >>> -require vim_${PV}.bb > >>> +require vim.inc > >>> > >>> SUMMARY += " (with tiny features)" > >>> > >>> diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc > >>> new file mode 100644 > >>> index 00000000000..f5c74684bfa > >>> --- /dev/null > >>> +++ b/meta/recipes-support/vim/vim.inc > >>> @@ -0,0 +1,141 @@ > >>> +SUMMARY = "Vi IMproved - enhanced vi editor" > >>> +SECTION = "console/utils" > >>> + > >>> +PROVIDES = "xxd" > >>> +DEPENDS = "ncurses gettext-native" > >>> +# vimdiff doesn't like busybox diff > >>> +RSUGGESTS_${PN} = "diffutils" > >>> +LICENSE = "vim" > >>> +LIC_FILES_CHKSUM = "file://runtime/doc/uganda.txt;endline=287;md5=f1f82b42360005c70b8c19b0ef493f72" > >>> + > >>> +SRC_URI = "git://github.com/vim/vim.git \ > >>> + file://disable_acl_header_check.patch \ > >>> + file://vim-add-knob-whether-elf.h-are-checked.patch \ > >>> + file://0001-src-Makefile-improve-reproducibility.patch \ > >>> +" > >>> +SRCREV = "d96dbd6f95ea22f609042cc9c6272f14a21ff1a5" > >>> + > >>> +S = "${WORKDIR}/git" > >>> + > >>> +VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" > >>> + > >>> +inherit autotools-brokensep update-alternatives > >>> + > >>> +CLEANBROKEN = "1" > >>> + > >>> +# vim configure.in contains functions which got 'dropped' by autotools.bbclass > >>> +do_configure () { > >>> + cd src > >>> + rm -f auto/* > >>> + touch auto/config.mk > >>> + aclocal > >>> + autoconf > >>> + cd .. > >>> + oe_runconf > >>> + touch src/auto/configure > >>> + touch src/auto/config.mk src/auto/config.h > >>> +} > >>> + > >>> +do_compile() { > >>> + # We do not support fully / correctly the following locales. Attempting > >>> + # to use these with msgfmt in order to update the ".desktop" files exposes > >>> + # this problem and leads to the compile failing. > >>> + for LOCALE in cs fr ko pl sk zh_CN zh_TW;do > >>> + echo -n > src/po/${LOCALE}.po > >>> + done > >>> + autotools_do_compile > >>> +} > >>> + > >>> +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny > >>> +PACKAGECONFIG ??= "" > >>> +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," > >>> +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_tgetent=non-zero \ > >>> + vim_cv_toupper_broken=no \ > >>> + vim_cv_tty_group=world \ > >>> + STRIP=/bin/true \ > >>> +" > >>> + > >>> +do_install() { > >>> + autotools_do_install > >>> + > >>> + # Work around file-rdeps picking up csh, awk, perl or python as a dep > >>> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/vim132 > >>> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/mve.awk > >>> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.pl > >>> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.py > >>> + > >>> + # Install example vimrc from runtime files > >>> + install -m 0644 runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc > >>> + > >>> + # we use --with-features=big as default > >>> + mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} > >>> + > >>> + if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', d)}; then > >>> + # The mouse being autoenabled is just annoying in xfce4-terminal (mouse > >>> + # drag make vim go into visual mode and there is no right click menu), > >>> + # delete the block. > >>> + sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc > >>> + fi > >>> +} > >>> + > >>> +PARALLEL_MAKEINST = "" > >>> + > >>> +PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-tools" > >>> +FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" > >>> +FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" > >>> +FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor ${bindir}/${BPN}tutor" > >>> +FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" > >>> +FILES_${PN}-data = "${datadir}/${BPN}" > >>> +FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" > >>> +FILES_${PN}-common = " \ > >>> + ${datadir}/${BPN}/${VIMDIR}/*.vim \ > >>> + ${datadir}/${BPN}/${VIMDIR}/autoload \ > >>> + ${datadir}/${BPN}/${VIMDIR}/colors \ > >>> + ${datadir}/${BPN}/${VIMDIR}/compiler \ > >>> + ${datadir}/${BPN}/${VIMDIR}/ftplugin \ > >>> + ${datadir}/${BPN}/${VIMDIR}/indent \ > >>> + ${datadir}/${BPN}/${VIMDIR}/keymap \ > >>> + ${datadir}/${BPN}/${VIMDIR}/lang \ > >>> + ${datadir}/${BPN}/${VIMDIR}/macros \ > >>> + ${datadir}/${BPN}/${VIMDIR}/plugin \ > >>> + ${datadir}/${BPN}/${VIMDIR}/print \ > >>> + ${datadir}/${BPN}/${VIMDIR}/spell \ > >>> + ${datadir}/icons \ > >>> +" > >>> + > >>> +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_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 f5c74684bfa..baaaacc0b77 100644 > >>> --- a/meta/recipes-support/vim/vim_8.1.1240.bb > >>> +++ b/meta/recipes-support/vim/vim_8.1.1240.bb > >>> @@ -1,141 +1 @@ > >>> -SUMMARY = "Vi IMproved - enhanced vi editor" > >>> -SECTION = "console/utils" > >>> - > >>> -PROVIDES = "xxd" > >>> -DEPENDS = "ncurses gettext-native" > >>> -# vimdiff doesn't like busybox diff > >>> -RSUGGESTS_${PN} = "diffutils" > >>> -LICENSE = "vim" > >>> -LIC_FILES_CHKSUM = "file://runtime/doc/uganda.txt;endline=287;md5=f1f82b42360005c70b8c19b0ef493f72" > >>> - > >>> -SRC_URI = "git://github.com/vim/vim.git \ > >>> - file://disable_acl_header_check.patch \ > >>> - file://vim-add-knob-whether-elf.h-are-checked.patch \ > >>> - file://0001-src-Makefile-improve-reproducibility.patch \ > >>> -" > >>> -SRCREV = "d96dbd6f95ea22f609042cc9c6272f14a21ff1a5" > >>> - > >>> -S = "${WORKDIR}/git" > >>> - > >>> -VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" > >>> - > >>> -inherit autotools-brokensep update-alternatives > >>> - > >>> -CLEANBROKEN = "1" > >>> - > >>> -# vim configure.in contains functions which got 'dropped' by autotools.bbclass > >>> -do_configure () { > >>> - cd src > >>> - rm -f auto/* > >>> - touch auto/config.mk > >>> - aclocal > >>> - autoconf > >>> - cd .. > >>> - oe_runconf > >>> - touch src/auto/configure > >>> - touch src/auto/config.mk src/auto/config.h > >>> -} > >>> - > >>> -do_compile() { > >>> - # We do not support fully / correctly the following locales. Attempting > >>> - # to use these with msgfmt in order to update the ".desktop" files exposes > >>> - # this problem and leads to the compile failing. > >>> - for LOCALE in cs fr ko pl sk zh_CN zh_TW;do > >>> - echo -n > src/po/${LOCALE}.po > >>> - done > >>> - autotools_do_compile > >>> -} > >>> - > >>> -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny > >>> -PACKAGECONFIG ??= "" > >>> -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," > >>> -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_tgetent=non-zero \ > >>> - vim_cv_toupper_broken=no \ > >>> - vim_cv_tty_group=world \ > >>> - STRIP=/bin/true \ > >>> -" > >>> - > >>> -do_install() { > >>> - autotools_do_install > >>> - > >>> - # Work around file-rdeps picking up csh, awk, perl or python as a dep > >>> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/vim132 > >>> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/mve.awk > >>> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.pl > >>> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.py > >>> - > >>> - # Install example vimrc from runtime files > >>> - install -m 0644 runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc > >>> - > >>> - # we use --with-features=big as default > >>> - mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} > >>> - > >>> - if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', d)}; then > >>> - # The mouse being autoenabled is just annoying in xfce4-terminal (mouse > >>> - # drag make vim go into visual mode and there is no right click menu), > >>> - # delete the block. > >>> - sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc > >>> - fi > >>> -} > >>> - > >>> -PARALLEL_MAKEINST = "" > >>> - > >>> -PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-tools" > >>> -FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" > >>> -FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" > >>> -FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor ${bindir}/${BPN}tutor" > >>> -FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" > >>> -FILES_${PN}-data = "${datadir}/${BPN}" > >>> -FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" > >>> -FILES_${PN}-common = " \ > >>> - ${datadir}/${BPN}/${VIMDIR}/*.vim \ > >>> - ${datadir}/${BPN}/${VIMDIR}/autoload \ > >>> - ${datadir}/${BPN}/${VIMDIR}/colors \ > >>> - ${datadir}/${BPN}/${VIMDIR}/compiler \ > >>> - ${datadir}/${BPN}/${VIMDIR}/ftplugin \ > >>> - ${datadir}/${BPN}/${VIMDIR}/indent \ > >>> - ${datadir}/${BPN}/${VIMDIR}/keymap \ > >>> - ${datadir}/${BPN}/${VIMDIR}/lang \ > >>> - ${datadir}/${BPN}/${VIMDIR}/macros \ > >>> - ${datadir}/${BPN}/${VIMDIR}/plugin \ > >>> - ${datadir}/${BPN}/${VIMDIR}/print \ > >>> - ${datadir}/${BPN}/${VIMDIR}/spell \ > >>> - ${datadir}/icons \ > >>> -" > >>> - > >>> -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_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" > >>> +require vim.inc > >>> -- > >>> 2.17.1 > >>> > >>> -- > >>> _______________________________________________ > >>> 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 --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] vim: split the common part into vim.inc 2019-05-18 11:35 ` Tom Rini @ 2019-05-18 14:46 ` Alexander Kanavin 0 siblings, 0 replies; 10+ messages in thread From: Alexander Kanavin @ 2019-05-18 14:46 UTC (permalink / raw) To: Tom Rini; +Cc: Patches and discussions about the oe-core layer There is no hard rule here, maybe a follow up is simpler. Alex > On 18 May 2019, at 13.35, Tom Rini <trini@konsulko.com> wrote: > >> On Fri, May 17, 2019 at 04:34:14PM +0200, Alexander Kanavin wrote: >> >> This is up to the recipe maintainer (Tom) to do; I only want to ensure >> AUH does not choke on the recipe. > > What's proper etiquette here? Shall I grab, v2 and include Martin's > suggestions, or follow-up and Suggested-by them? Thanks! > >> >> Alex >> >>> On Fri, 17 May 2019 at 16:29, Martin Jansa <martin.jansa@gmail.com> wrote: >>> >>> Actually the BBCLASSEXTEND = "native" as well, as we don't need both vim recipes to provide xxd-native. >>> >>>> On Fri, May 17, 2019 at 4:27 PM Martin Jansa <martin.jansa@gmail.com> wrote: >>>> >>>> To simplify meta/recipes-support/vim/vim-tiny_8.1.1240.bb which currently has: >>>> >>>> PROVIDES_remove = "xxd" >>>> ALTERNATIVE_${PN}_remove = "xxd" >>>> >>>> Can you move xxd from the .inc file and put it only in vim_8.1.1240.bb? >>>> >>>> >>>>> On Fri, May 17, 2019 at 3:53 PM Alexander Kanavin <alex.kanavin@gmail.com> wrote: >>>>> >>>>> Previously vim-tiny would include the vim recipe wholesale; >>>>> this meant that they had to be upgraded in a single transaction >>>>> which devtool cannot cope with. This thwarted the latest AUH >>>>> run in particular. >>>>> >>>>> Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> >>>>> --- >>>>> meta/recipes-support/vim/vim-tiny_8.1.1240.bb | 2 +- >>>>> meta/recipes-support/vim/vim.inc | 141 +++++++++++++++++ >>>>> meta/recipes-support/vim/vim_8.1.1240.bb | 142 +----------------- >>>>> 3 files changed, 143 insertions(+), 142 deletions(-) >>>>> create mode 100644 meta/recipes-support/vim/vim.inc >>>>> >>>>> 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 74464833adb..139e626e444 100644 >>>>> --- a/meta/recipes-support/vim/vim-tiny_8.1.1240.bb >>>>> +++ b/meta/recipes-support/vim/vim-tiny_8.1.1240.bb >>>>> @@ -1,4 +1,4 @@ >>>>> -require vim_${PV}.bb >>>>> +require vim.inc >>>>> >>>>> SUMMARY += " (with tiny features)" >>>>> >>>>> diff --git a/meta/recipes-support/vim/vim.inc b/meta/recipes-support/vim/vim.inc >>>>> new file mode 100644 >>>>> index 00000000000..f5c74684bfa >>>>> --- /dev/null >>>>> +++ b/meta/recipes-support/vim/vim.inc >>>>> @@ -0,0 +1,141 @@ >>>>> +SUMMARY = "Vi IMproved - enhanced vi editor" >>>>> +SECTION = "console/utils" >>>>> + >>>>> +PROVIDES = "xxd" >>>>> +DEPENDS = "ncurses gettext-native" >>>>> +# vimdiff doesn't like busybox diff >>>>> +RSUGGESTS_${PN} = "diffutils" >>>>> +LICENSE = "vim" >>>>> +LIC_FILES_CHKSUM = "file://runtime/doc/uganda.txt;endline=287;md5=f1f82b42360005c70b8c19b0ef493f72" >>>>> + >>>>> +SRC_URI = "git://github.com/vim/vim.git \ >>>>> + file://disable_acl_header_check.patch \ >>>>> + file://vim-add-knob-whether-elf.h-are-checked.patch \ >>>>> + file://0001-src-Makefile-improve-reproducibility.patch \ >>>>> +" >>>>> +SRCREV = "d96dbd6f95ea22f609042cc9c6272f14a21ff1a5" >>>>> + >>>>> +S = "${WORKDIR}/git" >>>>> + >>>>> +VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" >>>>> + >>>>> +inherit autotools-brokensep update-alternatives >>>>> + >>>>> +CLEANBROKEN = "1" >>>>> + >>>>> +# vim configure.in contains functions which got 'dropped' by autotools.bbclass >>>>> +do_configure () { >>>>> + cd src >>>>> + rm -f auto/* >>>>> + touch auto/config.mk >>>>> + aclocal >>>>> + autoconf >>>>> + cd .. >>>>> + oe_runconf >>>>> + touch src/auto/configure >>>>> + touch src/auto/config.mk src/auto/config.h >>>>> +} >>>>> + >>>>> +do_compile() { >>>>> + # We do not support fully / correctly the following locales. Attempting >>>>> + # to use these with msgfmt in order to update the ".desktop" files exposes >>>>> + # this problem and leads to the compile failing. >>>>> + for LOCALE in cs fr ko pl sk zh_CN zh_TW;do >>>>> + echo -n > src/po/${LOCALE}.po >>>>> + done >>>>> + autotools_do_compile >>>>> +} >>>>> + >>>>> +#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny >>>>> +PACKAGECONFIG ??= "" >>>>> +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," >>>>> +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_tgetent=non-zero \ >>>>> + vim_cv_toupper_broken=no \ >>>>> + vim_cv_tty_group=world \ >>>>> + STRIP=/bin/true \ >>>>> +" >>>>> + >>>>> +do_install() { >>>>> + autotools_do_install >>>>> + >>>>> + # Work around file-rdeps picking up csh, awk, perl or python as a dep >>>>> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/vim132 >>>>> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/mve.awk >>>>> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.pl >>>>> + chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.py >>>>> + >>>>> + # Install example vimrc from runtime files >>>>> + install -m 0644 runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc >>>>> + >>>>> + # we use --with-features=big as default >>>>> + mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} >>>>> + >>>>> + if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', d)}; then >>>>> + # The mouse being autoenabled is just annoying in xfce4-terminal (mouse >>>>> + # drag make vim go into visual mode and there is no right click menu), >>>>> + # delete the block. >>>>> + sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc >>>>> + fi >>>>> +} >>>>> + >>>>> +PARALLEL_MAKEINST = "" >>>>> + >>>>> +PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-tools" >>>>> +FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" >>>>> +FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" >>>>> +FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor ${bindir}/${BPN}tutor" >>>>> +FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" >>>>> +FILES_${PN}-data = "${datadir}/${BPN}" >>>>> +FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" >>>>> +FILES_${PN}-common = " \ >>>>> + ${datadir}/${BPN}/${VIMDIR}/*.vim \ >>>>> + ${datadir}/${BPN}/${VIMDIR}/autoload \ >>>>> + ${datadir}/${BPN}/${VIMDIR}/colors \ >>>>> + ${datadir}/${BPN}/${VIMDIR}/compiler \ >>>>> + ${datadir}/${BPN}/${VIMDIR}/ftplugin \ >>>>> + ${datadir}/${BPN}/${VIMDIR}/indent \ >>>>> + ${datadir}/${BPN}/${VIMDIR}/keymap \ >>>>> + ${datadir}/${BPN}/${VIMDIR}/lang \ >>>>> + ${datadir}/${BPN}/${VIMDIR}/macros \ >>>>> + ${datadir}/${BPN}/${VIMDIR}/plugin \ >>>>> + ${datadir}/${BPN}/${VIMDIR}/print \ >>>>> + ${datadir}/${BPN}/${VIMDIR}/spell \ >>>>> + ${datadir}/icons \ >>>>> +" >>>>> + >>>>> +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_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 f5c74684bfa..baaaacc0b77 100644 >>>>> --- a/meta/recipes-support/vim/vim_8.1.1240.bb >>>>> +++ b/meta/recipes-support/vim/vim_8.1.1240.bb >>>>> @@ -1,141 +1 @@ >>>>> -SUMMARY = "Vi IMproved - enhanced vi editor" >>>>> -SECTION = "console/utils" >>>>> - >>>>> -PROVIDES = "xxd" >>>>> -DEPENDS = "ncurses gettext-native" >>>>> -# vimdiff doesn't like busybox diff >>>>> -RSUGGESTS_${PN} = "diffutils" >>>>> -LICENSE = "vim" >>>>> -LIC_FILES_CHKSUM = "file://runtime/doc/uganda.txt;endline=287;md5=f1f82b42360005c70b8c19b0ef493f72" >>>>> - >>>>> -SRC_URI = "git://github.com/vim/vim.git \ >>>>> - file://disable_acl_header_check.patch \ >>>>> - file://vim-add-knob-whether-elf.h-are-checked.patch \ >>>>> - file://0001-src-Makefile-improve-reproducibility.patch \ >>>>> -" >>>>> -SRCREV = "d96dbd6f95ea22f609042cc9c6272f14a21ff1a5" >>>>> - >>>>> -S = "${WORKDIR}/git" >>>>> - >>>>> -VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" >>>>> - >>>>> -inherit autotools-brokensep update-alternatives >>>>> - >>>>> -CLEANBROKEN = "1" >>>>> - >>>>> -# vim configure.in contains functions which got 'dropped' by autotools.bbclass >>>>> -do_configure () { >>>>> - cd src >>>>> - rm -f auto/* >>>>> - touch auto/config.mk >>>>> - aclocal >>>>> - autoconf >>>>> - cd .. >>>>> - oe_runconf >>>>> - touch src/auto/configure >>>>> - touch src/auto/config.mk src/auto/config.h >>>>> -} >>>>> - >>>>> -do_compile() { >>>>> - # We do not support fully / correctly the following locales. Attempting >>>>> - # to use these with msgfmt in order to update the ".desktop" files exposes >>>>> - # this problem and leads to the compile failing. >>>>> - for LOCALE in cs fr ko pl sk zh_CN zh_TW;do >>>>> - echo -n > src/po/${LOCALE}.po >>>>> - done >>>>> - autotools_do_compile >>>>> -} >>>>> - >>>>> -#Available PACKAGECONFIG options are gtkgui, acl, x11, tiny >>>>> -PACKAGECONFIG ??= "" >>>>> -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," >>>>> -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_tgetent=non-zero \ >>>>> - vim_cv_toupper_broken=no \ >>>>> - vim_cv_tty_group=world \ >>>>> - STRIP=/bin/true \ >>>>> -" >>>>> - >>>>> -do_install() { >>>>> - autotools_do_install >>>>> - >>>>> - # Work around file-rdeps picking up csh, awk, perl or python as a dep >>>>> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/vim132 >>>>> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/mve.awk >>>>> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.pl >>>>> - chmod -x ${D}${datadir}/${BPN}/${VIMDIR}/tools/*.py >>>>> - >>>>> - # Install example vimrc from runtime files >>>>> - install -m 0644 runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc >>>>> - >>>>> - # we use --with-features=big as default >>>>> - mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} >>>>> - >>>>> - if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'true', 'false', d)}; then >>>>> - # The mouse being autoenabled is just annoying in xfce4-terminal (mouse >>>>> - # drag make vim go into visual mode and there is no right click menu), >>>>> - # delete the block. >>>>> - sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc >>>>> - fi >>>>> -} >>>>> - >>>>> -PARALLEL_MAKEINST = "" >>>>> - >>>>> -PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-tools" >>>>> -FILES_${PN}-syntax = "${datadir}/${BPN}/${VIMDIR}/syntax" >>>>> -FILES_${PN}-help = "${datadir}/${BPN}/${VIMDIR}/doc" >>>>> -FILES_${PN}-tutor = "${datadir}/${BPN}/${VIMDIR}/tutor ${bindir}/${BPN}tutor" >>>>> -FILES_${PN}-vimrc = "${datadir}/${BPN}/vimrc" >>>>> -FILES_${PN}-data = "${datadir}/${BPN}" >>>>> -FILES_${PN}-tools = "${datadir}/${BPN}/${VIMDIR}/tools" >>>>> -FILES_${PN}-common = " \ >>>>> - ${datadir}/${BPN}/${VIMDIR}/*.vim \ >>>>> - ${datadir}/${BPN}/${VIMDIR}/autoload \ >>>>> - ${datadir}/${BPN}/${VIMDIR}/colors \ >>>>> - ${datadir}/${BPN}/${VIMDIR}/compiler \ >>>>> - ${datadir}/${BPN}/${VIMDIR}/ftplugin \ >>>>> - ${datadir}/${BPN}/${VIMDIR}/indent \ >>>>> - ${datadir}/${BPN}/${VIMDIR}/keymap \ >>>>> - ${datadir}/${BPN}/${VIMDIR}/lang \ >>>>> - ${datadir}/${BPN}/${VIMDIR}/macros \ >>>>> - ${datadir}/${BPN}/${VIMDIR}/plugin \ >>>>> - ${datadir}/${BPN}/${VIMDIR}/print \ >>>>> - ${datadir}/${BPN}/${VIMDIR}/spell \ >>>>> - ${datadir}/icons \ >>>>> -" >>>>> - >>>>> -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_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" >>>>> +require vim.inc >>>>> -- >>>>> 2.17.1 >>>>> >>>>> -- >>>>> _______________________________________________ >>>>> 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] vim: Rework things so vim adds features not vim-tiny removes 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-18 18:34 ` Tom Rini 2019-05-18 18:57 ` Martin Jansa 1 sibling, 1 reply; 10+ messages in thread From: Tom Rini @ 2019-05-18 18:34 UTC (permalink / raw) To: openembedded-core 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 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH] vim: Rework things so vim adds features not vim-tiny removes 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 0 siblings, 1 reply; 10+ messages in thread From: Martin Jansa @ 2019-05-18 18:57 UTC (permalink / raw) To: Tom Rini; +Cc: Patches and discussions about the oe-core layer [-- Attachment #1: Type: text/plain, Size: 3850 bytes --] 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? 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 > [-- Attachment #2: Type: text/html, Size: 5977 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] vim: Rework things so vim adds features not vim-tiny removes 2019-05-18 18:57 ` Martin Jansa @ 2019-05-18 19:03 ` Tom Rini 2019-05-19 0:13 ` Tom Rini 0 siblings, 1 reply; 10+ messages in thread From: Tom Rini @ 2019-05-18 19:03 UTC (permalink / raw) To: Martin Jansa; +Cc: Patches and discussions about the oe-core layer [-- 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 --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] vim: Rework things so vim adds features not vim-tiny removes 2019-05-18 19:03 ` Tom Rini @ 2019-05-19 0:13 ` Tom Rini 0 siblings, 0 replies; 10+ messages in thread From: Tom Rini @ 2019-05-19 0:13 UTC (permalink / raw) To: Martin Jansa; +Cc: Patches and discussions about the oe-core layer [-- Attachment #1: Type: text/plain, Size: 1298 bytes --] On Sat, May 18, 2019 at 03:03:27PM -0400, Tom Rini wrote: > 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! OK, so busybox, toybox and vim all provide "xxd" and busybox/toybox setup u-a with their normal method. With what vim has (today and also with this patch) we end up with /usr/bin/xxd.vim, which is what we want. I inspected the ipk for that, and then putting all 3 in core-image-minimal looks sane too. -- Tom [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2019-05-19 0:13 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2019-05-19 0:13 ` Tom Rini
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox