Date: Mon, 12 Aug 2024 08:06:03 GMT From: Dima Panov <fluffy@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: dbf3e16ba2f4 - main - devel/libdispatch: update to 5.10.1 release (+) Message-ID: <202408120806.47C863DB048517@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by fluffy: URL: https://cgit.FreeBSD.org/ports/commit/?id=dbf3e16ba2f4e3752b14a67270caed69fbe53da1 commit dbf3e16ba2f4e3752b14a67270caed69fbe53da1 Author: Dima Panov <fluffy@FreeBSD.org> AuthorDate: 2024-08-12 08:04:37 +0000 Commit: Dima Panov <fluffy@FreeBSD.org> CommitDate: 2024-08-12 08:04:37 +0000 devel/libdispatch: update to 5.10.1 release (+) Release notes: https://github.com/apple/swift-corelibs-libdispatch/releases/tag/swift-5.10-RELEASE https://github.com/apple/swift-corelibs-libdispatch/releases/tag/swift-5.10.1-RELEASE Sponsored by: Serenity Cybersecurity, LLC --- devel/libdispatch/Makefile | 21 +++++++++++++-------- devel/libdispatch/distinfo | 6 +++--- devel/libdispatch/files/patch-src_event_event.c | 14 +------------- devel/libdispatch/files/patch-src_shims_lock.c | 24 ++++++++++++------------ devel/libdispatch/files/patch-src_source.c | 16 ---------------- devel/libdispatch/pkg-plist | 1 + 6 files changed, 30 insertions(+), 52 deletions(-) diff --git a/devel/libdispatch/Makefile b/devel/libdispatch/Makefile index 36b4455b8dad..aca18a54d83b 100644 --- a/devel/libdispatch/Makefile +++ b/devel/libdispatch/Makefile @@ -1,7 +1,5 @@ PORTNAME= libdispatch -DISTVERSIONPREFIX= swift- -DISTVERSION= 5.5 -DISTVERSIONSUFFIX= -RELEASE +DISTVERSION= 5.10.1 PORTEPOCH= 1 CATEGORIES= devel @@ -10,21 +8,28 @@ COMMENT= Grand Central Dispatch API support library LICENSE= APACHE20 -USES= cmake +USES= cmake:testing compiler:c++17-lang USE_LDCONFIG= yes USE_CXXSTD= c++17 USE_GITHUB= yes GH_ACCOUNT= apple GH_PROJECT= swift-corelibs-libdispatch +GH_TAGNAME= swift-${DISTVERSION}-RELEASE .include <bsd.port.options.mk> -.if ${OSVERSION} > 1400000 -USES+= llvm:build +#.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400000 && ${OSVERSION} < 1400079 +#USES+= llvm:max=17,build +#USES:= ${USES:Ncompiler\:*} # XXX avoid warnings +#CC= ${_LLVM_MK_PREFIX}/bin/clang +#CPP= ${_LLVM_MK_PREFIX}/bin/clang-cpp +#CXX= ${_LLVM_MK_PREFIX}/bin/clang++ #LD?= ${_LLVM_MK_PREFIX}/bin/ld -.else -USES+= compiler:c++17-lang +#.endif + +.if ${OPSYS} == FreeBSD && ${ARCH} == i386 +CFLAGS+= -Wno-incompatible-function-pointer-types .endif .include <bsd.port.mk> diff --git a/devel/libdispatch/distinfo b/devel/libdispatch/distinfo index 89a5a363a7dc..b4d34f8de82d 100644 --- a/devel/libdispatch/distinfo +++ b/devel/libdispatch/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1667817651 -SHA256 (apple-swift-corelibs-libdispatch-swift-5.5-RELEASE_GH0.tar.gz) = 5efdfa1d2897c598acea42fc00776477bb3713645686774f5ff0818b26649e62 -SIZE (apple-swift-corelibs-libdispatch-swift-5.5-RELEASE_GH0.tar.gz) = 592054 +TIMESTAMP = 1723281605 +SHA256 (apple-swift-corelibs-libdispatch-5.10.1-swift-5.10.1-RELEASE_GH0.tar.gz) = affa3544b0fdb60f8f175bc0d2846177436d5848ef8ca73e3e560d23986f38b3 +SIZE (apple-swift-corelibs-libdispatch-5.10.1-swift-5.10.1-RELEASE_GH0.tar.gz) = 594770 diff --git a/devel/libdispatch/files/patch-src_event_event.c b/devel/libdispatch/files/patch-src_event_event.c index 873c9243e688..4ac4d8ec33ff 100644 --- a/devel/libdispatch/files/patch-src_event_event.c +++ b/devel/libdispatch/files/patch-src_event_event.c @@ -1,17 +1,5 @@ ---- src/event/event.c.orig 2021-09-17 04:54:52 UTC +--- src/event/event.c.orig 2023-06-15 00:55:45 UTC +++ src/event/event.c -@@ -766,9 +766,9 @@ _dispatch_timer_heap_update(dispatch_timer_heap_t dth, - #pragma mark timer unote - - #define _dispatch_timer_du_debug(what, du) \ -- _dispatch_debug("kevent-source[%p]: %s kevent[%p] { ident = 0x%x }", \ -+ _dispatch_debug("kevent-source[%p]: %s kevent[%p] { ident = 0x%llx }", \ - _dispatch_wref2ptr((du)->du_owner_wref), what, \ -- (du), (du)->du_ident) -+ (du), (unsigned long long)(du)->du_ident) - - DISPATCH_ALWAYS_INLINE - static inline unsigned int @@ -792,7 +792,7 @@ _dispatch_timer_unote_disarm(dispatch_timer_source_ref _dispatch_timer_unote_disarm(dispatch_timer_source_refs_t dt, dispatch_timer_heap_t dth) diff --git a/devel/libdispatch/files/patch-src_shims_lock.c b/devel/libdispatch/files/patch-src_shims_lock.c index c267242cb840..3fafcc2344e7 100644 --- a/devel/libdispatch/files/patch-src_shims_lock.c +++ b/devel/libdispatch/files/patch-src_shims_lock.c @@ -1,4 +1,4 @@ ---- src/shims/lock.c.orig 2021-09-17 04:54:52 UTC +--- src/shims/lock.c.orig 2023-06-15 00:55:45 UTC +++ src/shims/lock.c @@ -56,6 +56,18 @@ _dispatch_thread_switch(dispatch_lock value, dispatch_ #endif @@ -19,7 +19,7 @@ #pragma mark - semaphores #if USE_MACH_SEM -@@ -394,8 +406,10 @@ _dispatch_unfair_lock_wake(uint32_t *uaddr, uint32_t f +@@ -395,8 +407,10 @@ _dispatch_unfair_lock_wake(uint32_t *uaddr, uint32_t f #include <sys/time.h> #ifdef __ANDROID__ #include <sys/syscall.h> @@ -31,7 +31,7 @@ #endif /* __ANDROID__ */ DISPATCH_ALWAYS_INLINE -@@ -404,7 +418,12 @@ _dispatch_futex(uint32_t *uaddr, int op, uint32_t val, +@@ -405,7 +419,12 @@ _dispatch_futex(uint32_t *uaddr, int op, uint32_t val, const struct timespec *timeout, uint32_t *uaddr2, uint32_t val3, int opflags) { @@ -44,7 +44,7 @@ } // returns 0, ETIMEDOUT, EFAULT, EINTR, EWOULDBLOCK -@@ -414,11 +433,15 @@ _futex_blocking_op(uint32_t *uaddr, int futex_op, uint +@@ -415,11 +434,15 @@ _futex_blocking_op(uint32_t *uaddr, int futex_op, uint const struct timespec *timeout, int flags) { for (;;) { @@ -63,7 +63,7 @@ case EINTR: /* * if we have a timeout, we need to return for the caller to -@@ -454,6 +477,7 @@ _dispatch_futex_wake(uint32_t *uaddr, int wake, int op +@@ -455,6 +478,7 @@ _dispatch_futex_wake(uint32_t *uaddr, int wake, int op DISPATCH_INTERNAL_CRASH(errno, "_dlock_wake() failed"); } @@ -71,7 +71,7 @@ static void _dispatch_futex_lock_pi(uint32_t *uaddr, struct timespec *timeout, int detect, int opflags) -@@ -471,6 +495,7 @@ _dispatch_futex_unlock_pi(uint32_t *uaddr, int opflags +@@ -472,6 +496,7 @@ _dispatch_futex_unlock_pi(uint32_t *uaddr, int opflags if (rc == 0) return; DISPATCH_CLIENT_CRASH(errno, "futex_unlock_pi() failed"); } @@ -79,10 +79,10 @@ #endif #pragma mark - wait for address -@@ -509,6 +534,19 @@ _dispatch_wait_on_address(uint32_t volatile *_address, - return _dispatch_futex_wait(address, value, NULL, FUTEX_PRIVATE_FLAG); - #elif defined(_WIN32) - return WaitOnAddress(address, &value, sizeof(value), INFINITE) == TRUE; +@@ -516,6 +541,19 @@ _dispatch_wait_on_address(uint32_t volatile *_address, + ? INFINITE : ((nsecs + 1000000) / 1000000); + if (dwMilliseconds == 0) return ETIMEDOUT; + return WaitOnAddress(address, &value, sizeof(value), dwMilliseconds) == TRUE; +#elif defined(__FreeBSD__) + uint64_t usecs = 0; + int rc; @@ -99,7 +99,7 @@ #else #error _dispatch_wait_on_address unimplemented for this platform #endif -@@ -599,7 +637,7 @@ _dispatch_unfair_lock_lock_slow(dispatch_unfair_lock_t +@@ -606,7 +644,7 @@ _dispatch_unfair_lock_lock_slow(dispatch_unfair_lock_t } } } @@ -108,7 +108,7 @@ void _dispatch_unfair_lock_lock_slow(dispatch_unfair_lock_t dul, dispatch_lock_options_t flags) -@@ -636,7 +674,7 @@ _dispatch_unfair_lock_unlock_slow(dispatch_unfair_lock +@@ -643,7 +681,7 @@ _dispatch_unfair_lock_unlock_slow(dispatch_unfair_lock if (_dispatch_lock_has_waiters(cur)) { _dispatch_unfair_lock_wake(&dul->dul_lock, 0); } diff --git a/devel/libdispatch/files/patch-src_source.c b/devel/libdispatch/files/patch-src_source.c deleted file mode 100644 index c812cacf1e11..000000000000 --- a/devel/libdispatch/files/patch-src_source.c +++ /dev/null @@ -1,16 +0,0 @@ ---- src/source.c.orig 2021-09-17 04:54:52 UTC -+++ src/source.c -@@ -1398,11 +1398,11 @@ _dispatch_source_debug_attr(dispatch_source_t ds, char - dispatch_source_refs_t dr = ds->ds_refs; - dispatch_queue_flags_t dqf = _dispatch_queue_atomic_flags(ds); - dispatch_unote_state_t du_state = _dispatch_unote_state(dr); -- return dsnprintf(buf, bufsiz, "target = %s[%p], ident = 0x%x, " -+ return dsnprintf(buf, bufsiz, "target = %s[%p], ident = 0x%llx, " - "mask = 0x%x, pending_data = 0x%llx, registered = %d, " - "armed = %d, %s%s%s", - target && target->dq_label ? target->dq_label : "", target, -- dr->du_ident, dr->du_fflags, (unsigned long long)dr->ds_pending_data, -+ (unsigned long long)dr->du_ident, dr->du_fflags, (unsigned long long)dr->ds_pending_data, - _du_state_registered(du_state), _du_state_armed(du_state), - (dqf & DSF_CANCELED) ? "cancelled, " : "", - (dqf & DSF_NEEDS_EVENT) ? "needs-event, " : "", diff --git a/devel/libdispatch/pkg-plist b/devel/libdispatch/pkg-plist index 5646e32d7286..33b2867e0f47 100644 --- a/devel/libdispatch/pkg-plist +++ b/devel/libdispatch/pkg-plist @@ -12,6 +12,7 @@ include/dispatch/queue.h include/dispatch/semaphore.h include/dispatch/source.h include/dispatch/time.h +include/os/generic_base.h include/os/generic_unix_base.h include/os/generic_win_base.h include/os/object.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408120806.47C863DB048517>