android-riscv64-bzip2
LOW
maintainer hipersayan_x
0 votes
scanned 2026-09-17 00:27:14.276658
Why flagged
The source is a well-known, legitimate bzip2 tarball from fossies.org, a reputable archive site; building from this source is standard practice and poses no inherent 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 source is a well-known, legitimate bzip2 tarball from fossies.org, a reputable archive site; building from this source is standard practice and poses no inherent 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:17
source=("https://fossies.org/linux/misc/bzip2-${pkgver}.tar.gz"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
2
3
_android_arch=riscv64
4
5
pkgname=android-${_android_arch}-bzip2
6
pkgver=1.0.8
7
pkgrel=5
8
pkgdesc="A high-quality data compression program (Android ${_android_arch})"
9
arch=('any')
10
url="http://sources.redhat.com/bzip2"
11
license=("custom")
12
groups=(android-bzip2)
13
depends=('android-ndk')
14
makedepends=('android-environment'
15
'android-pkg-config')
16
options=(!strip !buildflags staticlibs !emptydirs)
17
source=("https://fossies.org/linux/misc/bzip2-${pkgver}.tar.gz"
18
'bzip2.pc')
19
md5sums=('67e051268d0c475ea773822f7500d0e5'
20
'e52e68e2d3fd3cb77fc1a80e28742938')
21
22
prepare() {
23
cd "${srcdir}/bzip2-${pkgver}"
24
source android-env ${_android_arch}
25
26
cp ../bzip2.pc bzip2.pc
27
sed "s|@PREFIX@|${ANDROID_PREFIX}|" -i bzip2.pc
28
sed "s|@VERSION@|${pkgver}|" -i bzip2.pc
29
}
30
31
build() {
32
cd "${srcdir}/bzip2-${pkgver}"
33
source android-env ${_android_arch}
34
35
export CFLAGS="${CFLAGS} -g -fPIC -Wall -Winline -D_FILE_OFFSET_BITS=64"
36
37
make libbz2.a \
38
CC="${ANDROID_CC}" \
39
AR="${ANDROID_AR}" \
40
RANLIB="${ANDROID_RANLIB}" \
41
PREFIX="${ANDROID_PREFIX}" \
42
CFLAGS="${CFLAGS}" \
43
$MAKEFLAGS
44
cmd="${CC} ${LDFLAGS} -shared -o libbz2.so *.o"
45
echo "${cmd}"
46
${cmd}
47
}
48
49
package() {
50
cd "${srcdir}/bzip2-${pkgver}"
51
source android-env ${_android_arch}
52
53
install -m755 -d "${pkgdir}/${ANDROID_PREFIX_INCLUDE}"
54
install -m644 bzlib.h "${pkgdir}/${ANDROID_PREFIX_INCLUDE}/"
55
install -m755 -d "${pkgdir}/${ANDROID_PREFIX_LIB}"
56
install -m644 libbz2.a "${pkgdir}/${ANDROID_PREFIX_LIB}/"
57
install -m644 libbz2.so "${pkgdir}/${ANDROID_PREFIX_LIB}/"
58
install -m755 -d "${pkgdir}/${ANDROID_PREFIX_LIB}/pkgconfig"
59
install -m644 bzip2.pc "${pkgdir}/${ANDROID_PREFIX_LIB}/pkgconfig/"
60
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
61
${ANDROID_STRIP} -g "$pkgdir"/${ANDROID_PREFIX_LIB}/*.a
62
}
63
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |