From owner-svn-ports-all@freebsd.org Wed Dec 2 10:58:52 2015 Return-Path: Delivered-To: svn-ports-all@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 35D21A3DC3D; Wed, 2 Dec 2015 10:58:52 +0000 (UTC) (envelope-from rakuco@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 mx1.freebsd.org (Postfix) with ESMTPS id 0FBA71E1D; Wed, 2 Dec 2015 10:58:51 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tB2AwpR1041503; Wed, 2 Dec 2015 10:58:51 GMT (envelope-from rakuco@FreeBSD.org) Received: (from rakuco@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tB2AwpJp041502; Wed, 2 Dec 2015 10:58:51 GMT (envelope-from rakuco@FreeBSD.org) Message-Id: <201512021058.tB2AwpJp041502@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rakuco set sender to rakuco@FreeBSD.org using -f From: Raphael Kubo da Costa Date: Wed, 2 Dec 2015 10:58:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r402818 - in head/devel: cmake-gui/files cmake/files X-SVN-Group: ports-head 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.20 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, 02 Dec 2015 10:58:52 -0000 Author: rakuco Date: Wed Dec 2 10:58:50 2015 New Revision: 402818 URL: https://svnweb.freebsd.org/changeset/ports/402818 Log: CMake: Add upstream patch to fix the build with recent GCCs. At least lang/gcc (4.8) and later were known to be broken like this: /usr/ports/devel/cmake/work/cmake-3.4.0/Source/cmArchiveWrite.h:93:23: error: 'mode_t' has not been declared void SetPermissions(mode_t permissions_) ^ /usr/ports/devel/cmake/work/cmake-3.4.0/Source/cmArchiveWrite.h:106:27: error: 'mode_t' has not been declared void SetPermissionsMask(mode_t permissionsMask_) ^ /usr/ports/devel/cmake/work/cmake-3.4.0/Source/cmArchiveWrite.h:179:26: error: 'mode_t' was not declared in this scope cmArchiveWriteOptional Permissions; ^ /usr/ports/devel/cmake/work/cmake-3.4.0/Source/cmArchiveWrite.h:179:32: error: template argument 1 is invalid cmArchiveWriteOptional Permissions; ^ /usr/ports/devel/cmake/work/cmake-3.4.0/Source/cmArchiveWrite.h:180:26: error: 'mode_t' was not declared in this scope cmArchiveWriteOptional PermissionsMask; ^ /usr/ports/devel/cmake/work/cmake-3.4.0/Source/cmArchiveWrite.h:180:32: error: template argument 1 is invalid cmArchiveWriteOptional PermissionsMask; ^ This was introduced in CMake 3.4.0, so there is no need for an MFH request. PR: 204921 Added: head/devel/cmake-gui/files/patch-git_16f5d184 (contents, props changed) head/devel/cmake/files/patch-git_16f5d184 (contents, props changed) Added: head/devel/cmake-gui/files/patch-git_16f5d184 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cmake-gui/files/patch-git_16f5d184 Wed Dec 2 10:58:50 2015 (r402818) @@ -0,0 +1,22 @@ +Fixes the build with recent GCCs (at least 4.8+). + +commit 16f5d1843b3720729f50376f522550fcfa787a3c +Author: Kylie McClain +Date: Wed Nov 25 18:12:06 2015 -0500 + + Include `sys/types.h` header to get `mode_t` + + Do not depend on it being included by other system headers. + It is not included by others on musl-libc, for example. + +--- Source/cmStandardIncludes.h ++++ Source/cmStandardIncludes.h +@@ -54,6 +54,8 @@ + + #if defined( _MSC_VER ) + typedef unsigned short mode_t; ++#else ++# include + #endif + + // use this class to shrink the size of symbols in .o files Added: head/devel/cmake/files/patch-git_16f5d184 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/cmake/files/patch-git_16f5d184 Wed Dec 2 10:58:50 2015 (r402818) @@ -0,0 +1,22 @@ +Fixes the build with recent GCCs (at least 4.8+). + +commit 16f5d1843b3720729f50376f522550fcfa787a3c +Author: Kylie McClain +Date: Wed Nov 25 18:12:06 2015 -0500 + + Include `sys/types.h` header to get `mode_t` + + Do not depend on it being included by other system headers. + It is not included by others on musl-libc, for example. + +--- Source/cmStandardIncludes.h ++++ Source/cmStandardIncludes.h +@@ -54,6 +54,8 @@ + + #if defined( _MSC_VER ) + typedef unsigned short mode_t; ++#else ++# include + #endif + + // use this class to shrink the size of symbols in .o files