From 7b8296a785ebbb0241d7465ff4d22687ebceed0a Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 7 Jul 2024 20:05:50 -0400 Subject: [PATCH] media-video/webcamoid: mark as LTO-unsafe Closes: https://bugs.gentoo.org/927104 Signed-off-by: Eli Schwartz --- media-video/webcamoid/webcamoid-9.1.1.ebuild | 9 +++++++-- media-video/webcamoid/webcamoid-9999.ebuild | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/media-video/webcamoid/webcamoid-9.1.1.ebuild b/media-video/webcamoid/webcamoid-9.1.1.ebuild index c539d8831d386..012242abe5a0c 100644 --- a/media-video/webcamoid/webcamoid-9.1.1.ebuild +++ b/media-video/webcamoid/webcamoid-9.1.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit cmake xdg +inherit cmake flag-o-matic xdg DESCRIPTION="Full featured webcam capture application" HOMEPAGE="https://webcamoid.github.io" @@ -52,6 +52,11 @@ RDEPEND="${COMMON_DEPEND} " src_configure() { + # -Werror=odr + # https://bugs.gentoo.org/927104 + # https://github.com/webcamoid/webcamoid/issues/702 + filter-lto + #Disable git in package source. If not disabled the cmake configure process will show #a lot of "fatal not a git repository" errors sed -i 's|find_program(GIT_BIN git)|#find_program(GIT_BIN git)|' libAvKys/cmake/ProjectCommons.cmake || die diff --git a/media-video/webcamoid/webcamoid-9999.ebuild b/media-video/webcamoid/webcamoid-9999.ebuild index c77abd8ab9198..2bcfa8ebd3432 100644 --- a/media-video/webcamoid/webcamoid-9999.ebuild +++ b/media-video/webcamoid/webcamoid-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake xdg +inherit cmake flag-o-matic xdg DESCRIPTION="Full featured webcam capture application" HOMEPAGE="https://webcamoid.github.io" @@ -45,6 +45,11 @@ RDEPEND="${COMMON_DEPEND} " src_configure() { + # -Werror=odr + # https://bugs.gentoo.org/927104 + # https://github.com/webcamoid/webcamoid/issues/702 + filter-lto + #Disable git in package source. If not disabled the cmake configure process will show #a lot of "fatal not a git repository" errors sed -i 's|find_program(GIT_BIN git)|#find_program(GIT_BIN git)|' libAvKys/cmake/ProjectCommons.cmake || die