diff --git a/0001-fix-test-fail.patch b/0001-fix-test-fail.patch new file mode 100644 index 0000000000000000000000000000000000000000..a75edc12ca432bf9ab7bf81a2bf460a80aeb837d --- /dev/null +++ b/0001-fix-test-fail.patch @@ -0,0 +1,42 @@ +From c2a9c5fa11cde43e46f418afa95c7d9f6f3c84c6 Mon Sep 17 00:00:00 2001 +From: xiajingze +Date: Wed, 15 May 2024 14:27:34 +0800 +Subject: [PATCH 1/1] fix test fail + +--- + test/integration/aligned_alloc.c | 12 ++++++++++-- + 1 file changed, 10 insertions(+), 2 deletions(-) + +diff --git a/test/integration/aligned_alloc.c b/test/integration/aligned_alloc.c +index b37d5ba..38959b1 100644 +--- a/test/integration/aligned_alloc.c ++++ b/test/integration/aligned_alloc.c +@@ -13,7 +13,11 @@ purge(void) { + "Unexpected mallctl error"); + } + +-TEST_BEGIN(test_alignment_errors) { ++TEST_BEGIN( ++#if __clang__ ++__attribute__((optnone)) ++#endif ++test_alignment_errors) { + size_t alignment; + void *p; + +@@ -45,7 +49,11 @@ TEST_END + JEMALLOC_DIAGNOSTIC_PUSH + JEMALLOC_DIAGNOSTIC_IGNORE_ALLOC_SIZE_LARGER_THAN + +-TEST_BEGIN(test_oom_errors) { ++TEST_BEGIN( ++#if __clang__ ++__attribute__((optnone)) ++#endif ++test_oom_errors) { + size_t alignment, size; + void *p; + +-- +2.45.0.windows.1 + diff --git a/jemalloc.spec b/jemalloc.spec index fe446f839818803a770de931c286f6942a5eebad..8ff26f98b30834f1879ac713d2eecf6e35744194 100644 --- a/jemalloc.spec +++ b/jemalloc.spec @@ -12,12 +12,14 @@ Name: jemalloc Version: 5.3.0 -Release: 1 +Release: 2 Summary: General-purpose scalable concurrent malloc implementation License: BSD-2-Clause URL: http://www.canonware.com/jemalloc/ Source0: https://github.com/jemalloc/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2 +Patch0001: 0001-fix-test-fail.patch + BuildRequires: perl-generators gcc /usr/bin/xsltproc @@ -39,6 +41,7 @@ The help package contains manual pages and other related files for jemalloc. %prep %setup -q +%patch0001 -p1 %build export LDFLAGS="%{?__global_ldflags} -lrt" @@ -80,6 +83,9 @@ make check %{_mandir}/man3/jemalloc.3* %changelog +* Wed May 15 2024 xiajingze - 5.3.0-2 +- Fix test fail + * Wed Mar 01 2023 li-long315 - 5.3.0-1 - Upgrade to 5.3.0