commit:     eecdd47e4d8acbe92493140b2ba0a80358d28791
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Fri Mar 15 06:33:56 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 15 06:46:15 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eecdd47e

sci-geosciences/grass: mark as LTO-unsafe, strict-aliasing unsafe

Closes: https://bugs.gentoo.org/862579
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-geosciences/grass/grass-8.3.1.ebuild | 10 +++++++++-
 sci-geosciences/grass/grass-9999.ebuild  | 10 +++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/sci-geosciences/grass/grass-8.3.1.ebuild 
b/sci-geosciences/grass/grass-8.3.1.ebuild
index 166049f1b309..8a3ea23d393d 100644
--- a/sci-geosciences/grass/grass-8.3.1.ebuild
+++ b/sci-geosciences/grass/grass-8.3.1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 PYTHON_COMPAT=( python3_{10..11} )
 PYTHON_REQ_USE="sqlite"  # bug 572440
 
-inherit desktop python-single-r1 toolchain-funcs xdg
+inherit desktop flag-o-matic python-single-r1 toolchain-funcs xdg
 
 DESCRIPTION="A free GIS with raster and vector functionality, as well as 3D 
vizualization"
 HOMEPAGE="https://grass.osgeo.org/";
@@ -163,6 +163,14 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/862579
+       # https://github.com/OSGeo/grass/issues/3506
+       #
+       # Do not trust it with LTO either
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        addwrite /dev/dri/renderD128
 
        local myeconfargs=(

diff --git a/sci-geosciences/grass/grass-9999.ebuild 
b/sci-geosciences/grass/grass-9999.ebuild
index 850b3a402fe1..ed68dea0c142 100644
--- a/sci-geosciences/grass/grass-9999.ebuild
+++ b/sci-geosciences/grass/grass-9999.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 PYTHON_COMPAT=( python3_{10..11} )
 PYTHON_REQ_USE="sqlite"  # bug 572440
 
-inherit desktop python-single-r1 toolchain-funcs xdg
+inherit desktop flag-o-matic python-single-r1 toolchain-funcs xdg
 
 DESCRIPTION="A free GIS with raster and vector functionality, as well as 3D 
vizualization"
 HOMEPAGE="https://grass.osgeo.org/";
@@ -158,6 +158,14 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/862579
+       # https://github.com/OSGeo/grass/issues/3506
+       #
+       # Do not trust it with LTO either
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        addwrite /dev/dri/renderD128
 
        local myeconfargs=(

Reply via email to