svn commit: r478817 - head/audio/sayonara/files
Adriaan de Groot
adridg at FreeBSD.org
Sun Sep 2 20:30:46 UTC 2018
Author: adridg
Date: Sun Sep 2 20:30:45 2018
New Revision: 478817
URL: https://svnweb.freebsd.org/changeset/ports/478817
Log:
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
Added:
head/audio/sayonara/files/patch-src_Components_Covers_LocalCoverSearcher.cpp (contents, props changed)
Deleted:
head/audio/sayonara/files/patch-src_Components_Engine_AbstractEngine.cpp
Added: head/audio/sayonara/files/patch-src_Components_Covers_LocalCoverSearcher.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/sayonara/files/patch-src_Components_Covers_LocalCoverSearcher.cpp Sun Sep 2 20:30:45 2018 (r478817)
@@ -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;
More information about the svn-ports-head
mailing list