diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-01 19:38:46 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-01 19:38:46 -0500 |
commit | 8837d76332650f30a9a763c02223941ae49bf37e (patch) | |
tree | 099c75e5fd02b2e1ba487d9ad5bb06ea54f2613a | |
parent | 1b708c8a90e3548c4954c6367a9376f76f3746bd (diff) | |
download | packages-8837d76332650f30a9a763c02223941ae49bf37e.tar.gz packages-8837d76332650f30a9a763c02223941ae49bf37e.tar.bz2 packages-8837d76332650f30a9a763c02223941ae49bf37e.tar.xz packages-8837d76332650f30a9a763c02223941ae49bf37e.zip |
user/analitza: patch to fix pmmx range()
-rw-r--r-- | user/analitza/APKBUILD | 8 | ||||
-rw-r--r-- | user/analitza/pmmx-test-failure.patch | 14 |
2 files changed, 19 insertions, 3 deletions
diff --git a/user/analitza/APKBUILD b/user/analitza/APKBUILD index 2c562f252..f2d0dde57 100644 --- a/user/analitza/APKBUILD +++ b/user/analitza/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=analitza pkgver=17.12.2 -pkgrel=0 +pkgrel=1 pkgdesc="Mathematical object library" url="https://api.kde.org/4.x-api/kdeedu-apidocs/analitza/html/index.html" arch="all" @@ -12,7 +12,8 @@ depends_dev="qt5-qtbase-dev qt5-qtsvg-dev qt5-qtdeclarative-dev eigen-dev" makedepends="$depends_dev cmake extra-cmake-modules qt5-qttools-dev" install="" subpackages="$pkgname-dev $pkgname-lang" -source="http://download.kde.org/stable/applications/$pkgver/src/analitza-$pkgver.tar.xz" +source="http://download.kde.org/stable/applications/$pkgver/src/analitza-$pkgver.tar.xz + pmmx-test-failure.patch" build() { cd "$builddir" @@ -40,4 +41,5 @@ package() { make DESTDIR="$pkgdir" install } -sha512sums="e326d397db3193492258f156cd71f63e4544abd9724b58769a1593ff57242b18de09291a433ea37658015bd57f75e430ed95bdf99d3863fccfc4b546a9686933 analitza-17.12.2.tar.xz" +sha512sums="e326d397db3193492258f156cd71f63e4544abd9724b58769a1593ff57242b18de09291a433ea37658015bd57f75e430ed95bdf99d3863fccfc4b546a9686933 analitza-17.12.2.tar.xz +c38ce1f8265224aebfa8dcf8ef93a83bb2abd4eb757add3a7578660753bf9f16cbd497c9d696f22a6345602585a06bf4bad2bd89b2ea75e70baf9f8739198da9 pmmx-test-failure.patch" diff --git a/user/analitza/pmmx-test-failure.patch b/user/analitza/pmmx-test-failure.patch new file mode 100644 index 000000000..6e1bce2d4 --- /dev/null +++ b/user/analitza/pmmx-test-failure.patch @@ -0,0 +1,14 @@ +diff --git a/analitza/commands/listcommands.cpp b/analitza/commands/listcommands.cpp +index b77f49a9..2885169a 100644 +--- a/analitza/commands/listcommands.cpp ++++ b/analitza/commands/listcommands.cpp +@@ -69,8 +69,9 @@ Expression RangeCommand::operator()(const QList<Analitza::Expression >& args) + + Analitza::List *seq = new Analitza::List; + +- for (double x = a; x <= b; x += h) ++ for (double x = a; x < b || qFuzzyCompare(x, b); x += h) { + seq->appendBranch(new Analitza::Cn(x)); ++ } + + ret.setTree(seq); |