pascal-fc

LOW
maintainer laura7089 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The package builds from a legitimate project-owned Git repository and includes a documentation-only ZIP from a university host; the latter is non-executable data, so unverifiable source is low risk.

Triggered rules

Low AI review downgraded a static finding 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 builds from a legitimate project-owned Git repository and includes a documentation-only ZIP from a university host; the latter is non-executable data, so unverifiable source is low risk.

1 higher static finding superseded - not the current verdict (shown for transparency)
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:13 "$pkgname-$pkgver-gnu.zip::https://www-users.york.ac.uk/~ab38/pfc/pfc-pc.zip"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Laura Demkowicz-Duffy
2
3pkgname=pascal-fc
4pkgver=5
5pkgrel=2
6pkgdesc="An implementation of pascal with extra constructs for teaching concurrent programming"
7arch=('x86_64')
8url="https://www-users.york.ac.uk/~ab38/pf.html"
9license=('GPL-2.0-or-later')
10depends=(bash)
11makedepends=(git fpc ghostscript patchelf)
12source=("$pkgname-$pkgver-fpc::git+https://github.com/lexbailey/Pascal-FC#commit=b1bd078511879f8b678c8f7395d727953415926f"
13 "$pkgname-$pkgver-gnu.zip::https://www-users.york.ac.uk/~ab38/pfc/pfc-pc.zip"
14 'install_script.patch')
15md5sums=('f122e04b509c26896cb2493af815f8c8'
16 '01478053aa44a6c4c4cfe82540386df8'
17 '3884ea9df562df762d19be18b0349885')
18noextract=($pkgname-$pkgver-gnu.zip)
19
20prepare() {
21 cd "$pkgname-$pkgver-fpc"
22 patch --forward --strip=1 --input="$srcdir/install_script.patch"
23 mkdir -p "$srcdir/$pkgname-$pkgver-gnu"
24 cd "$srcdir/$pkgname-$pkgver-gnu"
25 bsdtar -x -f ../$pkgname-$pkgver-gnu.zip
26}
27
28build() {
29 cd "$pkgname-$pkgver-fpc"
30 # unwrap LDFLAGS from -Wl, syntax
31 LDFLAGS_UNWRAPPED="$(echo "$LDFLAGS" \
32 | sed 's/-z[ ,]/-z/g' \
33 | sed 's/-Wl,//g' \
34 | sed 's/,/ /g' \
35 )"
36 # add the -k prefix to all of them
37 FPC_LDFLAGS="-k$(echo "$LDFLAGS_UNWRAPPED" | sed 's/[[:space:]]\+/ -k/g')"
38 # enable debugging if it's in CFLAGS
39 if [[ "$CFLAGS" =~ ".*-g.*" ]]; then
40 DEBUGFLAGS="-g"
41 fi
42 FPC_FLAGS="$DEBUGFLAGS $FPC_LDFLAGS -k-pie -k-zshstk -XS"
43 make "FPC_FLAGS=$FPC_FLAGS" all
44 # patch the interpreter since FPC seems to assume the existence of
45 # /lib/ld64.so.1
46 patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 pint pfccomp
47
48 cd "$srcdir/$pkgname-$pkgver-gnu/doc"
49 ps2pdf lrm.ps
50 ps2pdf pc_ug.ps
51}
52
53check() {
54 echo "Running PCSem example..."
55 ./$pkgname-$pkgver-fpc/pfccomp \
56 "$pkgname-$pkgver-gnu/ex/sems/pcsem.pfc" listing objfile
57}
58
59package() {
60 # install executables
61 cd "$pkgname-$pkgver-fpc"
62 _fpcver=$(fpc -iV)
63 install -Dm0755 -t "$pkgdir/usr/bin" pfc pfccomp pint
64 install -Dm0644 -t "$pkgdir/usr/lib/fpc/$_fpcver/units/$arch-linux/$pkgname" pfccomp.o pint.o
65
66 # install documentation
67 cd "$srcdir/$pkgname-$pkgver-gnu/doc"
68 install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" lrm.pdf pc_ug.pdf
69 cd "$pkgdir/usr/share/doc/$pkgname"
70 ln -sr lrm.pdf language_reference_manual.pdf
71 ln -sr pc_ug.pdf user_guide_for_pc_compatibles.pdf
72}
73

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion