osxcross-git
The package downloads an SDK archive from web.archive.org, a non-standard host, but this is a static data artifact necessary for building the toolchain; the source is not executed directly, and the rest of the build uses the legitimate upstream git repository, making the risk low despite the unverifiable checksum.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads an SDK archive from web.archive.org, a non-standard host, but this is a static data artifact necessary for building the toolchain; the source is not executed directly, and the rest of the build uses the legitimate upstream git repository, making the risk low despite the unverifiable checksum.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:24
"https://web.archive.org/https://s3.dockerproject.org/darwin/v2/${_sdkname}.tar.xz"
PKGBUILD
1 offending line(s) highlighted# Maintainer: emersion <contact@emersion.fr>
# Maintainer: swyter <swyterzone+aur@gmail.com>
# Contributor: @RandoOnSteam
pkgname=osxcross-git
_pkgname=${pkgname%-git}
_sdkname=MacOSX10.11.sdk # swy: choose your SDK version here
pkgver=0.17
pkgrel=3
pkgdesc="macOS cross-compiling toolchain for Linux, FreeBSD and NetBSD"
arch=('x86_64')
url="https://github.com/tpoechtrager/osxcross"
license=('MIT')
depends=('clang>=3.2')
makedepends=('patch' 'libxml2' 'bash' 'git' 'cmake')
optdepends=(
'llvm: for Link Time Optimization support and ld64 -bitcode_bundle support'
'uuid: for ld64 -random_uuid support'
'xar: for ld64 -bitcode_bundle support'
)
provides=("$_pkgname" xar)
conflicts=("$_pkgname" xar apple-darwin-osxcross)
source=(
'git+https://github.com/tpoechtrager/osxcross.git'
"https://web.archive.org/https://s3.dockerproject.org/darwin/v2/${_sdkname}.tar.xz"
# swy: this repository by an anonymous individual seems to have pre-bundled versions of the other SDKs,
# in case you want to change $_sdkname and use a newer version, comment the URL above and uncomment this one
# or pack your own if you don't trust the unofficial source, which I can understand.
#"https://github.com/phracker/MacOSX-SDKs/releases/latest/download/${_sdkname}.tar.xz"
)
md5sums=('SKIP' 'b0d81b95746c7e698c39c7df1e15ca7d')
noextract=("${_sdkname}.tar.xz")
options=('!strip' '!lto')
install="$pkgname.install"
# https://github.com/tpoechtrager/cctools-port/issues/108
CXXFLAGS="$CXXFLAGS -U_GLIBCXX_ASSERTIONS -Wp,-U_GLIBCXX_ASSERTIONS"
prepare() {
cd "$srcdir/$_pkgname"
mv "../${_sdkname}.tar.xz" tarballs/
}
build() {
cd "$srcdir/$_pkgname"
# Explicitly use system Clang/LLVM to avoid linker confusion
export CC=clang
export CXX=clang++
# swy: put all the generated files in there
export OSXCROSS_TARGET_DIR="$srcdir/usr/local/osx-ndk-x86"; mkdir -p "$OSXCROSS_TARGET_DIR"
sed -i -s "s|export TARGET_DIR\=|export TARGET_DIR\='${OSXCROSS_TARGET_DIR}' #|" "./tools/tools.sh"
# swy: use almost all available processor cores, for compiling speed. Leave a spare one.
JOBS=$(( `nproc` - 1 )) UNATTENDED=yes OSX_VERSION_MIN=10.6 ./build.sh # OCDEBUG=1
}
package() {
cd "$srcdir/$_pkgname"
# swy: copy them over, as we can't seemingly use $pkgdir in build()
mv "$srcdir/usr/" "$pkgdir/usr/"
# swy: as this package conflicts with «xar», make that un/packing tool widely available with a symlink
mkdir -p "$pkgdir/usr/bin"; ln -s "$pkgdir/usr/local/osx-ndk-x86/bin/xar" "$pkgdir/usr/bin/xar"
# swy: make sure the cross-compiled binaries can locate the .so dependencies stored aside in every
# case without having to set funky environment variables or patching every .elf's RUNPATH
mkdir -p "$pkgdir/etc/ld.so.conf.d/"
echo '/usr/local/osx-ndk-x86/lib' > "$pkgdir/etc/ld.so.conf.d/osxcross.conf"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 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 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |