vim: add nativesdk to BBCLASSEXTEND
PATCH v2 1/1 vim: add nativesdk to BBCLASSEXTEND
Enable nativesdk build support in order to be able to include vim in nativesdk targets (e.g. buildtools-tarball/sdk). It is useful to be able to provide an editor in a relocatable form for when hosts do not provide an editor. Additionally the vim recipe provides the xxd tool.
---
Changes in v2:
- Add detail to commit message
--- meta/recipes-support/vim/vim_8.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-support/vim/vim_8.2.bb +1 -1
@@ -3,7 +3,7 @@ require vim.inc PROVIDES = "xxd" PACKAGECONFIG_class-native = "" -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk" ALTERNATIVE_${PN}_append = " xxd" ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd"
---
2.28.0
Quoted 5 lines · Nathan Rossi
Enable nativesdk build support in order to be able to include vim in nativesdk targets (e.g. buildtools-tarball/sdk). It is useful to be able to provide an editor in a relocatable form for when hosts do not provide an editor.
Is there any reason why a preference is given to vim in favor of all other available editors? Why cannot a user install any editor of choice on the host system or inside a container?
AFAIK, editor is not an integral part of the build system and is not considered a build tool, therefore does it really make sense to pull it into buildtools-tarball/sdk?
Maybe I'm just missing a use case here...
Quoted 1 line
Additionally the vim recipe provides the xxd tool.
This is a "hidden" dependency that would be pulled via this recipe... I'm not sure this is a good solution, especially when somebody would opt-out from vim package.
Quoted 27 lines
Signed-off-by Nathan Rossi <[email protected]>---
Changes in v2:
- Add detail to commit message--- meta/recipes-support/vim/vim_8.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-support/vim/vim_8.2.bb +1
-2@@ -3,7 +3,7 @@ require vim.inc PROVIDES = "xxd" PACKAGECONFIG_class-native = "" -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk" ALTERNATIVE_${PN}_append = " xxd" ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd" ---2.28.0
Signature · 2 lines
Regards, Andrey.
Quoted 8 lines · Andrey Zhizhikin
Quoted 5 lines · Nathan Rossi
Enable nativesdk build support in order to be able to include vim in nativesdk targets (e.g. buildtools-tarball/sdk). It is useful to be able to provide an editor in a relocatable form for when hosts do not provide an editor.
Quoted 8 lines
Is there any reason why a preference is given to vim in favor of all other available editors? Why cannot a user install any editor of choice on the host system or inside a container?
AFAIK, editor is not an integral part of the build system and is not considered a build tool, therefore does it really make sense to pull it into buildtools-tarball/sdk?
Maybe I'm just missing a use case here...
So this change here is not about including it in buildtools itself. This is just enabling nativesdk for vim such that it can be included in a nativesdk target.
Just a couple of use cases for including vim in a nativesdk "buildtools-tarball" like relocatable installer:
- xxd bundled with other microcontroller/etc. programming/debug tools
- vim (and/or other editors) shipped with an expanded buildtools-tarball to avoid host dependencies on build machines that have heavily restrictive policies
Quoted 6 lines
Quoted 2 lines
Additionally the vim recipe provides the xxd tool.
This is a "hidden" dependency that would be pulled via this recipe... I'm not sure this is a good solution, especially when somebody would opt-out from vim package.
Not sure what you are referring to here. This comment in the commit message is just to point out that this change is not just about the vim editor, but also in order to be able to include the xxd tool (that is part of the vim source) as a nativesdk package.
Regards,
Nathan
Quoted 33 lines
Quoted 24 lines
Signed-off-by Nathan Rossi <[email protected]>---
Changes in v2:
- Add detail to commit message--- meta/recipes-support/vim/vim_8.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-support/vim/vim_8.2.bb +1
-2@@ -3,7 +3,7 @@ require vim.inc PROVIDES = "xxd" PACKAGECONFIG_class-native = "" -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk" ALTERNATIVE_${PN}_append = " xxd" ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd" ---Quoted 4 lines
2.28.0
--
Regards,
Andrey.
Quoted 14 lines · Nathan Rossi
Quoted 12 lines · Andrey Zhizhikin
Quoted 5 lines · Nathan Rossi
Enable nativesdk build support in order to be able to include vim in nativesdk targets (e.g. buildtools-tarball/sdk). It is useful to be able to provide an editor in a relocatable form for when hosts do not provide an editor.
Is there any reason why a preference is given to vim in favor of all other available editors? Why cannot a user install any editor of choice on the host system or inside a container?
Quoted 8 lines
Quoted 4 lines
AFAIK, editor is not an integral part of the build system and is not considered a build tool, therefore does it really make sense to pull it into buildtools-tarball/sdk?
Maybe I'm just missing a use case here...So this change here is not about including it in buildtools itself. This is just enabling nativesdk for vim such that it can be included in a nativesdk target.
Yes, I understood this and agree with it.
Quoted 4 lines
Just a couple of use cases for including vim in a nativesdk "buildtools-tarball" like relocatable installer:
- xxd bundled with other microcontroller/etc. programming/debug tools
This I can consider to be marked as a build tool, but this relates only to xxd. If this is all that is needed from vim package - maybe then only xxd should be exported?
Quoted 3 lines
- vim (and/or other editors) shipped with an expanded buildtools-tarball to avoid host dependencies on build machines that have heavily restrictive policies
That also makes sense, but in this case - should there be a similar patch against emacs and nano in meta-openembedded ("fair play")?
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines
Additionally the vim recipe provides the xxd tool.
Quoted 8 lines
Quoted 3 lines
This is a "hidden" dependency that would be pulled via this recipe... I'm not sure this is a good solution, especially when somebody would opt-out from vim package.
Not sure what you are referring to here. This comment in the commit message is just to point out that this change is not just about the vim editor, but also in order to be able to include the xxd tool (that is part of the vim source) as a nativesdk package.
This was a source of confusion for me: your commit message states that vim provides xxd without any further information, so one can make an assumption that it was not provided before. :) Since this states the obvious - maybe it is better to drop this statement at all, it is rather confusing than informative.
Quoted 37 lines
Regards,
NathanQuoted 33 lines
Quoted 24 lines
Signed-off-by Nathan Rossi <[email protected]>---
Changes in v2:
- Add detail to commit message--- meta/recipes-support/vim/vim_8.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-support/vim/vim_8.2.bb +1
-2@@ -3,7 +3,7 @@ require vim.inc PROVIDES = "xxd" PACKAGECONFIG_class-native = "" -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk" ALTERNATIVE_${PN}_append = " xxd" ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd" ---Quoted 4 lines
2.28.0
--
Regards,
Andrey.
Signature · 2 lines
Regards, Andrey.