Hello community, here is the log from the commit of package nomacs for openSUSE:Factory checked in at 2016-06-19 10:50:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nomacs (Old) and /work/SRC/openSUSE:Factory/.nomacs.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nomacs" Changes: -------- --- /work/SRC/openSUSE:Factory/nomacs/nomacs.changes 2016-05-10 09:27:26.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.nomacs.new/nomacs.changes 2016-06-19 10:50:30.000000000 +0200 @@ -1,0 +2,7 @@ +Fri Jun 17 10:36:49 UTC 2016 - sor.ale...@meowr.ru + +- Add nomacs-3.2.0-gcc6.patch from + https://github.com/nomacs/nomacs/issues/62: fix GCC6 errors + (boo#985374). + +------------------------------------------------------------------- New: ---- nomacs-3.2.0-gcc6.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nomacs.spec ++++++ --- /var/tmp/diff_new_pack.MKlxJm/_old 2016-06-19 10:50:31.000000000 +0200 +++ /var/tmp/diff_new_pack.MKlxJm/_new 2016-06-19 10:50:31.000000000 +0200 @@ -24,6 +24,8 @@ Group: Productivity/Graphics/Viewers Url: http://nomacs.org/ Source: https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-%{version}-source.tar.bz2 +# PATCH-FIX-UPSTREAM nomacs-3.2.0-gcc6.patch boo#985374 ser...@serjux.com -- Fix GCC6 errors. +Patch0: %{name}-3.2.0-gcc6.patch BuildRequires: cmake >= 2.6 BuildRequires: dos2unix BuildRequires: gcc-c++ @@ -52,6 +54,7 @@ %prep %setup -q +%patch0 -p1 dos2unix Readme/* find src -type f -name '*.cpp' | while read f; do # Fix encoding issues in nomacs with Qt5. ++++++ nomacs-3.2.0-gcc6.patch ++++++ --- a/src/DkGui/DkPong.cpp +++ b/src/DkGui/DkPong.cpp @@ -655,7 +655,7 @@ void DkBall::fixAngle() { double angle = mDirection.angle(); double range = CV_PI / 5.0; double sign = angle > 0 ? 1.0 : -1.0; - angle = abs(angle); + angle = fabs(angle); double newAngle = 0.0; if (angle < CV_PI*0.5 && angle > CV_PI*0.5 - range) { --- a/src/DkGui/DkViewPort.cpp +++ b/src/DkGui/DkViewPort.cpp @@ -1251,7 +1251,7 @@ void DkViewPort::animateFade() { mAnimationValue = 1.0f-(float)(mAnimationTime.elapsed()/1000.0)/Settings::param().display().animationDuration; // slow in - slow out - double speed = mAnimationValue > 0.5 ? abs(1.0 - mAnimationValue) : abs(mAnimationValue); + double speed = mAnimationValue > 0.5 ? fabs(1.0 - mAnimationValue) : fabs(mAnimationValue); speed *= .05; mAnimationValue += (float)speed;