libdispatch-6.1

This commit is contained in:
uglyside
2025-04-05 11:48:42 +03:00
parent 140ac1bfe8
commit 6fca27f18f
4 changed files with 24 additions and 43 deletions
+11 -15
View File
@@ -6,17 +6,16 @@
from pisi.actionsapi import shelltools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import mesontools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
j = "-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_THREAD_LIBS_INIT='-lpthread' \
-DCMAKE_HAVE_THREADS_LIBRARY=ON \
-DCMAKE_USE_PTHREADS_INIT=ON \
-DBUILD_TESTING=OFF \
-B_build -LA \
"
j = ''.join([
' -DCMAKE_INSTALL_PREFIX=/usr',
' -DCMAKE_BUILD_TYPE=Release',
' -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON',
' -DBUILD_TESTING=OFF',
' -Bbuild -G Ninja -L '
])
def setup():
shelltools.export("CC", "clang")
@@ -24,12 +23,9 @@ def setup():
cmaketools.configure(j)
def build():
shelltools.cd("_build")
cmaketools.make()
mesontools.build()
def install():
shelltools.cd("_build")
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("../CONTRIBUTING.md", "../INSTALL.md", "../README.md", "../TESTING.md")
mesontools.install()
pisitools.dodoc("LICENSE")
@@ -1,11 +0,0 @@
--- 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
@@ -1,10 +0,0 @@
--- 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>)
+13 -7
View File
@@ -3,7 +3,7 @@
<PISI>
<Source>
<Name>libdispatch</Name>
<Homepage>https://apple.github.io/swift-corelibs-libdispatch/</Homepage>
<Homepage>https://swiftlang.github.io/swift-corelibs-libdispatch/</Homepage>
<Packager>
<Name>Pisilinux Community</Name>
<Email>admin@pisilinux.org</Email>
@@ -12,17 +12,17 @@
<IsA>library</IsA>
<Summary>Grand Central Dispatch.</Summary>
<Description>Grand Central Dispatch (GCD or libdispatch) provides comprehensive support for concurrent code execution on multicore hardware.</Description>
<Archive sha1sum="d4be580d2aa6f7d2d066216a41035c853f73dd2b" type="targz">
https://github.com/apple/swift-corelibs-libdispatch/archive/refs/tags/swift-5.5-RELEASE.tar.gz
<Archive sha1sum="fd6cda567e682bc46cafe91d07fc34c545f610f6" type="targz">
https://github.com/swiftlang/swift-corelibs-libdispatch/archive/refs/tags/swift-6.1-RELEASE.tar.gz
</Archive>
<BuildDependencies>
<Dependency>cmake</Dependency>
<Dependency>ninja</Dependency>
<Dependency>llvm-clang</Dependency>
<Dependency>llvm-clang-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="0">avoid-libkqueue.patch</Patch>
<Patch level="0">remove-werror.patch</Patch>
<!-- <Patch level="1"></Patch> -->
</Patches>
</Source>
@@ -33,8 +33,7 @@
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share</Path>
</Files>
</Package>
@@ -49,6 +48,13 @@
</Package>
<History>
<Update release="5">
<Date>2025-04-05</Date>
<Version>6.1</Version>
<Comment>Version bump.</Comment>
<Name>fury</Name>
<Email>uglyside@yandex.ru</Email>
</Update>
<Update release="4">
<Date>2022-11-25</Date>
<Version>5.5</Version>