bisheng-compiler

MEDIUM
maintainer legendt 0 votes scanned 2026-08-31 07:46:16.480028
View on AUR
Why flagged

Installs a prebuilt binary RPM from repo.huaweicloud.com (Huawei's official package mirror), which is plausibly the project's own infrastructure but is an unverifiable prebuilt executable bundle; the checksum is present and specific, reducing swap risk, but the package is a closed prebuilt binary toolchain from a non-standard host with few votes, warranting medium caution.

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:13 source=("bisheng-compiler-${pkgver}-1.${_hce}.x86_64.rpm::https://repo.huaweicloud.com/hce/3.0/os/x86_64/Packages/bisheng-compiler-${pkgver}-1.${_hce}.x86_64.rpm")
Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Medium AI review llm_review

An AI model (anthropic/claude-sonnet-4.6) reviewed this and agrees it is MEDIUM (confidence 70%): Installs a prebuilt binary RPM from repo.huaweicloud.com (Huawei's official package mirror), which is plausibly the project's own infrastructure but is an unverifiable prebuilt executable bundle; the checksum is present and specific, reducing swap risk, but the package is a closed prebuilt binary toolchain from a non-standard host with few votes, warranting medium caution.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Wensheng Tang <sp3478 at gmail dot com>
2pkgname=bisheng-compiler
3pkgver=4.2.0
4_hce=hce3
5pkgrel=1
6pkgdesc="毕昇编译器:华为基于 LLVM 17 的 C/C++/Fortran 工具链(clang/flang/lld)"
7arch=('x86_64')
8url="https://www.hikunpeng.com/developer/devkit/compiler/bisheng"
9license=('Apache-2.0 WITH LLVM-exception' 'custom')
10depends=('gcc-libs' 'zlib')
11options=('!strip' 'staticlibs' '!debug')
12# 上游只提供预编译二进制(HCE yum rpm),无从源码构建流程
13source=("bisheng-compiler-${pkgver}-1.${_hce}.x86_64.rpm::https://repo.huaweicloud.com/hce/3.0/os/x86_64/Packages/bisheng-compiler-${pkgver}-1.${_hce}.x86_64.rpm")
14sha256sums=('1e7be43315d960515d6527b60c57528d0a645bcaef95cc00d7cb495baeae4502')
15noextract=("bisheng-compiler-${pkgver}-1.${_hce}.x86_64.rpm")
16
17_prefix="/opt/bisheng-compiler"
18
19package() {
20 cd "${srcdir}"
21 # 只取工具链本体,丢弃 HCE 的 /etc/dim /etc/ima 完整性清单
22 bsdtar -xf "bisheng-compiler-${pkgver}-1.${_hce}.x86_64.rpm" ./usr/local/bisheng-compiler
23
24 install -dm755 "${pkgdir}${_prefix%/*}"
25 cp -a "usr/local/bisheng-compiler" "${pkgdir}${_prefix}"
26
27 # 环境脚本(二进制含 RPATH \$ORIGIN/../lib,无需 LD_LIBRARY_PATH,仅设 PATH)
28 install -Dm644 /dev/stdin "${pkgdir}${_prefix}/env.sh" <<EOF
29# source 本文件以使用毕昇编译器 ${pkgver}(LLVM 17)
30# 注意:会把 bisheng 的 clang 放到 PATH 最前,与系统 clang 互斥
31export BISHENG_COMPILER_ROOT="${_prefix}"
32export PATH="\${BISHENG_COMPILER_ROOT}/bin:\${PATH}"
33export MANPATH="\${BISHENG_COMPILER_ROOT}/share/man:\${MANPATH}"
34EOF
35
36 install -Dm644 "${pkgdir}${_prefix}/include/llvm/Support/LICENSE.TXT" \
37 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.TXT"
38}
39

Scan history

Scanned at (UTC)SeverityRules
2026-08-31 07:46:16 Medium 3
2026-08-31 07:44:47 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