From 2c0225add688f5c62d8011e494af6efdc2c3f660 Mon Sep 17 00:00:00 2001 From: Charles Strahan Date: Wed, 1 Mar 2017 16:05:04 -0500 Subject: [PATCH] mesos: fix build with latest gcc/glibc /cc #23253 --- pkgs/applications/networking/cluster/mesos/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/networking/cluster/mesos/default.nix b/pkgs/applications/networking/cluster/mesos/default.nix index 818848f6a7f1..651d00e57108 100644 --- a/pkgs/applications/networking/cluster/mesos/default.nix +++ b/pkgs/applications/networking/cluster/mesos/default.nix @@ -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 + # instead of + sed 1i'#include ' -i src/linux/fs.cpp + sed 1i'#include ' -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