From owner-svn-ports-head@freebsd.org Wed Jan 10 19:14:02 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2C28FE70514; Wed, 10 Jan 2018 19:14:02 +0000 (UTC) (envelope-from jbeich@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 DFC462C53; Wed, 10 Jan 2018 19:14:01 +0000 (UTC) (envelope-from jbeich@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 30D201C32; Wed, 10 Jan 2018 19:14:01 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0AJE13T068525; Wed, 10 Jan 2018 19:14:01 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0AJE0Ss068522; Wed, 10 Jan 2018 19:14:00 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201801101914.w0AJE0Ss068522@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Wed, 10 Jan 2018 19:14:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458678 - in head/multimedia/mp4v2: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/multimedia/mp4v2: . files X-SVN-Commit-Revision: 458678 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.25 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: Wed, 10 Jan 2018 19:14:02 -0000 Author: jbeich Date: Wed Jan 10 19:14:00 2018 New Revision: 458678 URL: https://svnweb.freebsd.org/changeset/ports/458678 Log: multimedia/mp4v2: unbreak build with Clang 6 (C++14 by default) src/mp4.cpp:679:20: error: cannot initialize return object of type 'mp4v2_ismacrypParams *' (aka 'mp4v2_ismacryp_session_params *') with an rvalue of type 'MP4TrackId' (aka 'unsigned int') return MP4_INVALID_TRACK_ID; ^~~~~~~~~~~~~~~~~~~~ ./include/mp4v2/general.h:45:33: note: expanded from macro 'MP4_INVALID_TRACK_ID' #define MP4_INVALID_TRACK_ID ((MP4TrackId)0) /**< Constant: invalid MP4TrackId. */ ^~~~~~~~~~~~~~~ src/rtphint.cpp:348:32: error: comparison between pointer and integer ('const char *' and 'int') if (pSlash != '\0') { ~~~~~~ ^ ~~~~ util/mp4chaps.cpp:712:14: error: case value evaluates to 4026531855, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case LC_CHP_REMOVE: ^ util/mp4file.cpp:206:14: error: case value evaluates to 4026531848, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case LC_DUMP: ^ util/mp4art.cpp:413:14: error: case value evaluates to 4026531852, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case LC_EXTRACT: ^ libutil/Utility.cpp:544:18: error: case value evaluates to 4026531842, which cannot be narrowed to type 'int' [-Wc++11-narrowing] case LC_VERBOSE: ^ Reported by: antoine (via bug 224669) Added: head/multimedia/mp4v2/files/patch-src_mp4.cpp (contents, props changed) head/multimedia/mp4v2/files/patch-src_rtphint.cpp (contents, props changed) Modified: head/multimedia/mp4v2/Makefile (contents, props changed) Modified: head/multimedia/mp4v2/Makefile ============================================================================== --- head/multimedia/mp4v2/Makefile Wed Jan 10 19:12:35 2018 (r458677) +++ head/multimedia/mp4v2/Makefile Wed Jan 10 19:14:00 2018 (r458678) @@ -3,7 +3,7 @@ PORTNAME= mp4v2 PORTVERSION= 1.9.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= multimedia MASTER_SITES= LOCAL/riggs/mp4v2 @@ -13,11 +13,12 @@ COMMENT= Library and tools to read, create, and modify LICENSE= MPL11 CONFLICTS= mpeg4ip-libmp4v2-[0-9.]* -USES= compiler gmake libtool tar:bzip2 +USES= compiler:features gmake libtool tar:bzip2 MAKEFILE= GNUmakefile GNU_CONFIGURE= yes USE_LDCONFIG= yes CONFIGURE_ENV= "FOUND_HELP2MAN=no" +CXXFLAGS+= ${COMPILER_FEATURES:Mc++11:C/.+/-Wno-error=narrowing/} INSTALL_TARGET= install-strip Added: head/multimedia/mp4v2/files/patch-src_mp4.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/mp4v2/files/patch-src_mp4.cpp Wed Jan 10 19:14:00 2018 (r458678) @@ -0,0 +1,18 @@ +src/mp4.cpp:679:20: error: cannot initialize return object of type 'mp4v2_ismacrypParams *' (aka 'mp4v2_ismacryp_session_params *') with an rvalue of type 'MP4TrackId' (aka 'unsigned int') + return MP4_INVALID_TRACK_ID; + ^~~~~~~~~~~~~~~~~~~~ +./include/mp4v2/general.h:45:33: note: expanded from macro 'MP4_INVALID_TRACK_ID' +#define MP4_INVALID_TRACK_ID ((MP4TrackId)0) /**< Constant: invalid MP4TrackId. */ + ^~~~~~~~~~~~~~~ + +--- src/mp4.cpp.orig 2009-07-13 23:07:12 UTC ++++ src/mp4.cpp +@@ -676,7 +676,7 @@ MP4FileHandle MP4ReadProvider( const char* fileName, u + } + + catch (...) { +- return MP4_INVALID_TRACK_ID; ++ return NULL; + } + } + Added: head/multimedia/mp4v2/files/patch-src_rtphint.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/mp4v2/files/patch-src_rtphint.cpp Wed Jan 10 19:14:00 2018 (r458678) @@ -0,0 +1,15 @@ +src/rtphint.cpp:348:32: error: comparison between pointer and integer ('const char *' and 'int') + if (pSlash != '\0') { + ~~~~~~ ^ ~~~~ + +--- src/rtphint.cpp.orig 2009-07-13 23:07:12 UTC ++++ src/rtphint.cpp +@@ -345,7 +345,7 @@ void MP4RtpHintTrack::GetPayload( + pSlash = strchr(pSlash, '/'); + if (pSlash != NULL) { + pSlash++; +- if (pSlash != '\0') { ++ if (*pSlash != '\0') { + length = strlen(pRtpMap) - (pSlash - pRtpMap); + *ppEncodingParams = (char *)MP4Calloc(length + 1); + strncpy(*ppEncodingParams, pSlash, length);