commit:     a59396814f1d872cb93f3c7fa5eda84e24b4646a
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 12 04:03:31 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Fri Dec 12 12:30:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5939681

x11-wm/notion: mark as LTO-unsafe, strict-aliasing unsafe

Closes: https://bugs.gentoo.org/965850
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 x11-wm/notion/notion-4.0.4.ebuild |  8 +++++++-
 x11-wm/notion/notion-9999.ebuild  | 10 ++++++++--
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/x11-wm/notion/notion-4.0.4.ebuild 
b/x11-wm/notion/notion-4.0.4.ebuild
index f965b8cb9780..d5f6645cbe94 100644
--- a/x11-wm/notion/notion-4.0.4.ebuild
+++ b/x11-wm/notion/notion-4.0.4.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 LUA_COMPAT=( lua5-4 )
 
-inherit lua-single toolchain-funcs readme.gentoo-r1
+inherit flag-o-matic lua-single toolchain-funcs readme.gentoo-r1
 
 DESCRIPTION="Notion is a tiling, tabbed window manager for the X window system"
 HOMEPAGE="https://notionwm.net/";
@@ -51,6 +51,12 @@ PATCHES=(
 )
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/965850
+       # https://github.com/raboof/notion/issues/390
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        tc-export AR CC PKG_CONFIG
        export INSTALL_STRIP=""
 

diff --git a/x11-wm/notion/notion-9999.ebuild b/x11-wm/notion/notion-9999.ebuild
index 17f1344a33e4..b3e99b846d59 100644
--- a/x11-wm/notion/notion-9999.ebuild
+++ b/x11-wm/notion/notion-9999.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 LUA_COMPAT=( lua5-4 )
 
-inherit lua-single toolchain-funcs readme.gentoo-r1
+inherit flag-o-matic lua-single toolchain-funcs readme.gentoo-r1
 
 DESCRIPTION="Notion is a tiling, tabbed window manager for the X window system"
 HOMEPAGE="https://notionwm.net/";
@@ -44,6 +44,12 @@ BDEPEND="
        virtual/pkgconfig"
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/965850
+       # https://github.com/raboof/notion/issues/390
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        tc-export AR CC PKG_CONFIG
        export INSTALL_STRIP=""
 

Reply via email to