commit:     fd90a46e91412cd39940bc840f83bddec671d24d
Author:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  2 20:31:31 2026 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Fri Jan  2 20:32:47 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd90a46e

dev-perl/Math-Pari: mark as LTO-unsafe, strict-aliasing unsafe

Bundled libs have aliasing violations.

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

 dev-perl/Math-Pari/Math-Pari-2.10.809.0-r2.ebuild | 9 +++++++--
 dev-perl/Math-Pari/Math-Pari-2.30.523.ebuild      | 9 +++++++--
 dev-perl/Math-Pari/Math-Pari-2.30.528.ebuild      | 7 ++++++-
 3 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/dev-perl/Math-Pari/Math-Pari-2.10.809.0-r2.ebuild 
b/dev-perl/Math-Pari/Math-Pari-2.10.809.0-r2.ebuild
index 76b133b8336e..3544ef7fa3d3 100644
--- a/dev-perl/Math-Pari/Math-Pari-2.10.809.0-r2.ebuild
+++ b/dev-perl/Math-Pari/Math-Pari-2.10.809.0-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -7,7 +7,7 @@ DIST_AUTHOR=ILYAZ
 DIST_SECTION=modules
 DIST_VERSION=2.01080900
 DIST_A_EXT=zip
-inherit perl-module toolchain-funcs
+inherit flag-o-matic perl-module toolchain-funcs
 
 PARI_VER=2.3.5
 
@@ -60,6 +60,11 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing in bundled sci-mathematics/pari code copy
+       # https://bugs.gentoo.org/856112
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        # Unfortunately the assembly routines math-pari has for SPARC do not 
appear
        # to be working at current.  Perl cannot test math-pari or anything that
        # pulls in the math-pari module as DynaLoader cannot load the resulting

diff --git a/dev-perl/Math-Pari/Math-Pari-2.30.523.ebuild 
b/dev-perl/Math-Pari/Math-Pari-2.30.523.ebuild
index 954ab55813ce..0068966fe669 100644
--- a/dev-perl/Math-Pari/Math-Pari-2.30.523.ebuild
+++ b/dev-perl/Math-Pari/Math-Pari-2.30.523.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -6,7 +6,7 @@ EAPI=8
 DIST_AUTHOR=ILYAZ
 DIST_SECTION=modules
 DIST_VERSION=2.030523
-inherit perl-module toolchain-funcs
+inherit flag-o-matic perl-module toolchain-funcs
 
 PARI_VER=2.3.5
 
@@ -53,6 +53,11 @@ src_prepare() {
 }
 
 src_configure() {
+       # -Werror=strict-aliasing in bundled sci-mathematics/pari code copy
+       # https://bugs.gentoo.org/856112
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        # Unfortunately the assembly routines math-pari has for SPARC do not 
appear
        # to be working at current.  Perl cannot test math-pari or anything that
        # pulls in the math-pari module as DynaLoader cannot load the resulting

diff --git a/dev-perl/Math-Pari/Math-Pari-2.30.528.ebuild 
b/dev-perl/Math-Pari/Math-Pari-2.30.528.ebuild
index bbb0c1a69084..fc98a40d820a 100644
--- a/dev-perl/Math-Pari/Math-Pari-2.30.528.ebuild
+++ b/dev-perl/Math-Pari/Math-Pari-2.30.528.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -58,6 +58,11 @@ src_configure() {
        # bug #1234
        append-cflags -std=gnu17
 
+       # -Werror=strict-aliasing in bundled sci-mathematics/pari code copy
+       # https://bugs.gentoo.org/856112
+       append-flags -fno-strict-aliasing
+       filter-lto
+
        # Unfortunately the assembly routines math-pari has for SPARC do not 
appear
        # to be working at current.  Perl cannot test math-pari or anything that
        # pulls in the math-pari module as DynaLoader cannot load the resulting

Reply via email to