commit:     26fb9efcd488243df5865d10492fec95958622c7
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue Mar 26 00:44:12 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar 26 12:27:27 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26fb9efc

net-misc/balance: mark as LTO-unsafe, strict-aliasing unsafe

Closes: https://bugs.gentoo.org/861599
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/balance/balance-3.57-r1.ebuild | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/net-misc/balance/balance-3.57-r1.ebuild 
b/net-misc/balance/balance-3.57-r1.ebuild
index 1dbfe6c842cd..b432ff4b7e02 100644
--- a/net-misc/balance/balance-3.57-r1.ebuild
+++ b/net-misc/balance/balance-3.57-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit fcaps toolchain-funcs
+inherit fcaps flag-o-matic toolchain-funcs
 
 DESCRIPTION="TCP Load Balancing Port Forwarder"
 HOMEPAGE="https://balance.inlab.net";
@@ -25,6 +25,18 @@ src_prepare() {
        tc-export CC
 }
 
+src_compile() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/861599
+       # https://sourceforge.net/p/balance/bugs/13/
+       #
+       # Do not trust with LTO either.
+       append-flags -fno-strict-aliasing
+       filter-lto
+
+       default
+}
+
 src_install() {
        default
 

Reply via email to