commit:     78cb0269257b225aa34bcaf79962527843a5c704
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue Mar  5 04:41:20 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar  5 04:47:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78cb0269

media-gfx/povray: mark as LTO-unsafe, strict-aliasing unsafe

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

 media-gfx/povray/povray-3.7.0.0-r4.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/media-gfx/povray/povray-3.7.0.0-r4.ebuild 
b/media-gfx/povray/povray-3.7.0.0-r4.ebuild
index 14d2bd4402a7..8fbfdb6ab113 100644
--- a/media-gfx/povray/povray-3.7.0.0-r4.ebuild
+++ b/media-gfx/povray/povray-3.7.0.0-r4.ebuild
@@ -90,6 +90,14 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/859784
+       # https://github.com/POV-Ray/povray/issues/458
+       # Upstream activity is dead for 3 years now, so don't hold
+       # your breath for a fix.
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        # Fixes bug 71255
        if [[ $(get-flag march) == k6-2 ]]; then
                filter-flags -fomit-frame-pointer

Reply via email to