0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-01-19 08:22:09 +00:00
Rudi Heitbaum 1153e9e936 mariadb: update to 11.4.2 and addon (2)
The MariaDB Foundation is pleased to announce the availability
of MariaDB 11.4.2, the first stable release in the MariaDB
11.4 long-term maintenance series, maintained for five years.

release notes and changelog:
- https://mariadb.com/kb/en/mdb-11-4-2-rn/
- https://mariadb.com/kb/en/mdb-11-4-2-cl/
2024-06-06 10:39:23 +00:00

111 lines
3.4 KiB
Makefile

# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="mariadb"
PKG_VERSION="11.4.2"
PKG_REV="2"
PKG_SHA256="8c600e38adb899316c1cb11c68b87979668f4fb9d858000e347e6d8b7abe51b0"
PKG_LICENSE="GPL2"
PKG_SITE="https://mariadb.org"
PKG_URL="https://downloads.mariadb.com/MariaDB/${PKG_NAME}-${PKG_VERSION}/source/${PKG_NAME}-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_HOST="toolchain:host ncurses:host openssl:host"
PKG_DEPENDS_TARGET="toolchain binutils boost bzip2 libaio libfmt libxml2 lz4 lzo ncurses openssl pcre2 systemd zlib mariadb:host"
PKG_SHORTDESC="MariaDB is a community-developed fork of the MySQL."
PKG_LONGDESC="MariaDB (${PKG_VERSION}) is a fast SQL database server and a drop-in replacement for MySQL."
PKG_BUILD_FLAGS="-gold -sysroot"
PKG_IS_ADDON="yes"
PKG_SECTION="service"
PKG_ADDON_NAME="MariaDB SQL database server"
PKG_ADDON_TYPE="xbmc.service"
configure_package() {
PKG_CMAKE_OPTS_HOST=" \
-DCMAKE_INSTALL_MESSAGE=NEVER \
-DSTACK_DIRECTION=-1 \
-DHAVE_IB_GCC_ATOMIC_BUILTINS=1 \
-DCMAKE_CROSSCOMPILING=OFF"
PKG_CMAKE_OPTS_TARGET=" \
-DCMAKE_INSTALL_MESSAGE=NEVER \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_CONFIG=mysql_release \
-DFEATURE_SET=classic \
-DSTACK_DIRECTION=1 \
-DDISABLE_LIBMYSQLCLIENT_SYMBOL_VERSIONING=ON \
-DCMAKE_CROSSCOMPILING=ON \
-DIMPORT_EXECUTABLES=${PKG_BUILD}/.${HOST_NAME}/import_executables.cmake \
-DWITHOUT_AWS_KEY_MANAGEMENT=ON \
-DWITHOUT_HASHICORP_KEY_MANAGEMENT=ON \
-DWITH_EXTRA_CHARSETS=complex \
-DWITH_SSL=system \
-DWITH_SSL=${SYSROOT_PREFIX}/usr \
-DWITH_JEMALLOC=OFF \
-DWITHOUT_TOKUDB=1 \
-DWITH_PCRE=system \
-DWITH_ZLIB=bundled \
-DWITH_EDITLINE=bundled \
-DWITH_LIBEVENT=bundled \
-DCONNECT_WITH_JDBC=OFF \
-DCONNECT_WITH_LIBXML2=bundled \
-DSKIP_TESTS=ON \
-DWITH_DEBUG=OFF \
-DWITH_UNIT_TESTS=OFF \
-DENABLE_DTRACE=OFF \
-DSECURITY_HARDENED=OFF \
-DWITH_EMBEDDED_SERVER=OFF \
-DWITHOUT_SERVER=OFF \
-DPLUGIN_AUTH_SOCKET=STATIC \
-DPLUGIN_OQGRAPH=NO \
-DPLUGIN_S3=NO \
-DDISABLE_SHARED=NO \
-DENABLED_PROFILING=OFF \
-DENABLE_STATIC_LIBS=OFF \
-DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
-DWITH_SAFEMALLOC=OFF \
-DWITHOUT_AUTH_EXAMPLES=ON \
-DLSTAT_FOLLOWS_SLASHED_SYMLINK_EXITCODE=0 \
-DLSTAT_FOLLOWS_SLASHED_SYMLINK_EXITCODE__TRYRUN_OUTPUT='' \
-DMASK_LONGDOUBLE_EXITCODE=0 \
-DMASK_LONGDOUBLE_EXITCODE__TRYRUN_OUTPUT='' \
-DSTAT_EMPTY_STRING_BUG_EXITCODE=0 \
-DSTAT_EMPTY_STRING_BUG_EXITCODE__TRYRUN_OUTPUT='' \
-DHAVE_SYSTEM_LIBFMT_EXITCODE=0 \
-DHAVE_SYSTEM_LIBFMT_EXITCODE__TRYRUN_OUTPUT='' \
-DWITH_LIBFMT=system"
}
make_host() {
ninja ${NINJA_OPTS} import_executables
}
makeinstall_host() {
cp -a strings/uca-dump ${TOOLCHAIN}/bin
}
post_makeinstall_target() {
rm -rf "${PKG_INSTALL}/usr/mysql-test"
}
addon() {
local ADDON="${ADDON_BUILD}/${PKG_ADDON_ID}"
local MARIADB="${PKG_INSTALL}/usr"
mkdir -p ${ADDON}/bin
mkdir -p ${ADDON}/config
cp ${MARIADB}/bin/mariadbd \
${MARIADB}/bin/mariadb \
${MARIADB}/bin/mariadb-admin \
${MARIADB}/bin/mariadb-check \
${MARIADB}/bin/mariadb-dump \
${MARIADB}/bin/mariadb-secure-installation \
${MARIADB}/bin/mariadb-upgrade \
${MARIADB}/bin/my_print_defaults \
${MARIADB}/bin/resolveip \
${MARIADB}/scripts/mariadb-install-db \
${ADDON}/bin
cp -PR ${MARIADB}/share ${ADDON}
}