From 35134c2eb6e5a502ab712df4d730a77053037504 Mon Sep 17 00:00:00 2001 From: panchenbo Date: Mon, 7 Aug 2023 10:31:31 +0800 Subject: [PATCH] add support for sw_64 and loongarch64 --- 389-ds-base.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/389-ds-base.spec b/389-ds-base.spec index ed3ba73..95fe0a0 100644 --- a/389-ds-base.spec +++ b/389-ds-base.spec @@ -6,7 +6,7 @@ ExcludeArch: i686 Name: 389-ds-base Summary: Base 389 Directory Server Version: 1.4.3.20 -Release: 1 +Release: 2 License: GPLv3+ URL: https://www.port389.org Source0: https://releases.pagure.org/389-ds-base/389-ds-base-%{version}.tar.bz2 @@ -122,6 +122,13 @@ NSSARGS="--with-nss-lib=%{_libdir} --with-nss-inc=%{_includedir}/nss3" LEGACY_FLAGS="--enable-legacy --enable-perl" cd ../jemalloc-5.2.1 +%ifarch sw_64 loongarch64 +sed -i '/#ifndef LG_QUANTUM/a #ifdef __sw_64__\n#define LG_QUANTUM 4\n#endif' include/jemalloc/internal/quantum.h +sed -i '/#ifndef LG_QUANTUM/a #ifdef __loongarch__\n#define LG_QUANTUM 4\n#endif' include/jemalloc/internal/quantum.h +%_update_config_guess +%_update_config_sub +%endif + %configure --libdir=%{_libdir}/dirsrv/lib --bindir=%{_libdir}/dirsrv/bin --enable-prof %make_build cd - @@ -369,6 +376,9 @@ exit 0 %{_mandir}/*/* %changelog +* Mon Aug 7 2023 panchenbo - 1.4.3.20-2 +- add support for sw_64 and loongarch64 + * Tue Mar 15 2022 wangkai - 1.4.3.20-1 - Update to 1.4.3.20 for fix CVE-2020-35518 -- Gitee