vim: Compile and provide xxd in package vim-xxd
PATCH 1/1 vim: Compile and provide xxd in package vim-xxd
--- meta-oe/recipes-support/vim/vim_7.4.481.bb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
meta-oe/recipes-support/vim/vim_7.4.481.bb +9 -1
@@ -59,6 +59,11 @@ EXTRA_OECONF = " \ STRIP=/bin/true \ " +do_compile_append() { + cd "${S}/xxd" + make +} + do_install() { autotools_do_install
@@ -70,17 +75,20 @@ do_install() { # Install example vimrc from runtime files install -m 0644 ../runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc + install -m 0755 xxd/xxd ${D}${bindir}/xxd + # we use --with-features=big as default mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} } PARALLEL_MAKEINST = "" -PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc" +PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-xxd" 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}-xxd = "${bindir}/xxd" FILES_${PN}-data = "${datadir}/${BPN}" FILES_${PN}-common = " \ ${datadir}/${BPN}/${VIMDIR}/*.vim \
Signature · 1 line
2.1.4
Quoted 16 lines · Ioan-Adrian Ratiu
Signed-off-by Ioan-Adrian Ratiu <[email protected]>---
meta-oe/recipes-support/vim/vim_7.4.481.bb | 10 +++++++++-1 file changed, 9 insertions(+), 1 deletion(-)meta-oe/recipes-support/vim/vim_7.4.481.bb +0
-0@@ -59,6 +59,11 @@ EXTRA_OECONF = " \ STRIP=/bin/true \"
meta-oe/recipes-support/vim/vim_7.4.481.bb EXTRA_OECONF = " \ · line 64
Quoted 3 lines
meta-oe/recipes-support/vim/vim_7.4.481.bb +3
-0+do_compile_append() { + cd "${S}/xxd" + make
why not oe_runmake ?
Quoted 35 lines
meta-oe/recipes-support/vim/vim_7.4.481.bb +2
-0+} +
do_install(){
autotools_do_installmeta-oe/recipes-support/vim/vim_7.4.481.bb +2
-0@@ -70,17 +75,20 @@ do_install() { # Install example vimrc from runtime files install -m 0644 ../runtime/vimrc_example.vim ${D}/${datadir}/${BPN}/vimrc + install -m 0755 xxd/xxd ${D}${bindir}/xxd + # we use --with-features=big as default mv ${D}${bindir}/${BPN} ${D}${bindir}/${BPN}.${BPN} }
PARALLEL_MAKEINST= ""meta-oe/recipes-support/vim/vim_7.4.481.bb +1
-1-PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc" +PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-xxd"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}-xxd = "${bindir}/xxd"
FILES_${PN}-data = "${datadir}/${BPN}"FILES_${PN}-common = " \ ${datadir}/${BPN}/${VIMDIR}/*.vim \--
2.1.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 16 lines · Khem Raj
Quoted 16 lines · Ioan-Adrian Ratiu
Signed-off-by Ioan-Adrian Ratiu <[email protected]>---
meta-oe/recipes-support/vim/vim_7.4.481.bb | 10 +++++++++-1 file changed, 9 insertions(+), 1 deletion(-)meta-oe/recipes-support/vim/vim_7.4.481.bb +0
-0@@ -59,6 +59,11 @@ EXTRA_OECONF = " \ STRIP=/bin/true \"
Quoted 5 lines
meta-oe/recipes-support/vim/vim_7.4.481.bb EXTRA_OECONF = " \ · line 64
Quoted 3 lines
meta-oe/recipes-support/vim/vim_7.4.481.bb +3
-0+do_compile_append() { + cd "${S}/xxd" + makewhy not
oe_runmake?
I did some more research and indeed oe_runmake should be used and the default oe_runmake call already compiles xxd when calling the top level Makefile so there's no need for do_compile_append altogether.
The same goes for the install append.
The only thing needed to be done is simply package xxd. I'll rewrite and resubmit.
Thank you,
Adrian
PATCH v2 1/1 vim: provide the xxd tool (package vim-xxd)
In reply to Ioan-Adrian Ratiu--- meta-oe/recipes-support/vim/vim_7.4.481.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-support/vim/vim_7.4.481.bb +2 -1
@@ -76,11 +76,12 @@ do_install() { PARALLEL_MAKEINST = "" -PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc" +PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-xxd" 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}-xxd = "${bindir}/xxd" FILES_${PN}-data = "${datadir}/${BPN}" FILES_${PN}-common = " \ ${datadir}/${BPN}/${VIMDIR}/*.vim \
Signature · 1 line
2.1.4
Re: [meta-oe][PATCH v2] vim: provide the xxd tool (package vim-xxd)
Quoted 10 lines · Ioan-Adrian Ratiu
Signed-off-by Ioan-Adrian Ratiu <[email protected]>--- meta-oe/recipes-support/vim/vim_7.4.481.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)meta-oe/recipes-support/vim/vim_7.4.481.bb +0
-0
meta-oe/recipes-support/vim/vim_7.4.481.bb do_install() { · line 84
Quoted 10 lines
meta-oe/recipes-support/vim/vim_7.4.481.bb +2
-1@@ -76,11 +76,12 @@ do_install() { PARALLEL_MAKEINST = "" -PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc" +PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-xxd" 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}-xxd = "${bindir}/xxd"
So it was already included in some other package (probably main vim package)?
Quoted 11 lines
meta-oe/recipes-support/vim/vim_7.4.481.bb +0
-0FILES_${PN}-data = "${datadir}/${BPN}" FILES_${PN}-common = " \ ${datadir}/${BPN}/${VIMDIR}/*.vim \Signature · 7 lines
2.1.4 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Re: [meta-oe][PATCH v2] vim: provide the xxd tool (package vim-xxd)
Quoted 14 lines · Martin Jansa
Quoted 13 lines · Ioan-Adrian Ratiu
Signed-off-by Ioan-Adrian Ratiu <[email protected]>--- meta-oe/recipes-support/vim/vim_7.4.481.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)meta-oe/recipes-support/vim/vim_7.4.481.bb +0
-0@@ -76,11 +76,12 @@ do_install() { PARALLEL_MAKEINST = ""
Quoted 10 lines
meta-oe/recipes-support/vim/vim_7.4.481.bb do_install() { · line 84
Quoted 7 lines
meta-oe/recipes-support/vim/vim_7.4.481.bb +2
-1-PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc" +PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-xxd" 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}-xxd = "${bindir}/xxd"So it was already included in some other package (probably main vim package)?
Yes, it is as you say, included in the main package.
If you think it's a good idea to leave it there, then we can simply ignore these patches.