2 Commits

3 changed files with 27 additions and 2 deletions

16
criterion-gcc15.patch Normal file
View File

@@ -0,0 +1,16 @@
Index: include/criterion/alloc.h
===================================================================
--- a/include/criterion/alloc.h
+++ b/include/criterion/alloc.h
@@ -31,9 +31,11 @@
#ifdef __cplusplus
# include <memory>
# include <cstddef>
+# include <cstdint>
using std::size_t;
#else
# include <stddef.h>
+# include <stdint.h>
#endif
#include "internal/common.h"

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Mar 6 13:28:57 UTC 2025 - pgajdos@suse.com
- added patches
fix build with gcc15
+ criterion-gcc15.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 28 14:20:29 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org> Tue Nov 28 14:20:29 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package criterion # spec file for package criterion
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -27,6 +27,8 @@ License: MIT
URL: https://github.com/Snaipe/Criterion URL: https://github.com/Snaipe/Criterion
Source: https://github.com/Snaipe/Criterion/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.xz Source: https://github.com/Snaipe/Criterion/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.xz
Patch0: fix-meson.patch Patch0: fix-meson.patch
# https://github.com/Snaipe/Criterion/issues/559
Patch1: criterion-gcc15.patch
BuildRequires: boxfort-devel BuildRequires: boxfort-devel
BuildRequires: chrpath BuildRequires: chrpath
BuildRequires: cmake BuildRequires: cmake
@@ -80,7 +82,7 @@ Obsoletes: lib%{name}3-devel <= 2.4.2
Contains all needed devel files for Criterion. Contains all needed devel files for Criterion.
%prep %prep
%autosetup -n Criterion-%{version} %autosetup -p1 -n Criterion-%{version}
%build %build
# we disable tests because they require Cram, a no longer upstream maintained tool that's also not in openSUSE. # we disable tests because they require Cram, a no longer upstream maintained tool that's also not in openSUSE.