Package Details: swift-bin 6.0.1-1

Git Clone URL: https://aur.archlinux.org/swift-bin.git (read-only, click to copy)
Package Base: swift-bin
Description: Binary builds of the Swift programming language
Upstream URL: https://www.swift.org/
Keywords: apple language swift swiftlang
Licenses: Apache
Provides: swift-language
Replaces: swift-language-bin
Submitter: ashleyis
Maintainer: susurri
Last Packager: susurri
Votes: 87
Popularity: 1.52
First Submitted: 2015-12-04 17:31 (UTC)
Last Updated: 2024-09-27 17:51 (UTC)

Dependencies (5)

Required by (16)

Sources (2)

Pinned Comments

Latest Comments

« First ‹ Previous 1 .. 4 5 6 7 8 9 10 11 12 13 14 .. 16 Next › Last »

refi.64 commented on 2018-05-02 21:47 (UTC)

@tierriminator: Hmm...two questions:

  • What version of glibc are you using? (Try running pacman -Qi glibc.)
  • You're on X64, right?

tierriminator commented on 2018-04-30 13:50 (UTC)

After installation I just get segfaults when trying to run any provided utility

bartekb81 commented on 2018-04-28 08:15 (UTC)

You might get linker warnings when trying to run swift or swift-built binaries after upgrading to glibc 2.27. My patch for the qldv tool (used in PKGBUILD): https://github.com/kirbyfan64/qldv/pull/1

refi.64 commented on 2018-04-22 02:10 (UTC)

maximaman: Sorry about that! It should be fixed now. (I didn't use the patch, though, because I didn't realize it had been attached...)

maximaman commented on 2018-04-21 13:32 (UTC)

Here's a patch which fixes the build of the latest version:

diff --git a/PKGBUILD b/PKGBUILD
index 347027a..0a47d7e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,9 +1,8 @@
 # Maintainer: Ryan Gonzalez <rymg19 at gmail dot com>
 # Contributor: Frederic Bezies <fredbezies at gmail dot com>, youngunix <>

-_version=4.1
 pkgname=swift-bin
-pkgver=${_version//-/.}
+pkgver=4.1
 pkgrel=2
 pkgdesc="Official binary builds of the Swift programming language."
 arch=('x86_64')
@@ -17,8 +16,8 @@ validpgpkeys=('5E4DF843FB065D7F7E24FBA2EF5430F071E1B235')
 provides=('swift-language' 'lldb')
 replaces=('swift-language-bin')
 source=(
-"https://swift.org/builds/swift-${_version}-release/ubuntu1604/swift-${_version}-RELEASE/swift-${_version}-RELEASE-ubuntu16.04.tar.gz"
-"https://swift.org/builds/swift-${_version}-release/ubuntu1604/swift-${_version}-RELEASE/swift-${_version}-RELEASE-ubuntu16.04.tar.gz.sig"
+"https://swift.org/builds/swift-${pkgver}-release/ubuntu1604/swift-${pkgver}-RELEASE/swift-${pkgver}-RELEASE-ubuntu16.04.tar.gz"
+"https://swift.org/builds/swift-${pkgver}-release/ubuntu1604/swift-${pkgver}-RELEASE/swift-${pkgver}-RELEASE-ubuntu16.04.tar.gz.sig"
 )
 sha256sums=('bd11d422d466dc8fc149e52c4a4a94aa56dc5f03520f482fba5cd7e58f15bbc4'
             'SKIP')
@@ -28,7 +27,7 @@ package() {
     mkdir -p "${target}"

     # Copy extracted files
-    cp -Ppr "${srcdir}/swift-${_version}-RELEASE"*/usr/* "$target"
+    cp -Ppr "${srcdir}/swift-${pkgver}-RELEASE"*/usr/* "$target"
     rm -rf "${target}/local"

     # Permission fix
@@ -40,7 +39,7 @@ package() {
         ln -s ../lib/swift/bin/"`basename "$file"`" "${pkgdir}/usr/bin"
     done
     ln -s swift/lib/libsourcekitdInProc.so "${pkgdir}/usr/lib"
-    chmod +x swift/lib/libsourcekitdInProc.so
+    chmod +x ${target}/lib/libsourcekitdInProc.so

     # Yuck! patching libedit and libcurl SONAMEs
     find "${target}/bin" -type f -exec sed -i 's/libedit\.so\.2/libedit\.so\.0/g' {} \;

RemoteAdmin commented on 2018-04-21 10:36 (UTC)

I can't build the latest version. It fails with

chmod: cannot access 'swift/lib/libsourcekitdInProc.so': No such file or directory

refi.64 commented on 2018-03-29 20:36 (UTC)

Swift 4.1 was just released, so before everyone starts asking, this package will be updated either later today or tomorrow.

refi.64 commented on 2018-03-14 20:48 (UTC)

Latest package release cleans up quite a few things, and the bubblewrap dependency has been dropped.

In addition, I created an icu55-staticlibs package: https://aur.archlinux.org/packages/icu55-staticlibs

If you install this, you'll be able to statically link the Swift stdlib. Well, except for libdispatch, which doesn't come with static libraries.

refi.64 commented on 2018-02-19 21:50 (UTC)

@h313 Done!

h313 commented on 2018-02-19 01:44 (UTC)

Could you add lldb into provides?