SHA256
1
0
forked from pool/vkmark

Accepting request 941668 from home:malcolmlewis:branches:benchmark

- Add vkmark-sigstksz-not-constant.patch: Temporary fix for glibc
  changes, (gh#vkmark/vkmark#37).

OBS-URL: https://build.opensuse.org/request/show/941668
OBS-URL: https://build.opensuse.org/package/show/benchmark/vkmark?expand=0&rev=18
This commit is contained in:
Martin Pluskal 2021-12-21 09:37:02 +00:00 committed by Git OBS Bridge
parent 090b234594
commit 1cec41abf2
3 changed files with 39 additions and 1 deletions

View File

@ -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 = "<unknown signal>";
@@ -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

View File

@ -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 <mpluskal@suse.com> Wed Oct 20 07:40:41 UTC 2021 - Martin Pluskal <mpluskal@suse.com>

View File

@ -24,6 +24,8 @@ Summary: Vulkan benchmark utility
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
URL: https://github.com/vkmark/vkmark URL: https://github.com/vkmark/vkmark
Source0: %{name}-%{version}.tar.xz 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: gcc-c++
BuildRequires: glm-devel BuildRequires: glm-devel
BuildRequires: meson >= 0.45 BuildRequires: meson >= 0.45
@ -44,7 +46,7 @@ BuildRequires: Mesa-libVulkan-devel
An extensible Vulkan benchmarking suite with targeted, configurable scenes. An extensible Vulkan benchmarking suite with targeted, configurable scenes.
%prep %prep
%autosetup %autosetup -p1
%build %build
%meson %meson