Package Details: swift-bin 5.1.1-3

Git Clone URL: https://aur.archlinux.org/swift-bin.git (read-only)
Package Base: swift-bin
Description: Official binary builds of the Swift programming language.
Upstream URL: https://swift.org
Keywords: apple language swift swiftlang
Licenses: Apache
Conflicts: swift-language-git
Provides: swift-language
Replaces: swift-language-bin
Submitter: ashleyis
Maintainer: refi.64
Last Packager: refi.64
Votes: 58
Popularity: 1.37
First Submitted: 2015-12-04 17:31
Last Updated: 2019-10-28 18:32

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 ... Next › Last »

bartekb81 commented on 2018-04-28 08:15

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

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

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

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

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

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

@h313 Done!

h313 commented on 2018-02-19 01:44

Could you add lldb into provides?

RemoteAdmin commented on 2018-02-18 07:48

Sorry to complain, but you also forgot to update the .SRCINFO ;)

12 hours    Update pkgrel   Ryan Gonzalez
13 hours    Update .gitignore   Ryan Gonzalez
13 hours    Forgot to commit... Ryan Gonzalez

refi.64 commented on 2018-02-17 19:45

@wezm Sorry, that should be fixed now. I somehow managed to miss committing a small but necessary change that therefore broke swiftc.