factorio-yafc-ce-git
The package downloads Lua source from the official lua.org domain, which is a standard and trusted host for Lua releases; the download is used to build a library locally and is not an untrusted prebuilt binary, so the non-whitelisted host flag is a false positive.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads Lua source from the official lua.org domain, which is a standard and trusted host for Lua releases; the download is used to build a library locally and is not an untrusted prebuilt binary, so the non-whitelisted host flag is a false positive.
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:19
https://www.lua.org/ftp/lua-$_lua_version.tar.gz)
PKGBUILD
1 offending line(s) highlighted# Maintainer: Standa Lukeš <archpkg@exyi.cz>
pkgname=factorio-yafc-ce-git
pkgdesc="Yet Another Factorio Calculator (Community Edition): Powerful calculator/analyser that works with mods"
pkgver=v2.20.0.38.g5523a306
pkgrel=1
arch=(x86_64)
url=https://github.com/Yafc-CE/yafc-ce
license=(GPL)
depends=(sdl2 sdl2_ttf sdl2_image dotnet-runtime-10.0)
makedepends=(git dotnet-sdk-10.0 make gcc)
optdepends=()
provides=()
conflicts=()
options=()
_lua_version=5.2.1
source=($pkgname::git+https://github.com/Yafc-CE/yafc-ce.git
factorio-yafc-ce.desktop factorio-yafc-ce icon.png
https://www.lua.org/ftp/lua-$_lua_version.tar.gz)
sha256sums=('SKIP'
'c6d364d63a902899367a46a91f353c57e19819c91173a6d9c685c2248f65131b'
'8dea6d32f93f4210aab7863ac4e994e3c3b4d6d3873606ff96fc440fcf4329a3'
'2aef2817ffcb8ff2448fd6942d7d7dd3dfa0a7a077427a3fca80c67b0ba20168'
'64304da87976133196f9e4c15250b70f444467b6ed80d7cfd7b3b982b5177be5')
pkgver() {
cd "$srcdir/$pkgname"
git describe --tags --long | sed 's|Release-||;s|[_-]|.|g'
}
prepare() {
cd "$srcdir/$pkgname/Yafc"
# remove pre-compiled binaries provided in the git repo, this is not a -bin package
rm -rf lib
DOTNET_CLI_TELEMETRY_OPTOUT=1 MSBUILDTERMINALLOGGER=off dotnet restore --locked-mode --use-current-runtime
# YAFC needs patched lua version for factorio compatibility
cd "$srcdir/lua-$_lua_version"
patch -p1 -i "$srcdir/$pkgname/lua/liblua.so.patch"
cd "src"
patch -p1 -i "$srcdir/$pkgname/lua/lua-5.2.1.patch"
}
build() {
cd "$srcdir/$pkgname/Yafc"
DOTNET_CLI_TELEMETRY_OPTOUT=1 MSBUILDTERMINALLOGGER=off dotnet publish --no-self-contained --use-current-runtime -o "../publish"
cd "$srcdir/lua-$_lua_version"
make MYCFLAGS="$CFLAGS -fPIC" MYLDFLAGS="$LDFLAGS" linux
cp src/liblua.so "$srcdir/$pkgname/publish/liblua52.so"
}
package() {
cd "$srcdir/$pkgname"
install -d "$pkgdir/usr/lib"
cp -a "$srcdir/$pkgname/publish" "$pkgdir/usr/lib/$pkgname"
install -Dm755 "$srcdir/factorio-yafc-ce" "$pkgdir/usr/bin/factorio-yafc-ce" # launch script adding --roll-forward Major to make it run on newer .NET versions
install -Dm644 "$srcdir/factorio-yafc-ce.desktop" "$pkgdir"/usr/share/applications/factorio-yafc-ce.desktop
install -Dm644 "$srcdir/icon.png" "$pkgdir"/usr/share/icons/hicolor/64x64/apps/yafc-ce.png
}
Changes since previous scan
--- PKGBUILD @ 2026-10-23 00:02+++ PKGBUILD @ 2026-11-01 00:21@@ -2,8 +2,8 @@ pkgname=factorio-yafc-ce-git pkgdesc="Yet Another Factorio Calculator (Community Edition): Powerful calculator/analyser that works with mods"-pkgver=v2.19.0.14.g8506d457-pkgrel=2+pkgver=v2.20.0.38.g5523a306+pkgrel=1 arch=(x86_64) url=https://github.com/Yafc-CE/yafc-ce license=(GPL)Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 21:38:30 | Medium | 1 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |