vim: add PACKAGECONFIG option for desktop files
PATCH 1/1 vim: add PACKAGECONFIG option for desktop files
The recipe currently always inherits mime-xdg and keeps the installed desktop files. Add a desktop PACKAGECONFIG option so configurations can disable that desktop integration while preserving the current default behavior.
When desktop support is disabled, remove the generated desktop files during do_install and avoid inheriting mime-xdg.
--- meta/recipes-support/vim/vim.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
meta/recipes-support/vim/vim.inc +10 -1
@@ -50,7 +50,7 @@ S = "${WORKDIR}/git" VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" -inherit autotools-brokensep update-alternatives mime-xdg pkgconfig +inherit autotools-brokensep update-alternatives pkgconfig CLEANBROKEN = "1"
@@ -76,9 +76,11 @@ do_configure () { PACKAGECONFIG ??= "\ ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \ + desktop \ nls \ " +PACKAGECONFIG[desktop] = "" PACKAGECONFIG[gtkgui] = "--enable-gui=gtk3,--enable-gui=no,gtk+3" PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl," PACKAGECONFIG[x11] = "--with-x,--without-x,xt,"
@@ -88,6 +90,8 @@ PACKAGECONFIG[elfutils] = "--enable-elf-check,,elfutils," PACKAGECONFIG[nls] = "--enable-nls,--disable-nls,," PACKAGECONFIG[sound] = "--enable-canberra,--disable-canberra,canberra," +inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'desktop', 'mime-xdg', '', d)} + EXTRA_OECONF = " \ --disable-gpm \ --disable-gtktest \
@@ -134,6 +138,11 @@ do_install() { # delete the block. sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc fi + + if ${@bb.utils.contains('PACKAGECONFIG', 'desktop', 'false', 'true', d)}; then + rm -f ${D}${datadir}/applications/vim.desktop + rm -f ${D}${datadir}/applications/gvim.desktop + fi } PARALLEL_MAKEINST = ""
Signature · 1 line
2.35.6
Quoted 29 lines · Shinu Chandran via lists.openembedded.org
The recipe currently always inherits mime-xdg and keeps the installed desktop files. Add a desktop PACKAGECONFIG option so configurations can disable that desktop integration while preserving the current default behavior.
When desktop support is disabled, remove the generated desktop files during
do_installand avoid inheriting mime-xdg.Signed-off-by Shinu Chandran <[email protected]>Signed-off-by Mathieu Dubois-Briand <[email protected]>Signed-off-by Richard Purdie <[email protected]>(cherry picked from commit 942813bf3f249f80f3154ba8137d172c406bf319)--- meta/recipes-support/vim/vim.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)meta/recipes-support/vim/vim.inc +1
-1@@ -50,7 +50,7 @@ S = "${WORKDIR}/git" VIMDIR = "vim${@d.getVar('PV').split('.')[0]}${@d.getVar('PV').split('.')[1]}" -inherit autotools-brokensep update-alternatives mime-xdg pkgconfig +inherit autotools-brokensep update-alternatives pkgconfig CLEANBROKEN = "1"
meta/recipes-support/vim/vim.inc do_configure () { · line 81
Quoted 6 lines
meta/recipes-support/vim/vim.inc +1
-0@@ -76,9 +76,11 @@ do_configure () { PACKAGECONFIG ??= "\ ${@bb.utils.filter('DISTRO_FEATURES', 'acl selinux', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 gtkgui', '', d)} \ + desktop \ nls \ "
Hello,
Thanks for the patch, but PACKAGECONFIG changes are usually unacceptable for stable. Are clear bugfix could provide an exception but here I don't see a "real" bug:
IIUC, using this patch would only cut the dependencies and remove 2 files from the package and this looks more like a cleanup than a real bugfix.
So, unless you can provide compelling reason to merge this, I won't accept this for now.
Regards,
Signature · 2 lines
Yoann Congal Smile ECS