commit: eb0e5ecae371f47a765f537ba0095faed1b45013 Author: Eli Schwartz <eschwartz93 <AT> gmail <DOT> com> AuthorDate: Wed Mar 20 00:27:23 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Mar 20 06:16:57 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb0e5eca
net-analyzer/snort: mark as LTO-unsafe, strict-aliasing unsafe Closes: https://bugs.gentoo.org/861239 Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> net-analyzer/snort/snort-2.9.17-r1.ebuild | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/net-analyzer/snort/snort-2.9.17-r1.ebuild b/net-analyzer/snort/snort-2.9.17-r1.ebuild index ba2c56393269..25092e422c53 100644 --- a/net-analyzer/snort/snort-2.9.17-r1.ebuild +++ b/net-analyzer/snort/snort-2.9.17-r1.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 LUA_COMPAT=( luajit ) -inherit autotools lua-single systemd tmpfiles +inherit autotools flag-o-matic lua-single systemd tmpfiles DESCRIPTION="The de facto standard for intrusion detection/prevention" HOMEPAGE="https://www.snort.org" @@ -60,6 +60,15 @@ src_prepare() { } src_configure() { + # -Werror=strict-aliasing + # https://bugs.gentoo.org/861239 + # + # Upstream does bug mail. Sent an email. + # + # Do not trust with LTO either. + append-flags -fno-strict-aliasing + filter-lto + econf \ $(use_enable gre) \ $(use_enable control-socket) \
