aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/servers/nosql/mongodb/forget-build-dependencies-4-2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/nosql/mongodb/forget-build-dependencies-4-2.patch')
-rw-r--r--nixpkgs/pkgs/servers/nosql/mongodb/forget-build-dependencies-4-2.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/nosql/mongodb/forget-build-dependencies-4-2.patch b/nixpkgs/pkgs/servers/nosql/mongodb/forget-build-dependencies-4-2.patch
new file mode 100644
index 00000000000..6d65238f22a
--- /dev/null
+++ b/nixpkgs/pkgs/servers/nosql/mongodb/forget-build-dependencies-4-2.patch
@@ -0,0 +1,36 @@
+# 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.
+--- a/site_scons/mongo/generators.py
++++ b/site_scons/mongo/generators.py
+@@ -33,30 +33,12 @@ def default_buildinfo_environment_data():
+ True,
+ False,
+ ),
+- (
+- 'ccflags',
+- '$CCFLAGS',
+- True,
+- False,
+- ),
+ (
+ 'cxx',
+ '$CXX_VERSION',
+ True,
+ False,
+ ),
+- (
+- 'cxxflags',
+- '$CXXFLAGS',
+- True,
+- False,
+- ),
+- (
+- 'linkflags',
+- '$LINKFLAGS',
+- True,
+- False,
+- ),
+ (
+ 'target_arch',
+ '$TARGET_ARCH', \ No newline at end of file