dev-cpp/gtest: Update patch for gtest-9999
authorPeter Levine <plevine457@gmail.com>
Fri, 7 Jun 2019 05:50:38 +0000 (01:50 -0400)
committerMichał Górny <mgorny@gentoo.org>
Sat, 15 Jun 2019 20:29:27 +0000 (22:29 +0200)
Update the gtest-1.8.0-increase-clone-stack-size.patch for
gtest-9999 to reflect upstream changes

Package-Manager: Portage-2.3.67, Repoman-2.3.13
Signed-off-by: Peter Levine <plevine457@gmail.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-cpp/gtest/files/gtest-9999-increase-clone-stack-size.patch [new file with mode: 0644]
dev-cpp/gtest/gtest-9999.ebuild

diff --git a/dev-cpp/gtest/files/gtest-9999-increase-clone-stack-size.patch b/dev-cpp/gtest/files/gtest-9999-increase-clone-stack-size.patch
new file mode 100644 (file)
index 0000000..5e4dc47
--- /dev/null
@@ -0,0 +1,14 @@
+Bug: https://bugs.gentoo.org/629620
+Upstream PR: https://github.com/google/googletest/pull/2276
+
+--- a/googletest/src/gtest-death-test.cc
++++ b/googletest/src/gtest-death-test.cc
+@@ -1354,7 +1354,7 @@
+
+   if (!use_fork) {
+     static const bool stack_grows_down = StackGrowsDown();
+-    const auto stack_size = static_cast<size_t>(getpagesize());
++    const auto stack_size = static_cast<size_t>(getpagesize() * 8);
+     // MMAP_ANONYMOUS is not defined on Mac, so we use MAP_ANON instead.
+     void* const stack = mmap(nullptr, stack_size, PROT_READ | PROT_WRITE,
+                              MAP_ANON | MAP_PRIVATE, -1, 0);
index e546efa392a838ddad9a4de9db27a3922934bbd2..98ce51d82aecaba5e5a468f08e161e8e8935deed 100644 (file)
@@ -28,7 +28,7 @@ DEPEND="test? ( ${PYTHON_DEPS} )"
 RDEPEND="!dev-cpp/gmock"
 
 PATCHES=(
-       "${FILESDIR}"/${PN}-1.8.0-increase-clone-stack-size.patch
+       "${FILESDIR}"/${PN}-9999-increase-clone-stack-size.patch
 )
 
 pkg_setup() {