summaryrefslogtreecommitdiff
path: root/user/libqalculate
diff options
context:
space:
mode:
Diffstat (limited to 'user/libqalculate')
-rw-r--r--user/libqalculate/APKBUILD11
-rw-r--r--user/libqalculate/old-mpfr.patch30
2 files changed, 37 insertions, 4 deletions
diff --git a/user/libqalculate/APKBUILD b/user/libqalculate/APKBUILD
index 85c26c019..0304534f9 100644
--- a/user/libqalculate/APKBUILD
+++ b/user/libqalculate/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libqalculate
-pkgver=3.6.0
-pkgrel=1
+pkgver=5.5.2
+pkgrel=0
pkgdesc="Library implementing a powerful, versatile desktop calculator"
url="https://qalculate.github.io/"
arch="all"
@@ -12,7 +12,9 @@ depends=""
depends_dev="gmp-dev mpfr-dev"
makedepends="$depends_dev curl-dev icu-dev intltool libxml2-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang qalc"
-source="https://github.com/Qalculate/libqalculate/releases/download/v$pkgver/libqalculate-$pkgver.tar.gz"
+source="https://github.com/Qalculate/libqalculate/releases/download/v$pkgver/libqalculate-$pkgver.tar.gz
+ old-mpfr.patch
+ "
build() {
./configure \
@@ -39,4 +41,5 @@ qalc() {
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
-sha512sums="afef26633d28f4c9b018a17056bf9645118b2e8698d4d5ba76a4a7df783503579381db448a5d557059fc7629d175385353d7eabeef3636ec0cad669fd68e5d0f libqalculate-3.6.0.tar.gz"
+sha512sums="48069d73e840c25017f70e0337ea3c6f5d7aee2996c8dcdd8f53963647dfa80080bf632086c609df22d4c2c7f363c17e3bd52fa155458f3e232676d7a7191885 libqalculate-5.5.2.tar.gz
+55cf8b67b87b8f18435b19a283900213d9ed904da071ce7a13568317140a84bbe1454994eadaa7d4d24447799d14b9c9b4535d2477aa3a680c1479fdf190615d old-mpfr.patch"
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() {