Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libdispatch for openSUSE:Factory checked in at 2022-10-15 16:37:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libdispatch (Old) and /work/SRC/openSUSE:Factory/.libdispatch.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libdispatch" Sat Oct 15 16:37:47 2022 rev:5 rq:1011005 version:5.6.3 Changes: -------- --- /work/SRC/openSUSE:Factory/libdispatch/libdispatch.changes 2022-07-03 18:26:56.604739870 +0200 +++ /work/SRC/openSUSE:Factory/.libdispatch.new.2275/libdispatch.changes 2022-10-15 16:40:37.978611279 +0200 @@ -1,0 +2,11 @@ +Fri Oct 14 14:51:51 UTC 2022 - Predrag Ivanovi?? <predi...@mts.rs> + +- Update to versio 5.6.3 + * No upstream provided changelog. + * Add prevent_unused.patch to fix the build with clang > 13 + Prevent unused but set variable warning + (https://github.com/apple/swift-corelibs-libdispatch/pull/764) + * Resolve rpmlint "E: libdispatch-devel no-binary" error by + declaring libdispatch-devel as noarch. + +------------------------------------------------------------------- New: ---- prevent_unused.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libdispatch.spec ++++++ --- /var/tmp/diff_new_pack.JxOjIN/_old 2022-10-15 16:40:38.594612759 +0200 +++ /var/tmp/diff_new_pack.JxOjIN/_new 2022-10-15 16:40:38.598612769 +0200 @@ -16,9 +16,9 @@ # -%define reltag 5.6.2-RELEASE +%define reltag 5.6.3-RELEASE Name: libdispatch -Version: 5.6.2 +Version: 5.6.3 Release: 0 Summary: Apple's Grand Central Dispatch library License: Apache-2.0 @@ -26,6 +26,7 @@ URL: https://github.com/apple/swift-corelibs-libdispatch Source0: https://github.com/apple/swift-corelibs-libdispatch/archive/swift-%{reltag}.tar.gz#/corelibs-libdispatch.tar.gz Source1: libdispatch-rpmlintrc +Patch0: prevent_unused.patch # set library versions Patch2: soversion.patch BuildRequires: chrpath @@ -60,6 +61,7 @@ Requires: libdispatch1_3 = %{version}-%{release} # Wrong location for manpages in older version Conflicts: libdispatch < %{version}-%{release} +BuildArch: noarch %description devel The %{name}-devel package contains libraries and header files for ++++++ corelibs-libdispatch.tar.gz ++++++ ++++++ prevent_unused.patch ++++++ >From 915f25141a7c57b6a2a3bc8697572644af181ec5 Mon Sep 17 00:00:00 2001 From: Ben Barham <ben_bar...@apple.com> Date: Mon, 6 Jun 2022 10:45:27 -0700 Subject: [PATCH] Prevent unused but set variable warning `_dispatch_preemption_yield(++spins)` has an expansion to `(void)++spins`, but this isn't considered a use of `spins` in Clang. Add a `(void)spins` to prevent an unused variable warning. Resolves rdar://93596069. --- src/shims/yield.c | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/shims/yield.c b/src/shims/yield.c index d0c5fff92..cf1f5cefd 100644 --- a/src/shims/yield.c +++ b/src/shims/yield.c @@ -25,6 +25,11 @@ static void * __DISPATCH_WAIT_FOR_ENQUEUER__(void **ptr) { int spins = 0; + // Different platforms may expand `_dispatch_preemption_yield` to a + // no-op, but `(void)++spins` is not considered a use like + // `(void)spins` is. Add a use to avoid unused var warnings. + (void)spins; + void *value; while ((value = os_atomic_load(ptr, relaxed)) == NULL) { _dispatch_preemption_yield(++spins);