commit:     04619473f29d5c222d80d607574c222943ef96e5
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Fri Mar  8 09:21:50 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar  8 11:09:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04619473

x11-libs/fox: mark as LTO-unsafe, strict-aliasing unsafe

Fixed in newer (packaged) version, so only mark the older version, which
as it happens is the one with a stable keyword.

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

 x11-libs/fox/fox-1.7.67-r1.ebuild | 10 +++++++++-
 x11-libs/fox/fox-1.7.67-r2.ebuild | 10 +++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/x11-libs/fox/fox-1.7.67-r1.ebuild 
b/x11-libs/fox/fox-1.7.67-r1.ebuild
index 9a93e67039bf..1a2513f96a04 100644
--- a/x11-libs/fox/fox-1.7.67-r1.ebuild
+++ b/x11-libs/fox/fox-1.7.67-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit autotools
+inherit autotools flag-o-matic
 
 DESCRIPTION="C++ Toolkit for developing Graphical User Interfaces easily and 
effectively"
 HOMEPAGE="http://www.fox-toolkit.org/";
@@ -57,6 +57,14 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/864412
+       # Fixed in 1.7.84
+       #
+       # Do not trust it for LTO either.
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        econf \
                --disable-static \
                --enable-$(usex debug debug release) \

diff --git a/x11-libs/fox/fox-1.7.67-r2.ebuild 
b/x11-libs/fox/fox-1.7.67-r2.ebuild
index e0e6f90f7c06..6f22d0fa1c2f 100644
--- a/x11-libs/fox/fox-1.7.67-r2.ebuild
+++ b/x11-libs/fox/fox-1.7.67-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit autotools
+inherit autotools flag-o-matic
 
 DESCRIPTION="C++ Toolkit for developing Graphical User Interfaces easily and 
effectively"
 HOMEPAGE="http://www.fox-toolkit.org/";
@@ -65,6 +65,14 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/864412
+       # Fixed in 1.7.84
+       #
+       # Do not trust it for LTO either.
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        econf \
                --disable-static \
                --enable-$(usex debug debug release) \

Reply via email to