bisheng-compiler15
This package installs a prebuilt binary toolchain (clang/flang/lld) from mirrors.huaweicloud.com, which is Huawei's own mirror infrastructure and plausibly official for this Kunpeng/BiSheng compiler project, but it is still an unverifiable prebuilt executable bundle from a non-standard host; the sha256 checksum is present which mitigates swap risk, lowering concern, but the nature of installing a full prebuilt compiler toolchain from a vendor mirror warrants medium caution.
Triggered rules
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=("BiShengCompiler-${pkgver}-x86-linux.tar.gz::https://mirrors.huaweicloud.com/kunpeng/archive/compiler/bisheng_compiler/BiShengCompiler-${pkgver}-x86-linux.tar.gz")
llm_review
An AI model (anthropic/claude-sonnet-4.6) reviewed this and agrees it is MEDIUM (confidence 75%): This package installs a prebuilt binary toolchain (clang/flang/lld) from mirrors.huaweicloud.com, which is Huawei's own mirror infrastructure and plausibly official for this Kunpeng/BiSheng compiler project, but it is still an unverifiable prebuilt executable bundle from a non-standard host; the sha256 checksum is present which mitigates swap risk, lowering concern, but the nature of installing a full prebuilt compiler toolchain from a vendor mirror warrants medium caution.
PKGBUILD
1 offending line(s) highlighted# Maintainer: Wensheng Tang <sp3478 at gmail dot com>
pkgname=bisheng-compiler15
pkgver=3.2.0.1
pkgrel=1
pkgdesc="毕昇编译器 3.2:华为基于 LLVM 15 的 C/C++/Fortran 工具链(clang/flang/lld)"
arch=('x86_64')
url="https://www.hikunpeng.com/developer/devkit/compiler/bisheng"
license=('Apache-2.0 WITH LLVM-exception' 'custom')
depends=('gcc-libs' 'zlib')
options=('!strip' 'staticlibs' '!debug')
conflicts=()
# 上游只提供预编译二进制(Kunpeng 归档 x86 tarball),无从源码构建流程
source=("BiShengCompiler-${pkgver}-x86-linux.tar.gz::https://mirrors.huaweicloud.com/kunpeng/archive/compiler/bisheng_compiler/BiShengCompiler-${pkgver}-x86-linux.tar.gz")
sha256sums=('7b6268a45ef0a9ca5af970718fa1ffd58d7d64960130c3c9bf42b749b2a0f43a')
_prefix="/opt/bisheng-compiler15"
_srcdir="BiShengCompiler-${pkgver}-x86-linux"
package() {
cd "${srcdir}"
install -dm755 "${pkgdir}${_prefix%/*}"
cp -a "${_srcdir}" "${pkgdir}${_prefix}"
# 上游 tarball 内文件权限为 0550/0640(无 other 位),非 root 用户无法执行;
# 放开 group/other 的读与执行(可执行文件 0555、普通文件 0644)
chmod -R go+rX "${pkgdir}${_prefix}"
# 环境脚本(二进制含 RPATH \$ORIGIN/../lib,仅需设 PATH)
install -Dm644 /dev/stdin "${pkgdir}${_prefix}/env.sh" <<EOF
# source 本文件以使用毕昇编译器 ${pkgver}(LLVM 15)
# 注意:会把 bisheng 的 clang 放到 PATH 最前,与系统 clang / bisheng-compiler 互斥
export BISHENG_COMPILER_ROOT="${_prefix}"
export PATH="\${BISHENG_COMPILER_ROOT}/bin:\${PATH}"
export MANPATH="\${BISHENG_COMPILER_ROOT}/share/man:\${MANPATH}"
EOF
install -Dm644 "${pkgdir}${_prefix}/include/llvm/Support/LICENSE.TXT" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.TXT"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-17 00:21:55 | Medium | 2 |
| 2026-10-16 00:12:47 | Medium | 2 |
| 2026-10-15 00:28:05 | Medium | 2 |
| 2026-10-14 00:06:47 | Medium | 2 |
| 2026-10-13 00:23:45 | Medium | 2 |
| 2026-10-12 00:18:51 | Medium | 2 |
| 2026-10-11 00:26:05 | Medium | 2 |
| 2026-10-10 00:11:52 | Medium | 2 |
| 2026-10-09 00:05:33 | Medium | 2 |
| 2026-10-08 00:28:03 | Medium | 2 |
| 2026-10-07 00:21:34 | Medium | 2 |
| 2026-10-06 00:13:36 | Medium | 2 |
| 2026-10-05 00:08:03 | Medium | 2 |
| 2026-10-04 00:18:08 | Medium | 2 |
| 2026-10-03 00:23:04 | Medium | 2 |
| 2026-10-02 00:00:32 | Medium | 2 |
| 2026-10-01 00:02:06 | Medium | 2 |
| 2026-09-30 00:20:07 | Medium | 2 |
| 2026-09-29 00:07:46 | Medium | 2 |
| 2026-09-28 00:28:32 | Medium | 2 |