From: Joe Slater Date: Sat, 6 Jun 2020 17:17:01 +0000 (-0700) Subject: vim: _FORTIFY_SOURCE=2 be gone X-Git-Tag: 2020-04.2-dunfell~137 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=d9de155f6452f916edd3131addd0c2eebaf4d639;p=openembedded-core.git vim: _FORTIFY_SOURCE=2 be gone vim will abort in many places with this setting. Replace it with the benign _FORTIFY_SOURCE=1. Signed-off-by: Joe Slater Signed-off-by: Richard Purdie (cherry picked from commit 18129cbaeddb3278efe9963718556e3765f06c1e) Signed-off-by: Steve Sakoman --- 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)}"