commit:     e9ba22b61ce631b1f9ebf19c74ec04eef55dc509
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Sun Mar 10 19:53:24 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 11 14:22:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9ba22b6

x11-drivers/xf86-video-openchrome: mark LTO-unsafe, strict-aliasing unsafe

Freedesktop moved to gitlab and dropped support for previous project
hosting methods to read-only. It appears openchrome never made the
migration. May be dead -- it hasn't been developed in some time, the
cgit HEAD is 4 years old and a non-default branch is "only" a year old.

Not really sure where to report a bug to. ;)

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

 .../xf86-video-openchrome-0.6.0.ebuild                     | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git 
a/x11-drivers/xf86-video-openchrome/xf86-video-openchrome-0.6.0.ebuild 
b/x11-drivers/xf86-video-openchrome/xf86-video-openchrome-0.6.0.ebuild
index 1219380c354b..05f4f4c71a97 100644
--- a/x11-drivers/xf86-video-openchrome/xf86-video-openchrome-0.6.0.ebuild
+++ b/x11-drivers/xf86-video-openchrome/xf86-video-openchrome-0.6.0.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
 XORG_DRI="always"
-inherit xorg-3
+inherit flag-o-matic xorg-3
 
 DESCRIPTION="X.Org driver for VIA/S3G cards"
 HOMEPAGE="https://www.freedesktop.org/wiki/Openchrome/";
@@ -26,6 +26,16 @@ DEPEND="
 PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/864406
+       # Upstream appears to have never migrated from the old bugzilla and
+       # cgit hosting over to gitlab.fd.o, no activity in a year, no way
+       # to report a bug I guess. Yay dead software.
+       #
+       # Do not trust for LTO either
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        local XORG_CONFIGURE_OPTIONS=(
                $(use_enable debug)
                $(use_enable debug xv-debug)

Reply via email to