summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2021-06-10 15:25:48 +0200
committerMichel Zou2021-06-10 15:25:48 +0200
commit715614da383c2f9f1b9247c2e91e7da99dff3b59 (patch)
tree9e5fadf13b8b5059e3a5ebcb1d9f56bdc38e2fb5
parent7752dd1fc82b0fa13e1f281c3be1b89f6a71c3d0 (diff)
downloadaur-715614da383c2f9f1b9247c2e91e7da99dff3b59.tar.gz
leak
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD7
-rw-r--r--leak.patch12
3 files changed, 19 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f35c83c56ce..cf9095a6ecf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = hmat-oss16
pkgdesc = A hierarchical matrix C/C++ library
pkgver = 1.6.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/jeromerobert/hmat-oss
arch = x86_64
license = GPL
@@ -12,7 +12,9 @@ pkgbase = hmat-oss16
conflicts = hmat-oss
source = https://github.com/jeromerobert/hmat-oss/archive/1.6.1.tar.gz
source = set_num_threads.patch
+ source = leak.patch
sha256sums = 1517be8bde1c06bd8bc42d95926c72d787af95fc3d37439c911a7cea3243d2ca
sha256sums = SKIP
+ sha256sums = SKIP
pkgname = hmat-oss16
diff --git a/PKGBUILD b/PKGBUILD
index b17f48b9ecf..78dae391b03 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=hmat-oss16
pkgver=1.6.1
-pkgrel=1
+pkgrel=2
pkgdesc="A hierarchical matrix C/C++ library"
license=('GPL')
arch=('x86_64')
@@ -9,12 +9,13 @@ depends=('cblas' 'lapack')
makedepends=('cmake')
provides=("hmat-oss=${pkgver}")
conflicts=('hmat-oss')
-source=("https://github.com/jeromerobert/hmat-oss/archive/${pkgver}.tar.gz" set_num_threads.patch)
-sha256sums=('1517be8bde1c06bd8bc42d95926c72d787af95fc3d37439c911a7cea3243d2ca' SKIP)
+source=("https://github.com/jeromerobert/hmat-oss/archive/${pkgver}.tar.gz" set_num_threads.patch leak.patch)
+sha256sums=('1517be8bde1c06bd8bc42d95926c72d787af95fc3d37439c911a7cea3243d2ca' SKIP SKIP)
prepare() {
cd hmat-oss-$pkgver
patch -p1 -i "$srcdir"/set_num_threads.patch
+ patch -p1 -i "$srcdir"/leak.patch
sed -i "s|-Werror ||g" CMakeLists.txt
}
diff --git a/leak.patch b/leak.patch
new file mode 100644
index 00000000000..8ad48439878
--- /dev/null
+++ b/leak.patch
@@ -0,0 +1,12 @@
+diff --git a/src/compression.cpp b/src/compression.cpp
+index 7db0c97..f2290df 100644
+--- a/src/compression.cpp
++++ b/src/compression.cpp
+@@ -364,6 +364,7 @@ compressAcaPartial(const ClusterAssemblyFunction<T>& block, bool useRandomPivots
+ Pivot<dp_t > randomOrDefaultPivot = randomPivotManager.GetPivot();
+ if(I!=randomOrDefaultPivot.row && squaredNorm(randomOrDefaultPivot.value) > maxNorm2){
+ I = randomOrDefaultPivot.row;
++ delete bCol;
+ continue;
+ }
+