diff options
| -rw-r--r-- | meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Do-not-use-MINSIGSTKSZ.patch | 34 | ||||
| -rw-r--r-- | meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb | 1 | 
2 files changed, 35 insertions, 0 deletions
| diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Do-not-use-MINSIGSTKSZ.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Do-not-use-MINSIGSTKSZ.patch new file mode 100644 index 0000000000..0ee64e9c6c --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Do-not-use-MINSIGSTKSZ.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From 027044a692b588ef586d495f65eb58b07cc711a3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 11 May 2021 10:15:51 -0700 | ||
| 4 | Subject: [PATCH] Do not use MINSIGSTKSZ | ||
| 5 | |||
| 6 | Since glibc 2.34+ MINSIGSTKSZ is no more a constant. So, | ||
| 7 | let's hardwire this for now until better fix is found. | ||
| 8 | 64Kb should be good anyway | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | --- | ||
| 13 | src/mongo/stdx/thread.h | 5 +---- | ||
| 14 | 1 file changed, 1 insertion(+), 4 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/src/mongo/stdx/thread.h b/src/mongo/stdx/thread.h | ||
| 17 | index f8058279e3..f31f309959 100644 | ||
| 18 | --- a/src/mongo/stdx/thread.h | ||
| 19 | +++ b/src/mongo/stdx/thread.h | ||
| 20 | @@ -104,10 +104,7 @@ private: | ||
| 21 | // . N Y : 4,344 | 13,048 | 7,352 | ||
| 22 | // . Y Y : 4,424 | 13,672 | 8,392 | ||
| 23 | // ( https://jira.mongodb.org/secure/attachment/233569/233569_stacktrace-writeup.txt ) | ||
| 24 | - static constexpr std::size_t kMongoMinSignalStackSize = std::size_t{64} << 10; | ||
| 25 | - | ||
| 26 | - static constexpr std::size_t kStackSize = | ||
| 27 | - std::max(kMongoMinSignalStackSize, std::size_t{MINSIGSTKSZ}); | ||
| 28 | + static constexpr std::size_t kStackSize = std::size_t{64} << 10; | ||
| 29 | std::unique_ptr<std::byte[]> _stackStorage = std::make_unique<std::byte[]>(kStackSize); | ||
| 30 | |||
| 31 | #else // !MONGO_HAS_SIGALTSTACK | ||
| 32 | -- | ||
| 33 | 2.31.1 | ||
| 34 | |||
| diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb index 54178bf75a..cfa2bc18c2 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb | |||
| @@ -29,6 +29,7 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4 \ | |||
| 29 | file://0001-include-needed-c-header.patch \ | 29 | file://0001-include-needed-c-header.patch \ | 
| 30 | file://disable_runtime_check.patch \ | 30 | file://disable_runtime_check.patch \ | 
| 31 | file://ppc64_ARCH_BITS.patch \ | 31 | file://ppc64_ARCH_BITS.patch \ | 
| 32 | file://0001-Do-not-use-MINSIGSTKSZ.patch \ | ||
| 32 | " | 33 | " | 
| 33 | SRC_URI_append_libc-musl ="\ | 34 | SRC_URI_append_libc-musl ="\ | 
| 34 | file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \ | 35 | file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \ | 
