Package Details: swift-language 5.7.0-1

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://swift.org/
Licenses: Apache2
Provides: swift-language
Submitter: Zrax
Maintainer: soloturn (fanjiang, refi.64, spacecowgirl, medzik)
Last Packager: soloturn
Votes: 42
Popularity: 0.088378
First Submitted: 2016-01-08 23:39 (UTC)
Last Updated: 2022-10-13 20:41 (UTC)

Pinned Comments

soloturn commented on 2020-09-06 22:25 (UTC) (edited on 2021-06-12 17:51 (UTC) by soloturn)

options to install a binary swift are currently two flavors of swift-5.4.1, and one latest from git:

Latest Comments

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

soloturn commented on 2022-07-27 17:11 (UTC) (edited on 2022-07-27 17:11 (UTC) by soloturn)

@tecnotercio, done.

tecnotercio commented on 2022-06-20 18:03 (UTC)

Regarding the problem exposed by @ExperiBassMusic, please change the URL of the "swift-cmark-gfm" library in PKGBUILD to the value below:

"swift-cmark-gfm::git+https://github.com/apple/swift-cmark#branch=release/5.6-gfm"

ExperiBassMusic commented on 2022-06-19 14:00 (UTC) (edited on 2022-06-19 14:01 (UTC) by ExperiBassMusic)

Install fails when cloning swift-cmark:

-> Creating working copy of swift-cmark-gfm git repo...
Cloning into 'swift-cmark-gfm'...
done.
fatal: invalid reference: origin/5.6-gfm

noticing the repo only has a gfm branch, and 5.6-gfm redirects to that branch when visiting the url from a browser.

soloturn commented on 2022-05-23 07:20 (UTC) (edited on 2022-05-23 07:25 (UTC) by soloturn)

medzik, spacecowgirl, added you as co-maintainer. updated bith, this, and swift-language-git to newest versions.

spacecowgirl commented on 2022-04-27 20:07 (UTC)

Problem with the AURs you listed is they are all old builds and swift-bin's REPL is broken. I would like to build from source and am still unable to build because of the issue with being unable to install the files during package because of Arch's security. I'd really appreciate a fix so I can use a newer version of Swift instead of the one's in the AURs you listed.

spacecowgirl commented on 2022-04-23 23:55 (UTC) (edited on 2022-04-24 01:58 (UTC) by spacecowgirl)

Trying the build again thanks for the patches, hopefully it will work. Can you take a look at the issue with your package here? https://github.com/chaotic-aur/packages/issues/799#issuecomment-1080554798

The owner of the repo says Is building swift and moving the files to $pkgdir -- Arch disallows writing to $pkgdir outside the package() function. That's a security measure.

The issue is with the line:

python swift/utils/build-script --preset=buildbot_linux,no_test install_destdir="$pkgdir"

The fix is to get the compiled files copied inside the package function and not build.

Apparently it's preventing their buildbot from doing get automatic builds of both this and swift-language-git. If you can fix this issue we can get automatic builds of the package in the chaotic-aur repo and that'd be much appreciated!!

Update: I cannot get it to build even though it looks succesfull, maybe this is related to the above issue:

[977/977][100%][455.744s] Linking CXX executable bin/lldb
--- Installing llvm ---
+ env DESTDIR=/home/chloe/.cache/paru/clone/swift-language/pkg/swift-language/ /usr/bin/cmake --build /home/chloe/.cache/paru/clone/swift-language/src/build/buildbot_linux/llvm-linux-x86_64 -- install-llvm-cov install-llvm-profdata install-IndexStore install-clang install-clang-resource-headers install-compiler-rt install-clangd install-lld install-LTO
[0/12][  0%][0.000s] cd /home/chloe/.cache/paru/clone/swift-language/src/build/buildbot_linu...che/paru/clone/swift-language/src/build/buildbot_linux/llvm-linux-x86_64/cmake_install.cmake
-- Install configuration: "Release"
CMake Error at cmake_install.cmake:46 (file):
  file cannot create directory:                                                                                                                                                             
  /home/chloe/.cache/paru/clone/swift-language/pkg/swift-language/usr/bin.                                                                                                                  
  Maybe need administrative privileges.                                                                                                                                                     
Call Stack (most recent call first):                                                                                                                                                        
  /home/chloe/.cache/paru/clone/swift-language/src/build/buildbot_linux/llvm-linux-x86_64/tools/cmake_install.cmake:66 (include)                                                            
  /home/chloe/.cache/paru/clone/swift-language/src/build/buildbot_linux/llvm-linux-x86_64/cmake_install.cmake:77 (include)                                                                  


FAILED: tools/llvm-cov/CMakeFiles/install-llvm-cov /home/chloe/.cache/paru/clone/swift-language/src/build/buildbot_linux/llvm-linux-x86_64/tools/llvm-cov/CMakeFiles/install-llvm-cov 
cd /home/chloe/.cache/paru/clone/swift-language/src/build/buildbot_linux/llvm-linux-x86_64/tools/llvm-cov && /usr/bin/cmake -DCMAKE_INSTALL_COMPONENT="llvm-cov" -P /home/chloe/.cache/paru/clone/swift-language/src/build/buildbot_linux/llvm-linux-x86_64/cmake_install.cmake
ninja: build stopped: subcommand failed.
ERROR: command terminated with a non-zero exit status 1, aborting

ERROR: command terminated with a non-zero exit status 1, aborting

==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'swift-language-5.6.0-1': 
error: packages failed to build: swift-language-5.6.0-1
Press any key to continue...

medzik commented on 2022-04-03 16:09 (UTC) (edited on 2022-04-03 16:09 (UTC) by medzik)

I want to build on github actions but I have a problem, it seems that some dependencies are missing. full CI log

soloturn commented on 2022-04-02 11:54 (UTC)

thanks for the hint, fixed the patches.

spacecowgirl commented on 2022-03-25 05:14 (UTC)

I am unable to build it.

-> Creating working copy of swift-nio-ssl git repo...
Cloning into 'swift-nio-ssl'...
done.
Switched to a new branch 'makepkg'
-> Creating working copy of swift-tools-support-core git repo...
Reset branch 'makepkg'
-> Creating working copy of swift-xcode-playground-support git repo...
Cloning into 'swift-xcode-playground-support'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
patching file utils/build-presets.ini
Hunk #1 FAILED at 726.
Hunk #2 succeeded at 830 with fuzz 1 (offset 93 lines).
Hunk #3 succeeded at 843 with fuzz 2 (offset 94 lines).
1 out of 3 hunks FAILED -- saving rejects to file utils/build-presets.ini.rej
==> ERROR: A failure occurred in prepare().
Aborting...
error: failed to build 'swift-language-5.6.0-1':