From cccba67944b52d8d48beb95a39e653ecbbf5471f Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 11 Mar 2024 00:16:44 -0400 Subject: [PATCH] dev-libs/igraph: mark as LTO-unsafe, strict-aliasing unsafe Only in 0.10.4, as it is fixed and backported into the ~arch version. Bug: https://bugs.gentoo.org/924864 Signed-off-by: Eli Schwartz Signed-off-by: Sam James --- dev-libs/igraph/igraph-0.10.4-r1.ebuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dev-libs/igraph/igraph-0.10.4-r1.ebuild b/dev-libs/igraph/igraph-0.10.4-r1.ebuild index 0020face7f808..fd9d1d6f77eca 100644 --- a/dev-libs/igraph/igraph-0.10.4-r1.ebuild +++ b/dev-libs/igraph/igraph-0.10.4-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 cmake +inherit cmake flag-o-matic DESCRIPTION="Creating and manipulating undirected and directed graphs" HOMEPAGE="https://igraph.org/" @@ -27,6 +27,12 @@ RDEPEND=" DEPEND="${RDEPEND}" src_configure() { + # -Werror=strict-aliasing + # + # Fixed in upstream git master. + append-flags -fno-strict-aliasing + filter-lto + local mycmakeargs=( -DUSE_CCACHE=OFF -DIGRAPH_GLPK_SUPPORT=ON