From a428b11e4cb16826f2d747fc70d24a85c030a42c Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 27 May 2025 18:42:22 -0400 Subject: [PATCH] x11-libs/pixman: filter LTO on riscv There is a known issue in GCC causing build failures in this package on riscv when LTO is enabled. This commit temporary disables LTO on riscv. Closes: https://bugs.gentoo.org/956715 Signed-off-by: Michael Orlitzky --- x11-libs/pixman/pixman-0.46.0.ebuild | 9 ++++++++- x11-libs/pixman/pixman-9999.ebuild | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/x11-libs/pixman/pixman-0.46.0.ebuild b/x11-libs/pixman/pixman-0.46.0.ebuild index fa5ecac0c222a..8cac0712d62c4 100644 --- a/x11-libs/pixman/pixman-0.46.0.ebuild +++ b/x11-libs/pixman/pixman-0.46.0.ebuild @@ -9,7 +9,7 @@ if [[ ${PV} = 9999* ]]; then GIT_ECLASS="git-r3" fi -inherit ${GIT_ECLASS} meson-multilib multiprocessing toolchain-funcs +inherit flag-o-matic ${GIT_ECLASS} meson-multilib multiprocessing toolchain-funcs DESCRIPTION="Low-level pixel manipulation routines" HOMEPAGE="http://www.pixman.org/ https://gitlab.freedesktop.org/pixman/pixman/" @@ -32,6 +32,13 @@ pkg_setup() { } multilib_src_configure() { + # Temporary workaround for a build failure (known gcc issue): + # + # * https://bugs.gentoo.org/956715 + # * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110812 + # + use riscv && filter-lto + local emesonargs=( $(meson_feature cpu_flags_x86_mmxext mmx) $(meson_feature cpu_flags_x86_sse2 sse2) diff --git a/x11-libs/pixman/pixman-9999.ebuild b/x11-libs/pixman/pixman-9999.ebuild index fa5ecac0c222a..8cac0712d62c4 100644 --- a/x11-libs/pixman/pixman-9999.ebuild +++ b/x11-libs/pixman/pixman-9999.ebuild @@ -9,7 +9,7 @@ if [[ ${PV} = 9999* ]]; then GIT_ECLASS="git-r3" fi -inherit ${GIT_ECLASS} meson-multilib multiprocessing toolchain-funcs +inherit flag-o-matic ${GIT_ECLASS} meson-multilib multiprocessing toolchain-funcs DESCRIPTION="Low-level pixel manipulation routines" HOMEPAGE="http://www.pixman.org/ https://gitlab.freedesktop.org/pixman/pixman/" @@ -32,6 +32,13 @@ pkg_setup() { } multilib_src_configure() { + # Temporary workaround for a build failure (known gcc issue): + # + # * https://bugs.gentoo.org/956715 + # * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110812 + # + use riscv && filter-lto + local emesonargs=( $(meson_feature cpu_flags_x86_mmxext mmx) $(meson_feature cpu_flags_x86_sse2 sse2)