[packages/mimalloc] - updated to 2.2.3

qboosh qboosh at pld-linux.org
Sun Apr 27 09:47:10 CEST 2025


commit 8eebe43357051b7b26a0ae336b20e5b9959737bd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 27 08:35:42 2025 +0200

    - updated to 2.2.3

 mimalloc-build_type.patch | 17 ++++++++---------
 mimalloc.spec             | 11 ++++++-----
 2 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/mimalloc.spec b/mimalloc.spec
index 7c604da..e4fc00a 100644
--- a/mimalloc.spec
+++ b/mimalloc.spec
@@ -8,18 +8,18 @@
 Summary:	Compact general purpose allocator with excellent performance
 Summary(pl.UTF-8):	Mały alokator pamięci ogólnego przeznaczenia, o dobrej wydajności
 Name:		mimalloc
-Version:	2.1.9
+Version:	2.2.3
 Release:	1
 License:	MIT
 Group:		Libraries
 Source0:	https://github.com/microsoft/mimalloc/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	1b33c11a8f9ea4b7ae0862070892206e
+# Source0-md5:	63ea5d19341717593a45e7a01138b82e
 Patch0:		%{name}-build_type.patch
 URL:		https://github.com/microsoft/mimalloc
 BuildRequires:	cmake >= 3.18
 BuildRequires:	libatomic-devel
-BuildRequires:	libstdc++-devel >= 6:5
-BuildRequires:	rpmbuild(macros) >= 2.007
+BuildRequires:	libstdc++-devel >= 6:7
+BuildRequires:	rpmbuild(macros) >= 2.047
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -86,7 +86,7 @@ Statyczna biblioteka mimalloc.
 %build
 %cmake -B build \
 	-DMI_BUILD_OBJECT:BOOL=OFF \
-	%{cmake_on_off static_libs MI_BUILD_STATIC} \
+	-DMI_BUILD_STATIC:BOOL=%{__ON_OFF static_libs} \
 	-DMI_INSTALL_TOPLEVEL:BOOL=ON \
 	-DMI_OPT_ARCH:BOOL=OFF
 
@@ -115,6 +115,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/mimalloc.h
 %{_includedir}/mimalloc-new-delete.h
 %{_includedir}/mimalloc-override.h
+%{_includedir}/mimalloc-stats.h
 %{_libdir}/cmake/mimalloc
 %{_pkgconfigdir}/mimalloc.pc
 
diff --git a/mimalloc-build_type.patch b/mimalloc-build_type.patch
index 37544ad..3c9ad90 100644
--- a/mimalloc-build_type.patch
+++ b/mimalloc-build_type.patch
@@ -1,12 +1,11 @@
---- mimalloc-1.7.3/CMakeLists.txt.orig	2021-11-15 01:47:50.000000000 +0100
-+++ mimalloc-1.7.3/CMakeLists.txt	2021-12-15 20:11:18.521257503 +0100
-@@ -247,9 +247,6 @@
-   set(mi_basename "${mi_basename}-asan")
+--- mimalloc-2.2.3/CMakeLists.txt.orig	2025-03-28 22:19:07.000000000 +0100
++++ mimalloc-2.2.3/CMakeLists.txt	2025-04-27 08:27:46.785275340 +0200
+@@ -534,8 +534,6 @@ string(TOLOWER "${CMAKE_BUILD_TYPE}" CMA
+ list(APPEND mi_defines "MI_CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE_LC}")  #todo: multi-config project needs $<CONFIG> ?
+ if(CMAKE_BUILD_TYPE_LC MATCHES "^(release|relwithdebinfo|minsizerel|none)$")
+   list(APPEND mi_defines MI_BUILD_RELEASE)
+-else()
+-  set(mi_libname "${mi_libname}-${CMAKE_BUILD_TYPE_LC}") #append build type (e.g. -debug) if not a release version
  endif()
- string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LC)
--if(NOT(CMAKE_BUILD_TYPE_LC MATCHES "^(release|relwithdebinfo|minsizerel|none)$"))
--  set(mi_basename "${mi_basename}-${CMAKE_BUILD_TYPE_LC}") #append build type (e.g. -debug) if not a release version
--endif()
  
  if(MI_BUILD_SHARED)
-   list(APPEND mi_build_targets "shared")
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mimalloc.git/commitdiff/8eebe43357051b7b26a0ae336b20e5b9959737bd



More information about the pld-cvs-commit mailing list