Date: Sun, 2 Sep 2018 20:30:45 +0000 (UTC) From: Adriaan de Groot <adridg@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478817 - head/audio/sayonara/files Message-ID: <201809022030.w82KUj8K010719@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809022030.w82KUj8K010719>