From 6c824d8c17318aa42970dde16ab6ab616eca38db Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 26 Mar 2024 20:49:33 -0400 Subject: media-gfx/freecad: mark as LTO-unsafe Closes: https://bugs.gentoo.org/875221 Signed-off-by: Eli Schwartz Signed-off-by: Sam James --- media-gfx/freecad/freecad-0.20.2-r1.ebuild | 7 ++++++- media-gfx/freecad/freecad-0.20.2-r2.ebuild | 7 ++++++- media-gfx/freecad/freecad-0.21.2-r2.ebuild | 7 ++++++- media-gfx/freecad/freecad-9999.ebuild | 7 ++++++- 4 files changed, 24 insertions(+), 4 deletions(-) (limited to 'media-gfx') diff --git a/media-gfx/freecad/freecad-0.20.2-r1.ebuild b/media-gfx/freecad/freecad-0.20.2-r1.ebuild index 56776f593336..90b88e029c9b 100644 --- a/media-gfx/freecad/freecad-0.20.2-r1.ebuild +++ b/media-gfx/freecad/freecad-0.20.2-r1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) -inherit check-reqs cmake optfeature python-single-r1 xdg +inherit check-reqs cmake flag-o-matic optfeature python-single-r1 xdg DESCRIPTION="QT based Computer Aided Design application" HOMEPAGE="https://www.freecad.org/ https://github.com/FreeCAD/FreeCAD" @@ -162,6 +162,11 @@ src_prepare() { } src_configure() { + # -Werror=odr, -Werror=lto-type-mismatch + # https://bugs.gentoo.org/875221 + # https://github.com/FreeCAD/FreeCAD/issues/13173 + filter-lto + local mycmakeargs=( -DBUILD_ADDONMGR=$(usex addonmgr) -DBUILD_ARCH=ON diff --git a/media-gfx/freecad/freecad-0.20.2-r2.ebuild b/media-gfx/freecad/freecad-0.20.2-r2.ebuild index 4e0963bd788f..986a290c62ea 100644 --- a/media-gfx/freecad/freecad-0.20.2-r2.ebuild +++ b/media-gfx/freecad/freecad-0.20.2-r2.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) -inherit check-reqs cmake optfeature python-single-r1 xdg +inherit check-reqs cmake flag-o-matic optfeature python-single-r1 xdg DESCRIPTION="QT based Computer Aided Design application" HOMEPAGE="https://www.freecad.org/ https://github.com/FreeCAD/FreeCAD" @@ -161,6 +161,11 @@ src_prepare() { } src_configure() { + # -Werror=odr, -Werror=lto-type-mismatch + # https://bugs.gentoo.org/875221 + # https://github.com/FreeCAD/FreeCAD/issues/13173 + filter-lto + local mycmakeargs=( -DBUILD_ADDONMGR=$(usex addonmgr) -DBUILD_ARCH=ON diff --git a/media-gfx/freecad/freecad-0.21.2-r2.ebuild b/media-gfx/freecad/freecad-0.21.2-r2.ebuild index 0186a45ed151..f0c0f0c47bbb 100644 --- a/media-gfx/freecad/freecad-0.21.2-r2.ebuild +++ b/media-gfx/freecad/freecad-0.21.2-r2.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) -inherit check-reqs cmake optfeature python-single-r1 qmake-utils xdg +inherit check-reqs cmake flag-o-matic optfeature python-single-r1 qmake-utils xdg DESCRIPTION="QT based Computer Aided Design application" HOMEPAGE="https://www.freecad.org/ https://github.com/FreeCAD/FreeCAD" @@ -185,6 +185,11 @@ src_prepare() { } src_configure() { + # -Werror=odr, -Werror=lto-type-mismatch + # https://bugs.gentoo.org/875221 + # https://github.com/FreeCAD/FreeCAD/issues/13173 + filter-lto + local mycmakeargs=( -DBUILD_ADDONMGR=$(usex addonmgr) -DBUILD_ARCH=ON diff --git a/media-gfx/freecad/freecad-9999.ebuild b/media-gfx/freecad/freecad-9999.ebuild index 804b83dc404f..76f8dae4592e 100644 --- a/media-gfx/freecad/freecad-9999.ebuild +++ b/media-gfx/freecad/freecad-9999.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) -inherit check-reqs cmake optfeature python-single-r1 qmake-utils xdg +inherit check-reqs cmake flag-o-matic optfeature python-single-r1 qmake-utils xdg DESCRIPTION="QT based Computer Aided Design application" HOMEPAGE="https://www.freecad.org/ https://github.com/FreeCAD/FreeCAD" @@ -189,6 +189,11 @@ src_prepare() { } src_configure() { + # -Werror=odr, -Werror=lto-type-mismatch + # https://bugs.gentoo.org/875221 + # https://github.com/FreeCAD/FreeCAD/issues/13173 + filter-lto + local mycmakeargs=( -DBUILD_ADDONMGR=$(usex addonmgr) -DBUILD_ARCH=ON -- cgit v1.2.3-65-gdbad