1 |
1 |
# Copyright 1999-2023 Gentoo Authors
|
2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
3 |
3 |
|
4 |
|
EAPI="7"
|
|
4 |
EAPI="8"
|
5 |
5 |
SUBSLOT="18"
|
6 |
6 |
|
7 |
7 |
JAVA_PKG_OPT_USE="jdbc"
|
... | ... | |
9 |
9 |
inherit systemd flag-o-matic prefix toolchain-funcs \
|
10 |
10 |
multiprocessing java-pkg-opt-2 cmake
|
11 |
11 |
|
12 |
|
# Patch version
|
13 |
|
PATCH_SET="https://github.com/hydrapolic/gentoo-dist/raw/master/mariadb/mariadb-10.6.10-patches-01.tar.xz"
|
14 |
|
|
|
12 |
HOMEPAGE="https://mariadb.org/"
|
15 |
13 |
SRC_URI="mirror://mariadb/${PN}-${PV}/source/${P}.tar.gz
|
16 |
|
${PATCH_SET[@]}"
|
|
14 |
https://github.com/hydrapolic/gentoo-dist/raw/master/mariadb/mariadb-10.6.13-patches-01.tar.xz"
|
17 |
15 |
|
18 |
|
HOMEPAGE="https://mariadb.org/"
|
19 |
16 |
DESCRIPTION="An enhanced, drop-in replacement for MySQL"
|
20 |
17 |
LICENSE="GPL-2 LGPL-2.1+"
|
21 |
18 |
SLOT="$(ver_cut 1-2)/${SUBSLOT:-0}"
|
... | ... | |
27 |
24 |
|
28 |
25 |
RESTRICT="!bindist? ( bindist ) !test? ( test )"
|
29 |
26 |
|
30 |
|
REQUIRED_USE="
|
31 |
|
jdbc? ( extraengine server !static )
|
|
27 |
REQUIRED_USE="jdbc? ( extraengine server !static )
|
32 |
28 |
?? ( tcmalloc jemalloc )
|
33 |
|
static? ( yassl !pam )
|
34 |
|
test? ( extraengine perl server xml )
|
35 |
|
"
|
|
29 |
static? ( yassl !pam )"
|
36 |
30 |
|
37 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
|
31 |
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
38 |
32 |
|
39 |
33 |
# Shorten the path because the socket path length must be shorter than 107 chars
|
40 |
34 |
# and we will run a mysql server during test phase
|
... | ... | |
55 |
49 |
jemalloc? ( dev-libs/jemalloc:0= )
|
56 |
50 |
kerberos? ( virtual/krb5 )
|
57 |
51 |
kernel_linux? (
|
58 |
|
sys-process/procps:0=
|
59 |
52 |
dev-libs/libaio:0=
|
|
53 |
sys-libs/liburing:=
|
|
54 |
sys-process/procps:0=
|
60 |
55 |
)
|
61 |
56 |
server? (
|
62 |
57 |
app-arch/bzip2
|
... | ... | |
111 |
106 |
!dev-db/mariadb:10.5
|
112 |
107 |
!dev-db/mariadb:10.7
|
113 |
108 |
!dev-db/mariadb:10.8
|
|
109 |
!dev-db/mariadb:10.9
|
|
110 |
!dev-db/mariadb:10.10
|
|
111 |
!dev-db/mariadb:10.11
|
|
112 |
!dev-db/mariadb:11.0
|
114 |
113 |
!<virtual/mysql-5.6-r11
|
115 |
114 |
!<virtual/libmysqlclient-18-r1
|
116 |
115 |
selinux? ( sec-policy/selinux-mysql )
|
... | ... | |
130 |
129 |
# dev-perl/DBD-mysql is needed by some scripts installed by MySQL
|
131 |
130 |
PDEPEND="perl? ( >=dev-perl/DBD-mysql-2.9004 )"
|
132 |
131 |
|
|
132 |
QA_CONFIG_IMPL_DECL_SKIP=(
|
|
133 |
# These don't exist on Linux
|
|
134 |
pthread_threadid_np
|
|
135 |
getthrid
|
|
136 |
)
|
|
137 |
|
133 |
138 |
mysql_init_vars() {
|
134 |
139 |
MY_SHAREDSTATEDIR=${MY_SHAREDSTATEDIR="${EPREFIX}/usr/share/mariadb"}
|
135 |
140 |
MY_SYSCONFDIR=${MY_SYSCONFDIR="${EPREFIX}/etc/mysql"}
|
... | ... | |
212 |
217 |
eapply "${WORKDIR}"/mariadb-patches
|
213 |
218 |
eapply "${FILESDIR}"/${PN}-10.6.11-gssapi.patch
|
214 |
219 |
eapply "${FILESDIR}"/${PN}-10.6.11-include.patch
|
215 |
|
eapply "${FILESDIR}"/${PN}-10.6.11-gcc-13.patch
|
|
220 |
eapply "${FILESDIR}"/${PN}-10.6.12-gcc-13.patch
|
216 |
221 |
|
217 |
222 |
eapply_user
|
218 |
223 |
|