diff --git a/vkmark-sigstksz-not-constant.patch b/vkmark-sigstksz-not-constant.patch new file mode 100644 index 0000000..e47f3ea --- /dev/null +++ b/vkmark-sigstksz-not-constant.patch @@ -0,0 +1,30 @@ +diff -Nur a/tests/catch.hpp b/tests/catch.hpp +--- a/tests/catch.hpp 2021-10-08 06:46:56.000000000 -0500 ++++ b/tests/catch.hpp 2021-12-20 07:31:39.775863060 -0600 +@@ -6487,7 +6487,7 @@ + static bool isSet; + static struct sigaction oldSigActions [sizeof(signalDefs)/sizeof(SignalDefs)]; + static stack_t oldSigStack; +- static char altStackMem[SIGSTKSZ]; ++ static char altStackMem[32768]; + + static void handleSignal( int sig ) { + std::string name = ""; +@@ -6507,7 +6507,7 @@ + isSet = true; + stack_t sigStack; + sigStack.ss_sp = altStackMem; +- sigStack.ss_size = SIGSTKSZ; ++ sigStack.ss_size = 32768; + sigStack.ss_flags = 0; + sigaltstack(&sigStack, &oldSigStack); + struct sigaction sa = { 0 }; +@@ -6538,7 +6538,7 @@ + bool FatalConditionHandler::isSet = false; + struct sigaction FatalConditionHandler::oldSigActions[sizeof(signalDefs)/sizeof(SignalDefs)] = {}; + stack_t FatalConditionHandler::oldSigStack = {}; +- char FatalConditionHandler::altStackMem[SIGSTKSZ] = {}; ++ char FatalConditionHandler::altStackMem[32768] = {}; + + } // namespace Catch + diff --git a/vkmark.changes b/vkmark.changes index 496940d..ca30cbc 100644 --- a/vkmark.changes +++ b/vkmark.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 20 13:32:45 UTC 2021 - malcolmlewis@opensuse.org + +- Add vkmark-sigstksz-not-constant.patch: Temporary fix for glibc + changes, (gh#vkmark/vkmark#37). + ------------------------------------------------------------------- Wed Oct 20 07:40:41 UTC 2021 - Martin Pluskal diff --git a/vkmark.spec b/vkmark.spec index 7439455..8c0de19 100644 --- a/vkmark.spec +++ b/vkmark.spec @@ -24,6 +24,8 @@ Summary: Vulkan benchmark utility License: LGPL-2.1-or-later URL: https://github.com/vkmark/vkmark Source0: %{name}-%{version}.tar.xz +# PATCH-FIX-OPENSUSE vkmark-sigstksz-not-constant.patch (gh#vkmark/vkmark#37) malcolmlewis@opensuse.org -- Temporary fix for glibc changes. +Patch0: vkmark-sigstksz-not-constant.patch BuildRequires: gcc-c++ BuildRequires: glm-devel BuildRequires: meson >= 0.45 @@ -44,7 +46,7 @@ BuildRequires: Mesa-libVulkan-devel An extensible Vulkan benchmarking suite with targeted, configurable scenes. %prep -%autosetup +%autosetup -p1 %build %meson