Openembedded Core Discussions
 help / color / mirror / Atom feed
* [V2][oe-core][PATCH 1/1] vim: _FORTIFY_SOURCE=2 be gone
@ 2020-06-09 22:46 Joe Slater
  2020-06-09 22:59 ` Andre McCurdy
  2020-06-09 23:01 ` ✗ patchtest: failure for [V2] vim: _FORTIFY_SOURCE=2 be gone (rev2) Patchwork
  0 siblings, 2 replies; 4+ messages in thread
From: Joe Slater @ 2020-06-09 22:46 UTC (permalink / raw)
  To: openembedded-core; +Cc: joe.slater, randy.macleod

vim will abort in many places with this setting.  Replace
it with the benign _FORTIFY_SOURCE=1.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
---
 meta/recipes-support/vim/vim_8.2.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-support/vim/vim_8.2.bb b/meta/recipes-support/vim/vim_8.2.bb
index 60946a181f..709b6ddb55 100644
--- a/meta/recipes-support/vim/vim_8.2.bb
+++ b/meta/recipes-support/vim/vim_8.2.bb
@@ -8,3 +8,8 @@ BBCLASSEXTEND = "native"
 ALTERNATIVE_${PN}_append = " xxd"
 ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd"
 ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd"
+
+# We override the default in security_flags.inc because vim (not vim-tiny!) will abort
+# in many places for _FORTIFY_SOURCE=2.  Security flags become part of CC.
+#
+lcl_maybe_fortify = "${@oe.utils.conditional('DEBUG_BUILD','1','','-D_FORTIFY_SOURCE=1',d)}"
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-09 23:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-09 22:46 [V2][oe-core][PATCH 1/1] vim: _FORTIFY_SOURCE=2 be gone Joe Slater
2020-06-09 22:59 ` Andre McCurdy
2020-06-09 23:46   ` Joe Slater
2020-06-09 23:01 ` ✗ patchtest: failure for [V2] vim: _FORTIFY_SOURCE=2 be gone (rev2) Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox