commit:     7b8296a785ebbb0241d7465ff4d22687ebceed0a
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  8 00:05:50 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Mon Jul  8 03:18:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b8296a7

media-video/webcamoid: mark as LTO-unsafe

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

 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 c539d8831d38..012242abe5a0 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 c77abd8ab919..2bcfa8ebd343 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

Reply via email to