Package Details: swift-language 5.9.2-2

Git Clone URL: https://aur.archlinux.org/swift-language.git (read-only, click to copy)
Package Base: swift-language
Description: The Swift programming language and debugger
Upstream URL: https://github.com/apple/swift
Licenses: Apache-2.0
Submitter: Zrax
Maintainer: soloturn (fanjiang, refi.64, spacecowgirl, medzik, KyleYe, xiota)
Last Packager: xiota
Votes: 45
Popularity: 0.006411
First Submitted: 2016-01-08 23:39 (UTC)
Last Updated: 2024-01-01 08:14 (UTC)

Sources (35)

Pinned Comments

xiota commented on 2023-12-31 14:56 (UTC) (edited on 2024-01-01 08:28 (UTC) by xiota)

While I was able to build this in a clean chroot, consider this package to be a wip.

  • According to this comment, swift does need swift to build. So if you haven't previously built this package, you'll need aur/swift-bin.

  • This package attempts to install only swift to /usr/lib/swift. Building takes about 15GB. Package is 650MB. Installed size is 2GB.

    • cmark and llvm are built, but not installed. If they are installed, space requirement increases to 20GB, package is 2GB, and installed size 7GB.
    • Above space requirements count only the build tree. Does not include space needed to download and install depends. Does not include temporary files that may have been created and deleted by the build system.
  • This package does not make debug symbols. With debugging enabled, over 70GB would be required to build. I don't know package or install size because I hadn't figured out how to install at that time.

soloturn commented on 2020-09-06 22:25 (UTC) (edited on 2023-02-05 07:39 (UTC) by soloturn)

to speed up check out of the repositories, use shallow or sparse clone, e.g.:

  GITFLAGS="--depth=1" paru -S swift-language

other options to install swift are currently:

  • swift-bin, which repackages tachoknights official released centos8 build: https://aur.archlinux.org/packages/swift-bin/. the install is quick, no hours of waiting until everything is compiled.

  • latest from git, in swift-language-git. there is a binary built with github actions, but this build is not particularly stable, sometimes it uses more resources than github allows, sometimes it fails for a change upstream. the version number is taken out of the official tag on apple/swift main branch: e.g. swift-language-git-swift.DEVELOPMENT.SNAPSHOT.2020.09.28.a.r208.g6651f6e55d4-1-x86_64.pkg.tar.zst. so this one is the development tag from sep 28 + 208 commits, the commit hash is g6651f: aur - https://aur.archlinux.org/packages/swift-language-git. gh-actions: https://github.com/soloturn/swift-aur/releases/tag/latest

there was an 5.4.1 binary build, native arch, by fanjiang, built on GCE: https://github.com/ProfFan/swift-aur/releases

Latest Comments

1 2 3 4 5 6 .. 15 Next › Last »

xiota commented on 2023-12-31 14:56 (UTC) (edited on 2024-01-01 08:28 (UTC) by xiota)

While I was able to build this in a clean chroot, consider this package to be a wip.

  • According to this comment, swift does need swift to build. So if you haven't previously built this package, you'll need aur/swift-bin.

  • This package attempts to install only swift to /usr/lib/swift. Building takes about 15GB. Package is 650MB. Installed size is 2GB.

    • cmark and llvm are built, but not installed. If they are installed, space requirement increases to 20GB, package is 2GB, and installed size 7GB.
    • Above space requirements count only the build tree. Does not include space needed to download and install depends. Does not include temporary files that may have been created and deleted by the build system.
  • This package does not make debug symbols. With debugging enabled, over 70GB would be required to build. I don't know package or install size because I hadn't figured out how to install at that time.

soloturn commented on 2023-10-30 05:55 (UTC) (edited on 2023-10-30 05:59 (UTC) by soloturn)

removed stdint patch for Signals.h. if you could try @xiota please? @KyleYe hope this is for you as well ok? added you to maintainers, so my time constraint will not be your time constraint in future.

soloturn commented on 2023-10-12 04:05 (UTC)

fixed, can you try again please?

Blxck commented on 2023-10-09 02:42 (UTC) (edited on 2023-10-09 02:42 (UTC) by Blxck)

‘’’home/user/.cache/yay/swift-language/PKGBUILD: line 112: llvm-project: No such file or directory’’’

FabioLolix commented on 2023-10-07 08:59 (UTC)

Hello,

  • please remove provides=('swift-language') which is not needed
  • please rename cmark and llvm-project which are forks, download will fail for who is using a common source destination and have already downloaded the original projects

soloturn commented on 2023-05-20 10:57 (UTC) (edited on 2023-05-20 11:01 (UTC) by soloturn)

ok. patched Signals.h, hope this is ok for arm64 as well. the permission issue is general or yay dependent? sometimes i see the pkg dir with weird permission - but i can delete it and after all is normal.

KyleYe commented on 2023-05-15 08:01 (UTC)

should we go back to swift-5.7 at the moment or try to patch it

Both are acceptable for me. And for the arm64 patch, I did not encounter the uintptr_t issue you mention. Instead, I'm working to fix the link issue currently.

soloturn commented on 2023-05-15 06:43 (UTC) (edited on 2023-05-15 07:05 (UTC) by soloturn)

thanks for putting this upstream! should we go back to swift-5.7 at the moment or try to patch it? tachoknight got it building for fedora: https://github.com/tachoknight/swift-lang-packaging-fedora/tree/5.8.