From owner-svn-ports-head@freebsd.org Sun Sep 2 20:30:46 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E5567FF8F8F; Sun, 2 Sep 2018 20:30:45 +0000 (UTC) (envelope-from adridg@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A2549864E2; Sun, 2 Sep 2018 20:30:45 +0000 (UTC) (envelope-from adridg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9D6631E225; Sun, 2 Sep 2018 20:30:45 +0000 (UTC) (envelope-from adridg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w82KUjlS010720; Sun, 2 Sep 2018 20:30:45 GMT (envelope-from adridg@FreeBSD.org) Received: (from adridg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w82KUj8K010719; Sun, 2 Sep 2018 20:30:45 GMT (envelope-from adridg@FreeBSD.org) Message-Id: <201809022030.w82KUj8K010719@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adridg set sender to adridg@FreeBSD.org using -f From: Adriaan de Groot Date: Sun, 2 Sep 2018 20:30:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478817 - head/audio/sayonara/files X-SVN-Group: ports-head X-SVN-Commit-Author: adridg X-SVN-Commit-Paths: head/audio/sayonara/files X-SVN-Commit-Revision: 478817 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2018 20:30:46 -0000 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(height - width)) / (width * 1.0) + 1.0; + double pixels = static_cast(width * height); + + d = (d * d * std::max(width, height)) / pixels;