commit:     1a1e08ac5ed37555aafc8f09748fb942d9b7255c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 29 07:30:43 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 29 07:33:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a1e08ac

dev-util/colm: filter LTO, no-SA

ragel and colm are *very* fragile.

Bug: https://bugs.gentoo.org/858341
Bug: https://bugs.gentoo.org/883993
Bug: https://bugs.gentoo.org/924163
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-util/colm/colm-0.14.7-r3.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/dev-util/colm/colm-0.14.7-r3.ebuild 
b/dev-util/colm/colm-0.14.7-r3.ebuild
index 434617e07dbd..852300e4e897 100644
--- a/dev-util/colm/colm-0.14.7-r3.ebuild
+++ b/dev-util/colm/colm-0.14.7-r3.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 autotools toolchain-funcs
+inherit autotools flag-o-matic toolchain-funcs
 
 DESCRIPTION="COmputer Language Manipulation"
 HOMEPAGE="https://www.colm.net/open-source/colm/";
@@ -51,6 +51,11 @@ src_prepare() {
 }
 
 src_configure() {
+       # We need to be careful with both ragel and colm.
+       # See bug #858341, bug #883993 bug #924163.
+       filter-lto
+       append-flags -fno-strict-aliasing
+
        econf $(use_enable doc manual)
 }
 

Reply via email to