Skip to content

Commit

Permalink
mesos: fix build with latest gcc/glibc
Browse files Browse the repository at this point in the history
/cc #23253
  • Loading branch information
cstrahan committed Mar 1, 2017
1 parent 05054e3 commit 2c0225a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkgs/applications/networking/cluster/mesos/default.nix
Expand Up @@ -58,6 +58,16 @@ in stdenv.mkDerivation rec {
# if we dynamically link the lib, we get these errors:
# https://github.com/NixOS/nixpkgs/pull/19064#issuecomment-255082684
preConfigure = ''
# https://issues.apache.org/jira/browse/MESOS-6616
configureFlagsArray+=(
"CXXFLAGS=-O2 -Wno-error=strict-aliasing"
)
# Fix cases where makedev(),major(),minor() are referenced through
# <sys/types.h> instead of <sys/sysmacros.h>
sed 1i'#include <sys/sysmacros.h>' -i src/linux/fs.cpp
sed 1i'#include <sys/sysmacros.h>' -i src/slave/containerizer/mesos/isolators/gpu/isolator.cpp
substituteInPlace 3rdparty/stout/include/stout/os/posix/chown.hpp \
--subst-var-by chown ${coreutils}/bin/chown
Expand Down

0 comments on commit 2c0225a

Please sign in to comment.