commit: 3a86ab73d1f336dbbfb6eb51cf0a8171ad964245 Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> AuthorDate: Thu Jul 3 06:16:45 2025 +0000 Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org> CommitDate: Thu Jul 3 07:59:13 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a86ab73
app-editors/mg: mark as LTO-unsafe I'm not reporting this upstream. "Upstream" is someone importing OpenBSD code and adding libbsd for portability. Code defects are an OpenBSD problem. Attempting to engage with OpenBSD is not my idea of a fun time, so, we'll leave it at filtering LTO. Closes: https://bugs.gentoo.org/940566 Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org> app-editors/mg/mg-20230501.ebuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app-editors/mg/mg-20230501.ebuild b/app-editors/mg/mg-20230501.ebuild index 9724cf464295..d597865a47d3 100644 --- a/app-editors/mg/mg-20230501.ebuild +++ b/app-editors/mg/mg-20230501.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit toolchain-funcs +inherit flag-o-matic toolchain-funcs DESCRIPTION="MicroGnuEmacs, a port from the BSDs" HOMEPAGE="https://github.com/hboetes/mg" @@ -27,6 +27,10 @@ src_prepare() { } src_compile() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/940566 + filter-lto + emake CC="$(tc-getCC)" \ CFLAGS="${CFLAGS}" \ PKG_CONFIG="$(tc-getPKG_CONFIG)"
