about summary refs log tree commit diff
path: root/pkgs/servers/nosql
diff options
context:
space:
mode:
authorIsabelle <hi@f2k1.de>2024-03-13 14:20:58 +0100
committerGitHub <noreply@github.com>2024-03-13 14:20:58 +0100
commit948054ae916c2d4f1744efef3c7e5c929eca2253 (patch)
tree0d429aec013ff7c6db043962fbea90729e40518d /pkgs/servers/nosql
parentf1f3c6e570b49375054fe2e7884f1d34c5fd80a1 (diff)
downloadnixlib-948054ae916c2d4f1744efef3c7e5c929eca2253.tar
nixlib-948054ae916c2d4f1744efef3c7e5c929eca2253.tar.gz
nixlib-948054ae916c2d4f1744efef3c7e5c929eca2253.tar.bz2
nixlib-948054ae916c2d4f1744efef3c7e5c929eca2253.tar.lz
nixlib-948054ae916c2d4f1744efef3c7e5c929eca2253.tar.xz
nixlib-948054ae916c2d4f1744efef3c7e5c929eca2253.tar.zst
nixlib-948054ae916c2d4f1744efef3c7e5c929eca2253.zip
mongodb-6_0: add patch to fix broken build (#293556)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/servers/nosql')
-rw-r--r--pkgs/servers/nosql/mongodb/6.0.nix3
-rw-r--r--pkgs/servers/nosql/mongodb/fix-gcc-13-ctype-6_0.patch12
2 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/servers/nosql/mongodb/6.0.nix b/pkgs/servers/nosql/mongodb/6.0.nix
index edc7ee047466..b17c41916928 100644
--- a/pkgs/servers/nosql/mongodb/6.0.nix
+++ b/pkgs/servers/nosql/mongodb/6.0.nix
@@ -9,6 +9,9 @@ buildMongoDB {
   version = "6.0.13";
   sha256 = "sha256-BD3XrTdv4sCa3h37o1A2s3/R0R8zHiR59a4pY0RxLGU=";
   patches = [
+    # Patches a bug that it couldn't build MongoDB 6.0 on gcc 13 because a include in ctype.h was missing
+    ./fix-gcc-13-ctype-6_0.patch
+
     (fetchpatch {
       name = "mongodb-6.1.0-rc-more-specific-cache-alignment-types.patch";
       url = "https://github.com/mongodb/mongo/commit/5435f9585f857f6145beaf6d31daf336453ba86f.patch";
diff --git a/pkgs/servers/nosql/mongodb/fix-gcc-13-ctype-6_0.patch b/pkgs/servers/nosql/mongodb/fix-gcc-13-ctype-6_0.patch
new file mode 100644
index 000000000000..5473997e56c9
--- /dev/null
+++ b/pkgs/servers/nosql/mongodb/fix-gcc-13-ctype-6_0.patch
@@ -0,0 +1,12 @@
+diff --git a/src/mongo/util/ctype.h b/src/mongo/util/ctype.h
+index a3880e2..78ee57e 100644
+--- a/src/mongo/util/ctype.h
++++ b/src/mongo/util/ctype.h
+@@ -67,6 +67,7 @@
+ #pragma once
+
+ #include <array>
++#include <cstdint>
+
+ namespace mongo::ctype {
+ namespace detail {