void-packages/srcpkgs/gfan/patches/fix-int64-for-32bit-archs.patch
Gonzalo Tornaría 290d0ac224 New package: gfan-0.6.2
Uses three patches taken from sagemath, cf
https://git.sagemath.org/sage.git/plain/build/pkgs/gfan/patches?h=9.5.beta7

 - fix location of cddlib include files
 - normalize the output of one failing test
 - make tests return an error so build aborts

Also fixes for 32 bit bugs catched by testsuite:
 - add `-ffloat-store` to CFLAGS to fix `0009RenderStairCase`
 - patch typedef for `int64` which causes hang in `0602ResultantFanProjection`
2021-11-22 13:18:02 +01:00

18 lines
479 B
Diff

patch typedef for `int64` which causes hang in `0602ResultantFanProjection`
cf:
https://github.com/void-linux/void-packages/pull/34182
https://trac.sagemath.org/ticket/32088
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905300
--- a/src/vektor.h 2017-06-20 11:47:37.000000000 -0300
+++ b/src/vektor.h 2021-11-21 18:28:43.384750825 -0300
@@ -10,7 +10,7 @@
using namespace std;
-typedef signed long int int64;
+typedef int64_t int64;
void outOfRange(int i, int n);