public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Orion Poplawski <orion@cora.nwra.com>
To: git-commits@fedoraproject.org
Subject: [rpms/kst] pr1: Add patch to fix qreal issues on arm (bug #1180348)
Date: Tue, 06 Oct 2026 19:29:53 GMT [thread overview]
Message-ID: <179131499368.1.4557487293947399310.rpms-kst-2310fd6cf539@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/kst
Branch : pr1
Commit : 2310fd6cf5391d514ab1ece2b82f528520a4fb86
Author : Orion Poplawski <orion@cora.nwra.com>
Date : 2015-01-14T16:53:37-07:00
Stats : +80/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/kst/c/2310fd6cf5391d514ab1ece2b82f528520a4fb86?branch=pr1
Log:
Add patch to fix qreal issues on arm (bug #1180348)
---
diff --git a/kst-qreal.patch b/kst-qreal.patch
new file mode 100644
index 0000000..d6a71e2
--- /dev/null
+++ b/kst-qreal.patch
@@ -0,0 +1,72 @@
+diff -up Kst-2.0.8/src/libkst/editablevector.cpp.qreal Kst-2.0.8/src/libkst/editablevector.cpp
+--- Kst-2.0.8/src/libkst/editablevector.cpp.qreal 2014-07-20 03:22:38.000000000 -0600
++++ Kst-2.0.8/src/libkst/editablevector.cpp 2015-01-12 10:46:16.884628350 -0700
+@@ -52,7 +52,7 @@ void EditableVector::setValue(const int
+ _scalars["sumsquared"]->setValue(_sum*_sum);
+ _scalars["max"]->setValue(qMax(_max,val));
+ _scalars["min"]->setValue(qMin(_min,_min));
+- double b=(float)(qMax((float)0.0f,(float)_minPos));
++ double b=qMax(double(0.0),_minPos);
+ _scalars["minpos"]->setValue(qMin(_min,b));
+ _scalars["last"]->setValue(_v[_size-1]);
+ _scalars["first"]->setValue(_v[0]);
+diff -up Kst-2.0.8/src/libkstmath/curve.cpp.qreal Kst-2.0.8/src/libkstmath/curve.cpp
+--- Kst-2.0.8/src/libkstmath/curve.cpp.qreal 2014-07-20 02:53:17.000000000 -0600
++++ Kst-2.0.8/src/libkstmath/curve.cpp 2015-01-14 16:18:19.898681604 -0700
+@@ -684,11 +684,11 @@ RelationPtr Curve::makeDuplicate() const
+ // and not just pulled out of the air by what looks ~good.
+ // They are currently "about right" for printing to US Letter.
+ double Curve::pointDim(QRectF w) const {
+- return qMax(qreal(1.01), PointSize * ((w.width() + w.height()) * (1.0 / 4000.0)));
++ return qMax(double(1.01), PointSize * ((w.width() + w.height()) * (1.0 / 4000.0)));
+ }
+
+ double Curve::lineDim(const QRectF &R, double linewidth) {
+- double lw = qMax(qreal(1.01), linewidth*(R.width()+R.height())*(1.0/2000.0));
++ qreal lw = qMax(qreal(1.01), qreal(linewidth)*(R.width()+R.height())*qreal(1.0/2000.0));
+ // if you ask for a thicker line, make sure it is at least 2 px wide
+ if (linewidth>1.9) {
+ lw = qMax(qreal(2.0),lw);
+diff -up Kst-2.0.8/src/libkst/vector.cpp.qreal Kst-2.0.8/src/libkst/vector.cpp
+--- Kst-2.0.8/src/libkst/vector.cpp.qreal 2014-07-20 03:22:38.000000000 -0600
++++ Kst-2.0.8/src/libkst/vector.cpp 2015-01-12 11:17:04.046417015 -0700
+@@ -595,11 +595,11 @@ void Vector::oldChange(QByteArray &data)
+ qds >> _v[i];
+ if(!i) {
+ _min=_max=_minPos=sum=_v[i];
+- _minPos=qMax(_minPos,qreal(0.0));
++ _minPos=qMax(_minPos,double(0.0));
+ } else {
+ _min=qMin(_v[i],_min);
+ _max=qMax(_v[i],_max);
+- _minPos=qMin(qMax(_v[i],qreal(0.0)),_minPos);
++ _minPos=qMin(qMax(_v[i],double(0.0)),_minPos);
+ sum+=_v[i];
+ }
+ }
+@@ -626,11 +626,11 @@ void Vector::change(QByteArray &data) {
+ qds >> _v[i];
+ if(!i) {
+ _min=_max=_minPos=sum=_v[i];
+- _minPos=qMax(_minPos,qreal(0.0));
++ _minPos=qMax(_minPos,double(0.0));
+ } else {
+ _min=qMin(_v[i],_min);
+ _max=qMax(_v[i],_max);
+- _minPos=qMin(qMax(_v[i],qreal(0.0)),_minPos);
++ _minPos=qMin(qMax(_v[i],double(0.0)),_minPos);
+ sum+=_v[i];
+ }
+ }
+diff -up Kst-2.0.8/src/plugins/dataobject/activitylevel/activitylevel.cpp.qreal Kst-2.0.8/src/plugins/dataobject/activitylevel/activitylevel.cpp
+--- Kst-2.0.8/src/plugins/dataobject/activitylevel/activitylevel.cpp.qreal 2014-07-20 02:53:17.000000000 -0600
++++ Kst-2.0.8/src/plugins/dataobject/activitylevel/activitylevel.cpp 2015-01-12 10:46:16.885628344 -0700
+@@ -323,7 +323,7 @@ bool ActivityLevelSource::algorithm() {
+ incomingValueNext = outputVectorDenoised->value()[i+1];
+ }
+ if ( (outgoingValue-outgoingValuePrev)*(outgoingValueNext-outgoingValue) < 0) {
+- dNbReversals = qMax(dNbReversals - 1.0, qreal(0.0)); // Avoid getting negative values, which can happen
++ dNbReversals = qMax(dNbReversals - 1.0, double(0.0)); // Avoid getting negative values, which can happen
+ }
+ if ( (incomingValue-incomingValuePrev)*(incomingValueNext-incomingValue) < 0) {
+ dNbReversals += 1.0;
diff --git a/kst.spec b/kst.spec
index 3fa0492..2825bae 100644
--- a/kst.spec
+++ b/kst.spec
@@ -10,6 +10,10 @@ Source0: http://downloads.sourceforge.net/%{name}/Kst-%{version}.tar.gz
# Fix calls to set_target_properties in KstMacros.cmake
# https://bugs.kde.org/show_bug.cgi?id=322286
Patch0: kst-properties.patch
+# Upstream patch to fix qreal for arm
+# https://bugs.kde.org/show_bug.cgi?id=342642
+# https://bugzilla.redhat.com/show_bug.cgi?id=1180348
+Patch1: kst-qreal.patch
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@@ -95,6 +99,7 @@ A plugin allowing kst to open and read data in getdata (dirfile) format.
%prep
%setup -q -n Kst-%{version}
%patch0 -p1 -b .properties
+%patch1 -p1 -b .qreal
%build
# -Dkst_merge_files=1 is failing for now
@@ -189,6 +194,9 @@ fi
#%{_datadir}/services/kst/kstdata_dirfilesource.desktop
%changelog
+* Wed Jan 14 2015 Orion Poplawski <orion@cora.nwra.com> 2.0.8-1
+- Add patch to fix qreal issues on arm (bug #1180348)
+
* Wed Jan 7 2015 Orion Poplawski <orion@cora.nwra.com> 2.0.8-1
- Update to 2.0.8
reply other threads:[~2026-10-06 19:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179131499368.1.4557487293947399310.rpms-kst-2310fd6cf539@fedoraproject.org \
--to=orion@cora.nwra.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox