mroonga

maintainer cosmo0920 · 2 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged The package builds Mroonga as a storage engine for MariaDB, sourcing the code from the official project host (packages.groonga.org) and MariaDB's official rsync mirror; both sources are legitimate project infrastructure, and the build integrates the Mroonga source into a full MariaDB compilation, which is a normal and safe AUR practice.

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 package builds Mroonga as a storage engine for MariaDB, sourcing the code from the official project host (packages.groonga.org) and MariaDB's official rsync mirror; both sources are legitimate project infrastructure, and the build integrates the Mroonga source into a full MariaDB compilation, which is a normal and safe AUR practice.

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=(http://packages.groonga.org/source/mroonga/mroonga-$pkgver.tar.gz
  • PKGBUILD:18 https://rsync.osuosl.org/pub/mariadb/${MYSQL_VERSION}/source/${MYSQL_VERSION}.tar.gz

PKGBUILD

2 offending line(s) highlighted
1# Maintainer: Hiroshi Hatake <cosmo0920.wp[at]gmail.com>
2
3pkgname=mroonga
4pkgver=15.07
5pkgrel=1
6pkgdesc="Fast fulltext search on MySQL(MariaDB bundled Mroonga package)."
7mariadbver=10.11.11
8MYSQL_VERSION=mariadb-${mariadbver}
9arch=('i686' 'x86_64')
10url="http://mroonga.org/"
11license=('LGPL2.1')
12provides=("mysql-clients=$mariadbver" "mysql=$mariadbver" "libmysqlclient=$mariadbver")
13# The default links with mirror redirection fail for signatures, specific
14# mirrors may be out of date every now and then. Let's use the upstream
15# rsync source via https and hope it does not hurt them too much.
16# https://mariadb.com/kb/en/library/mirror-sites-for-mariadb/
17source=(http://packages.groonga.org/source/mroonga/mroonga-$pkgver.tar.gz
18 https://rsync.osuosl.org/pub/mariadb/${MYSQL_VERSION}/source/${MYSQL_VERSION}.tar.gz
19 mariadb.service
20 mariadb-post.sh
21 mariadb-tmpfile.conf
22 remove-private-keyword.patch
23)
24makedepends=('boost' 'bzip2' 'cmake' 'cracklib' 'curl' 'jemalloc' 'judy' 'krb5' 'liburing'
25 'libxcrypt' 'libxml2' 'lz4' 'openssl' 'pcre2' 'systemd' 'zlib' 'zstd' 'xz' 'pkg-config')
26conflicts=('libmariadbclient' 'mariadb-clients' 'mytop' 'mariadb' 'mysql' 'libmysqlclient' 'mysql-clients')
27depends=('liburing' 'libxcrypt' 'libcrypt.so' 'openssl' 'pcre2' 'zlib' 'zstd'
28 'perl' 'inetutils' 'libaio' 'libxml2' 'groonga' 'groonga-normalizer-mysql')
29optdepends=('cutter-test_framework' 'ruby' 'snowball-c')
30
31prepare() {
32 cd $srcdir/mariadb-$mariadbver
33 rm -rf storage/mroonga
34 cd $srcdir
35 mkdir -p $srcdir/mariadb-$mariadbver/storage/mroonga
36 mv $srcdir/mroonga-${pkgver}/* $srcdir/mariadb-$mariadbver/storage/mroonga
37
38 (cd $srcdir/mariadb-$mariadbver
39 patch -p0 < $srcdir/remove-private-keyword.patch
40 )
41}
42
43build() {
44 cd $srcdir/mariadb-$mariadbver
45
46 local _cmake_options=(
47 # build options
48 -DCOMPILATION_COMMENT="Mroonga on AUR"
49 -DCMAKE_BUILD_TYPE=RelWithDebInfo
50 -Wno-dev
51
52 # file paths
53 # /etc
54 -DINSTALL_SYSCONFDIR=/etc
55 -DINSTALL_SYSCONF2DIR=/etc/my.cnf.d
56 # /run
57 -DINSTALL_UNIX_ADDRDIR=/run/mysqld/mysqld.sock
58 # /usr
59 -DCMAKE_INSTALL_PREFIX=/usr
60 # /usr/bin /usr/include
61 -DINSTALL_SCRIPTDIR=bin
62 -DINSTALL_INCLUDEDIR=include/mysql
63 # /usr/lib
64 -DINSTALL_PLUGINDIR=lib/mysql/plugin
65 -DINSTALL_SYSTEMD_UNITDIR=/usr/lib/systemd/system/
66 -DINSTALL_SYSTEMD_SYSUSERSDIR=/usr/lib/sysusers.d/
67 -DINSTALL_SYSTEMD_TMPFILESDIR=/usr/lib/tmpfiles.d/
68 # /usr/share
69 -DINSTALL_SHAREDIR=share
70 -DINSTALL_SUPPORTFILESDIR=share/mysql
71 -DINSTALL_MYSQLSHAREDIR=share/mysql
72 -DINSTALL_DOCREADMEDIR=share/doc/mariadb
73 -DINSTALL_DOCDIR=share/doc/mariadb
74 -DINSTALL_MANDIR=share/man
75 # /var
76 -DMYSQL_DATADIR=/var/lib/mysql
77
78 # default settings
79 -DDEFAULT_CHARSET=utf8mb4
80 -DDEFAULT_COLLATION=utf8mb4_unicode_ci
81
82 # features
83 -DENABLED_LOCAL_INFILE=ON
84 -DPLUGIN_EXAMPLE=NO
85 -DPLUGIN_FEDERATED=NO
86 -DPLUGIN_FEEDBACK=NO
87 -DWITH_EMBEDDED_SERVER=ON
88 -DWITH_EXTRA_CHARSETS=complex
89 -DWITH_JEMALLOC=ON
90 -DWITH_LIBWRAP=OFF
91 -DWITH_PCRE2=system
92 -DWITH_READLINE=ON
93 -DWITH_SSL=system
94 -DWITH_SYSTEMD=yes
95 -DWITH_UNIT_TESTS=OFF
96 -DWITH_ZLIB=system
97 )
98 cmake . "${_cmake_options[@]}"
99
100 make
101}
102
103package() {
104 backup=('etc/mysql/my.cnf')
105 install=mariadb.install
106 cd $srcdir/mariadb-$mariadbver
107
108 install -D -m0644 support-files/mariadb.pc "$pkgdir"/usr/share/pkgconfig/mariadb.pc
109 install -D -m0644 support-files/mysql.m4 "$pkgdir"/usr/share/aclocal/mysql.m4
110
111 make DESTDIR="$pkgdir" install
112
113 # not needed for using Mroonga just for testing.
114 rm -r "$pkgdir"/usr/{mysql-test,sql-bench}
115 rm "$pkgdir"/usr/share/man/man1/mysql-test-run.pl.1
116
117 install -Dm755 ../mariadb-post.sh "$pkgdir"/usr/bin/mysqld-post
118 install -Dm644 ../mariadb.service "$pkgdir"/usr/lib/systemd/system/mysqld.service
119 install -Dm644 ../mariadb-tmpfile.conf "$pkgdir"/usr/lib/tmpfiles.d/mysql.conf
120}
121sha1sums=('85d4266284e03ecb042c2b4da672fb1b639679ef'
122 'a0574a4417e073805bff9a9f757fc950e0eb8a01'
123 '4bc34244fc4b578c155c8cd569d952a97a476f10'
124 '206e9f7ba5357027becc2491e0987442f684d63e'
125 'c2a86c745002923234f9d6d79b3b462d5ab55e8d'
126 '125ea01196b1c4461509f937248610ee2dd15574')
127sha256sums=('04c13efd262e8aa5317d5bc56015aa972757b0fda91ddddab88c7862928243c3'
128 '6f29d4d7e40fc49af4a0fe608984509ef2d153df3cd8afe4359dce3ca0e27890'
129 '2c60dfdc866078a8402d6e18d538e6a1deaa70e1b2410bee5eb209a314d7daa7'
130 '368f9fd2454d80eb32abb8f29f703d1cf9553353fb9e1ae4529c4b851cb8c5dd'
131 '2af318c52ae0fe5428e8a9245d1b0fc3bc5ce153842d1563329ceb1edfa83ddd'
132 'a18931f61b544211cecdca6ccd5110d7790d389cfa04130373167b498aa1ac99')
133

Scan history

Scanned at (UTC)SeverityRules
2026-08-03 00:08:14 LOW 2
2026-08-02 00:16:08 LOW 2
2026-08-01 00:11:18 LOW 2
2026-07-31 00:14:10 LOW 2
2026-07-30 00:17:23 LOW 2
2026-07-29 00:25:53 LOW 2
2026-07-28 00:07:28 LOW 2
2026-07-27 00:24:32 LOW 2
2026-07-26 00:07:32 LOW 2
2026-07-25 00:13:44 LOW 2
2026-07-24 00:02:28 LOW 2
2026-07-23 00:14:47 LOW 2
2026-07-22 00:29:32 LOW 2
2026-07-21 00:24:15 LOW 2
2026-07-20 00:19:49 LOW 2
2026-07-19 00:17:08 LOW 2
2026-07-18 00:14:48 LOW 2
2026-07-17 00:06:16 LOW 2
2026-07-16 00:05:41 LOW 2
2026-07-15 00:09:25 LOW 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion