diff options
author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2015-12-02 10:58:50 +0000 |
---|---|---|
committer | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2015-12-02 10:58:50 +0000 |
commit | 7a323ebcd6a7490b91e99297a6e2a329ab5479f2 (patch) | |
tree | 51dcd4c8ede6fc3e348cfa076f978c2beda5cfed | |
parent | 169aacbd170a8b0eed58f5c8696dd65e3ef08fbf (diff) | |
download | freebsd-ports-7a323ebcd6a7490b91e99297a6e2a329ab5479f2.zip |
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<mode_t> Permissions;
^
/usr/ports/devel/cmake/work/cmake-3.4.0/Source/cmArchiveWrite.h:179:32: error: template argument 1 is invalid
cmArchiveWriteOptional<mode_t> 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<mode_t> PermissionsMask;
^
/usr/ports/devel/cmake/work/cmake-3.4.0/Source/cmArchiveWrite.h:180:32: error: template argument 1 is invalid
cmArchiveWriteOptional<mode_t> PermissionsMask;
^
This was introduced in CMake 3.4.0, so there is no need for an MFH request.
PR: 204921
-rw-r--r-- | devel/cmake-gui/files/patch-git_16f5d184 | 22 | ||||
-rw-r--r-- | devel/cmake/files/patch-git_16f5d184 | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/devel/cmake-gui/files/patch-git_16f5d184 b/devel/cmake-gui/files/patch-git_16f5d184 new file mode 100644 index 000000000000..c37e37082a24 --- /dev/null +++ b/devel/cmake-gui/files/patch-git_16f5d184 @@ -0,0 +1,22 @@ +Fixes the build with recent GCCs (at least 4.8+). + +commit 16f5d1843b3720729f50376f522550fcfa787a3c +Author: Kylie McClain <somasissounds@gmail.com> +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 <sys/types.h> + #endif + + // use this class to shrink the size of symbols in .o files diff --git a/devel/cmake/files/patch-git_16f5d184 b/devel/cmake/files/patch-git_16f5d184 new file mode 100644 index 000000000000..c37e37082a24 --- /dev/null +++ b/devel/cmake/files/patch-git_16f5d184 @@ -0,0 +1,22 @@ +Fixes the build with recent GCCs (at least 4.8+). + +commit 16f5d1843b3720729f50376f522550fcfa787a3c +Author: Kylie McClain <somasissounds@gmail.com> +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 <sys/types.h> + #endif + + // use this class to shrink the size of symbols in .o files |