From nobody Mon Aug 12 08:06:03 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wj6XX2sLDz5RyQs; Mon, 12 Aug 2024 08:06:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wj6XX0PKTz3xdw; Mon, 12 Aug 2024 08:06:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723449964; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zwBT3zUwazqvnOuoDNYKNIPon4rsgw304JoGoYzVfv0=; b=SyT6JAjmOLzNLYjhvTEbeXtcosrzadFyMzz0nOBwN4F1KmRT11+7qyLWL/WwHgAsB7ACh3 tOS7lvmGQ+qgixyunsOC3auZnDZ2pndvyIV04RTqM/vzD2fZHAKA73dsUbfv0WIuK6npM7 gBlMjY1rxct9JRbLCm10usU/72Iy0A7Zb05hP7quBiS1tdFaCK2fa3fyyu333Jehv5gqvW UuakxljNNeLOotlaq5D2JvGV59zziAvVEkL0/AFfnQzg8ne10LriHL5zSX69qP3oHHLhcR y+eumZNkGFzCpMeDa6TRS/1vmfkoqCv7QEPXGxR6ri7Dyd14OonuROAhdBQdhw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723449964; a=rsa-sha256; cv=none; b=Ttg3z8mHTQ2fBGuWRBqWRJETQCF9w/JmxoEJQ4nE0jl/Id5FXwisJ4GjwgC6f70R3WLqpM QtuZO9LuH8+1ZUIin21km4gpMWYVwzOZ9jZFdJu1j/GNeO2Fs7jp8RHLAy9iJ/bpSPfMh1 Suzt+pTzYKcO2PzFbEaH2P+/Z1aKvxfd/ECbvfPp3NzBxBi4bQ1cGoEJe3wYWVaRDWsw/5 2APVuNG5HoUqrrXjZy7MTPdiaJ2hpjMBAmVDyw6nqWCSVSbOj5AOn/JWYTDepUbgdPsE1k SfOfBn0OzPCm7KuCbDBVBC6b/J3gXkL6Tivh13ck/jmyNPBZyo3XAENj6PIVNw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723449964; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zwBT3zUwazqvnOuoDNYKNIPon4rsgw304JoGoYzVfv0=; b=nnFBMw4GLEQSQxlDwtIK0N3nyqGgrtOHD/ffCdS+74b06yunWJLxWV88m5UD9GoItOrjVy xqzYZWfKJl8RNC+k62Z4hsJu9ODb7mPOvt/ffxiLfb9bbQdH4VA9fYoMW1KBPEiv6uJAfF HAY7C7utsLEOcdgnFbqRYi2Sf0k0ENZXNMlr6E/TMSGE1ohcrfjpWHFMtvbb0guCdphsn/ Hzf4IR3Vhs6o9EZPLTiBlzLt9RVAF6UuEDYdnWsoVXzC8vAdGu2Qtkkw1FFhAQiSvtrPAD WeE3vZOT/Cu8K8vG6v58e+2x/UEZOvm9G8QAEFyxp3bXxvb5lRAmlqcujrsO2g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wj6XW6zqtzKKd; Mon, 12 Aug 2024 08:06:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47C863GK048520; Mon, 12 Aug 2024 08:06:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47C863DB048517; Mon, 12 Aug 2024 08:06:03 GMT (envelope-from git) Date: Mon, 12 Aug 2024 08:06:03 GMT Message-Id: <202408120806.47C863DB048517@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dima Panov Subject: git: dbf3e16ba2f4 - main - devel/libdispatch: update to 5.10.1 release (+) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fluffy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dbf3e16ba2f4e3752b14a67270caed69fbe53da1 Auto-Submitted: auto-generated The branch main has been updated by fluffy: URL: https://cgit.FreeBSD.org/ports/commit/?id=dbf3e16ba2f4e3752b14a67270caed69fbe53da1 commit dbf3e16ba2f4e3752b14a67270caed69fbe53da1 Author: Dima Panov AuthorDate: 2024-08-12 08:04:37 +0000 Commit: Dima Panov 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 -.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 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 #ifdef __ANDROID__ #include @@ -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