swift-bin

MEDIUM
maintainer susurri 95 votes scanned 2026-10-30 09:55:25.758986
View on AUR
Why flagged

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

Triggered rules

Medium source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:19 source_x86_64=("https://download.swift.org/swift-$pkgver-release/ubi10/swift-$pkgver-RELEASE/swift-$pkgver-RELEASE-ubi10.tar.gz")

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Susurri <susurrus dot silent at gmail dot com>
2# Contributor: Miten <git dot pub at icloud dot com>
3# Contributor: Ryan Gonzalez <rymg19 at gmail dot com>
4# Contributor: Frederic Bezies <fredbezies at gmail dot com>, youngunix <>
5
6pkgname=swift-bin
7pkgver=6.4.2
8pkgrel=1
9pkgdesc="Binary builds of the Swift programming language"
10arch=('x86_64' 'aarch64')
11url="https://www.swift.org/"
12license=('apache')
13depends=('util-linux-libs' 'libxml2-legacy' 'ncurses')
14makedepends=('patchelf')
15optdepends=('python312: required for REPL')
16options=('!strip')
17provides=('swift-language')
18replaces=('swift-language-bin')
19source_x86_64=("https://download.swift.org/swift-$pkgver-release/ubi10/swift-$pkgver-RELEASE/swift-$pkgver-RELEASE-ubi10.tar.gz")
20source_aarch64=("https://download.swift.org/swift-$pkgver-release/ubi10-aarch64/swift-$pkgver-RELEASE/swift-$pkgver-RELEASE-ubi10-aarch64.tar.gz")
21sha256sums_x86_64=('d2663c735fd2a5a6d2a004a5701f77df14ff93b9e5ea54815e8616832058bfbf')
22sha256sums_aarch64=('236a49a0e848a6359937044ec125896f76a4f5284c99a954468e3bb93429c258')
23
24package() {
25 _swift_root="/usr/lib/swift/usr"
26 find_elf_only() {
27 find "${pkgdir}${_swift_root}" \
28 -executable -type f \
29 '(' -path '*/bin/*' -o -name '*.so*' ')' \
30 -not '(' -name '*.py' -o -name 'hwasan_symbolize' ')' \
31 "$@"
32 }
33
34 _archsuffix=""
35 if [[ $CARCH == "aarch64" ]]; then
36 _archsuffix="-aarch64"
37 fi
38 mkdir -p "${pkgdir}${_swift_root}"
39 cp -Ppr "${srcdir}/swift-$pkgver-RELEASE-ubi10${_archsuffix}"/usr/* "${pkgdir}${_swift_root}"
40
41 # Symlink the desired binaries to /usr/bin
42 mkdir -p "${pkgdir}/usr/bin"
43 for bin in sourcekit-lsp swift swiftc; do
44 ln -s "${_swift_root}/bin/$bin" "${pkgdir}/usr/bin/$bin"
45 done
46
47 # Patch the binaries to use the changed ncurses names
48 patchelf=(patchelf)
49 for lib in ncurses panel form; do
50 patchelf+=(--replace-needed "lib${lib}.so.6" "lib${lib}w.so")
51 done
52 find_elf_only -exec "${patchelf[@]}" {} \;
53
54 install -dm755 "${pkgdir}/etc/ld.so.conf.d"
55 echo '${_swift_root}/lib/swift/linux' >> "${pkgdir}/etc/ld.so.conf.d/swift.conf"
56}
57

Changes since previous scan

--- PKGBUILD @ 2026-10-14 00:06
+++ PKGBUILD @ 2026-10-30 09:55
@@ -4,7 +4,7 @@
# Contributor: Frederic Bezies <fredbezies at gmail dot com>, youngunix <>
pkgname=swift-bin
-pkgver=6.4.1
+pkgver=6.4.2
pkgrel=1
pkgdesc="Binary builds of the Swift programming language"
arch=('x86_64' 'aarch64')
@@ -18,8 +18,8 @@
replaces=('swift-language-bin')
source_x86_64=("https://download.swift.org/swift-$pkgver-release/ubi10/swift-$pkgver-RELEASE/swift-$pkgver-RELEASE-ubi10.tar.gz")
source_aarch64=("https://download.swift.org/swift-$pkgver-release/ubi10-aarch64/swift-$pkgver-RELEASE/swift-$pkgver-RELEASE-ubi10-aarch64.tar.gz")
-sha256sums_x86_64=('180ca7843cd092f2bcce230ab59c3b025159a41e81696e6543f349405f34d321')
-sha256sums_aarch64=('632c82f08b48bebd7e66e5b43bb30f9c6dce51a3c1ac5c60c01aa08c9645cf5d')
+sha256sums_x86_64=('d2663c735fd2a5a6d2a004a5701f77df14ff93b9e5ea54815e8616832058bfbf')
+sha256sums_aarch64=('236a49a0e848a6359937044ec125896f76a4f5284c99a954468e3bb93429c258')
package() {
_swift_root="/usr/lib/swift/usr"

Scan history

Scanned at (UTC)SeverityRules
2026-10-30 09:55:25 Medium 1
2026-10-14 00:06:47 Clean 2
2026-10-13 11:16:23 Medium 1
2026-09-17 00:27:14 Clean 2
2026-09-16 01:20:46 Medium 1
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion