extra/mariadb to 11.4.3-1

This commit is contained in:
Kevin Mihelich 2024-08-14 10:24:08 +00:00
parent 82400ff73a
commit 3a2d0ae840
3 changed files with 30 additions and 18 deletions

View file

@ -1,6 +1,6 @@
pkgbase = mariadb pkgbase = mariadb
pkgdesc = Fast SQL database server, derived from MySQL pkgdesc = Fast SQL database server, derived from MySQL
pkgver = 11.4.2 pkgver = 11.4.3
pkgrel = 1 pkgrel = 1
url = https://mariadb.org/ url = https://mariadb.org/
arch = x86_64 arch = x86_64
@ -24,7 +24,7 @@ pkgbase = mariadb
makedepends = zlib makedepends = zlib
makedepends = zstd makedepends = zstd
makedepends = xz makedepends = xz
source = mariadb::git+https://github.com/MariaDB/server.git#tag=mariadb-11.4.2?signed source = mariadb::git+https://github.com/MariaDB/server.git#tag=mariadb-11.4.3?signed
source = git+https://github.com/MariaDB/mariadb-connector-c.git source = git+https://github.com/MariaDB/mariadb-connector-c.git
source = git+https://github.com/facebook/rocksdb.git source = git+https://github.com/facebook/rocksdb.git
source = git+https://github.com/codership/wsrep-lib.git source = git+https://github.com/codership/wsrep-lib.git
@ -33,7 +33,7 @@ pkgbase = mariadb
source = git+https://github.com/mariadb-corporation/mariadb-columnstore-engine.git source = git+https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
source = 0001-arch-specific.patch source = 0001-arch-specific.patch
validpgpkeys = 177F4010FE56CA3336300305F1656F24C74CD1D8 validpgpkeys = 177F4010FE56CA3336300305F1656F24C74CD1D8
sha256sums = da69b2dee70ebf567cb5ff241a07bac2d45076ddf7465da85d1c17589f4b886d sha256sums = 3f182bc2011b7419df613308cb969374389b9ca8aa81539c515e3ba9c8695d07
sha256sums = SKIP sha256sums = SKIP
sha256sums = SKIP sha256sums = SKIP
sha256sums = SKIP sha256sums = SKIP
@ -63,21 +63,21 @@ pkgname = mariadb-libs
pkgname = mariadb-clients pkgname = mariadb-clients
pkgdesc = MariaDB client tools pkgdesc = MariaDB client tools
depends = mariadb-libs=11.4.2 depends = mariadb-libs=11.4.3
depends = jemalloc depends = jemalloc
depends = ncurses depends = ncurses
provides = mysql-clients=11.4.2 provides = mysql-clients=11.4.3
conflicts = mysql-clients conflicts = mysql-clients
pkgname = mariadb pkgname = mariadb
pkgdesc = Fast SQL database server, derived from MySQL pkgdesc = Fast SQL database server, derived from MySQL
install = mariadb.install install = mariadb.install
depends = mariadb-clients=11.4.2 depends = mariadb-clients=11.4.3
depends = bzip2 depends = bzip2
depends = coreutils
depends = libxml2 depends = libxml2
depends = lz4 depends = lz4
depends = systemd-libs depends = systemd-libs
depends = libxml2
depends = zstd depends = zstd
optdepends = cracklib: for cracklib plugin optdepends = cracklib: for cracklib plugin
optdepends = curl: for ha_s3 plugin optdepends = curl: for ha_s3 plugin
@ -86,8 +86,8 @@ pkgname = mariadb
optdepends = perl-dbd-mariadb: for mariadb-hotcopy, mariadb-convert-table-format and mariadb-setpermission optdepends = perl-dbd-mariadb: for mariadb-hotcopy, mariadb-convert-table-format and mariadb-setpermission
optdepends = python-mysqlclient: for myrocks_hotbackup optdepends = python-mysqlclient: for myrocks_hotbackup
optdepends = xz: lzma provider optdepends = xz: lzma provider
provides = mariadb-server provides = mariadb-server=11.4.3
provides = mysql=11.4.2 provides = mysql=11.4.3
conflicts = mysql conflicts = mysql
options = emptydirs options = emptydirs
backup = etc/my.cnf backup = etc/my.cnf

View file

@ -4,10 +4,17 @@
# - disable mroonga storage engine (doesn't build on ARM) # - disable mroonga storage engine (doesn't build on ARM)
# - build v7 with -j1 # - build v7 with -j1
# ➡️ The mariadb package will be latest stable (GA / General Availability)
# release, regardless of rolling or long-term release.
# ➡️ The mariadb-lts package will be latest long-term release not packaged
# in mariadb. So mariadb-lts will always be behind mariadb, please do not
# flag out-of-date too early!
# https://mariadb.com/kb/en/mariadb-server-release-dates/
pkgbase=mariadb pkgbase=mariadb
pkgname=('mariadb-libs' 'mariadb-clients' 'mariadb' 'mytop') pkgname=('mariadb-libs' 'mariadb-clients' 'mariadb' 'mytop')
pkgdesc='Fast SQL database server, derived from MySQL' pkgdesc='Fast SQL database server, derived from MySQL'
pkgver=11.4.2 pkgver=11.4.3
pkgrel=1 pkgrel=1
arch=('x86_64') arch=('x86_64')
license=('GPL') license=('GPL')
@ -23,7 +30,7 @@ source=("mariadb::git+https://github.com/MariaDB/server.git#tag=mariadb-${pkgver
'git+https://github.com/mariadb-corporation/libmarias3.git' 'git+https://github.com/mariadb-corporation/libmarias3.git'
'git+https://github.com/mariadb-corporation/mariadb-columnstore-engine.git' 'git+https://github.com/mariadb-corporation/mariadb-columnstore-engine.git'
'0001-arch-specific.patch') '0001-arch-specific.patch')
sha256sums=('da69b2dee70ebf567cb5ff241a07bac2d45076ddf7465da85d1c17589f4b886d' sha256sums=('3f182bc2011b7419df613308cb969374389b9ca8aa81539c515e3ba9c8695d07'
'SKIP' 'SKIP'
'SKIP' 'SKIP'
'SKIP' 'SKIP'
@ -189,7 +196,8 @@ package_mariadb() {
'etc/my.cnf.d/spider.cnf' 'etc/my.cnf.d/spider.cnf'
'etc/security/user_map.conf') 'etc/security/user_map.conf')
install=mariadb.install install=mariadb.install
depends=("mariadb-clients=${pkgver}" 'bzip2' 'libxml2' 'lz4' 'systemd-libs' 'libxml2' 'zstd') depends=("mariadb-clients=${pkgver}" 'bzip2' 'coreutils' 'libxml2' 'lz4'
'systemd-libs' 'zstd')
optdepends=('cracklib: for cracklib plugin' optdepends=('cracklib: for cracklib plugin'
'curl: for ha_s3 plugin' 'curl: for ha_s3 plugin'
'galera: for MariaDB cluster with Galera WSREP' 'galera: for MariaDB cluster with Galera WSREP'
@ -198,7 +206,7 @@ package_mariadb() {
'python-mysqlclient: for myrocks_hotbackup' 'python-mysqlclient: for myrocks_hotbackup'
'xz: lzma provider') 'xz: lzma provider')
conflicts=('mysql') conflicts=('mysql')
provides=('mariadb-server' "mysql=${pkgver}") provides=("mariadb-server=${pkgver}" "mysql=${pkgver}")
options=('emptydirs') options=('emptydirs')
cd build cd build

View file

@ -1,15 +1,19 @@
#!/bin/sh #!/bin/sh
post_install() { post_install() {
echo ":: You need to initialize the MariaDB data directory prior to starting" cat <<-EOM
echo " the service. This can be done with mariadb-install-db command, e.g.:" :: You need to initialize the MariaDB data directory prior to starting
echo " # mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql" the service. This can be done with mariadb-install-db command, e.g.:
# mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
EOM
} }
post_upgrade() { post_upgrade() {
# show for feature release: 10.1 -> 10.2 -> 10.3 -> ... # show for feature release: 10.1 -> 10.2 -> 10.3 -> ...
if [ $(vercmp "${1%.*-*}" "${2%.*-*}") -ne 0 ]; then if [ $(vercmp "${1%.*-*}" "${2%.*-*}") -ne 0 ]; then
echo ":: MariaDB was updated to a new feature release. To update the data run:" cat <<-EOM
echo " # systemctl restart mariadb.service && mariadb-upgrade -u root -p" :: MariaDB was updated to a new feature release. To update the data run:
# systemctl restart mariadb.service && mariadb-upgrade -u root -p
EOM
fi fi
} }