From 36934d78825fe8501eb69bd23b1c44a868f46b05 Mon Sep 17 00:00:00 2001 From: herengui Date: Mon, 28 Aug 2023 14:25:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=B3=E5=A8=81=E6=9E=B6?= =?UTF-8?q?=E6=9E=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: herengui (cherry picked from commit 8b449fb8571308e6f33d5946dace5bdc19a29bf2) --- add-sw_64-support-not-upstream-modified.patch | 27 +++++++++++++++++++ jemalloc.spec | 8 ++++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 add-sw_64-support-not-upstream-modified.patch diff --git a/add-sw_64-support-not-upstream-modified.patch b/add-sw_64-support-not-upstream-modified.patch new file mode 100644 index 0000000..1062576 --- /dev/null +++ b/add-sw_64-support-not-upstream-modified.patch @@ -0,0 +1,27 @@ +From 7a423031819e9a28d4fd51eab8bc25f84bad95e0 Mon Sep 17 00:00:00 2001 +From: herengui +Date: Mon, 28 Aug 2023 14:21:52 +0800 +Subject: [PATCH 1/1] add support for sw_64 + +Signed-off-by: herengui +--- + include/jemalloc/internal/quantum.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/include/jemalloc/internal/quantum.h b/include/jemalloc/internal/quantum.h +index c22d753..9c6e9af 100644 +--- a/include/jemalloc/internal/quantum.h ++++ b/include/jemalloc/internal/quantum.h +@@ -15,6 +15,9 @@ + # ifdef __alpha__ + # define LG_QUANTUM 4 + # endif ++# ifdef __sw_64__ ++# define LG_QUANTUM 4 ++# endif + # if (defined(__sparc64__) || defined(__sparcv9) || defined(__sparc_v9__)) + # define LG_QUANTUM 4 + # endif +-- +2.41.0 + diff --git a/jemalloc.spec b/jemalloc.spec index 07b2c8d..5655fd5 100644 --- a/jemalloc.spec +++ b/jemalloc.spec @@ -12,12 +12,13 @@ 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 +Patch1000: add-sw_64-support-not-upstream-modified.patch BuildRequires: perl-generators gcc /usr/bin/xsltproc @@ -38,7 +39,7 @@ Summary: help for jemalloc. The help package contains manual pages and other related files for jemalloc. %prep -%setup -q +%autosetup -p1 %build export LDFLAGS="%{?__global_ldflags} -lrt" @@ -80,6 +81,9 @@ make check %{_mandir}/man3/jemalloc.3* %changelog +* Mon Aug 28 2023 herengui - 5.3.0-2 +- add support for sw_64 + * Tue Mar 07 2023 mawenshuo - 5.3.0-1 - Upgrade to 5.3.0 -- Gitee