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")
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
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-08-31 07:46:16 | Medium | 3 |
| 2026-08-31 07:44:47 | Medium | 2 |