android-x86-64-mariadb
The source is a MariaDB tarball from a legitimate mirror (rsync.osuosl.org) used for reliability; building from official project source with proper PGP verification is standard practice, despite the non-whitelisted host.
Triggered rules
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 MariaDB tarball from a legitimate mirror (rsync.osuosl.org) used for reliability; building from official project source with proper PGP verification is standard practice, despite the non-whitelisted host.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:25
source=("https://rsync.osuosl.org/pub/mariadb/mariadb-${pkgver}/source/mariadb-${pkgver}.tar.gz"{,.asc}
PKGBUILD
1 offending line(s) highlighted# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Christian Hesse <eworm@archlinux.org>
_android_arch=x86-64
pkgname=android-${_android_arch}-mariadb
pkgdesc="MariaDB client library (Android ${_android_arch})"
pkgver=12.1.2
pkgrel=2
arch=('any')
license=('LGPL2.1')
url='https://mariadb.org/'
groups=('android-mariadb')
depends=("android-${_android_arch}-curl"
"android-${_android_arch}-openssl"
"android-${_android_arch}-zlib"
"android-${_android_arch}-zstd")
makedepends=('android-cmake')
optdepends=("android-${_android_arch}-curl: for ha_s3 plugin")
options=(!strip !buildflags staticlibs !emptydirs)
# The default links with mirror redirection fail for signatures, specific
# mirrors may be out of date every now and then. Let's use the upstream
# rsync source via https and hope it does not hurt them too much.
# https://mariadb.com/kb/en/library/mirror-sites-for-mariadb/
source=("https://rsync.osuosl.org/pub/mariadb/mariadb-${pkgver}/source/mariadb-${pkgver}.tar.gz"{,.asc}
'0004-Dont-read-PEM-keys.patch')
md5sums=('ccddcc219867b833521c279eb739191d'
'SKIP'
'05ce29a22db5d51618eb62fd01cf77ed')
validpgpkeys=('177F4010FE56CA3336300305F1656F24C74CD1D8') # MariaDB Signing Key <signing-key@mariadb.org>
prepare() {
cd "${srcdir}/mariadb-${pkgver}"
source android-env ${_android_arch}
patch -Np1 -i ../0004-Dont-read-PEM-keys.patch
sed -i 's|"lib/mariadb"|"lib"|g' libmariadb/cmake/install.cmake
}
build() {
cd "${srcdir}/mariadb-${pkgver}/libmariadb"
source android-env ${_android_arch}
android-${_android_arch}-cmake \
-B build \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_EXTERNAL_ZLIB=ON \
-DWITH_ZSTD=system \
-DWITH_UNIT_TESTS=OFF \
-DZLIB_BUILD_EXAMPLES=OFF \
-DINSTALL_MANDIR=share/man \
-DOPENSSL_ROOT_DIR="${ANDROID_PREFIX}" \
-DOPENSSL_INCLUDE_DIR="${ANDROID_PREFIX_INCLUDE}" \
-DOPENSSL_CRYPTO_LIBRARY="${ANDROID_PREFIX_LIB}/libcrypto.so" \
-DOPENSSL_SSL_LIBRARY="${ANDROID_PREFIX_LIB}/libssl.so" \
-DZSTD_LIBRARIES="${ANDROID_PREFIX_LIB}/libzstd.so" \
-DZSTD_INCLUDE_DIRS="${ANDROID_PREFIX_INCLUDE}" \
-DCURL_INCLUDE_DIR="${ANDROID_PREFIX_INCLUDE}" \
-DCURL_LIBRARY="${ANDROID_PREFIX_LIB}/libcurl.so" \
-Dpkgcfg_lib_PC_CURL_curl="${ANDROID_PREFIX_LIB}/pkgconfig/libcurl.pc"
make -C build $MAKEFLAGS
}
package() {
cd "${srcdir}/mariadb-${pkgver}/libmariadb"
source android-env ${_android_arch}
make -C build DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/${ANDROID_PREFIX_SHARE}"
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so
${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a
install -vDm 644 COPYING.LIB -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}
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 |