From owner-svn-ports-all@FreeBSD.ORG Wed Jan 21 04:47:49 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5A603F3; Wed, 21 Jan 2015 04:47:49 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C825C1FC; Wed, 21 Jan 2015 04:47:49 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t0L4lnSw056024; Wed, 21 Jan 2015 04:47:49 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t0L4lnY6056022; Wed, 21 Jan 2015 04:47:49 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201501210447.t0L4lnY6056022@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 21 Jan 2015 04:47:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r377575 - in branches/2015Q1/www: firefox/files seamonkey/files X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2015 04:47:50 -0000 Author: jbeich Date: Wed Jan 21 04:47:48 2015 New Revision: 377575 URL: https://svnweb.freebsd.org/changeset/ports/377575 QAT: https://qat.redports.org/buildarchive/r377575/ Log: MFH: r377551 Unbreak build with base libstdc++ on i386 and powerpc std::abs(int64_t) for 32bit archs or std::llabs are not available in base libstdc++ from forked GCC 4.2.1 or before 10.0-RELEASE (r255294) for libstdc++ in lang/gcc47 and earlier (upstream PR libstdc++/54686). To avoid the build error use mozilla::Abs which implements overloads for all signed natural types but has unsigned return value. This change won't be requried for Firefox 36 et al. PR: 196772 Reported by: many Submitted by: bar (initial version) Obtained from: https://github.com/mozilla/gecko-dev/commit/e664fe8 Differential Revision: https://reviews.freebsd.org/D1569 Approved by: bapt, flo (mentors) Approved by: portmgr (bapt) Added: branches/2015Q1/www/firefox/files/patch-bug1122586 - copied unchanged from r377551, head/www/firefox/files/patch-bug1122586 branches/2015Q1/www/seamonkey/files/patch-bug1122586 - copied unchanged from r377551, head/www/seamonkey/files/patch-bug1122586 Modified: Directory Properties: branches/2015Q1/ (props changed) Copied: branches/2015Q1/www/firefox/files/patch-bug1122586 (from r377551, head/www/firefox/files/patch-bug1122586) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2015Q1/www/firefox/files/patch-bug1122586 Wed Jan 21 04:47:48 2015 (r377575, copy of r377551, head/www/firefox/files/patch-bug1122586) @@ -0,0 +1,30 @@ +diff --git content/media/MediaDecoderStateMachine.cpp content/media/MediaDecoderStateMachine.cpp +index 36a6ccf..96d3bd0 100644 +--- content/media/MediaDecoderStateMachine.cpp ++++ content/media/MediaDecoderStateMachine.cpp +@@ -18,6 +18,7 @@ + #include "nsTArray.h" + #include "MediaDecoder.h" + #include "MediaDecoderReader.h" ++#include "mozilla/MathAlgorithms.h" + #include "mozilla/mozalloc.h" + #include "VideoUtils.h" + #include "mozilla/dom/TimeRanges.h" +@@ -165,7 +166,7 @@ static_assert(QUICK_BUFFERING_LOW_DATA_USECS <= AMPLE_AUDIO_USECS, + // MediaDecoderStateMachine::UpdateEstimatedDuration(); changes of duration + // less than this are ignored, as they're assumed to be the result of + // instability in the duration estimation. +-static const int64_t ESTIMATED_DURATION_FUZZ_FACTOR_USECS = USECS_PER_S / 2; ++static const uint64_t ESTIMATED_DURATION_FUZZ_FACTOR_USECS = USECS_PER_S / 2; + + static TimeDuration UsecsToDuration(int64_t aUsecs) { + return TimeDuration::FromMicroseconds(aUsecs); +@@ -1447,7 +1448,7 @@ void MediaDecoderStateMachine::UpdateEstimatedDuration(int64_t aDuration) + AssertCurrentThreadInMonitor(); + int64_t duration = GetDuration(); + if (aDuration != duration && +- std::abs(aDuration - duration) > ESTIMATED_DURATION_FUZZ_FACTOR_USECS) { ++ mozilla::Abs(aDuration - duration) > ESTIMATED_DURATION_FUZZ_FACTOR_USECS) { + SetDuration(aDuration); + nsCOMPtr event = + NS_NewRunnableMethod(mDecoder, &MediaDecoder::DurationChanged); Copied: branches/2015Q1/www/seamonkey/files/patch-bug1122586 (from r377551, head/www/seamonkey/files/patch-bug1122586) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2015Q1/www/seamonkey/files/patch-bug1122586 Wed Jan 21 04:47:48 2015 (r377575, copy of r377551, head/www/seamonkey/files/patch-bug1122586) @@ -0,0 +1,30 @@ +diff --git content/media/MediaDecoderStateMachine.cpp content/media/MediaDecoderStateMachine.cpp +index 36a6ccf..96d3bd0 100644 +--- mozilla/content/media/MediaDecoderStateMachine.cpp ++++ mozilla/content/media/MediaDecoderStateMachine.cpp +@@ -18,6 +18,7 @@ + #include "nsTArray.h" + #include "MediaDecoder.h" + #include "MediaDecoderReader.h" ++#include "mozilla/MathAlgorithms.h" + #include "mozilla/mozalloc.h" + #include "VideoUtils.h" + #include "mozilla/dom/TimeRanges.h" +@@ -165,7 +166,7 @@ static_assert(QUICK_BUFFERING_LOW_DATA_USECS <= AMPLE_AUDIO_USECS, + // MediaDecoderStateMachine::UpdateEstimatedDuration(); changes of duration + // less than this are ignored, as they're assumed to be the result of + // instability in the duration estimation. +-static const int64_t ESTIMATED_DURATION_FUZZ_FACTOR_USECS = USECS_PER_S / 2; ++static const uint64_t ESTIMATED_DURATION_FUZZ_FACTOR_USECS = USECS_PER_S / 2; + + static TimeDuration UsecsToDuration(int64_t aUsecs) { + return TimeDuration::FromMicroseconds(aUsecs); +@@ -1447,7 +1448,7 @@ void MediaDecoderStateMachine::UpdateEstimatedDuration(int64_t aDuration) + AssertCurrentThreadInMonitor(); + int64_t duration = GetDuration(); + if (aDuration != duration && +- std::abs(aDuration - duration) > ESTIMATED_DURATION_FUZZ_FACTOR_USECS) { ++ mozilla::Abs(aDuration - duration) > ESTIMATED_DURATION_FUZZ_FACTOR_USECS) { + SetDuration(aDuration); + nsCOMPtr event = + NS_NewRunnableMethod(mDecoder, &MediaDecoder::DurationChanged);