aocc

MEDIUM
maintainer disc-kuraudo 5 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The package downloads a prebuilt compiler tarball from a non-whitelisted but plausible official host (download.amd.com); while the source is unverifiable due to a dynamically fetched and uncheckable checksum, it is a legitimate AMD product, and the worst case is a compromised compiler toolchain.

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:24 "https://download.amd.com/developer/eula/aocc/aocc-${_major}/aocc-compiler-${pkgver}.tar"
Medium AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 90%): The package downloads a prebuilt compiler tarball from a non-whitelisted but plausible official host (download.amd.com); while the source is unverifiable due to a dynamically fetched and uncheckable checksum, it is a legitimate AMD product, and the worst case is a compromised compiler toolchain.

PKGBUILD

1 offending line(s) highlighted
1# shellcheck disable=SC2034,SC2086,SC2128,SC2148,SC2154,SC2164
2# Maintainer: Toria <ninetailedtori@uwu.gal>
3# Maintainer: Darjan Krijan [https://disc-kuraudo.eu]
4
5url="https://www.amd.com/en/developer/aocc.html"
6_major=5-2
7pkgver=5.2.0
8
9_fetch_data=$(curl -sA 'Mozilla' "${url}") && {
10 _major=$(echo "${_fetch_data}" | grep -oP 'aocc-\K\d+-\d+(?=-eula)' -- | head -1)
11 pkgver=$(echo "${_fetch_data}" | grep -oP 'aocc-compiler-\K\d+\.\d+\.\d+' -- | head -1)
12}
13
14DLAGENTS=("https::/usr/bin/curl -A 'Mozilla' -fLC - --retry 3 --retry-delay 3 -o %o %u")
15pkgname=aocc
16pkgrel=1
17pkgdesc="AMD Optimizing C/C++ Compiler"
18arch=('x86_64')
19license=('custom')
20makedepends=('curl')
21options=('staticlibs' '!strip' 'libtool')
22optdepends=('environment-modules')
23source=(
24 "https://download.amd.com/developer/eula/aocc/aocc-${_major}/aocc-compiler-${pkgver}.tar"
25 "modulefile"
26)
27install=aocc.install
28sha256sums=(
29 "$(echo "${_fetch_data}" | grep -oP '\w{64}(?=</td>)' | sed -n '1p')"
30 '1740216760f755dc031d54f06c29333bca73f728d89a706f405b41e737bfc56f'
31)
32# Default compiler flags
33# This by default sets your flags to CFLAGS, but you may replace them.
34_default_flags="${CFLAGS}"
35
36# path hardcoded in aocc.install. if you change this, change paths there as well
37_aocc_prefix=/opt/aocc
38
39package() {
40 prefix=${pkgdir}${_aocc_prefix}
41 mkdir -p ${prefix}
42
43 cp -rp ${srcdir}/${pkgname}-compiler-${pkgver}/* ${prefix}
44
45 ln -s ${_aocc_prefix}/bin/clang ${prefix}/bin/aocc-clang
46 ln -s ${_aocc_prefix}/bin/clang++ ${prefix}/bin/aocc-clang++
47 ln -s ${_aocc_prefix}/bin/flang ${prefix}/bin/aocc-flang
48
49 # Default flags the compilers should use
50 # This only works together with calling the "aocc-" prefixed symlinks above
51 # Verbose output should read "Configuration file: /opt/aocc/bin/aocc.cfg"
52 echo "${_default_flags}" > ${prefix}/bin/aocc.cfg
53
54 # env-modules (optional)
55 cp ${srcdir}/modulefile ${prefix}
56 mkdir -p ${pkgdir}/etc/modules/modulefiles
57 ln -s ${_aocc_prefix}/modulefile ${pkgdir}/etc/modules/modulefiles/${pkgname}
58}
59

Scan history

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

Report a package

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

0 / 4000
Your suggestion