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. Reproducible: Always
Created attachment 848008 [details] cifs-util build.log 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): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79853c374d5f3e0cf1a73a17fec44912739b7012 commit 79853c374d5f3e0cf1a73a17fec44912739b7012 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-10-04 16:58:25 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-10-04 16:58:25 +0000 net-fs/cifs-utils: don't redefine _FORTIFY_SOURCE Closes: https://bugs.gentoo.org/890278 Signed-off-by: Sam James <sam@gentoo.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(+)