commit:     ccb3314faadf6a1a39f30084728081b7179c7a17
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Sat Mar  9 09:43:46 2024 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sat Mar 16 12:13:23 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccb3314f

sci-mathematics/giac: remove unused patches

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 .../giac/files/giac-1.9.0.55-pari-2.15-test.patch  | 10 ----
 .../files/giac-1.9.0.55-undefined-behavior.patch   | 62 ----------------------
 2 files changed, 72 deletions(-)

diff --git a/sci-mathematics/giac/files/giac-1.9.0.55-pari-2.15-test.patch 
b/sci-mathematics/giac/files/giac-1.9.0.55-pari-2.15-test.patch
deleted file mode 100644
index 956ade485edd..000000000000
--- a/sci-mathematics/giac/files/giac-1.9.0.55-pari-2.15-test.patch
+++ /dev/null
@@ -1,10 +0,0 @@
-https://github.com/void-linux/void-packages/blob/master/srcpkgs/giac/patches/giac-pari-2.15-test.patch
-
---- a/check/chk_fhan4  2018-03-13 15:27:11.000000000 -0300
-+++ b/check/chk_fhan4  2022-10-14 18:51:12.604731890 -0300
-@@ -1,4 +1,5 @@
- #! /bin/sh
- unset LANG
-+export PARI_SIZE=2048000
- ../src/icas TP04-sol.cas > TP04.tst
- diff TP04.tst TP04-sol.cas.out1

diff --git a/sci-mathematics/giac/files/giac-1.9.0.55-undefined-behavior.patch 
b/sci-mathematics/giac/files/giac-1.9.0.55-undefined-behavior.patch
deleted file mode 100644
index 78eac91a5244..000000000000
--- a/sci-mathematics/giac/files/giac-1.9.0.55-undefined-behavior.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From fc0fb5ba02953d6e15424ce3a2d8f5b52380ffb4 Mon Sep 17 00:00:00 2001
-From: Michael Orlitzky <[email protected]>
-Date: Sun, 25 Jun 2023 13:43:35 -0400
-Subject: [PATCH 1/1] src/vecteur.cc: fix invalid vector indexing.
-
-A few places in vector.cc use the construct &buffer[n]-m where
-"buffer" is an std::vector and "n" its size. This is undefined
-behavior since the index is outside of the allowed range (0 through
-n-1). With GLIBCXX_ASSERTIONS enabled, it crashes on the out-of-
-bounds index.
-
-The most obvious fix is to use &buffer[n-1]-(m+1), which avoids the
-issue so long as n >= 1. I think this will always be the case in the
-affected code, but if I'm wrong, it can be fixed by adding a special
-case for n == 0.
----
- src/vecteur.cc | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/src/vecteur.cc b/src/vecteur.cc
-index 89b1445..c91af66 100644
---- a/src/vecteur.cc
-+++ b/src/vecteur.cc
-@@ -7998,7 +7998,7 @@ namespace giac {
-       if (convertpos){
-         int C=col+1;
-         longlong * buf=&buffer[C];
--        longlong * bufend=&buffer[cmax]-8;
-+        longlong * bufend=&buffer[cmax-1]-7;
-         const int * nline=&Nline[C];
-         for (;buf<=bufend;buf+=8,nline+=8){
-           longlong x,y;
-@@ -8022,7 +8022,7 @@ namespace giac {
-       else {
-         int C=col+1;
-         longlong * buf=&buffer[C];
--        longlong * bufend=&buffer[cmax]-8;
-+        longlong * bufend=&buffer[cmax-1]-7;
-         const int * nline=&Nline[C];
-         for (;buf<=bufend;buf+=8,nline+=8){
-           buf[0] -= coeff*nline[0];
-@@ -8268,7 +8268,7 @@ namespace giac {
-           }
- #else
-           int C=col+1;
--          longlong * ptr= &buffer[C],*ptrend=&buffer[cmax]-4;
-+          longlong * ptr= &buffer[C],*ptrend=&buffer[cmax-1]-3;
-           const int *ptrN=&Nline[C];
-           for (;ptr<ptrend;ptrN+=4,ptr+=4){
-             longlong x = *ptr;
-@@ -8300,7 +8300,7 @@ namespace giac {
-         }
-         else {
-           int C=col+1;
--          longlong * ptr= &buffer[C],*ptrend=&buffer[cmax]-4;
-+          longlong * ptr= &buffer[C],*ptrend=&buffer[cmax-1] - 3;
-           const int *ptrN=&Nline[C];
-           for (;ptr<ptrend;ptrN+=4,ptr+=4){
-             *ptr -= coeff*(*ptrN);
--- 
-2.39.3
-

Reply via email to