folding
The source is a legitimate project tarball from the BSC's official tools subdomain, building the project's own code; the non-whitelisted host is plausibly project-owned, and no untrusted executable is run.
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 source is a legitimate project tarball from the BSC's official tools subdomain, building the project's own code; the non-whitelisted host is plausibly project-owned, and no untrusted executable is run.
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:11
source=("https://ftp.tools.bsc.es/$pkgname/$pkgname-${pkgver%.*}-src.tar.bz2"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Joan Bruguera Micó <joanbrugueram@gmail.com>
pkgname='folding'
pkgdesc='Combined instrumentation and sampling for instantaneous metric evolution with low overhead (from BSC).'
pkgver='1.4.2.20250211'
pkgrel='2'
arch=('x86_64')
url='https://www.bsc.es/discover-bsc/organisation/scientific-structure/performance-tools'
license=('LGPL-2.1-or-later')
depends=(boost qt5-base libbsctools r clang python)
makedepends=(gcc-fortran)
source=("https://ftp.tools.bsc.es/$pkgname/$pkgname-${pkgver%.*}-src.tar.bz2"
python3-ports.patch)
sha512sums=(6cfcf562cc056d7135c42313640ff63432096c725dab34f79ea6e13a929ab60b6b1cf2075248a8b49c9218d59709d314155ada179221d136c13a1f1df7c8cd17
f62af324cfe585605dbdfdb87fa7877cb794ba854c1445193710f22ce3cb92effcfcb7c6b8e32286f927bd0804478580b6358b62f15cba789359862bc0589aa1)
prepare() {
cd "$srcdir/$pkgname-${pkgver%.*}"
# WORKAROUND: The configure/make scripts check if a static version (.a) of the libbsctools libraries
# are installed, and fails to detect libbsctools if they aren't.
# Since we're going to link against the dynamic version (.so) as is typical in Arch,
# hack it up to check for the dynamic version consistently instead
sed -i 's/\.a/.so/g' config/libbsctools.m4
autoreconf -i -f -I config
# WORKAROUND: Fix some scripts that still only work with Python 2
patch -Np1 -i "$srcdir/python3-ports.patch"
}
build() {
cd "$srcdir/$pkgname-${pkgver%.*}"
# NOTE: The following optional features are NOT enabled:
# * LaTeX documentation
./configure \
--prefix=/usr \
--with-libbsctools=/usr
make
}
package() {
cd "$srcdir/$pkgname-${pkgver%.*}"
make prefix="$pkgdir/usr/" install
# FIXME: Why are those libraries from libbsctools copied to the package directory when installing?
rm "${pkgdir}/usr/lib/libparavertraceconfig.so"
rm "${pkgdir}/usr/lib/libparavertraceparser.so"
}
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 |