<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e29e07d0b9373354cd9bdd748a8a208fbecb8fd3">https://github.com/macports/macports-ports/commit/e29e07d0b9373354cd9bdd748a8a208fbecb8fd3</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 e29e07d0b93 libdispatch-legacy: minor changes to install
</span>e29e07d0b93 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit e29e07d0b9373354cd9bdd748a8a208fbecb8fd3
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Wed Jan 24 08:58:40 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> libdispatch-legacy: minor changes to install
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Drop manual destroot in favor of xcode PG.
</span><span style='display:block; white-space:pre;color:#404040;'> Preserve original dir structure. Install mans. Make is easy to use via env PATH.
</span>---
devel/libdispatch-legacy/Portfile | 24 ++++++------
.../files/patch-project.pbxproj.diff | 4 +-
.../pthread_threadid_np-expose-on-PowerPC.diff | 44 ++++++++++++++++++++++
3 files changed, 58 insertions(+), 14 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libdispatch-legacy/Portfile b/devel/libdispatch-legacy/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1cc80a201a8..ed78d61a4c9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libdispatch-legacy/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libdispatch-legacy/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,6 +5,7 @@ PortGroup xcode 1.0
</span>
name libdispatch-legacy
version 84.5.5
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories devel
platforms {darwin < 11}
license Apache-2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,7 +13,7 @@ maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
</span> description Grand Central Dispatch for PowerPC systems and pre-Snow Leopard x86
long_description Grand Central Dispatch (GCD or libdispatch) provides comprehensive support \
for concurrent code execution on multicore hardware. This port in meant \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- for systems without a native libdispatch. It corresponds to macOS 10.6.7 release.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for systems without a native libdispatch. It corresponds to macOS 10.6.8 release.
</span> homepage https://opensource.apple.com/releases
set apple_sources https://github.com/apple-oss-distributions
master_sites-append ${apple_sources}/Libc/archive/refs/tags/:Libc \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -59,7 +60,9 @@ post-extract {
</span> ln -s ${workpath}/${XNU}/osfmk ${workpath}/${XNU}/libkern/System
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patch.dir ${workpath}
</span> patchfiles-append patch-project.pbxproj.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append pthread_threadid_np-expose-on-PowerPC.diff
</span>
worksrcdir ${workpath}/${LIBDISPATCH}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -87,16 +90,13 @@ xcode.target libdispatch
</span>
use_parallel_build no
<span style='display:block; white-space:pre;background:#ffe0e0;'>-default_variants +universal
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Preserve original directory structure, just prefix everything with ${prefix}/libexec/dispatch:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+xcode.destroot.type
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.destdir DSTROOT=${destroot}${prefix}/libexec/dispatch
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set dispatch_build ${workpath}/${LIBDISPATCH}/build/Release
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set dispatch_root ${destroot}${prefix}/libexec/dispatch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -d ${dispatch_root}/lib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach lib {libdispatch.a libdispatch_debug.a libdispatch_profile.a} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${dispatch_build}/${lib} ${dispatch_root}/lib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- foreach incdir {include local} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${dispatch_build}/usr/${incdir} ${dispatch_root}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# However, create a symlink, so that adding ${prefix}/libexec/dispatch/usr to PATH makes everything available:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${prefix}/libexec/dispatch/usr/local/lib/system ${destroot}${prefix}/libexec/dispatch/usr/lib
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default_variants +universal
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libdispatch-legacy/files/patch-project.pbxproj.diff b/devel/libdispatch-legacy/files/patch-project.pbxproj.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index b3cda7d65d0..f8544f16eba 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libdispatch-legacy/files/patch-project.pbxproj.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libdispatch-legacy/files/patch-project.pbxproj.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,5 +1,5 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- libdispatch.xcodeproj/project.pbxproj 2021-10-06 13:21:40.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ libdispatch.xcodeproj/project.pbxproj 2023-12-28 11:50:04.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- libdispatch-84.5.5/libdispatch.xcodeproj/project.pbxproj 2021-10-06 13:21:40.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ libdispatch-84.5.5/libdispatch.xcodeproj/project.pbxproj 2023-12-28 11:50:04.000000000 +0800
</span> @@ -378,10 +378,10 @@
"-fdiagnostics-show-option",
"-fsched-interblock",
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libdispatch-legacy/files/pthread_threadid_np-expose-on-PowerPC.diff b/devel/libdispatch-legacy/files/pthread_threadid_np-expose-on-PowerPC.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..94f1c151965
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libdispatch-legacy/files/pthread_threadid_np-expose-on-PowerPC.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,44 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 3a96adb3aa6b9e0fd92851dd1aa63bd622b1eae9 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Wed, 24 Jan 2024 07:00:24 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] pthread_threadid_np: expose on PowerPC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pthreads/pthread.c | 2 --
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pthreads/pthread.h | 2 --
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2 files changed, 4 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git pthreads/pthread.c pthreads/pthread.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 5e9aefb..65293fa 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Libc-594.9.5/pthreads/pthread.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Libc-594.9.5/pthreads/pthread.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1118,7 +1118,6 @@ pthread_main_np(void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(__i386__) || defined(__x86_64__) || defined(__arm__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* if we are passed in a pthread_t that is NULL, then we return
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ the current thread's thread_id. So folks don't have to call
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pthread_self, in addition to us doing it, if they just want
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1146,7 +1145,6 @@ pthread_threadid_np(pthread_t thread, __uint64_t *thread_id)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ UNLOCK(_pthread_list_lock);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return rval;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pthread_getname_np(pthread_t thread, char *threadname, size_t len)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git pthreads/pthread.h pthreads/pthread.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index be3bb91..9a16a72 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Libc-594.9.5/pthreads/pthread.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Libc-594.9.5/pthreads/pthread.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -472,9 +472,7 @@ void pthread_testcancel(void) __DARWIN_ALIAS(pthread_testcancel);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* returns non-zero if pthread_create or cthread_fork have been called */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int pthread_is_threaded_np(void);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(__i386__) || defined(__x86_64__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int pthread_threadid_np(pthread_t,__uint64_t*);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*SPI to set and get pthread name*/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int pthread_getname_np(pthread_t,char*,size_t);
</span></pre><pre style='margin:0'>
</pre>