mesos: 1.0.1 -> 1.1.0

This commit is contained in:
Charles Strahan
2016-12-28 00:19:51 -05:00
parent da70d3da0f
commit 7ebcada020
13 changed files with 750 additions and 373 deletions

View File

@@ -1,4 +1,4 @@
{ stdenv, version, src
{ stdenv, lib, version, src
, autoreconfHook, zlib, gtest
, ...
}:
@@ -21,6 +21,26 @@ stdenv.mkDerivation rec {
buildInputs = [ autoreconfHook zlib ];
# The generated C++ code uses static initializers which mutate a global data
# structure. This causes problems for an executable when:
#
# 1) it dynamically links to two libs, both of which contain generated C++ for
# the same proto file, and
# 2) the two aforementioned libs both dynamically link to libprotobuf.
#
# One solution is to statically link libprotobuf, that way the global
# variables are not shared; in fact, this is necessary for the python Mesos
# binding to not crash, as the python lib contains two C extensions which
# both refer to the same proto schema.
#
# See: https://github.com/NixOS/nixpkgs/pull/19064#issuecomment-255082684
# https://github.com/google/protobuf/issues/1489
dontDisableStatic = true;
configureFlags = [
"CFLAGS=-fPIC"
"CXXFLAGS=-fPIC"
];
doCheck = true;
meta = {