diff options
Diffstat (limited to 'user/libqalculate/old-mpfr.patch')
-rw-r--r-- | user/libqalculate/old-mpfr.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/user/libqalculate/old-mpfr.patch b/user/libqalculate/old-mpfr.patch new file mode 100644 index 000000000..9e1a31cd3 --- /dev/null +++ b/user/libqalculate/old-mpfr.patch @@ -0,0 +1,30 @@ +Our version of MPFR does not have local cache freeing abilities. + +Original regression (for our cases) is: https://github.com/Qalculate/libqalculate/commit/42c5af5333c527c44b67f2d480680029c5284d49 +See-also: https://github.com/Qalculate/libqalculate/pull/680 +--- libqalculate-5.5.2/libqalculate/util.cc.old 2025-03-01 23:12:03.000000000 -0600 ++++ libqalculate-5.5.2/libqalculate/util.cc 2025-06-28 01:32:07.292382732 -0500 +@@ -1071,7 +1071,6 @@ + } + + void free_thread_caches() { +- mpfr_free_cache2(MPFR_FREE_LOCAL_CACHE); + } + + #ifdef _WIN32 +@@ -1095,7 +1094,6 @@ + Thread *thread = (Thread *) data; + SetEvent(thread->m_threadReadyEvent); + thread->run(); +- mpfr_free_cache2(MPFR_FREE_LOCAL_CACHE); + thread->running = false; + return 0; + } +@@ -1145,7 +1143,6 @@ + void Thread::doCleanup(void *data) { + Thread *thread = (Thread *) data; + thread->running = false; +- mpfr_free_cache2(MPFR_FREE_LOCAL_CACHE); + } + + void Thread::enableAsynchronousCancel() { |