[vlc-devel] [PATCH] tools: fix cmake 3.2.3 building

Sean McGovern gseanmcg at gmail.com
Mon Feb 8 17:48:13 CET 2016


Hi Steve,

On Feb 8, 2016 10:48, "Steve Lhomme" <robux4 at videolabs.io> wrote:
>
> From: Steve Lhomme <robux4 at gmail.com>
>
> otherwise mode_t may not be defined
> ---
>  extras/tools/cmake-3.2.3.patch | 10 ++++++++++
>  extras/tools/tools.mak         |  3 ++-
>  2 files changed, 12 insertions(+), 1 deletion(-)
>  create mode 100644 extras/tools/cmake-3.2.3.patch
>
> diff --git a/extras/tools/cmake-3.2.3.patch
b/extras/tools/cmake-3.2.3.patch
> new file mode 100644
> index 0000000..b697cc2
> --- /dev/null
> +++ b/extras/tools/cmake-3.2.3.patch
> @@ -0,0 +1,10 @@
> +--- cmake/Source/cmGeneratorExpressionEvaluationFile.h.orig
2016-02-04 11:47:52.735890500 +0100
> ++++ cmake/Source/cmGeneratorExpressionEvaluationFile.h 2016-02-04
11:46:06.493912300 +0100
> +@@ -14,6 +14,7 @@
> +
> + #include "cmStandardIncludes.h"
> + #include <cmsys/auto_ptr.hxx>

It is usually a good idea to surround this with #if HAVE_SYS_TYPES_H,
however I'm not sure if cmake's configury tests for that.

> ++#include <sys/types.h>
> +
> + #include "cmGeneratorExpression.h"
> +
> diff --git a/extras/tools/tools.mak b/extras/tools/tools.mak
> index 69a8d2d..c782ed7 100644
> --- a/extras/tools/tools.mak
> +++ b/extras/tools/tools.mak
> @@ -65,10 +65,11 @@ cmake-$(CMAKE_VERSION).tar.gz:
>
>  cmake: cmake-$(CMAKE_VERSION).tar.gz
>         $(UNPACK)
> +       $(APPLY) cmake-3.2.3.patch
>         $(MOVE)
>
>  .cmake: cmake
> -       (cd $<; ./configure --prefix=$(PREFIX) && $(MAKE) && $(MAKE)
install)
> +       (cd $<; ./configure --prefix=$(PREFIX) --parallel=`nproc` &&
$(MAKE) && $(MAKE) install)
>         touch $@
>
>

Please lets not use nproc. Or at least can we probe for it first?

-- Sean McG.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160208/3f7d5409/attachment.html>


More information about the vlc-devel mailing list