<pre style='margin:0'>
Mohamed Akram (mohd-akram) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/723fd38ae0d18fdc2a3d8c304634f6129fa96c29">https://github.com/macports/macports-ports/commit/723fd38ae0d18fdc2a3d8c304634f6129fa96c29</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 723fd38ae0d mimalloc: update to 2.1.4
</span>723fd38ae0d is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 723fd38ae0d18fdc2a3d8c304634f6129fa96c29
</span>Author: Mohamed Akram <makr@macports.org>
AuthorDate: Fri Apr 26 15:31:17 2024 +0400
<span style='display:block; white-space:pre;color:#404040;'> mimalloc: update to 2.1.4
</span>---
devel/mimalloc/Portfile | 18 ++++++----
.../0001-prim.h-support-tls_slot-for-PPC.patch | 42 ----------------------
...-older-systems.patch => patch-test-stress.diff} | 0
3 files changed, 11 insertions(+), 49 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/mimalloc/Portfile b/devel/mimalloc/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index aea10f3f38e..73877281d69 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/mimalloc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/mimalloc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,10 +8,10 @@ PortGroup legacysupport 1.1
</span> # arc4random, strndup
legacysupport.newest_darwin_requires_legacy 10
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup microsoft mimalloc 2.1.2 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup microsoft mimalloc 2.1.4 v
</span> github.tarball_from archive
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span> categories devel
license MIT
maintainers {outlook.com:mohd.akram @mohd-akram} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,9 +22,9 @@ description mimalloc is a compact general purpose allocator with \
</span> long_description mimalloc is a general purpose allocator with excellent \
performance characteristics.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 362b6ba6270889af10af46e41e469847a42b99a0 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 2b1bff6f717f9725c70bf8d79e4786da13de8a270059e4ba0bdd262ae7be46eb \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 1163868
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 974e0d2469449c5c4ace01d8188f2eadf7458046 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 ef31a7c593866a35883b2090654a8d6136a1cf06f22b577b4e1c818b1b0a8796 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1133761
</span>
patchfiles patch-cmake.diff
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,11 +33,15 @@ compiler.c_standard 2011
</span>
configure.args-append \
-DMI_BUILD_TESTS=ON
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# Ensure test binaries can find dylibs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.pre_args-replace \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF
</span>
if {${os.platform} eq "darwin" && ${os.major} < 11} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Reduce stress for older systems
</span> patchfiles-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- 0001-prim.h-support-tls_slot-for-PPC.patch \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 0002-Easy-on-stress-testing-for-older-systems.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-test-stress.diff
</span> # Turning on MI_OSX_INTERPOSE breaks the build with undefined symbols:
# https://trac.macports.org/ticket/67220
# https://github.com/microsoft/mimalloc/issues/779
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/mimalloc/files/0001-prim.h-support-tls_slot-for-PPC.patch b/devel/mimalloc/files/0001-prim.h-support-tls_slot-for-PPC.patch
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 4fcf7b14c04..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/mimalloc/files/0001-prim.h-support-tls_slot-for-PPC.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,42 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From 17520fbf0376a6cb87bb45f1c54a8fc4236bc04d Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-From: barracuda156 <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Date: Fri, 7 Jul 2023 16:32:03 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Subject: [PATCH 1/2] prim.h: support tls_slot for PPC
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>----
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- include/mimalloc/prim.h | 8 +++++++-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 1 file changed, 7 insertions(+), 1 deletion(-)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git include/mimalloc/prim.h include/mimalloc/prim.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 9e56069..1218fac 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- include/mimalloc/prim.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ include/mimalloc/prim.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -146,7 +146,7 @@ static inline mi_threadid_t _mi_prim_thread_id(void) mi_attr_noexcept {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- // see also https://akkadia.org/drepper/tls.pdf for more info on the TLS register.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #elif defined(__GNUC__) && ( \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- (defined(__GLIBC__) && (defined(__x86_64__) || defined(__i386__) || defined(__arm__) || defined(__aarch64__))) \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- || (defined(__APPLE__) && (defined(__x86_64__) || defined(__aarch64__))) \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ || (defined(__APPLE__) && (defined(__x86_64__) || defined(__aarch64__) || defined(__POWERPC__))) \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- || (defined(__BIONIC__) && (defined(__x86_64__) || defined(__i386__) || defined(__arm__) || defined(__aarch64__))) \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- || (defined(__FreeBSD__) && (defined(__x86_64__) || defined(__i386__) || defined(__aarch64__))) \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- || (defined(__OpenBSD__) && (defined(__x86_64__) || defined(__i386__) || defined(__aarch64__))) \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -175,6 +175,9 @@ static inline void* mi_prim_tls_slot(size_t slot) mi_attr_noexcept {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- __asm__ volatile ("mrs %0, tpidr_el0" : "=r" (tcb));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- res = tcb[slot];
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ #elif defined(__POWERPC__)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ MI_UNUSED(ofs);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ res = pthread_getspecific(slot);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return res;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -202,6 +205,9 @@ static inline void mi_prim_tls_slot_set(size_t slot, void* value) mi_attr_noexce
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- __asm__ volatile ("mrs %0, tpidr_el0" : "=r" (tcb));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- tcb[slot] = value;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ #elif defined(__POWERPC__)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ int res; MI_UNUSED(ofs);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ res = pthread_setspecific(slot, value);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/mimalloc/files/0002-Easy-on-stress-testing-for-older-systems.patch b/devel/mimalloc/files/patch-test-stress.diff
</span>similarity index 100%
rename from devel/mimalloc/files/0002-Easy-on-stress-testing-for-older-systems.patch
rename to devel/mimalloc/files/patch-test-stress.diff
</pre><pre style='margin:0'>
</pre>