From 4baf220d47c40bfd5e5f0c1993304c096bb02644 Mon Sep 17 00:00:00 2001 From: leeffo Date: Wed, 26 Oct 2022 14:45:53 +0800 Subject: [PATCH] add new architecture loongarch64 valgrind-devel does not compile loongarch64 schema --- 0001-add-new-architecture-loongarch.patch | 26 +++++++++++++++++++++++ jemalloc.spec | 12 +++++++++-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 0001-add-new-architecture-loongarch.patch diff --git a/0001-add-new-architecture-loongarch.patch b/0001-add-new-architecture-loongarch.patch new file mode 100644 index 0000000..c8f213a --- /dev/null +++ b/0001-add-new-architecture-loongarch.patch @@ -0,0 +1,26 @@ +From 4afce6777e8c5c52eecee32305b8c60719e62cfd Mon Sep 17 00:00:00 2001 +From: pangqing +Date: Wed, 2 Mar 2022 14:08:31 +0800 +Subject: [PATCH] add new architecture loongarch + +--- + 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 821086e..d6600af 100644 +--- a/include/jemalloc/internal/quantum.h ++++ b/include/jemalloc/internal/quantum.h +@@ -30,6 +30,9 @@ + # ifdef __hppa__ + # define LG_QUANTUM 4 + # endif ++# ifdef __loongarch__ ++# define LG_QUANTUM 4 ++# endif + # ifdef __m68k__ + # define LG_QUANTUM 3 + # endif +-- +2.18.4 + diff --git a/jemalloc.spec b/jemalloc.spec index e976618..17018bf 100644 --- a/jemalloc.spec +++ b/jemalloc.spec @@ -1,17 +1,21 @@ +%global anolis_release .0.1 + Name: jemalloc Version: 5.2.1 -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} Summary: General-purpose scalable concurrent malloc implementation License: BSD URL: http://www.canonware.com/jemalloc/ Source0: https://github.com/jemalloc/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2 +Patch1: 0001-add-new-architecture-loongarch.patch + BuildRequires: gcc BuildRequires: /usr/bin/xsltproc BuildRequires: perl-generators -%ifnarch s390 %{mips} +%ifnarch s390 %{mips} loongarch64 BuildRequires: valgrind-devel %endif @@ -104,6 +108,10 @@ find %{buildroot}%{_libdir}/ -name '*.a' -exec rm -vf {} ';' %ldconfig_scriptlets %changelog +* Wed Oct 26 2022 liweiganga - 5.2.1-1.0.1 +- add new architecture loongarch64 +- valgrind-devel does not compile loongarch64 schema + * Tue Aug 06 2019 Ingvar Hagelund - 5.2.1-1 - New upstream release -- Gitee