extra/mariadb to 11.3.2-2

This commit is contained in:
David Beauchamp 2024-05-20 16:26:16 -04:00
parent 2563dbcfb2
commit a111a0c974
2 changed files with 52 additions and 25 deletions

View file

@ -1,10 +1,11 @@
pkgbase = mariadb pkgbase = mariadb
pkgdesc = Fast SQL database server, derived from MySQL pkgdesc = Fast SQL database server, derived from MySQL
pkgver = 11.3.2 pkgver = 11.3.2
pkgrel = 1 pkgrel = 2
url = https://mariadb.org/ url = https://mariadb.org/
arch = x86_64 arch = x86_64
license = GPL license = GPL
makedepends = git
makedepends = boost makedepends = boost
makedepends = bzip2 makedepends = bzip2
makedepends = cmake makedepends = cmake
@ -23,11 +24,21 @@ pkgbase = mariadb
makedepends = zlib makedepends = zlib
makedepends = zstd makedepends = zstd
makedepends = xz makedepends = xz
source = https://rsync.osuosl.org/pub/mariadb/mariadb-11.3.2/source/mariadb-11.3.2.tar.gz source = mariadb::git+https://github.com/MariaDB/server.git#tag=mariadb-11.3.2?signed
source = https://rsync.osuosl.org/pub/mariadb/mariadb-11.3.2/source/mariadb-11.3.2.tar.gz.asc source = git+https://github.com/MariaDB/mariadb-connector-c.git
source = git+https://github.com/facebook/rocksdb.git
source = git+https://github.com/codership/wsrep-lib.git
source = git+https://github.com/wolfSSL/wolfssl.git
source = git+https://github.com/mariadb-corporation/libmarias3.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 = 5570778f0a2c27af726c751cda1a943f3f8de96d11d107791be5b44a0ce3fb5c sha256sums = a7ee96e4f90bf5d9f4185f36dae506980242b09578578568ed5ac4334dc05287
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP sha256sums = SKIP
sha256sums = 3289efb3452d199aec872115f35da3f1d6fd4ce774615076690e9bc8afae1460 sha256sums = 3289efb3452d199aec872115f35da3f1d6fd4ce774615076690e9bc8afae1460
@ -75,6 +86,7 @@ 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 = mysql=11.3.2 provides = mysql=11.3.2
conflicts = mysql conflicts = mysql
options = emptydirs options = emptydirs

View file

@ -1,5 +1,4 @@
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> # Maintainer: Christian Hesse <eworm@archlinux.org>
# Maintainer: Christian Hesse <mail@eworm.de>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable mroonga storage engine (doesn't build on ARM) # - disable mroonga storage engine (doesn't build on ARM)
@ -9,25 +8,42 @@ 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.3.2 pkgver=11.3.2
pkgrel=1 pkgrel=2
arch=('x86_64') arch=('x86_64')
license=('GPL') license=('GPL')
url='https://mariadb.org/' url='https://mariadb.org/'
makedepends=('boost' 'bzip2' 'cmake' 'cracklib' 'curl' 'jemalloc' 'judy' 'krb5' 'liburing' makedepends=('git' 'boost' 'bzip2' 'cmake' 'cracklib' 'curl' 'jemalloc' 'judy' 'krb5' 'liburing'
'libxcrypt' 'libxml2' 'lz4' 'openssl' 'pcre2' 'systemd' 'zlib' 'zstd' 'xz') 'libxcrypt' 'libxml2' 'lz4' 'openssl' 'pcre2' 'systemd' 'zlib' 'zstd' 'xz')
validpgpkeys=('177F4010FE56CA3336300305F1656F24C74CD1D8') # MariaDB Signing Key <signing-key@mariadb.org> validpgpkeys=('177F4010FE56CA3336300305F1656F24C74CD1D8') # MariaDB Signing Key <signing-key@mariadb.org>
# The default links with mirror redirection fail for signatures, specific source=("mariadb::git+https://github.com/MariaDB/server.git#tag=mariadb-${pkgver}?signed"
# mirrors may be out of date every now and then. Let's use the upstream 'git+https://github.com/MariaDB/mariadb-connector-c.git'
# rsync source via https and hope it does not hurt them too much. 'git+https://github.com/facebook/rocksdb.git'
# https://mariadb.com/kb/en/library/mirror-sites-for-mariadb/ 'git+https://github.com/codership/wsrep-lib.git'
source=("https://rsync.osuosl.org/pub/mariadb/mariadb-${pkgver}/source/mariadb-${pkgver}.tar.gz"{,.asc} 'git+https://github.com/wolfSSL/wolfssl.git'
'git+https://github.com/mariadb-corporation/libmarias3.git'
'git+https://github.com/mariadb-corporation/mariadb-columnstore-engine.git'
'0001-arch-specific.patch') '0001-arch-specific.patch')
sha256sums=('5570778f0a2c27af726c751cda1a943f3f8de96d11d107791be5b44a0ce3fb5c' sha256sums=('a7ee96e4f90bf5d9f4185f36dae506980242b09578578568ed5ac4334dc05287'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP' 'SKIP'
'3289efb3452d199aec872115f35da3f1d6fd4ce774615076690e9bc8afae1460') '3289efb3452d199aec872115f35da3f1d6fd4ce774615076690e9bc8afae1460')
prepare() { prepare() {
cd $pkgbase-$pkgver/ cd mariadb/
# setup git submodules
git config --file=.gitmodules submodule.libmariadb.url ../mariadb-connector-c/
git config --file=.gitmodules submodule.storage/rocksdb/rocksdb.url ../rocksdb/
git config --file=.gitmodules submodule.wsrep-lib.url ../wsrep-lib/
git config --file=.gitmodules submodule.extra/wolfssl/wolfssl.url ../wolfssl/
git config --file=.gitmodules submodule.storage/maria/libmarias3.url ../libmarias3/
git config --file=.gitmodules submodule.storage/columnstore/columnstore.url ../mariadb-columnstore-engine/
git submodule init
git -c protocol.file.allow=always submodule update
# Arch Linux specific patches: # Arch Linux specific patches:
# * enable PrivateTmp for a little bit more security # * enable PrivateTmp for a little bit more security
@ -101,7 +117,7 @@ build() {
mkdir build mkdir build
cd build cd build
cmake ../"$pkgbase-$pkgver" "${_cmake_options[@]}" cmake ../mariadb/ "${_cmake_options[@]}"
make make
} }
@ -132,32 +148,31 @@ package_mariadb-libs() {
# remove man pages # remove man pages
rm -r "${pkgdir}"/usr/share/man rm -r "${pkgdir}"/usr/share/man
ln -s mariadb_config "$pkgdir"/usr/bin/mariadb-config ln -s mariadb_config "$pkgdir"/usr/bin/mariadb-config
ln -s mariadb_config "$pkgdir"/usr/bin/mysql_config ln -s mariadb_config "$pkgdir"/usr/bin/mysql_config
install -D -m0644 "$srcdir"/"$pkgbase-$pkgver"/man/mariadb_config.1 "$pkgdir"/usr/share/man/man1/mariadb_config.1 install -D -m0644 "$srcdir"/mariadb/man/mariadb_config.1 "$pkgdir"/usr/share/man/man1/mariadb_config.1
ln -s mariadb_config.1 "$pkgdir"/usr/share/man/man1/mariadb-config.1 ln -s mariadb_config.1 "$pkgdir"/usr/share/man/man1/mariadb-config.1
ln -s mariadb_config.1 "$pkgdir"/usr/share/man/man1/mysql_config.1 ln -s mariadb_config.1 "$pkgdir"/usr/share/man/man1/mysql_config.1
install -D -m0644 support-files/mariadb.pc "$pkgdir"/usr/share/pkgconfig/mariadb.pc install -D -m0644 support-files/mariadb.pc "$pkgdir"/usr/share/pkgconfig/mariadb.pc
install -D -m0644 "$srcdir"/"$pkgbase-$pkgver"/support-files/mysql.m4 "$pkgdir"/usr/share/aclocal/mysql.m4 install -D -m0644 "$srcdir"/mariadb/support-files/mysql.m4 "$pkgdir"/usr/share/aclocal/mysql.m4
} }
package_mariadb-clients() { package_mariadb-clients() {
pkgdesc='MariaDB client tools' pkgdesc='MariaDB client tools'
depends=("mariadb-libs=${pkgver}" 'jemalloc' 'ncurses') depends=("mariadb-libs=${pkgver}" 'jemalloc' 'ncurses')
conflicts=('mysql-clients') conflicts=('mysql-clients')
provides=("mysql-clients=$pkgver") provides=("mysql-clients=${pkgver}")
make -C build/client DESTDIR="${pkgdir}" install make -C build/client DESTDIR="${pkgdir}" install
# install man pages # install man pages
make -C build/man DESTDIR="${srcdir}"/client-man install make -C build/man DESTDIR="${srcdir}"/client-man install
install -d -m0755 "${pkgdir}"/usr/share/man/man1/ install -d -m0755 "${pkgdir}"/usr/share/man/man1/
for man in $(find "${pkgdir}"/usr/bin/ ! -type d); do for man in $(find "${pkgdir}"/usr/bin/ ! -type d); do
install -D -m0644 -t "${pkgdir}"/usr/share/man/man1/ "${srcdir}"/client-man/usr/share/man/man1/"$(basename "${man}")".1 install -D -m0644 -t "${pkgdir}"/usr/share/man/man1/ "${srcdir}"/client-man/usr/share/man/man1/"$(basename "${man}")".1
done done
} }
package_mariadb() { package_mariadb() {
@ -183,7 +198,7 @@ package_mariadb() {
'python-mysqlclient: for myrocks_hotbackup' 'python-mysqlclient: for myrocks_hotbackup'
'xz: lzma provider') 'xz: lzma provider')
conflicts=('mysql') conflicts=('mysql')
provides=("mysql=$pkgver") provides=('mariadb-server' "mysql=${pkgver}")
options=('emptydirs') options=('emptydirs')
cd build cd build
@ -223,7 +238,7 @@ package_mariadb() {
rm usr/lib/mysql/plugin/{auth_gssapi_client,caching_sha2_password,client_ed25519,dialog,mysql_clear_password,sha256_password,zstd}.so rm usr/lib/mysql/plugin/{auth_gssapi_client,caching_sha2_password,client_ed25519,dialog,mysql_clear_password,sha256_password,zstd}.so
# provided by mariadb-clients # provided by mariadb-clients
for bin in $(find "${pkgdir}"/../mariadb-clients/usr/bin/ ! -type d); do for bin in $(find "${pkgdir}/../${pkgbase}-clients/usr/bin/" ! -type d); do
rm "${pkgdir}"/usr/bin/"$(basename "${bin}")" "${pkgdir}"/usr/share/man/man1/"$(basename "${bin}")".1 rm "${pkgdir}"/usr/bin/"$(basename "${bin}")" "${pkgdir}"/usr/share/man/man1/"$(basename "${bin}")".1
done done