When using gentoo-hardened with the new fortify-source-3.patch built into Gcc-12.2.1_p20221231 ,
net-fs/cifs-utils package results in a warning about a definition redefined collision.
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<built-in>: note: this is the location of the previous definition
Meaning the package has _F_S=2 hardcoded internally:
@ Makefile.am / Makefile.in / Makefile (all)
that flag should be stripped so _F_S=3 can take effect without conflict.
Created attachment 848008 [details]
warning: "_FORTIFY_SOURCE" redefined
hardened_tinderbox has reproduced this issue with version 7.0 - Updating summary.
The bug has been closed via the following commit(s):
Author: Sam James <firstname.lastname@example.org>
AuthorDate: 2023-10-04 16:58:25 +0000
Commit: Sam James <email@example.com>
CommitDate: 2023-10-04 16:58:25 +0000
net-fs/cifs-utils: don't redefine _FORTIFY_SOURCE
Signed-off-by: Sam James <firstname.lastname@example.org>
net-fs/cifs-utils/cifs-utils-7.0-r1.ebuild | 143 +++++++++++++++++++++
.../cifs-utils-7.0-no-clobber-fortify-source.patch | 11 ++
2 files changed, 154 insertions(+)