代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/jemalloc 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%ifarch x86_64
%define lg_page --with-lg-page=12
%endif
%ifarch aarch64
%define lg_page --with-lg-page=16
%endif
%ifarch aarch64
%define disable_thp --disable-thp
%endif
Name: jemalloc
Version: 5.2.1
Release: 9
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
Patch1: backport-Jemalloc-5.2.1-patch-1-fix-large-bin-index-accessed-through-cache-bin-descriptor.patch
Patch2: backport-Jemalloc-5.2.1-patch-2-fix-undefined-behavior-in-hash.patch
Patch3: backport-Jemalloc-5.2.1-patch-3-fix-tcaches-mutex-pre-post-fork-handling.patch
Patch4: 0001-jemalloc-5.2.1-add-loongarch-support.patch
Patch6000: backport-0001-Correct-tsd-layout-graph.patch
Patch6001: backport-0001-Buffer-stats-printing.patch
BuildRequires: libxslt perl-generators gcc
%description
Implemented by malloc (3), is an independent implementation of jemalloc.
%package devel
Summary: Devel files for jemalloc
Requires: %{name} = %{version}-%{release}
%description devel
The devel contains libraries and header files for use in jemalloc applications.
%package help
Summary: help for jemalloc.
%description help
The help package contains manual pages and other related files for jemalloc.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%ifarch loongarch64
%patch4 -p1
%endif
%patch6000 -p1
%patch6001 -p1
%build
export LDFLAGS="%{?__global_ldflags} -lrt"
getconf PAGESIZE
uname -a
%configure %{?disable_thp} %{?lg_page}
%make_build
%check
LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test %{?_smp_mflags}
make check
%install
%make_install
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc COPYING
%{_libdir}/libjemalloc.so.*
%{_bindir}/jemalloc.sh
%{_bindir}/jemalloc-config
%{_libdir}/pkgconfig/jemalloc.pc
%files devel
%{_includedir}/jemalloc
%{_bindir}/jeprof
%{_libdir}/libjemalloc.so
%exclude %{_libdir}/libjemalloc.a
%exclude %{_libdir}/libjemalloc_pic.a
%exclude %{_datadir}/doc/%{name}/jemalloc.html
%files help
%doc README VERSION doc/jemalloc.html
%{_mandir}/man3/jemalloc.3*
%changelog
* Mon Jan 16 2023 mengwenhua <[email protected]> - 5.2.1-9
- Buffer stats printing
* Mon Jan 9 2023 mengwenhua <[email protected]> - 5.2.1-8
- Correct tsd layout graph
* Tue Nov 15 2022 doupengda <[email protected]> - 5.2.1-7
- add loongarch64 support
* Tue May 10 2022 Ge Wang <[email protected]> - 5.2.1-6
- License compliance rectification
* Thu Dec 2 2021 guominghong <[email protected]> - 5.2.1-5
- Fix spec check
* Tue Nov 16 2021 guominghong <[email protected]> - 5.2.1-4
- Fix tcaches mutex pre-post fork handling
* Tue Nov 16 2021 guominghong <[email protected]> - 5.2.1-3
- Fix Undefined Behavior in hash.h
* Wed Nov 3 2021 guominghong <[email protected]> - 5.2.1-2
- Fix large bin index accessed through cache bin descriptor
* Tue Jul 20 2021 weidong <[email protected]> - 5.2.1-1
- Update jemlloc
* Wed Jun 02 2021 wulei <[email protected]> - 5.1.0-4
- fixes failed: no acceptable C compiler found in $PATH
* Thu Nov 14 2019 wangye<[email protected]> - 5.1.0-3
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。