From 8837d76332650f30a9a763c02223941ae49bf37e Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 1 Jun 2018 19:38:46 -0500 Subject: user/analitza: patch to fix pmmx range() --- user/analitza/APKBUILD | 8 +++++--- user/analitza/pmmx-test-failure.patch | 14 ++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 user/analitza/pmmx-test-failure.patch (limited to 'user/analitza') 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 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& 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); -- cgit v1.2.3-70-g09d2