diff options
author | Guillaume Maudoux <layus.on@gmail.com> | 2016-04-15 19:01:14 +0200 |
---|---|---|
committer | Guillaume Maudoux <layus.on@gmail.com> | 2016-04-15 19:03:40 +0200 |
commit | df9f8685371a68a2bc43930c3581d8f6b670866c (patch) | |
tree | 961d04816cd8dff04b1d84197d7e3dcf5b8f741a /pkgs/servers/nosql | |
parent | e5d00a28dd77b1a42b6d1d1da3adeb83f7a47638 (diff) | |
download | nixlib-df9f8685371a68a2bc43930c3581d8f6b670866c.tar nixlib-df9f8685371a68a2bc43930c3581d8f6b670866c.tar.gz nixlib-df9f8685371a68a2bc43930c3581d8f6b670866c.tar.bz2 nixlib-df9f8685371a68a2bc43930c3581d8f6b670866c.tar.lz nixlib-df9f8685371a68a2bc43930c3581d8f6b670866c.tar.xz nixlib-df9f8685371a68a2bc43930c3581d8f6b670866c.tar.zst nixlib-df9f8685371a68a2bc43930c3581d8f6b670866c.zip |
mongodb: forget references to build inputs
Diffstat (limited to 'pkgs/servers/nosql')
-rw-r--r-- | pkgs/servers/nosql/mongodb/default.nix | 16 | ||||
-rw-r--r-- | pkgs/servers/nosql/mongodb/forget-build-dependencies.patch | 17 |
2 files changed, 28 insertions, 5 deletions
diff --git a/pkgs/servers/nosql/mongodb/default.nix b/pkgs/servers/nosql/mongodb/default.nix index 643c7b567525..ca7e30e95e3d 100644 --- a/pkgs/servers/nosql/mongodb/default.nix +++ b/pkgs/servers/nosql/mongodb/default.nix @@ -49,12 +49,18 @@ in stdenv.mkDerivation rec { nativeBuildInputs = [ scons ]; inherit buildInputs; - # When not building with the system valgrind, the build should use the - # vendored header file - regardless of whether or not we're using the system - # tcmalloc - so we need to lift the include path manipulation out of the - # conditional. patches = - [ ./valgrind-include.patch + [ + # When not building with the system valgrind, the build should use the + # vendored header file - regardless of whether or not we're using the system + # tcmalloc - so we need to lift the include path manipulation out of the + # conditional. + ./valgrind-include.patch + + # MongoDB keeps track of its build parameters, which tricks nix into + # keeping dependencies to build inputs in the final output. + # We remove the build flags from buildInfo data. + ./forget-build-dependencies.patch (fetchpatch { url = https://projects.archlinux.org/svntogit/community.git/plain/trunk/boost160.patch?h=packages/mongodb; name = "boost160.patch"; diff --git a/pkgs/servers/nosql/mongodb/forget-build-dependencies.patch b/pkgs/servers/nosql/mongodb/forget-build-dependencies.patch new file mode 100644 index 000000000000..ca2c043deb2d --- /dev/null +++ b/pkgs/servers/nosql/mongodb/forget-build-dependencies.patch @@ -0,0 +1,17 @@ +--- a/site_scons/mongo_scons_utils.py ++++ b/site_scons/mongo_scons_utils.py +@@ -84,14 +84,11 @@ + def default_buildinfo_environment_data(): + return ( + ('distmod', '$MONGO_DISTMOD', True, True,), + ('distarch', '$MONGO_DISTARCH', True, True,), + ('cc', '$CC_VERSION', True, False,), +- ('ccflags', '$CCFLAGS', True, False,), + ('cxx', '$CXX_VERSION', True, False,), +- ('cxxflags', '$CXXFLAGS', True, False,), +- ('linkflags', '$LINKFLAGS', True, False,), + ('target_arch', '$TARGET_ARCH', True, True,), + ('target_os', '$TARGET_OS', True, False,), + ) + + # If you want buildInfo and --version to be relatively empty, set |