commit:     51f60d956e142d90744bc8d99e99f81ee98221bf
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Tue Mar  5 01:26:33 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Mar  5 04:47:50 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51f60d95

sys-apps/xdg-desktop-portal-gnome: mark LTO-unsafe, strict-aliasing unsafe

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

 .../xdg-desktop-portal-gnome-45.1-r1.ebuild                   | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git 
a/sys-apps/xdg-desktop-portal-gnome/xdg-desktop-portal-gnome-45.1-r1.ebuild 
b/sys-apps/xdg-desktop-portal-gnome/xdg-desktop-portal-gnome-45.1-r1.ebuild
index 01563bab5406..f263b44b8b24 100644
--- a/sys-apps/xdg-desktop-portal-gnome/xdg-desktop-portal-gnome-45.1-r1.ebuild
+++ b/sys-apps/xdg-desktop-portal-gnome/xdg-desktop-portal-gnome-45.1-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit gnome.org meson systemd xdg
+inherit flag-o-matic gnome.org meson systemd xdg
 
 DESCRIPTION="Backend implementation for xdg-desktop-portal using GNOME"
 HOMEPAGE="https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome";
@@ -41,6 +41,15 @@ PATCHES=(
 )
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/919852
+       # https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/113
+       # 
https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/138
+       #
+       # Recheck this after next version bump!
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        local emesonargs=(
                -Dsystemduserunitdir="$(systemd_get_userunitdir)"
        )

Reply via email to