From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 20840158041 for ; Wed, 20 Mar 2024 06:26:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 77A9EE29AD; Wed, 20 Mar 2024 06:26:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 563A6E29AD for ; Wed, 20 Mar 2024 06:26:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6B14F342FA3 for ; Wed, 20 Mar 2024 06:26:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C706A1518 for ; Wed, 20 Mar 2024 06:26:44 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1710915417.eb0e5ecae371f47a765f537ba0095faed1b45013.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/snort/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/snort/snort-2.9.17-r1.ebuild X-VCS-Directories: net-analyzer/snort/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: eb0e5ecae371f47a765f537ba0095faed1b45013 X-VCS-Branch: master Date: Wed, 20 Mar 2024 06:26:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c09acb79-3bf0-4540-8c16-2a1c86aada10 X-Archives-Hash: c72e8fc5487b94f057aa29ccca188133 commit: eb0e5ecae371f47a765f537ba0095faed1b45013 Author: Eli Schwartz gmail com> AuthorDate: Wed Mar 20 00:27:23 2024 +0000 Commit: Sam James gentoo 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 gmail.com> Signed-off-by: Sam James 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) \