lang/swift6 6.4.0_1 FreeBSD
Powerful, flexible, multiplatform programming language
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
230591a791- License
- APACHE20
- Categories
- lang
Description
Swift is the only language that scales from embedded devices and kernels to apps and cloud infrastructure. It's simple, and expressive, with incredible performance and safety. And it has unmatched interoperability with C and C++.
It's the combination of approachability, speed, safety, and all of Swift's strengths that make it so unique.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | lang/swift6 | 6.4.0_1 |
| GhostBSD | lang/swift6 | 6.3.3 |
Install
Binary package:
pkg install swift6
From the ports tree:
cd /usr/ports/lang/swift6/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= swift6>0:lang/swift6
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | - | 6.4.0_1 | - | - | - |
| FreeBSD:14:quarterly | - | 6.4.0 | n/a | - | - |
| FreeBSD:15:latest | - | 6.4.0_1 | n/a | - | - |
| FreeBSD:15:quarterly | - | 6.4.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | - | 6.4.0_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
rsync: net/rsyncbash: shells/bash
Library 3
libzstd.so: archivers/zstdlibcurl.so: ftp/curllibuuid.so: misc/libuuid
The full lists below include those, and their dependencies in turn.
Build dependencies 34
- archivers/brotli
- archivers/liblz4
- archivers/zstd
- converters/libiconv
- databases/sqlite3
- devel/cmake-core
- devel/gettext-runtime
- devel/jsoncpp
- devel/libedit
- devel/libffi
- devel/libunistring
- devel/libuv
- devel/ninja
- devel/pkgconf
- devel/readline
- devel/xxhash
- dns/libidn2
- dns/libpsl
- ftp/curl
- lang/perl5.42
- lang/python312
- lang/tcl86
- math/libtommath
- math/mpdecimal
- misc/libuuid
- net/rsync
- ports-mgmt/pkg
- print/indexinfo
- security/libssh2
- security/rhash
- shells/bash
- textproc/expat2
- textproc/libxml2
- www/libnghttp2
Run dependencies 22
- archivers/brotli
- archivers/liblz4
- archivers/zstd
- databases/sqlite3
- devel/gettext-runtime
- devel/libedit
- devel/libffi
- devel/libunistring
- devel/readline
- dns/libidn2
- dns/libpsl
- ftp/curl
- lang/python312
- lang/tcl86
- math/libtommath
- math/mpdecimal
- misc/libuuid
- print/indexinfo
- security/libssh2
- textproc/expat2
- textproc/libxml2
- www/libnghttp2
Required by 1
Configuration
Options name: lang_swift
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
- USES
- cmake:indirect gnome libedit ninja:build perl5 pkgconfig python shebangfix sqlite:3 tar:xz
- Service scripts
- none
Files
Manual pages 1
- swift(1)
pkg-plist 2566
- swift6/usr/local/bin/clang
- swift6/usr/local/bin/clang++
- swift6/usr/local/bin/clang-21
- swift6/usr/local/bin/clang-cache
- swift6/usr/local/bin/clang-cl
- swift6/usr/local/bin/clang-cpp
- swift6/usr/local/bin/clangd
- swift6/usr/local/bin/complete-test
- swift6/usr/local/bin/docc
- swift6/usr/local/bin/ld.lld
- swift6/usr/local/bin/ld64.lld
- swift6/usr/local/bin/lld
- swift6/usr/local/bin/lld-link
- swift6/usr/local/bin/lldb
- swift6/usr/local/bin/lldb-argdumper
- swift6/usr/local/bin/lldb-dap
- swift6/usr/local/bin/lldb-moduleimport-test
- swift6/usr/local/bin/lldb-server
- swift6/usr/local/bin/llvm-ar
- swift6/usr/local/bin/llvm-cov
- swift6/usr/local/bin/llvm-nm
- swift6/usr/local/bin/llvm-objcopy
- swift6/usr/local/bin/llvm-objdump
- swift6/usr/local/bin/llvm-profdata
- swift6/usr/local/bin/llvm-ranlib
- swift6/usr/local/bin/llvm-symbolizer
- swift6/usr/local/bin/plutil
- swift6/usr/local/bin/repl_swift
- swift6/usr/local/bin/sdk-module-lists/create-module-lists.sh
- swift6/usr/local/bin/sdk-module-lists/fixed-clang-modules-appletvos.txt
- swift6/usr/local/bin/sdk-module-lists/fixed-clang-modules-common.txt
- swift6/usr/local/bin/sdk-module-lists/fixed-clang-modules-iosmac.txt
- swift6/usr/local/bin/sdk-module-lists/fixed-clang-modules-iphoneos.txt
- swift6/usr/local/bin/sdk-module-lists/fixed-clang-modules-macosx.txt
- swift6/usr/local/bin/sdk-module-lists/fixed-clang-modules-watchos.txt
- swift6/usr/local/bin/sdk-module-lists/fixed-swift-modules-appletvos.txt
- swift6/usr/local/bin/sdk-module-lists/fixed-swift-modules-common.txt
- swift6/usr/local/bin/sdk-module-lists/fixed-swift-modules-iosmac.txt
- swift6/usr/local/bin/sdk-module-lists/fixed-swift-modules-iphoneos.txt
- swift6/usr/local/bin/sdk-module-lists/fixed-swift-modules-macosx.txt
- swift6/usr/local/bin/sdk-module-lists/fixed-swift-modules-watchos.txt
- swift6/usr/local/bin/sdk-module-lists/infer-imports.py
- swift6/usr/local/bin/sourcekit-lsp
- swift6/usr/local/bin/sourcekitd-repl
- swift6/usr/local/bin/sourcekitd-test
- swift6/usr/local/bin/swift
- swift6/usr/local/bin/swift-api-checker.py
- swift6/usr/local/bin/swift-api-digester
- swift6/usr/local/bin/swift-api-dump.py
- swift6/usr/local/bin/swift-autolink-extract
- swift6/usr/local/bin/swift-build
- swift6/usr/local/bin/swift-build-sdk-interfaces
- swift6/usr/local/bin/swift-build-tool
- swift6/usr/local/bin/swift-cache-tool
- swift6/usr/local/bin/swift-compatibility-symbols
- swift6/usr/local/bin/swift-def-to-strings-converter
- swift6/usr/local/bin/swift-demangle
- swift6/usr/local/bin/swift-demangle-yamldump
- swift6/usr/local/bin/swift-driver
- swift6/usr/local/bin/swift-experimental-sdk
- swift6/usr/local/bin/swift-format
- swift6/usr/local/bin/swift-frontend
- swift6/usr/local/bin/swift-function-caller-generator
- swift6/usr/local/bin/swift-help
- swift6/usr/local/bin/swift-ide-test
- swift6/usr/local/bin/swift-package
- swift6/usr/local/bin/swift-package-collection
- swift6/usr/local/bin/swift-package-registry
- swift6/usr/local/bin/swift-plugin-server
- swift6/usr/local/bin/swift-refactor
- swift6/usr/local/bin/swift-reflection-dump
- swift6/usr/local/bin/swift-remoteast-test
- swift6/usr/local/bin/swift-run
- swift6/usr/local/bin/swift-scan-test
- swift6/usr/local/bin/swift-sdk
- swift6/usr/local/bin/swift-serialize-diagnostics
- swift6/usr/local/bin/swift-symbolgraph-extract
- swift6/usr/local/bin/swift-synthesize-interface
- swift6/usr/local/bin/swift-test
- swift6/usr/local/bin/swiftc
- swift6/usr/local/bin/wasm-ld
- swift6/usr/local/include/SourceKit/sourcekitd.h
- swift6/usr/local/include/llvm-c/lto.h
- swift6/usr/local/include/module.modulemap
- swift6/usr/local/include/swift/Runtime/CMakeConfig.h
- swift6/usr/local/include/swift/SwiftRemoteMirror/MemoryReaderInterface.h
- swift6/usr/local/include/swift/SwiftRemoteMirror/Platform.h
- swift6/usr/local/include/swift/SwiftRemoteMirror/SwiftRemoteMirror.h
- swift6/usr/local/include/swift/SwiftRemoteMirror/SwiftRemoteMirrorTypes.h
- swift6/usr/local/include/swift/SwiftRemoteMirror/module.modulemap
- swift6/usr/local/include/swift/bridging
- swift6/usr/local/include/swift/bridging.modulemap
- swift6/usr/local/lib/clang/21/include/__clang_cuda_builtin_vars.h
- swift6/usr/local/lib/clang/21/include/__clang_cuda_cmath.h
- swift6/usr/local/lib/clang/21/include/__clang_cuda_complex_builtins.h
- swift6/usr/local/lib/clang/21/include/__clang_cuda_device_functions.h
- swift6/usr/local/lib/clang/21/include/__clang_cuda_intrinsics.h
- swift6/usr/local/lib/clang/21/include/__clang_cuda_libdevice_declares.h
- swift6/usr/local/lib/clang/21/include/__clang_cuda_math.h
- swift6/usr/local/lib/clang/21/include/__clang_cuda_math_forward_declares.h
The first 100 are listed.
distinfo 54
| File | Size | SHA256 |
|---|---|---|
| swift/swift6-bootstrap-6.3.3-x86_64-unknown-freebsd.tar.xz | 7.075224e+08 | ba845798aa05ffa7b1edc04c58d544e938720740005a776f2adc92bbfa2dfeb8 |
| swift/swift6-bootstrap-6.4.0-x86_64-unknown-freebsd.tar.xz | 7.75580512e+08 | 79b6e6ed31e4c13ff7d2b5fa2f971ec84407193dc6eca7a999bf482d5fb8a268 |
| swift/google-boringssl-0.20250818.0-64-g0226f3046_GH0.tar.gz | 4.7378772e+07 | eb68e22e50bd0255d3a3805122909459fde92b3ccbe1c5e5545b161fc8095f5d |
| swift/swiftlang-swift-cmark-swift-6.4.0-RELEASE_GH0.tar.gz | 308415 | 9af8e991bf20e756edf43d294ed2de7a1595c47d42d2335e3917c629682c8002 |
| swift/swiftlang-indexstore-db-swift-6.4.0-RELEASE_GH0.tar.gz | 819161 | f31f54cd3f0971b122a782e3ce267574f039f1a46005f02fea3ae6012be8ca49 |
| swift/swiftlang-swift-llbuild-swift-6.4.0-RELEASE_GH0.tar.gz | 1.386162e+07 | 4ea396e158eea664deffdf414c93872cc8e512b42bdd4bb29ad4cbdb108097aa |
| swift/swiftlang-llvm-project-swift-6.4.0-RELEASE_GH0.tar.gz | 2.47480995e+08 | 3d2f5b300f3f07dfaea33ad15fbbfc54552325a62551fb15ab1667fc33326e01 |
| swift/swiftlang-sourcekit-lsp-swift-6.4.0-RELEASE_GH0.tar.gz | 830300 | deae16ff60092ccf24d4ee453ef261e7f2cc1b4df730b443c72b7b5ded66286c |
| swift/swiftlang-swift-swift-6.4.0-RELEASE_GH0.tar.gz | 3.8908992e+07 | 8ac51c183d353a5b0f42cf0718f09977bf8723595a99f2218fe7458023cdead7 |
| swift/apple-swift-argument-parser-1.8.2_GH0.tar.gz | 709666 | 62bb12fb84d07d7f9ebbbbae205d32f941bcfecdcebdd09889f6e7f7f96f04ac |
| swift/apple-swift-asn1-1.3.2_GH0.tar.gz | 330311 | 45061bdf808ed138a71b55abc90c8cbff8980b82e5ffd39d86e65a5cbee31241 |
| swift/apple-swift-async-algorithms-1.0.1_GH0.tar.gz | 137973 | fe186f7d8b91288e20e9d46d6a2bfd686051d41bbae719076b13d3bbd3caa2f6 |
| swift/apple-swift-atomics-1.3.1_GH0.tar.gz | 189191 | 3413542ae95c57ad70bdff99d453b177b5e4d886e8a79a3ca0d2572a9088feb0 |
| swift/swiftlang-swift-build-swift-6.4.0-RELEASE_GH0.tar.gz | 3.771078e+06 | 5a7f1f35ae8783ca7d5791f68110dfba663f647307a4fc2e076e325efc603855 |
| swift/apple-swift-certificates-1.10.1_GH0.tar.gz | 605788 | 1002a2aa66ced92dd216b9ed236d9ce8c73f98f02810f39f2437d43ba35d60a0 |
| swift/apple-swift-collections-1.1.6_GH0.tar.gz | 5.628816e+06 | 2f558b33b6eba5b0c263110d7cb1a11b59d63059e845dc1984c65359e36f29da |
| swift/swiftlang-swift-corelibs-blocksruntime-swift-6.4.0-RELEASE_GH0.tar.gz | 16415 | 2978714e421c697dbd8de30d24adcc64b4b7426dbff8ab1fe27474830e83ea98 |
| swift/swiftlang-swift-corelibs-foundation-swift-6.4.0-RELEASE_GH0.tar.gz | 2.349951e+06 | 4d54f115ca4f24f77117c97e64760f6379bb45745a5c79d52a2877fe84c6ad5c |
| swift/swiftlang-swift-corelibs-libdispatch-swift-6.4.0-RELEASE_GH0.tar.gz | 600377 | af15fcc3da4514def6454ed672b82daa9ac1d40cb1d08fb69a6611cb8fc104c6 |
| swift/swiftlang-swift-corelibs-xctest-swift-6.4.0-RELEASE_GH0.tar.gz | 93588 | c7fc1058e766270155652311794a660f4b62ca9f8db125d2222e2a8695d9975a |
Commit history 5
| Date | Commit | Credits | Log message |
|---|---|---|---|
230591a791 |
Piotr Kubaj | lang/swift6: add powerpc64le support Two bootstrap tarballs are needed because the long double ABI changed in
16.0: freebsd14 works on 14.x and on 15.x with misc/compat14x, freebsd16 is
for 16.0 and newer. Both were built with the port's own BOOTSTRAP_MODE.
PR: 299357
Approved by: tagattie (maintainer) |
|
781076cce2 |
Hiroki Tagato | lang/swift6: Fix compilation of math functions when using c++ interoperability mode The following code failed to build if it was compiled with c++
interoperability mode:
```
import Foundation
print(log2(2.0))
```
with the following error:
error: reference to declaration 'log2' broken by a context change; the declaration kind of 'log2' changed since building 'Foundation', it was in 'SwiftGlibc' and now a candidate is found only in 'Foundation'
This commit fixes it. |
|
14d51afd21 |
Hiroki Tagato | lang/swift6: lang/swift6: Update to 6.4.0 Swift 6.4 has removed the ability for bootstrapping without a
pre-built host swift compiler. So now the port requires a bootstrap
swift toolchain regardless of the build mode.
The installation paths have been changed from
${PREFIX}/swift6/{bin,include,lib,...} to
${PREFIX}/swift6/usr/local/{bin,include,lib,...} to follow the
standard Swift toolchain layout.
Release Announcement: https://www.swift.org/blog/swift-6.4-released/
Reported by: GitHub (watch releases) |
|
e3d0a712f2 |
Hiroki Tagato | lang/swift6: Unbreak build with clang 21 Clang 21 appears to have a regression in wchar.h handling when c++20
modules funcationality is enabled. (Swift compiler uses clang's
modules function under the hood.)
This is a workaround to avoid a compilation error by defining the
macro _WCHAR_H_CPLUSPLUS_98_CONFORMANCE_ to 1 before the compiler
reads the system wchar.h.
PR: 296000
Reported by: Tomoaki AOKI <[email protected]>
Tested by: Tomoaki AOKI <[email protected]> |
|
cf00e34027 |
Hiroki Tagato | lang/swift6: Update to 6.3.3 Release Announcement: https://forums.swift.org/t/announcing-swift-6-3-3/87888
Reported by: GitHub (watch releases) |