1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Fix build of audio/sayonara on 10.4.

/wrkdirs/usr/ports/audio/sayonara/work/sayonara-player/src/Components/Covers/LocalCoverSearcher.cpp:71:14: error: call to 'abs' is ambiguous
		double d = std::abs(height - width) / (width * 1.0) + 1.0;

While here, remove superfluous patch that now just added a
duplicate #include. Don't bump PORTREVISION because this
only fixes the build on 10.4 and otherwise has no effect
on the package.

Reported by:	pkg-fallout
This commit is contained in:
Adriaan de Groot 2018-09-02 20:30:45 +00:00
parent 6c7fbd3f0f
commit 4619ea40a6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=478817
2 changed files with 11 additions and 13 deletions

View File

@ -0,0 +1,11 @@
--- src/Components/Covers/LocalCoverSearcher.cpp.orig 2018-09-02 20:19:55 UTC
+++ src/Components/Covers/LocalCoverSearcher.cpp
@@ -68,7 +68,7 @@ QStringList LocalSearcher::cover_paths_f
continue;
}
- double d = std::abs(height - width) / (width * 1.0) + 1.0;
+ double d = std::abs(static_cast<double>(height - width)) / (width * 1.0) + 1.0;
double pixels = static_cast<double>(width * height);
d = (d * d * std::max(width, height)) / pixels;

View File

@ -1,13 +0,0 @@
Missing include needed for std::abs; this caused a build error on 10.3 i386.
--- src/Components/Engine/AbstractEngine.cpp.orig 2017-12-31 13:34:19 UTC
+++ src/Components/Engine/AbstractEngine.cpp
@@ -29,6 +29,8 @@
#include <gst/gst.h>
+#include <cstdlib>
+
using Engine::Base;
struct Base::Private