mesos: update to 0.21.0
This commit is contained in:
parent
aeba2947b0
commit
36a5384ec9
@ -1,80 +0,0 @@
|
|||||||
diff --git a/configure.ac b/configure.ac
|
|
||||||
index 1ebd196..a49d7d4 100644
|
|
||||||
--- a/configure.ac
|
|
||||||
+++ b/configure.ac
|
|
||||||
@@ -463,11 +463,6 @@ __EOF__
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Determine linker flags for Java if not set.
|
|
||||||
- if test "$OS_NAME" = "darwin"; then
|
|
||||||
- dir="$JAVA_HOME/jre/lib/server"
|
|
||||||
- JAVA_TEST_LDFLAGS="-framework JavaVM"
|
|
||||||
- JAVA_JVM_LIBRARY=$dir/libjvm.dylib
|
|
||||||
- elif test "$OS_NAME" = "linux"; then
|
|
||||||
for arch in amd64 i386; do
|
|
||||||
dir="$JAVA_HOME/jre/lib/$arch/server"
|
|
||||||
if test -e "$dir"; then
|
|
||||||
@@ -477,7 +472,6 @@ __EOF__
|
|
||||||
break;
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
- fi
|
|
||||||
|
|
||||||
if test -z "$JAVA_TEST_LDFLAGS"; then
|
|
||||||
AC_MSG_ERROR([failed to determine linker flags for using Java \
|
|
||||||
@@ -488,26 +482,6 @@ __EOF__
|
|
||||||
# flags as necessary (provided JAVA_CPPFLAGS was not set).
|
|
||||||
AC_MSG_CHECKING([whether or not we can build with JNI])
|
|
||||||
if test -z "$JAVA_CPPFLAGS"; then
|
|
||||||
- if test "$OS_NAME" = "darwin"; then
|
|
||||||
- while true; do # Loop until sucessful (via break) or exhausted options.
|
|
||||||
- m4_foreach([java_cppflags],
|
|
||||||
- [["-I$JAVA_HOME/include -I$JAVA_HOME/include/$OS_NAME"],
|
|
||||||
- ["-I/System/Library/Frameworks/JavaVM.framework/Headers"]],
|
|
||||||
- [JAVA_CPPFLAGS=java_cppflags
|
|
||||||
- TRY_LINK_JNI([break])])
|
|
||||||
- # Exhausted options.
|
|
||||||
- AC_MSG_ERROR([failed to build with JNI
|
|
||||||
- -------------------------------------------------------------------
|
|
||||||
- It appears we were unable to compile against the JNI. This is most
|
|
||||||
- likely due to one of the following issues:
|
|
||||||
- 1. You do not have a JDK installed on your system.
|
|
||||||
- 2. All JDKs installed on your system have deprecated JNI headers.
|
|
||||||
- It is advised to install OpenJDK on your system, as the JDK that
|
|
||||||
- ships with OS X has deprecated JNI headers.
|
|
||||||
- -------------------------------------------------------------------
|
|
||||||
- ])
|
|
||||||
- done
|
|
||||||
- else
|
|
||||||
while true; do # Loop until sucessful (via break) or exhausted options.
|
|
||||||
m4_foreach([java_cppflags],
|
|
||||||
[["-I$JAVA_HOME/include -I$JAVA_HOME/include/$OS_NAME"]],
|
|
||||||
@@ -516,7 +490,6 @@ __EOF__
|
|
||||||
# Exhausted options.
|
|
||||||
AC_MSG_ERROR([failed to build with JNI])
|
|
||||||
done
|
|
||||||
- fi
|
|
||||||
else
|
|
||||||
TRY_LINK_JNI([], [AC_MSG_ERROR([failed to build with JNI])])
|
|
||||||
fi
|
|
||||||
@@ -760,20 +733,6 @@ libcurl is required for mesos to build.
|
|
||||||
if test "x$with_cxx11" = "xyes"; then
|
|
||||||
AX_CXX_COMPILE_STDCXX_11([noext], [mandatory])
|
|
||||||
|
|
||||||
- case "$host_os" in
|
|
||||||
- darwin* )
|
|
||||||
- # If we're using clang, we need to pass -stdlib=libc++ too.
|
|
||||||
- if test "x$CLANG" = "xyes"; then
|
|
||||||
- CXXFLAGS="$CXXFLAGS -stdlib=libc++"
|
|
||||||
- fi
|
|
||||||
-
|
|
||||||
- # GTEST on OSX needs its own tr1 tuple.
|
|
||||||
- # TODO(dhamon): Update to gmock 1.7 and pass GTEST_LANG_CXX11 when in
|
|
||||||
- # c++11 mode.
|
|
||||||
- CXXFLAGS="$CXXFLAGS -DGTEST_USE_OWN_TR1_TUPLE=1"
|
|
||||||
- ;;
|
|
||||||
- esac
|
|
||||||
-
|
|
||||||
# Also pass the flags to 3rdparty libraries.
|
|
||||||
CONFIGURE_ARGS="$CONFIGURE_ARGS CXXFLAGS='$CXXFLAGS'"
|
|
||||||
fi
|
|
@ -1,9 +1,10 @@
|
|||||||
{ stdenv, lib, makeWrapper, fetchurl, fetchzip, curl, sasl, openssh, autoconf
|
{ stdenv, lib, makeWrapper, fetchurl, curl, sasl, openssh, autoconf
|
||||||
, automake, libtool, unzip, gnutar, jdk, maven, python, wrapPython
|
, automake, libtool, unzip, gnutar, jdk, maven, python, wrapPython
|
||||||
, setuptools, distutils-cfg, boto, pythonProtobuf
|
, setuptools, distutils-cfg, boto, pythonProtobuf, apr, subversion
|
||||||
|
, leveldb, glog
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let version = "0.19.1";
|
let version = "0.21.0";
|
||||||
in stdenv.mkDerivation {
|
in stdenv.mkDerivation {
|
||||||
dontDisableStatic = true;
|
dontDisableStatic = true;
|
||||||
|
|
||||||
@ -11,14 +12,13 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.apache.org/dist/mesos/${version}/mesos-${version}.tar.gz";
|
url = "http://www.apache.org/dist/mesos/${version}/mesos-${version}.tar.gz";
|
||||||
sha256 = "12li5xqfcw3124qg3h2cji3yhrc7gbx91lj45zfliicwgjkbmyf1";
|
sha256 = "01ap8blrb046w26zf3i4r7vvnnhjsbfi20vz5yinmncqbzjjyx6i";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./darwin.patch ];
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
makeWrapper autoconf automake libtool curl sasl jdk maven
|
makeWrapper autoconf automake libtool curl sasl jdk maven
|
||||||
python wrapPython boto distutils-cfg setuptools
|
python wrapPython boto distutils-cfg setuptools leveldb
|
||||||
|
subversion apr glog
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -41,11 +41,11 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--sbindir=\${out}/bin"
|
"--sbindir=\${out}/bin"
|
||||||
"--with-python-headers=${python}/include"
|
"--with-apr=${apr}"
|
||||||
"--with-webui"
|
"--with-svn=${subversion}"
|
||||||
"--with-java-home=${jdk}"
|
"--with-leveldb=${leveldb}"
|
||||||
"--with-java-headers=${jdk}/include"
|
"--with-glog=${glog}"
|
||||||
"--with-included-zookeeper"
|
"--disable-python-dependency-install"
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
@ -101,7 +101,7 @@ in stdenv.mkDerivation {
|
|||||||
homepage = "http://mesos.apache.org";
|
homepage = "http://mesos.apache.org";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
description = "A cluster manager that provides efficient resource isolation and sharing across distributed applications, or frameworks";
|
description = "A cluster manager that provides efficient resource isolation and sharing across distributed applications, or frameworks";
|
||||||
maintainers = with maintainers; [ cstrahan ];
|
maintainers = with maintainers; [ cstrahan offline ];
|
||||||
platforms = with platforms; linux;
|
platforms = with platforms; linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user