[arch-commits] Commit in libdispatch/repos (4 files)

Sven-Hendrik Haase svenstaro at gemini.archlinux.org
Tue Feb 1 04:12:51 UTC 2022


    Date: Tuesday, February 1, 2022 @ 04:12:51
  Author: svenstaro
Revision: 1121613

archrelease: copy trunk to community-x86_64

Added:
  libdispatch/repos/community-x86_64/
  libdispatch/repos/community-x86_64/PKGBUILD
    (from rev 1121612, libdispatch/trunk/PKGBUILD)
  libdispatch/repos/community-x86_64/avoid-libkqueue.patch
    (from rev 1121612, libdispatch/trunk/avoid-libkqueue.patch)
  libdispatch/repos/community-x86_64/remove-werror.patch
    (from rev 1121612, libdispatch/trunk/remove-werror.patch)

-----------------------+
 PKGBUILD              |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 avoid-libkqueue.patch |   11 +++++++++++
 remove-werror.patch   |   10 ++++++++++
 3 files changed, 69 insertions(+)

Copied: libdispatch/repos/community-x86_64/PKGBUILD (from rev 1121612, libdispatch/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-02-01 04:12:51 UTC (rev 1121613)
@@ -0,0 +1,48 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
+# Contributor: Adrian Perez de Castro <aperez at igalia.com>
+pkgname=libdispatch
+pkgver=5.5.0
+pkgrel=1
+pkgdesc='Comprehensive support for concurrent code execution on multicore hardware'
+arch=('x86_64')
+url=https://apple.github.io/swift-corelibs-libdispatch
+license=('Apache')
+depends=('glibc')
+makedepends=('git' 'clang' 'cmake' 'ninja')
+provides=('libblocksruntime')
+source=("${pkgname}::git+https://github.com/apple/swift-corelibs-libdispatch.git#tag=swift-${pkgver%.0}-RELEASE"
+        'remove-werror.patch'
+        'avoid-libkqueue.patch')
+sha512sums=('SKIP'
+            'd7d05ff6fa2ece40fea51e97f1af04e25ae9c2b55246fa2d753c446cff380262e611f9abb5112b7c7c94730362f0d06e0ccd867477c9470d1154e9c65e540529'
+            '9f954538eee6ca63170c9fcf28cbcc090392360157c03bb33783789182102854ab344b432ff9f5603b873cb2540ffecf83458be559757eb094286cb41d9ba9ea')
+
+prepare () {
+	cd "${pkgname}"
+	patch -p0 < "${srcdir}/remove-werror.patch"
+	patch -p0 < "${srcdir}/avoid-libkqueue.patch"
+}
+
+build () {
+	cd "${pkgname}"
+    export CC=clang
+    export CXX=clang
+	cmake \
+        -Bbuild \
+        -GNinja \
+		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DBlocksRuntime_INCLUDE_DIR=/usr/include \
+		-DBlocksRuntime_LIBRARIES=/usr/lib/libBlocksRuntime.so
+	ninja -C build
+}
+
+check () {
+	cd "${pkgname}"
+    ninja -C build test
+}
+
+package () {
+	cd "${pkgname}"
+	DESTDIR="${pkgdir}" ninja -C build install
+}

Copied: libdispatch/repos/community-x86_64/avoid-libkqueue.patch (from rev 1121612, libdispatch/trunk/avoid-libkqueue.patch)
===================================================================
--- community-x86_64/avoid-libkqueue.patch	                        (rev 0)
+++ community-x86_64/avoid-libkqueue.patch	2022-02-01 04:12:51 UTC (rev 1121613)
@@ -0,0 +1,11 @@
+--- tests/dispatch_test.c.orig
++++ tests/dispatch_test.c
+@@ -30,7 +30,7 @@
+ #include <stdio.h>
+ #if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
+ #include <unistd.h>
+-#if __has_include(<sys/event.h>)
++#if __has_include(<sys/event.h>) && !defined(__linux__)
+ #define HAS_SYS_EVENT_H 1
+ #include <sys/event.h>
+ #else

Copied: libdispatch/repos/community-x86_64/remove-werror.patch (from rev 1121612, libdispatch/trunk/remove-werror.patch)
===================================================================
--- community-x86_64/remove-werror.patch	                        (rev 0)
+++ community-x86_64/remove-werror.patch	2022-02-01 04:12:51 UTC (rev 1121613)
@@ -0,0 +1,10 @@
+--- cmake/modules/DispatchCompilerWarnings.cmake.orig	2020-05-12 13:13:59.619689872 +0300
++++ cmake/modules/DispatchCompilerWarnings.cmake	2020-05-12 13:13:35.216171428 +0300
+@@ -2,7 +2,6 @@
+ if("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
+   # TODO: someone needs to provide the msvc equivalent warning flags
+ else()
+-  add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Werror>)
+   add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wall>)
+   add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-Wextra>)
+ 



More information about the arch-commits mailing list