summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Bissey <frp.bissey@gmail.com>2024-08-22 11:03:11 +1200
committerMichael Orlitzky <mjo@gentoo.org>2024-09-05 19:48:24 -0400
commit07a2116aa1b13393dad67070653f5397fe224091 (patch)
tree9d44f90520966cbe579d19daafb2c529e2615449 /sci-mathematics/giac/files
parentdev-libs/blake3: Stabilize 1.5.1 x86, #939151 (diff)
downloadgentoo-07a2116aa1b13393dad67070653f5397fe224091.tar.gz
gentoo-07a2116aa1b13393dad67070653f5397fe224091.tar.bz2
gentoo-07a2116aa1b13393dad67070653f5397fe224091.zip
sci-mathematics/giac: add 1.9.0.995
Signed-off-by: François Bissey <frp.bissey@gmail.com> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'sci-mathematics/giac/files')
-rw-r--r--sci-mathematics/giac/files/giac-1.9.0.995-glibcxx-assertions.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/sci-mathematics/giac/files/giac-1.9.0.995-glibcxx-assertions.patch b/sci-mathematics/giac/files/giac-1.9.0.995-glibcxx-assertions.patch
new file mode 100644
index 000000000000..60172a814d2c
--- /dev/null
+++ b/sci-mathematics/giac/files/giac-1.9.0.995-glibcxx-assertions.patch
@@ -0,0 +1,21 @@
+From Michael Orlitzky <michael@orlitzky.com> in the original version
+of the patch:
+
+This was added upstream when it was pointed out that the codebase
+contains undefined behavior that triggers glibcxx's assertions.
+Disabling the assertions without fixing the undefined behavior is not
+a satisfactory solution, so we drop the override.
+
+diff --git a/configure.ac b/configure.ac
+index 96b0223..cdc5618 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -48,7 +48,7 @@ AC_CHECK_FUNCS(tgammaf)
+ dnl avoid "security" checks for vectors is also included in first.h
+ dnl use -std=c++17 -march=native for vectorclass v2 optimizations
+ dnl -DUSE_OBJET_BIDON added because xcas::localisation() does not load locales correctly for modules loaded before main() is executed
+-CXXFLAGS="$CXXFLAGS -U_GLIBCXX_ASSERTIONS -DUSE_OBJET_BIDON"
++CXXFLAGS="$CXXFLAGS -DUSE_OBJET_BIDON"
+
+ dnl Define DOUBLEVAL if bigendian
+ if test "x$ac_cv_c_bigendian" = "xyes"; then