diff options
Diffstat (limited to 'swift-lang.spec')
-rw-r--r-- | swift-lang.spec | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/swift-lang.spec b/swift-lang.spec index d01e900..894f0a2 100644 --- a/swift-lang.spec +++ b/swift-lang.spec @@ -30,6 +30,8 @@ Patch0: change-lldb-location.patch Patch1: no-ninja-build.patch Patch2: clangloc.patch Patch3: compiler-rt-fuzzer.patch +Patch4: gettid.patch +Patch5: swift-unwrapped.patch BuildRequires: clang BuildRequires: cmake @@ -116,6 +118,14 @@ mv swift-xcode-playground-support-swift-%{swifttag} swift-xcode-playground-suppo # Fixes an issue with using std::thread in a vector in compiler-rt %patch3 -p0 +# Fixes issue with local, static copy of gettid() function colliding with +# the glibc version +%patch4 -p0 + +# Patch for handling optional issue with pthreads functions in Swift file +# in the package mananger +%patch5 -p0 + %build export VERBOSE=1 @@ -160,6 +170,8 @@ ln -fs %{_bindir}/swift %{buildroot}%{_libexecdir}/swift-lldb/swift mkdir -p %{buildroot}/usr/lib/swift cp -r %{_builddir}/usr/lib/swift/* %{buildroot}/usr/lib/swift +rm %{buildroot}/usr/lib/swift/clang +cp -r %{_builddir}/usr/lib/clang %{buildroot}/usr/lib/swift ln -fs /usr/lib/swift %{buildroot}/usr/lib/swift-lldb/swift chmod 0755 %{buildroot}/usr/lib/swift/linux/libswiftDispatch.so chmod 0755 %{buildroot}/usr/lib/swift/linux/libFoundation.so |