SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
151
databases/mariadb/Makefile
Normal file
151
databases/mariadb/Makefile
Normal file
|
@ -0,0 +1,151 @@
|
|||
COMMENT-main= multithreaded SQL database (client)
|
||||
COMMENT-server= multithreaded SQL database (server)
|
||||
COMMENT-tests= multithreaded SQL database (regression test suite/benchmark)
|
||||
|
||||
VERSION= 10.9.6
|
||||
DISTNAME= mariadb-${VERSION}
|
||||
PKGNAME-main= mariadb-client-${VERSION}
|
||||
EPOCH= 1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= https://downloads.mariadb.com/MariaDB/${DISTNAME}/source/ \
|
||||
https://ftp.osuosl.org/pub/mariadb/${DISTNAME}/source/
|
||||
|
||||
LIB_VERSION= 30
|
||||
SHARED_LIBS= mysqlclient_r ${LIB_VERSION}.0 \
|
||||
mysqlclient ${LIB_VERSION}.0 \
|
||||
mariadb ${LIB_VERSION}.0
|
||||
|
||||
HOMEPAGE= https://mariadb.org/
|
||||
|
||||
MAINTAINER= Brad Smith <brad@comstyle.com>
|
||||
|
||||
# GPLv2 and LGPLv2.1
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB= ${COMPILER_LIBCXX} c crypto execinfo m pthread ssl z
|
||||
WANTLIB-main= ${WANTLIB} curses readline
|
||||
WANTLIB-server= ${WANTLIB} bz2 curl lz4 lzma lzo2 pcre2-8 snappy xml2 zstd
|
||||
WANTLIB-tests= ${WANTLIB} pcre2-8 pcre2-posix
|
||||
|
||||
MULTI_PACKAGES= -main -server -tests
|
||||
|
||||
# C++11, atomic ops
|
||||
COMPILER= base-clang ports-gcc
|
||||
|
||||
LOCALSTATEDIR= ${BASELOCALSTATEDIR}/mysql
|
||||
SOCKET_DIR= /var/run/mysql
|
||||
SUBST_VARS= SOCKET_DIR
|
||||
|
||||
MODULES= devel/cmake
|
||||
BUILD_DEPENDS= devel/bison \
|
||||
devel/fmt
|
||||
|
||||
LIB_DEPENDS-main= ${LIB_DEPENDS}
|
||||
RUN_DEPENDS-server= ${BASE_PKGPATH},-main>=10.9v1,<10.10v1 \
|
||||
databases/p5-DBD-MariaDB
|
||||
LIB_DEPENDS-server= ${LIB_DEPENDS} \
|
||||
archivers/bzip2 \
|
||||
archivers/lz4 \
|
||||
archivers/lzo2 \
|
||||
archivers/snappy \
|
||||
archivers/xz \
|
||||
archivers/zstd \
|
||||
devel/pcre2 \
|
||||
net/curl \
|
||||
textproc/libxml
|
||||
RUN_DEPENDS-tests= ${BASE_PKGPATH},-main>=10.9v1,<10.10v1
|
||||
LIB_DEPENDS-tests= ${LIB_DEPENDS} \
|
||||
devel/pcre2
|
||||
|
||||
CONFIGURE_ARGS+=-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
|
||||
-DINSTALL_DOCDIR="share/doc/mysql" \
|
||||
-DINSTALL_DOCREADMEDIR="share/doc/mysql" \
|
||||
-DINSTALL_INCLUDEDIR="include/mysql" \
|
||||
-DINSTALL_INFODIR="info" \
|
||||
-DINSTALL_LIBDIR="lib/mysql" \
|
||||
-DINSTALL_MANDIR="man" \
|
||||
-DINSTALL_MYSQLDATADIR="${LOCALSTATEDIR}" \
|
||||
-DINSTALL_MYSQLSHAREDIR="share/mysql" \
|
||||
-DINSTALL_MYSQLTESTDIR="share/mysql-test" \
|
||||
-DINSTALL_PLUGINDIR="lib/mysql/plugin" \
|
||||
-DINSTALL_SBINDIR="libexec" \
|
||||
-DINSTALL_SCRIPTDIR="bin" \
|
||||
-DINSTALL_SHAREDIR="share" \
|
||||
-DINSTALL_SQLBENCHDIR="share/mysql-bench" \
|
||||
-DINSTALL_SUPPORTFILESDIR="share/examples/mysql" \
|
||||
-DMYSQL_UNIX_ADDR="${SOCKET_DIR}/mysql.sock" \
|
||||
-DCOMPILATION_COMMENT='OpenBSD port: ${FULLPKGNAME-server}' \
|
||||
-DPLUGIN_OQGRAPH=NO \
|
||||
-DWITH_EXTERNAL_ZLIB=On \
|
||||
-DWITH_PCRE=system \
|
||||
-DWITH_SSL=system \
|
||||
-DWITH_WSREP=On \
|
||||
-DCONNECT_WITH_JDBC=Off \
|
||||
-DCONNECT_WITH_MONGO=Off \
|
||||
-DCONNECT_WITH_ODBC=Off \
|
||||
-DGRN_WITH_MECAB=no \
|
||||
-DGRN_WITH_KYTEA=no \
|
||||
-DGRN_WITH_LIBSTEMMER=no \
|
||||
-DGRN_WITH_ZEROMQ=no \
|
||||
-DGRN_WITH_MESSAGE_PACK=no
|
||||
|
||||
# force disabling the PAM auth plugin if OpenPAM is installed
|
||||
CONFIGURE_ARGS+=-DHAVE_PAM_APPL_H=0
|
||||
|
||||
# The ColumnStore storage engine is disabled. ColumnStore is only
|
||||
# buildable on X86.
|
||||
CONFIGURE_ARGS+=-DPLUGIN_COLUMNSTORE=NO
|
||||
|
||||
.include <bsd.port.arch.mk>
|
||||
|
||||
.if !${PROPERTIES:Mlp64} || ${PROPERTIES:Mbe}
|
||||
CONFIGURE_ARGS+=-DWITHOUT_ROCKSDB_STORAGE_ENGINE=1
|
||||
.endif
|
||||
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
CXXFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
CONFIGURE_ENV= LDFLAGS="${LDFLAGS}"
|
||||
|
||||
.if ${MACHINE_ARCH} == "hppa"
|
||||
LDFLAGS+= -latomic
|
||||
WANTLIB+= atomic
|
||||
.endif
|
||||
|
||||
.if ${PROPERTIES:Mle}
|
||||
PKG_ARGS+= -Dle=1
|
||||
.else
|
||||
PKG_ARGS+= -Dle=0
|
||||
.endif
|
||||
|
||||
.if ${PROPERTIES:Mlp64} && ${PROPERTIES:Mle}
|
||||
PKG_ARGS+= -Drocksdb=1
|
||||
.else
|
||||
PKG_ARGS+= -Drocksdb=0
|
||||
.endif
|
||||
|
||||
pre-configure:
|
||||
@${SUBST_CMD} ${WRKSRC}/cmake/mysql_version.cmake \
|
||||
${WRKSRC}/libmariadb/mariadb_config/mariadb_config.c.in \
|
||||
${WRKSRC}/scripts/mysql_config.sh
|
||||
|
||||
post-install:
|
||||
@cd ${PREFIX}/lib && \
|
||||
ln -sf mysql/libmysqlclient.so.${LIBmysqlclient_VERSION} . && \
|
||||
ln -sf mysql/libmysqlclient_r.so.${LIBmysqlclient_r_VERSION} . && \
|
||||
ln -sf mysql/libmariadb.so.${LIBmariadb_VERSION} . && \
|
||||
cd mysql && \
|
||||
ln -sf libmariadb.so.${LIBmariadb_VERSION} libmysqlclient.so.${LIBmysqlclient_VERSION} && \
|
||||
ln -sf libmariadb.so.${LIBmariadb_VERSION} libmysqlclient_r.so.${LIBmysqlclient_r_VERSION}
|
||||
${INSTALL_DATA} ${FILESDIR}/my.cnf ${PREFIX}/share/examples/mysql/
|
||||
.if !${PROPERTIES:Mlp64} || ${PROPERTIES:Mbe}
|
||||
rm -f ${PREFIX}/man/man1/myrocks_hotbackup.1
|
||||
rm -Rf ${PREFIX}/share/mysql-test/plugin/rocksdb/
|
||||
.endif
|
||||
|
||||
do-test:
|
||||
(${MODCMAKE_TEST_TARGET}) || true # Keep on going even if regress tests fail
|
||||
@cd ${WRKBUILD}/mysql-test && ./mysql-test-run.pl --force --verbose --max-test-fail=0
|
||||
|
||||
.include <bsd.port.mk>
|
2
databases/mariadb/distinfo
Normal file
2
databases/mariadb/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (mariadb-10.9.6.tar.gz) = /m9Sh/zMamW4u8yuCehB4F3AdvzBMBcHiFTKOH6riuk=
|
||||
SIZE (mariadb-10.9.6.tar.gz) = 96164395
|
19
databases/mariadb/files/my.cnf
Normal file
19
databases/mariadb/files/my.cnf
Normal file
|
@ -0,0 +1,19 @@
|
|||
[client-server]
|
||||
#socket=/var/run/mysql/mysql.sock
|
||||
#port=3306
|
||||
|
||||
# This will be passed to all MariaDB clients
|
||||
[client]
|
||||
#password=my_password
|
||||
|
||||
# The MariaDB server
|
||||
[mysqld]
|
||||
# To listen to all network addresses, use "bind-address = *"
|
||||
bind-address=localhost
|
||||
# Directory where you want to put your data
|
||||
#data=/var/mysql
|
||||
# This is the prefix name to be used for all log, error and replication files
|
||||
#log-basename=mysqld
|
||||
# Logging
|
||||
#general-log
|
||||
#slow_query_log
|
70
databases/mariadb/mariadb.port.mk
Normal file
70
databases/mariadb/mariadb.port.mk
Normal file
|
@ -0,0 +1,70 @@
|
|||
# Helps testing MySQL/MariaDB-based software, no B/L/R-DEPS here.
|
||||
|
||||
MODMARIADB_TEST_CMD ?= \
|
||||
${MAKE_PROGRAM} ${ALL_TEST_FLAGS} -f ${MAKE_FILE} ${TEST_TARGET}
|
||||
|
||||
MODMARIADB_TEST_DBNAME ?=
|
||||
MODMARIADB_TEST_SOCKET = ${WRKDIR}/mariadb.sock
|
||||
_MODMARIADB_TEST_DATA_DIR = ${WRKDIR}/testdb-mariadb
|
||||
|
||||
MODMARIADB_SERVER_ARGS = \
|
||||
--no-defaults \
|
||||
--datadir=${_MODMARIADB_TEST_DATA_DIR} \
|
||||
--skip-grant-tables \
|
||||
--skip-networking \
|
||||
--socket=${MODMARIADB_TEST_SOCKET}
|
||||
|
||||
MODMARIADB_ADMIN_ARGS = \
|
||||
--no-defaults \
|
||||
--host=localhost \
|
||||
--protocol=socket \
|
||||
--socket=${MODMARIADB_TEST_SOCKET}
|
||||
|
||||
MODMARIADB_CLIENT_ARGS = ${MODMARIADB_ADMIN_ARGS}
|
||||
|
||||
.if !empty(MODMARIADB_TEST_DBNAME)
|
||||
MODMARIADB_CLIENT_ARGS += --database=${MODMARIADB_TEST_DBNAME}
|
||||
.endif
|
||||
|
||||
TEST_DEPENDS += databases/mariadb,-server
|
||||
TEST_ENV += \
|
||||
MYSQL_HOME=${WRKDIR} \
|
||||
MYSQL_HOST=localhost \
|
||||
MYSQL_UNIX_PORT=${MODMARIADB_TEST_SOCKET}
|
||||
|
||||
MODMARIADB_TEST_TARGET = \
|
||||
rm -Rf ${_MODMARIADB_TEST_DATA_DIR}; \
|
||||
export ${ALL_TEST_ENV}; \
|
||||
${LOCALBASE}/bin/mariadb-install-db \
|
||||
--skip-name-resolve \
|
||||
${MODMARIADB_SERVER_ARGS}; \
|
||||
${LOCALBASE}/libexec/mariadbd \
|
||||
${MODMARIADB_SERVER_ARGS} & \
|
||||
started=false; \
|
||||
for i in $$(jot 10); do \
|
||||
sleep 1; \
|
||||
if mariadb-admin ${MODMARIADB_ADMIN_ARGS} \
|
||||
ping >/dev/null 2>&1; then \
|
||||
started=true; \
|
||||
break; \
|
||||
fi; \
|
||||
done; \
|
||||
$$started || { echo "mariadbd didn't start" >&2; kill $$!; exit 1; };
|
||||
.if !empty(MODMARIADB_TEST_DBNAME)
|
||||
MODMARIADB_TEST_TARGET += \
|
||||
${LOCALBASE}/bin/mariadb-admin ${MODMARIADB_ADMIN_ARGS} \
|
||||
create ${MODMARIADB_TEST_DBNAME} || \
|
||||
{ kill $$!; exit 1; };
|
||||
.endif
|
||||
MODMARIADB_TEST_TARGET += \
|
||||
set +e; \
|
||||
cd ${WRKBUILD}; \
|
||||
( ${MODMARIADB_TEST_CMD} ); \
|
||||
Q=$$?; \
|
||||
kill $$!; \
|
||||
exit $$Q
|
||||
|
||||
.if !target(do-test)
|
||||
do-test:
|
||||
${MODMARIADB_TEST_TARGET}
|
||||
.endif
|
16
databases/mariadb/patches/patch-client_CMakeLists_txt
Normal file
16
databases/mariadb/patches/patch-client_CMakeLists_txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
Index: client/CMakeLists.txt
|
||||
--- client/CMakeLists.txt.orig
|
||||
+++ client/CMakeLists.txt
|
||||
@@ -71,10 +71,10 @@ MYSQL_ADD_EXECUTABLE(mariadb-plugin mysql_plugin.c)
|
||||
TARGET_LINK_LIBRARIES(mariadb-plugin ${CLIENT_LIB})
|
||||
|
||||
MYSQL_ADD_EXECUTABLE(mariadb-binlog mysqlbinlog.cc)
|
||||
-TARGET_LINK_LIBRARIES(mariadb-binlog ${CLIENT_LIB} mysys_ssl)
|
||||
+TARGET_LINK_LIBRARIES(mariadb-binlog ${CLIENT_LIB} mysys_ssl ${SSL_LIBRARIES})
|
||||
|
||||
MYSQL_ADD_EXECUTABLE(mariadb-admin mysqladmin.cc ../sql/password.c)
|
||||
-TARGET_LINK_LIBRARIES(mariadb-admin ${CLIENT_LIB} mysys_ssl)
|
||||
+TARGET_LINK_LIBRARIES(mariadb-admin ${CLIENT_LIB} mysys_ssl ${SSL_LIBRARIES})
|
||||
|
||||
MYSQL_ADD_EXECUTABLE(mariadb-slap mysqlslap.c)
|
||||
SET_SOURCE_FILES_PROPERTIES(mysqlslap.c PROPERTIES COMPILE_FLAGS "-DTHREADS")
|
40
databases/mariadb/patches/patch-cmake_install_macros_cmake
Normal file
40
databases/mariadb/patches/patch-cmake_install_macros_cmake
Normal file
|
@ -0,0 +1,40 @@
|
|||
Index: cmake/install_macros.cmake
|
||||
--- cmake/install_macros.cmake.orig
|
||||
+++ cmake/install_macros.cmake
|
||||
@@ -175,6 +175,36 @@ IF(UNIX)
|
||||
ENDIF()
|
||||
ENDMACRO()
|
||||
|
||||
+MACRO(INSTALL_VERSIONED_SYMLINK linkname target destination component)
|
||||
+IF(UNIX)
|
||||
+ GET_TARGET_PROPERTY(location ${target} LOCATION)
|
||||
+ GET_TARGET_PROPERTY(version ${target} VERSION)
|
||||
+ GET_FILENAME_COMPONENT(path ${location} PATH)
|
||||
+ GET_FILENAME_COMPONENT(name ${location} NAME)
|
||||
+ SET(output ${path}/${linkname})
|
||||
+ ADD_CUSTOM_COMMAND(
|
||||
+ OUTPUT ${output}
|
||||
+ COMMAND ${CMAKE_COMMAND} ARGS -E remove -f ${output}
|
||||
+ COMMAND ${CMAKE_COMMAND} ARGS -E create_symlink
|
||||
+ ${name}.${version}
|
||||
+ ${linkname}
|
||||
+ WORKING_DIRECTORY ${path}
|
||||
+ DEPENDS ${target}
|
||||
+ )
|
||||
+
|
||||
+ ADD_CUSTOM_TARGET(symlink_${linkname}
|
||||
+ ALL
|
||||
+ DEPENDS ${output})
|
||||
+ SET_TARGET_PROPERTIES(symlink_${linkname} PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
||||
+ IF(CMAKE_GENERATOR MATCHES "Xcode")
|
||||
+ # For Xcode, replace project config with install config
|
||||
+ STRING(REPLACE "${CMAKE_CFG_INTDIR}"
|
||||
+ "\${CMAKE_INSTALL_CONFIG_NAME}" output ${output})
|
||||
+ ENDIF()
|
||||
+ INSTALL(FILES ${output} DESTINATION ${destination} COMPONENT ${component})
|
||||
+ENDIF()
|
||||
+ENDMACRO()
|
||||
+
|
||||
IF(WIN32)
|
||||
OPTION(SIGNCODE "Sign executables and dlls with digital certificate" OFF)
|
||||
MARK_AS_ADVANCED(SIGNCODE)
|
12
databases/mariadb/patches/patch-cmake_mysql_version_cmake
Normal file
12
databases/mariadb/patches/patch-cmake_mysql_version_cmake
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: cmake/mysql_version.cmake
|
||||
--- cmake/mysql_version.cmake.orig
|
||||
+++ cmake/mysql_version.cmake
|
||||
@@ -17,7 +17,7 @@
|
||||
# Global constants, only to be changed between major releases.
|
||||
#
|
||||
|
||||
-SET(SHARED_LIB_MAJOR_VERSION "19")
|
||||
+SET(SHARED_LIB_MAJOR_VERSION "${LIB_VERSION}")
|
||||
SET(PROTOCOL_VERSION "10")
|
||||
SET(DOT_FRM_VERSION "6")
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
Index: extra/mariabackup/xtrabackup.cc
|
||||
--- extra/mariabackup/xtrabackup.cc.orig
|
||||
+++ extra/mariabackup/xtrabackup.cc
|
||||
@@ -7122,6 +7122,8 @@ static int get_exepath(char *buf, size_t size, const c
|
||||
if (sysctl(mib, 4, buf, &size, NULL, 0) == 0) {
|
||||
return 0;
|
||||
}
|
||||
+#elif defined(__OpenBSD__)
|
||||
+ return 0;
|
||||
#endif
|
||||
|
||||
return my_realpath(buf, argv0, 0);
|
30
databases/mariadb/patches/patch-include_ssl_compat_h
Normal file
30
databases/mariadb/patches/patch-include_ssl_compat_h
Normal file
|
@ -0,0 +1,30 @@
|
|||
Provide generous estimates of the sizes of EVP_MD_CTX and EVP_CIPHER_CTX.
|
||||
(In OpenBSD 7.0 amd64 and sparc64 they are 48 and 168, respectively).
|
||||
Also provide EVP_MD_CTX_init and EVP_CIPHER_CTX_init because someone
|
||||
decided it was a good idea to do this.
|
||||
|
||||
Index: include/ssl_compat.h
|
||||
--- include/ssl_compat.h.orig
|
||||
+++ include/ssl_compat.h
|
||||
@@ -62,6 +62,13 @@
|
||||
#endif /* HAVE_OPENSSL11 */
|
||||
#endif
|
||||
|
||||
+#ifdef LIBRESSL_VERSION_NUMBER
|
||||
+#define EVP_MD_CTX_SIZE 64
|
||||
+#define EVP_CIPHER_CTX_SIZE 192
|
||||
+#define EVP_MD_CTX_init(X) do { memset((X), 0, EVP_MD_CTX_SIZE); EVP_MD_CTX_reset(X); } while(0)
|
||||
+#define EVP_CIPHER_CTX_init(X) do { memset((X), 0, EVP_CIPHER_CTX_SIZE); EVP_CIPHER_CTX_reset(X); } while(0)
|
||||
+#else
|
||||
+
|
||||
#ifdef HAVE_WOLFSSL
|
||||
#define EVP_MD_CTX_SIZE sizeof(wc_Md5)
|
||||
#endif
|
||||
@@ -87,6 +94,7 @@
|
||||
#define EVP_CIPHER_CTX_reset(X) EVP_CIPHER_CTX_cleanup(X)
|
||||
#define X509_get0_notBefore(X) X509_get_notBefore(X)
|
||||
#define X509_get0_notAfter(X) X509_get_notAfter(X)
|
||||
+#endif
|
||||
#endif
|
||||
#endif
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
Index: libmariadb/libmariadb/CMakeLists.txt
|
||||
--- libmariadb/libmariadb/CMakeLists.txt.orig
|
||||
+++ libmariadb/libmariadb/CMakeLists.txt
|
||||
@@ -481,15 +481,6 @@ INCLUDE(${CC_SOURCE_DIR}/cmake/symlink.cmake)
|
||||
# of the config program. To make sure these programs can
|
||||
# use mariadb client library we provide libmysql symlinks
|
||||
|
||||
-IF(WITH_MYSQLCOMPAT)
|
||||
- create_symlink(libmysqlclient${CMAKE_SHARED_LIBRARY_SUFFIX} libmariadb ${INSTALL_LIBDIR})
|
||||
- create_symlink(libmysqlclient_r${CMAKE_SHARED_LIBRARY_SUFFIX} libmariadb ${INSTALL_LIBDIR})
|
||||
- IF(NOT CMAKE_SYSTEM_NAME MATCHES AIX)
|
||||
- create_symlink(libmysqlclient${CMAKE_STATIC_LIBRARY_SUFFIX} mariadbclient ${INSTALL_LIBDIR})
|
||||
- create_symlink(libmysqlclient_r${CMAKE_STATIC_LIBRARY_SUFFIX} mariadbclient ${INSTALL_LIBDIR})
|
||||
- ENDIF()
|
||||
-ENDIF()
|
||||
-
|
||||
create_symlink(libmariadb${CMAKE_STATIC_LIBRARY_SUFFIX} mariadbclient ${INSTALL_LIBDIR})
|
||||
|
||||
SET_TARGET_PROPERTIES(libmariadb PROPERTIES VERSION
|
30
databases/mariadb/patches/patch-scripts_CMakeLists_txt
Normal file
30
databases/mariadb/patches/patch-scripts_CMakeLists_txt
Normal file
|
@ -0,0 +1,30 @@
|
|||
Index: scripts/CMakeLists.txt
|
||||
--- scripts/CMakeLists.txt.orig
|
||||
+++ scripts/CMakeLists.txt
|
||||
@@ -186,25 +186,14 @@ ENDIF(UNIX)
|
||||
# i.e. makes access relative the current directory. This matches
|
||||
# the documentation, so better not change this.
|
||||
|
||||
-IF(INSTALL_LAYOUT MATCHES "STANDALONE")
|
||||
- SET(prefix ".")
|
||||
+ SET(prefix "${CMAKE_INSTALL_PREFIX}")
|
||||
SET(bindir ${prefix}/${INSTALL_BINDIR})
|
||||
SET(sbindir ${prefix}/${INSTALL_SBINDIR})
|
||||
SET(scriptdir ${prefix}/${INSTALL_BINDIR})
|
||||
SET(libexecdir ${prefix}/${INSTALL_SBINDIR})
|
||||
SET(pkgdatadir ${prefix}/${INSTALL_MYSQLSHAREDIR})
|
||||
SET(pkgplugindir ${prefix}/${INSTALL_PLUGINDIR})
|
||||
- SET(localstatedir ${prefix}/data)
|
||||
-ELSE()
|
||||
- SET(prefix "${CMAKE_INSTALL_PREFIX}")
|
||||
- SET(bindir ${INSTALL_BINDIRABS})
|
||||
- SET(sbindir ${INSTALL_SBINDIRABS})
|
||||
- SET(scriptdir ${INSTALL_BINDIRABS})
|
||||
- SET(libexecdir ${INSTALL_SBINDIRABS})
|
||||
- SET(pkgdatadir ${INSTALL_MYSQLSHAREDIRABS})
|
||||
- SET(pkgplugindir ${INSTALL_PLUGINDIRABS})
|
||||
SET(localstatedir ${MYSQL_DATADIR})
|
||||
-ENDIF()
|
||||
|
||||
SET(resolveip_locations "$basedir/${INSTALL_BINDIR} $basedir/bin")
|
||||
SET(mysqld_locations "$basedir/${INSTALL_SBINDIR} $basedir/libexec $basedir/sbin $basedir/bin")
|
114
databases/mariadb/patches/patch-scripts_mysql_install_db_sh
Normal file
114
databases/mariadb/patches/patch-scripts_mysql_install_db_sh
Normal file
|
@ -0,0 +1,114 @@
|
|||
Index: scripts/mysql_install_db.sh
|
||||
--- scripts/mysql_install_db.sh.orig
|
||||
+++ scripts/mysql_install_db.sh
|
||||
@@ -30,8 +30,8 @@ args=""
|
||||
defaults=""
|
||||
defaults_group_suffix=""
|
||||
mysqld_opt=""
|
||||
-user=""
|
||||
-group=""
|
||||
+user="_mysql"
|
||||
+group="_mysql"
|
||||
silent_startup="--silent-startup"
|
||||
|
||||
force=0
|
||||
@@ -341,7 +341,6 @@ then
|
||||
srcpkgdatadir="$srcdir/scripts"
|
||||
buildpkgdatadir="$builddir/scripts"
|
||||
plugindir="$builddir/plugin/auth_socket"
|
||||
- pamtooldir="$builddir/plugin/auth_pam"
|
||||
elif test -n "$basedir"
|
||||
then
|
||||
bindir="$basedir/bin" # only used in the help text
|
||||
@@ -370,8 +369,7 @@ then
|
||||
cannot_find_file fill_help_tables.sql @pkgdata_locations@
|
||||
exit 1
|
||||
fi
|
||||
- plugindir=`find_in_dirs --dir auth_pam.so $basedir/lib*/plugin $basedir/lib*/mysql/plugin $basedir/lib/*/mariadb19/plugin`
|
||||
- pamtooldir=$plugindir
|
||||
+ plugindir=`find_in_dirs --dir auth_ed25519.so $basedir/lib*/plugin $basedir/lib*/mysql/plugin $basedir/lib/*/mariadb19/plugin`
|
||||
# relative from where the script was run for a relocatable install
|
||||
elif test -n "$dirname0" -a -x "$rel_mysqld" -a ! "$rel_mysqld" -ef "@sbindir@/mariadbd"
|
||||
then
|
||||
@@ -382,7 +380,6 @@ then
|
||||
srcpkgdatadir="$basedir/@INSTALL_MYSQLSHAREDIR@"
|
||||
buildpkgdatadir="$basedir/@INSTALL_MYSQLSHAREDIR@"
|
||||
plugindir="$basedir/@INSTALL_PLUGINDIR@"
|
||||
- pamtooldir=$plugindir
|
||||
else
|
||||
basedir="@prefix@"
|
||||
bindir="@bindir@"
|
||||
@@ -391,7 +388,6 @@ else
|
||||
srcpkgdatadir="@pkgdatadir@"
|
||||
buildpkgdatadir="@pkgdatadir@"
|
||||
plugindir="@pkgplugindir@"
|
||||
- pamtooldir="@pkgplugindir@"
|
||||
fi
|
||||
|
||||
# Set up paths to SQL scripts required for bootstrap
|
||||
@@ -490,13 +486,13 @@ do
|
||||
then
|
||||
if test -z "$group"
|
||||
then
|
||||
- chown $user $dir
|
||||
+ chown -f $user $dir
|
||||
else
|
||||
- chown $user:$group $dir
|
||||
+ chown -f $user:$group $dir
|
||||
fi
|
||||
if test $? -ne 0
|
||||
then
|
||||
- echo "Cannot change ownership of the database directories to the '$user'"
|
||||
+ echo "Cannot change ownership of the database directories to the '$user:$group'"
|
||||
echo "user. Check that you have the necessary permissions and try again."
|
||||
exit 1
|
||||
fi
|
||||
@@ -505,25 +501,6 @@ done
|
||||
|
||||
if test -n "$user"
|
||||
then
|
||||
- if test -z "$srcdir" -a "$in_rpm" -eq 0
|
||||
- then
|
||||
- chown 0 "$pamtooldir/auth_pam_tool_dir/auth_pam_tool" && \
|
||||
- chmod 04755 "$pamtooldir/auth_pam_tool_dir/auth_pam_tool"
|
||||
- if test $? -ne 0
|
||||
- then
|
||||
- echo "Couldn't set an owner to '$pamtooldir/auth_pam_tool_dir/auth_pam_tool'."
|
||||
- echo "It must be root, the PAM authentication plugin doesn't work otherwise.."
|
||||
- echo
|
||||
- fi
|
||||
- chown $user "$pamtooldir/auth_pam_tool_dir" && \
|
||||
- chmod 0700 "$pamtooldir/auth_pam_tool_dir"
|
||||
- if test $? -ne 0
|
||||
- then
|
||||
- echo "Cannot change ownership of the '$pamtooldir/auth_pam_tool_dir' directory"
|
||||
- echo "to the '$user' user. Check that you have the necessary permissions and try again."
|
||||
- echo
|
||||
- fi
|
||||
- fi
|
||||
args="$args --user=$user"
|
||||
fi
|
||||
|
||||
@@ -641,10 +618,6 @@ fi
|
||||
# the screen.
|
||||
if test "$cross_bootstrap" -eq 0 && test -z "$srcdir"
|
||||
then
|
||||
- s_echo
|
||||
- s_echo "To start mariadbd at boot time you have to copy"
|
||||
- s_echo "support-files/mariadb.service to the right place for your system"
|
||||
-
|
||||
if test "$auth_root_authentication_method" = normal
|
||||
then
|
||||
echo
|
||||
@@ -676,10 +649,7 @@ then
|
||||
then
|
||||
echo
|
||||
echo "You can start the MariaDB daemon with:"
|
||||
- echo "cd '$basedir' ; $bindir/mariadb-safe --datadir='$ldata'"
|
||||
- echo
|
||||
- echo "You can test the MariaDB daemon with mysql-test-run.pl"
|
||||
- echo "cd '$basedir/@INSTALL_MYSQLTESTDIR@' ; perl mariadb-test-run.pl"
|
||||
+ echo "/etc/rc.d/mysqld start"
|
||||
fi
|
||||
|
||||
echo
|
23
databases/mariadb/patches/patch-scripts_mysqld_safe_sh
Normal file
23
databases/mariadb/patches/patch-scripts_mysqld_safe_sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
Index: scripts/mysqld_safe.sh
|
||||
--- scripts/mysqld_safe.sh.orig
|
||||
+++ scripts/mysqld_safe.sh
|
||||
@@ -28,8 +28,8 @@ defaults_group_suffix=
|
||||
logging=init
|
||||
want_syslog=0
|
||||
syslog_tag=
|
||||
-user='@MYSQLD_USER@'
|
||||
-group='@MYSQLD_GROUP@'
|
||||
+user='_mysql'
|
||||
+group='_mysql'
|
||||
pid_file=
|
||||
err_log=
|
||||
err_log_base=
|
||||
@@ -734,7 +734,7 @@ then
|
||||
[ "$user" ] && chown $user $mysql_unix_port_dir
|
||||
[ "$group" ] && chgrp $group $mysql_unix_port_dir
|
||||
fi
|
||||
- chmod 755 $mysql_unix_port_dir
|
||||
+ chmod 711 $mysql_unix_port_dir
|
||||
fi
|
||||
|
||||
# If the user doesn't specify a binary, we assume name "mariadbd"
|
56
databases/mariadb/patches/patch-scripts_wsrep_sst_common_sh
Normal file
56
databases/mariadb/patches/patch-scripts_wsrep_sst_common_sh
Normal file
|
@ -0,0 +1,56 @@
|
|||
Index: scripts/wsrep_sst_common.sh
|
||||
--- scripts/wsrep_sst_common.sh.orig
|
||||
+++ scripts/wsrep_sst_common.sh
|
||||
@@ -23,6 +23,11 @@ trap 'exit 3' INT QUIT TERM
|
||||
# Setting the path for some utilities on CentOS
|
||||
export PATH="$PATH:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
|
||||
+find()
|
||||
+{
|
||||
+ gfind "$@"
|
||||
+}
|
||||
+
|
||||
trim_string()
|
||||
{
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
@@ -1166,9 +1171,9 @@ is_local_ip()
|
||||
# the domain name check:
|
||||
if [ "${2:-0}" -eq 0 ]; then
|
||||
# We consider all the names of a given host to be local addresses:
|
||||
- [ "$1" = "$(hostname -s)" -o \
|
||||
- "$1" = "$(hostname -f)" -o \
|
||||
- "$1" = "$(hostname -d)" ] && return 0
|
||||
+ [ "$1" = "$(hostname -s 2>/dev/null)" -o \
|
||||
+ "$1" = "$(hostname -f 2>/dev/null)" -o \
|
||||
+ "$1" = "$(hostname -d 2>/dev/null)" ] && return 0
|
||||
fi
|
||||
# If the address contains anything other than digits
|
||||
# and separators, it is not a local address:
|
||||
@@ -1199,14 +1204,17 @@ check_sockets_utils()
|
||||
lsof_available=0
|
||||
sockstat_available=0
|
||||
ss_available=0
|
||||
+ fstat_available=0
|
||||
|
||||
[ -n "$(commandex lsof)" ] && lsof_available=1
|
||||
[ -n "$(commandex sockstat)" ] && sockstat_available=1
|
||||
[ -n "$(commandex ss)" ] && ss_available=1
|
||||
+ [ -n "$(commandex fstat)" ] && fstat_available=1
|
||||
|
||||
if [ $lsof_available -eq 0 -a \
|
||||
$sockstat_available -eq 0 -a \
|
||||
- $ss_available -eq 0 ]
|
||||
+ $ss_available -eq 0 -a \
|
||||
+ $fstat_available -eq 0 ]
|
||||
then
|
||||
wsrep_log_error "Neither lsof, nor sockstat or ss tool was found in" \
|
||||
"the PATH. Make sure you have it installed."
|
||||
@@ -1249,6 +1257,8 @@ check_port()
|
||||
elif [ $ss_available -ne 0 ]; then
|
||||
ss -nlpH "( sport = :$port )" 2>/dev/null | \
|
||||
grep -q -E "users:\\(.*\\(\"($utils)[^[:space:]]*\"[^)]*,pid=$pid(,[^)]*)?\\)" && rc=0
|
||||
+ elif [ $fstat_available -ne 0 ]; then
|
||||
+ fstat -n 2>/dev/null | grep -q -E ".*$pid.*:$port\$" && rc=0
|
||||
else
|
||||
wsrep_log_error "Unknown sockets utility"
|
||||
exit 2 # ENOENT
|
|
@ -0,0 +1,43 @@
|
|||
Index: scripts/wsrep_sst_mariabackup.sh
|
||||
--- scripts/wsrep_sst_mariabackup.sh.orig
|
||||
+++ scripts/wsrep_sst_mariabackup.sh
|
||||
@@ -101,6 +101,12 @@ if [ -z "$BACKUP_BIN" ]; then
|
||||
exit 42
|
||||
fi
|
||||
|
||||
+GFIND_BIN=$(commandex 'gfind')
|
||||
+if [ -z "$GFIND_BIN" ]; then
|
||||
+ wsrep_log_error 'gfind binary not found in path'
|
||||
+ exit 42
|
||||
+fi
|
||||
+
|
||||
DATA="$WSREP_SST_OPT_DATA"
|
||||
INFO_FILE='xtrabackup_galera_info'
|
||||
IST_FILE='xtrabackup_ist'
|
||||
@@ -441,7 +447,7 @@ get_footprint()
|
||||
cd "$DATA_DIR"
|
||||
local payload_data=$(find . \
|
||||
-regex '.*undo[0-9]+$\|.*\.ibd$\|.*\.MYI$\|.*\.MYD$\|.*ibdata1$' \
|
||||
- -type f -print0 | du --files0-from=- --block-size=1 -c -s | \
|
||||
+ -type f -print0 | xargs -0 du -c -s | \
|
||||
awk 'END { print $1 }')
|
||||
local payload_undo=0
|
||||
if [ -n "$ib_undo_dir" -a "$ib_undo_dir" != '.' -a \
|
||||
@@ -449,7 +455,7 @@ get_footprint()
|
||||
then
|
||||
cd "$ib_undo_dir"
|
||||
payload_undo=$(find . -regex '.*undo[0-9]+$' -type f -print0 | \
|
||||
- du --files0-from=- --block-size=1 -c -s | awk 'END { print $1 }')
|
||||
+ xargs -0 du -c -s | awk 'END { print $1 }')
|
||||
fi
|
||||
cd "$OLD_PWD"
|
||||
|
||||
@@ -798,7 +804,7 @@ recv_joiner()
|
||||
local ltcmd="$tcmd"
|
||||
if [ $tmt -gt 0 ]; then
|
||||
if [ -n "$(commandex timeout)" ]; then
|
||||
- if timeout --help | grep -qw -F -- '-k'; then
|
||||
+ if timeout --help 2>/dev/null | grep -qw -F -- '-k'; then
|
||||
ltcmd="timeout -k $(( tmt+10 )) $tmt $tcmd"
|
||||
else
|
||||
ltcmd="timeout -s9 $tmt $tcmd"
|
40
databases/mariadb/patches/patch-scripts_wsrep_sst_rsync_sh
Normal file
40
databases/mariadb/patches/patch-scripts_wsrep_sst_rsync_sh
Normal file
|
@ -0,0 +1,40 @@
|
|||
Index: scripts/wsrep_sst_rsync.sh
|
||||
--- scripts/wsrep_sst_rsync.sh.orig
|
||||
+++ scripts/wsrep_sst_rsync.sh
|
||||
@@ -117,9 +117,14 @@ check_pid_and_port()
|
||||
fi
|
||||
port_info=$(sockstat "$opts" "$port" 2>/dev/null | \
|
||||
grep -E '[[:space:]]LISTEN' | grep -o -E "$filter")
|
||||
- else
|
||||
+ elif [ $ss_available -ne 0 ]; then
|
||||
port_info=$(ss -nlpH "( sport = :$port )" 2>/dev/null | \
|
||||
grep -F 'users:(' | grep -o -E "$filter")
|
||||
+ elif [ $fstat_available -ne 0 ]; then
|
||||
+ port_info=$(fstat -n 2>/dev/null | grep -E "[[:space:]](\\*|\\[?::\\]?):$port\$")
|
||||
+ else
|
||||
+ wsrep_log_error "Unknown sockets utility"
|
||||
+ exit 2 # ENOENT
|
||||
fi
|
||||
echo "$port_info" | \
|
||||
grep -q -E "[[:space:]](\\*|\\[?::\\]?):$port\$" && busy=1
|
||||
@@ -474,9 +479,9 @@ EOF
|
||||
# Preparing binlog files for transfer:
|
||||
wsrep_log_info "Preparing binlog files for transfer:"
|
||||
tar_type=0
|
||||
- if tar --help | grep -qw -F -- '--transform'; then
|
||||
+ if tar --help 2>/dev/null | grep -qw -F -- '--transform'; then
|
||||
tar_type=1
|
||||
- elif tar --version | grep -qw -E '^bsdtar'; then
|
||||
+ elif tar --version 2>/dev/null | grep -qw -E '^bsdtar'; then
|
||||
tar_type=2
|
||||
fi
|
||||
if [ $tar_type -eq 2 ]; then
|
||||
@@ -974,7 +979,7 @@ EOF
|
||||
fi
|
||||
# Extracting binlog files:
|
||||
wsrep_log_info "Extracting binlog files:"
|
||||
- if tar --version | grep -qw -E '^bsdtar'; then
|
||||
+ if tar --version 2>/dev/null | grep -qw -E '^bsdtar'; then
|
||||
tar -tf "$BINLOG_TAR_FILE" > "$tmpfile" && \
|
||||
tar -xvf "$BINLOG_TAR_FILE" > /dev/null || RC=$?
|
||||
else
|
|
@ -0,0 +1,19 @@
|
|||
Index: storage/rocksdb/CMakeLists.txt
|
||||
--- storage/rocksdb/CMakeLists.txt.orig
|
||||
+++ storage/rocksdb/CMakeLists.txt
|
||||
@@ -58,15 +58,6 @@ IF(MSVC_ARM64)
|
||||
SKIP_ROCKSDB_PLUGIN("Windows ARM64 not supported")
|
||||
ENDIF()
|
||||
|
||||
-#
|
||||
-# Also, disable on ARM64 when not Linux
|
||||
-# Requires submodule update to v6.16.3
|
||||
-# containing commit https://github.com/facebook/rocksdb/commit/ee4bd4780b321ddb5f92a0f4eb956f2a2ebd60dc
|
||||
-#
|
||||
-IF(CMAKE_SYSTEM_PROCESSOR MATCHES "(arm64|aarch64)" AND NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
- SKIP_ROCKSDB_PLUGIN("ARM64 disabled on all except Linux")
|
||||
-ENDIF()
|
||||
-
|
||||
# This plugin needs recent C++ compilers (it is using C++11 features)
|
||||
# Skip build for the old compilers
|
||||
SET(CXX11_FLAGS)
|
|
@ -0,0 +1,17 @@
|
|||
jemalloc_helper: Limit the mm_malloc.h hack to glibc on linux
|
||||
https://github.com/facebook/rocksdb/commit/bac399449d0bc8127a2bfb97e78c1ab6356b201c
|
||||
|
||||
https://jira.mariadb.org/browse/MDEV-29875
|
||||
|
||||
Index: storage/rocksdb/rocksdb/port/jemalloc_helper.h
|
||||
--- storage/rocksdb/rocksdb/port/jemalloc_helper.h.orig
|
||||
+++ storage/rocksdb/rocksdb/port/jemalloc_helper.h
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
-#if defined(__clang__)
|
||||
+#if defined(__clang__) && defined(__GLIBC__)
|
||||
// glibc's `posix_memalign()` declaration specifies `throw()` while clang's
|
||||
// declaration does not. There is a hack in clang to make its re-declaration
|
||||
// compatible with glibc's if they are declared consecutively. That hack breaks
|
|
@ -0,0 +1,209 @@
|
|||
- Check for sys/auxv.h
|
||||
https://github.com/facebook/rocksdb/commit/8bbd76edbfd0c187960aae31d107a9a0fa71472c
|
||||
- Fix RocksDB SIGILL error on Raspberry PI 4
|
||||
https://github.com/facebook/rocksdb/commit/29f7bbef995bdf83098963799c66af742e95373f
|
||||
- Fix compilation on Apple Silicon
|
||||
https://github.com/facebook/rocksdb/commit/ee4bd4780b321ddb5f92a0f4eb956f2a2ebd60dc
|
||||
- Adding ARM AT_HWCAP support for FreeBSD
|
||||
https://github.com/facebook/rocksdb/commit/93c6c18cf9731f47b386dd445dc13363423c507e
|
||||
- Add OpenBSD/arm64 support for detection of CRC32 and PMULL
|
||||
https://github.com/facebook/rocksdb/commit/4a6906e28ce058f6cea085b394a1adbd19aa468e
|
||||
|
||||
https://jira.mariadb.org/browse/MDEV-29875
|
||||
|
||||
Index: storage/rocksdb/rocksdb/util/crc32c_arm64.cc
|
||||
--- storage/rocksdb/rocksdb/util/crc32c_arm64.cc.orig
|
||||
+++ storage/rocksdb/rocksdb/util/crc32c_arm64.cc
|
||||
@@ -5,13 +5,26 @@
|
||||
|
||||
#include "util/crc32c_arm64.h"
|
||||
|
||||
-#if defined(__linux__) && defined(HAVE_ARM64_CRC)
|
||||
+#if defined(HAVE_ARM64_CRC)
|
||||
|
||||
+#if defined(__linux__)
|
||||
#include <asm/hwcap.h>
|
||||
+#endif
|
||||
+#ifdef ROCKSDB_AUXV_GETAUXVAL_PRESENT
|
||||
#include <sys/auxv.h>
|
||||
+#endif
|
||||
#ifndef HWCAP_CRC32
|
||||
#define HWCAP_CRC32 (1 << 7)
|
||||
#endif
|
||||
+#ifndef HWCAP_PMULL
|
||||
+#define HWCAP_PMULL (1 << 4)
|
||||
+#endif
|
||||
+#if defined(__OpenBSD__)
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/sysctl.h>
|
||||
+#include <machine/cpu.h>
|
||||
+#include <machine/armreg.h>
|
||||
+#endif
|
||||
|
||||
#ifdef HAVE_ARM64_CRYPTO
|
||||
/* unfolding to compute 8 * 3 = 24 bytes parallelly */
|
||||
@@ -33,18 +46,72 @@
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
+extern bool pmull_runtime_flag;
|
||||
+
|
||||
uint32_t crc32c_runtime_check(void) {
|
||||
- uint64_t auxv = getauxval(AT_HWCAP);
|
||||
+#if defined(ROCKSDB_AUXV_GETAUXVAL_PRESENT) || defined(__FreeBSD__)
|
||||
+ uint64_t auxv = 0;
|
||||
+#if defined(ROCKSDB_AUXV_GETAUXVAL_PRESENT)
|
||||
+ auxv = getauxval(AT_HWCAP);
|
||||
+#elif defined(__FreeBSD__)
|
||||
+ elf_aux_info(AT_HWCAP, &auxv, sizeof(auxv));
|
||||
+#endif
|
||||
return (auxv & HWCAP_CRC32) != 0;
|
||||
+#elif defined(__OpenBSD__)
|
||||
+ int r = 0;
|
||||
+ const int isar0_mib[] = { CTL_MACHDEP, CPU_ID_AA64ISAR0 };
|
||||
+ uint64_t isar0;
|
||||
+ size_t len = sizeof(isar0);
|
||||
+
|
||||
+ if (sysctl(isar0_mib, 2, &isar0, &len, NULL, 0) != -1) {
|
||||
+ if (ID_AA64ISAR0_CRC32(isar0) >= ID_AA64ISAR0_CRC32_BASE)
|
||||
+ r = 1;
|
||||
+ }
|
||||
+ return r;
|
||||
+#else
|
||||
+ return 0;
|
||||
+#endif
|
||||
}
|
||||
|
||||
-uint32_t crc32c_arm64(uint32_t crc, unsigned char const *data,
|
||||
- unsigned len) {
|
||||
+bool crc32c_pmull_runtime_check(void) {
|
||||
+#if defined(ROCKSDB_AUXV_GETAUXVAL_PRESENT) || defined(__FreeBSD__)
|
||||
+ uint64_t auxv = 0;
|
||||
+#if defined(ROCKSDB_AUXV_GETAUXVAL_PRESENT)
|
||||
+ auxv = getauxval(AT_HWCAP);
|
||||
+#elif defined(__FreeBSD__)
|
||||
+ elf_aux_info(AT_HWCAP, &auxv, sizeof(auxv));
|
||||
+#endif
|
||||
+ return (auxv & HWCAP_PMULL) != 0;
|
||||
+#elif defined(__OpenBSD__)
|
||||
+ bool r = false;
|
||||
+ const int isar0_mib[] = { CTL_MACHDEP, CPU_ID_AA64ISAR0 };
|
||||
+ uint64_t isar0;
|
||||
+ size_t len = sizeof(isar0);
|
||||
+
|
||||
+ if (sysctl(isar0_mib, 2, &isar0, &len, NULL, 0) != -1) {
|
||||
+ if (ID_AA64ISAR0_AES(isar0) >= ID_AA64ISAR0_AES_PMULL)
|
||||
+ r = true;
|
||||
+ }
|
||||
+ return r;
|
||||
+#else
|
||||
+ return false;
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
+uint32_t
|
||||
+crc32c_arm64(uint32_t crc, unsigned char const *data, size_t len) {
|
||||
const uint8_t *buf8;
|
||||
const uint64_t *buf64 = (uint64_t *)data;
|
||||
int length = (int)len;
|
||||
crc ^= 0xffffffff;
|
||||
|
||||
+ /*
|
||||
+ * Pmull runtime check here.
|
||||
+ * Raspberry Pi supports crc32 but doesn't support pmull.
|
||||
+ * Skip Crc32c Parallel computation if no crypto extension available.
|
||||
+ */
|
||||
+ if (pmull_runtime_flag) {
|
||||
+/* Macro (HAVE_ARM64_CRYPTO) is used for compiling check */
|
||||
#ifdef HAVE_ARM64_CRYPTO
|
||||
/* Crc32c Parallel computation
|
||||
* Algorithm comes from Intel whitepaper:
|
||||
@@ -55,51 +122,53 @@ uint32_t crc32c_arm64(uint32_t crc, unsigned char cons
|
||||
* One Block: 42(BLK_LENGTH) * 8(step length: crc32c_u64) bytes
|
||||
*/
|
||||
#define BLK_LENGTH 42
|
||||
- while (length >= 1024) {
|
||||
- uint64_t t0, t1;
|
||||
- uint32_t crc0 = 0, crc1 = 0, crc2 = 0;
|
||||
+ while (length >= 1024) {
|
||||
+ uint64_t t0, t1;
|
||||
+ uint32_t crc0 = 0, crc1 = 0, crc2 = 0;
|
||||
|
||||
- /* Parallel Param:
|
||||
- * k0 = CRC32(x ^ (42 * 8 * 8 * 2 - 1));
|
||||
- * k1 = CRC32(x ^ (42 * 8 * 8 - 1));
|
||||
- */
|
||||
- uint32_t k0 = 0xe417f38a, k1 = 0x8f158014;
|
||||
+ /* Parallel Param:
|
||||
+ * k0 = CRC32(x ^ (42 * 8 * 8 * 2 - 1));
|
||||
+ * k1 = CRC32(x ^ (42 * 8 * 8 - 1));
|
||||
+ */
|
||||
+ uint32_t k0 = 0xe417f38a, k1 = 0x8f158014;
|
||||
|
||||
- /* Prefetch data for following block to avoid cache miss */
|
||||
- PREF1KL1((uint8_t *)buf64, 1024);
|
||||
+ /* Prefetch data for following block to avoid cache miss */
|
||||
+ PREF1KL1((uint8_t *)buf64, 1024);
|
||||
|
||||
- /* First 8 byte for better pipelining */
|
||||
- crc0 = crc32c_u64(crc, *buf64++);
|
||||
+ /* First 8 byte for better pipelining */
|
||||
+ crc0 = crc32c_u64(crc, *buf64++);
|
||||
|
||||
- /* 3 blocks crc32c parallel computation
|
||||
- * Macro unfolding to compute parallelly
|
||||
- * 168 * 6 = 1008 (bytes)
|
||||
- */
|
||||
- CRC32C7X24BYTES(0);
|
||||
- CRC32C7X24BYTES(1);
|
||||
- CRC32C7X24BYTES(2);
|
||||
- CRC32C7X24BYTES(3);
|
||||
- CRC32C7X24BYTES(4);
|
||||
- CRC32C7X24BYTES(5);
|
||||
- buf64 += (BLK_LENGTH * 3);
|
||||
+ /* 3 blocks crc32c parallel computation
|
||||
+ * Macro unfolding to compute parallelly
|
||||
+ * 168 * 6 = 1008 (bytes)
|
||||
+ */
|
||||
+ CRC32C7X24BYTES(0);
|
||||
+ CRC32C7X24BYTES(1);
|
||||
+ CRC32C7X24BYTES(2);
|
||||
+ CRC32C7X24BYTES(3);
|
||||
+ CRC32C7X24BYTES(4);
|
||||
+ CRC32C7X24BYTES(5);
|
||||
+ buf64 += (BLK_LENGTH * 3);
|
||||
|
||||
- /* Last 8 bytes */
|
||||
- crc = crc32c_u64(crc2, *buf64++);
|
||||
+ /* Last 8 bytes */
|
||||
+ crc = crc32c_u64(crc2, *buf64++);
|
||||
|
||||
- t0 = (uint64_t)vmull_p64(crc0, k0);
|
||||
- t1 = (uint64_t)vmull_p64(crc1, k1);
|
||||
+ t0 = (uint64_t)vmull_p64(crc0, k0);
|
||||
+ t1 = (uint64_t)vmull_p64(crc1, k1);
|
||||
|
||||
- /* Merge (crc0, crc1, crc2) -> crc */
|
||||
- crc1 = crc32c_u64(0, t1);
|
||||
- crc ^= crc1;
|
||||
- crc0 = crc32c_u64(0, t0);
|
||||
- crc ^= crc0;
|
||||
+ /* Merge (crc0, crc1, crc2) -> crc */
|
||||
+ crc1 = crc32c_u64(0, t1);
|
||||
+ crc ^= crc1;
|
||||
+ crc0 = crc32c_u64(0, t0);
|
||||
+ crc ^= crc0;
|
||||
|
||||
- length -= 1024;
|
||||
- }
|
||||
+ length -= 1024;
|
||||
+ }
|
||||
|
||||
- if (length == 0) return crc ^ (0xffffffffU);
|
||||
+ if (length == 0) return crc ^ (0xffffffffU);
|
||||
#endif
|
||||
+ } // if Pmull runtime check here
|
||||
+
|
||||
buf8 = (const uint8_t *)buf64;
|
||||
while (length >= 8) {
|
||||
crc = crc32c_u64(crc, *(const uint64_t *)buf8);
|
|
@ -0,0 +1,30 @@
|
|||
- Fix RocksDB SIGILL error on Raspberry PI 4
|
||||
https://github.com/facebook/rocksdb/commit/29f7bbef995bdf83098963799c66af742e95373f
|
||||
- Fix compilation on Apple Silicon
|
||||
https://github.com/facebook/rocksdb/commit/ee4bd4780b321ddb5f92a0f4eb956f2a2ebd60dc
|
||||
|
||||
https://jira.mariadb.org/browse/MDEV-29875
|
||||
|
||||
Index: storage/rocksdb/rocksdb/util/crc32c_arm64.h
|
||||
--- storage/rocksdb/rocksdb/util/crc32c_arm64.h.orig
|
||||
+++ storage/rocksdb/rocksdb/util/crc32c_arm64.h
|
||||
@@ -7,6 +7,7 @@
|
||||
#define UTIL_CRC32C_ARM64_H
|
||||
|
||||
#include <cinttypes>
|
||||
+#include <cstddef>
|
||||
|
||||
#if defined(__aarch64__) || defined(__AARCH64__)
|
||||
|
||||
@@ -33,8 +34,10 @@
|
||||
PREF4X64L1(buffer, (PREF_OFFSET), 8) \
|
||||
PREF4X64L1(buffer, (PREF_OFFSET), 12)
|
||||
|
||||
-extern uint32_t crc32c_arm64(uint32_t crc, unsigned char const *data, unsigned len);
|
||||
+extern uint32_t crc32c_arm64(uint32_t crc, unsigned char const *data,
|
||||
+ size_t len);
|
||||
extern uint32_t crc32c_runtime_check(void);
|
||||
+extern bool crc32c_pmull_runtime_check(void);
|
||||
|
||||
#ifdef __ARM_FEATURE_CRYPTO
|
||||
#define HAVE_ARM64_CRYPTO
|
|
@ -0,0 +1,54 @@
|
|||
- Fix RocksDB SIGILL error on Raspberry PI 4
|
||||
https://github.com/facebook/rocksdb/commit/29f7bbef995bdf83098963799c66af742e95373f
|
||||
- Fix compilation on Apple Silicon
|
||||
https://github.com/facebook/rocksdb/commit/ee4bd4780b321ddb5f92a0f4eb956f2a2ebd60dc
|
||||
|
||||
https://jira.mariadb.org/browse/MDEV-29875
|
||||
|
||||
Index: storage/rocksdb/rocksdb/util/crc32c.cc
|
||||
--- storage/rocksdb/rocksdb/util/crc32c.cc.orig
|
||||
+++ storage/rocksdb/rocksdb/util/crc32c.cc
|
||||
@@ -39,6 +39,10 @@
|
||||
|
||||
#endif
|
||||
|
||||
+#if defined(HAVE_ARM64_CRC)
|
||||
+bool pmull_runtime_flag = false;
|
||||
+#endif
|
||||
+
|
||||
namespace ROCKSDB_NAMESPACE {
|
||||
namespace crc32c {
|
||||
|
||||
@@ -468,7 +472,7 @@ static bool isAltiVec() {
|
||||
}
|
||||
#endif
|
||||
|
||||
-#if defined(__linux__) && defined(HAVE_ARM64_CRC)
|
||||
+#if defined(HAVE_ARM64_CRC)
|
||||
uint32_t ExtendARMImpl(uint32_t crc, const char *buf, size_t size) {
|
||||
return crc32c_arm64(crc, (const unsigned char *)buf, size);
|
||||
}
|
||||
@@ -488,10 +492,11 @@ std::string IsFastCrc32Supported() {
|
||||
has_fast_crc = false;
|
||||
arch = "PPC";
|
||||
#endif
|
||||
-#elif defined(__linux__) && defined(HAVE_ARM64_CRC)
|
||||
+#elif defined(HAVE_ARM64_CRC)
|
||||
if (crc32c_runtime_check()) {
|
||||
has_fast_crc = true;
|
||||
arch = "Arm64";
|
||||
+ pmull_runtime_flag = crc32c_pmull_runtime_check();
|
||||
} else {
|
||||
has_fast_crc = false;
|
||||
arch = "Arm64";
|
||||
@@ -1220,8 +1225,9 @@ uint32_t crc32c_3way(uint32_t crc, const char* buf, si
|
||||
static inline Function Choose_Extend() {
|
||||
#ifdef HAVE_POWER8
|
||||
return isAltiVec() ? ExtendPPCImpl : ExtendImpl<Slow_CRC32>;
|
||||
-#elif defined(__linux__) && defined(HAVE_ARM64_CRC)
|
||||
+#elif defined(HAVE_ARM64_CRC)
|
||||
if(crc32c_runtime_check()) {
|
||||
+ pmull_runtime_flag = crc32c_pmull_runtime_check();
|
||||
return ExtendARMImpl;
|
||||
} else {
|
||||
return ExtendImpl<Slow_CRC32>;
|
14
databases/mariadb/patches/patch-support-files_CMakeLists_txt
Normal file
14
databases/mariadb/patches/patch-support-files_CMakeLists_txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
Adjust the pkg-config file path since the port puts the shared libs in a sub directory.
|
||||
|
||||
Index: support-files/CMakeLists.txt
|
||||
--- support-files/CMakeLists.txt.orig
|
||||
+++ support-files/CMakeLists.txt
|
||||
@@ -96,7 +96,7 @@ IF(UNIX AND NOT WITHOUT_SERVER)
|
||||
ENDIF()
|
||||
|
||||
CONFIGURE_FILE(mariadb.pc.in ${CMAKE_CURRENT_BINARY_DIR}/mariadb.pc @ONLY)
|
||||
- INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/mariadb.pc DESTINATION ${INSTALL_LIBDIR}/pkgconfig COMPONENT Development)
|
||||
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/mariadb.pc DESTINATION ${INSTALL_LIBDIR}/../pkgconfig COMPONENT Development)
|
||||
|
||||
INSTALL(FILES mysql.m4 DESTINATION ${INSTALL_SHAREDIR}/aclocal COMPONENT Development)
|
||||
|
5
databases/mariadb/pkg/DESCR-main
Normal file
5
databases/mariadb/pkg/DESCR-main
Normal file
|
@ -0,0 +1,5 @@
|
|||
MariaDB is a multi-threaded SQL database with a command syntax very similar
|
||||
to mSQL.
|
||||
|
||||
This is the client portion of MariaDB, it provides the client binaries,
|
||||
mysqlclient library and headers for the MariaDB client API.
|
5
databases/mariadb/pkg/DESCR-server
Normal file
5
databases/mariadb/pkg/DESCR-server
Normal file
|
@ -0,0 +1,5 @@
|
|||
MariaDB is a multi-threaded SQL database with a command syntax very similar
|
||||
to mSQL.
|
||||
|
||||
This is the server portion of MariaDB, it provides the MariaDB server as
|
||||
well as various administrative binaries.
|
5
databases/mariadb/pkg/DESCR-tests
Normal file
5
databases/mariadb/pkg/DESCR-tests
Normal file
|
@ -0,0 +1,5 @@
|
|||
MariaDB is a multi-threaded SQL database with a command syntax very similar
|
||||
to mSQL.
|
||||
|
||||
This is the tests portion of MariaDB, it provides a regression test suite
|
||||
and benchmark for MariaDB.
|
12
databases/mariadb/pkg/PFRAG.le-server
Normal file
12
databases/mariadb/pkg/PFRAG.le-server
Normal file
|
@ -0,0 +1,12 @@
|
|||
@so lib/mysql/plugin/ha_mroonga.so
|
||||
share/groonga/
|
||||
share/groonga-normalizer-mysql/
|
||||
share/groonga-normalizer-mysql/README.md
|
||||
share/groonga-normalizer-mysql/lgpl-2.0.txt
|
||||
share/groonga/COPYING
|
||||
share/groonga/README.md
|
||||
share/mysql/mroonga/
|
||||
share/mysql/mroonga/AUTHORS
|
||||
share/mysql/mroonga/COPYING
|
||||
share/mysql/mroonga/install.sql
|
||||
share/mysql/mroonga/uninstall.sql
|
1526
databases/mariadb/pkg/PFRAG.le-tests
Normal file
1526
databases/mariadb/pkg/PFRAG.le-tests
Normal file
File diff suppressed because it is too large
Load diff
6
databases/mariadb/pkg/PFRAG.rocksdb-server
Normal file
6
databases/mariadb/pkg/PFRAG.rocksdb-server
Normal file
|
@ -0,0 +1,6 @@
|
|||
@bin bin/mariadb-ldb
|
||||
bin/myrocks_hotbackup
|
||||
bin/mysql_ldb
|
||||
@bin bin/sst_dump
|
||||
@so lib/mysql/plugin/ha_rocksdb.so
|
||||
@man man/man1/myrocks_hotbackup.1
|
1323
databases/mariadb/pkg/PFRAG.rocksdb-tests
Normal file
1323
databases/mariadb/pkg/PFRAG.rocksdb-tests
Normal file
File diff suppressed because it is too large
Load diff
237
databases/mariadb/pkg/PLIST-main
Normal file
237
databases/mariadb/pkg/PLIST-main
Normal file
|
@ -0,0 +1,237 @@
|
|||
@conflict mariadb-server-<10.5.5p0v1
|
||||
@conflict mytop-*
|
||||
@pkgpath databases/mytop
|
||||
@bin bin/mariadb
|
||||
bin/mariadb-access
|
||||
@bin bin/mariadb-admin
|
||||
@bin bin/mariadb-binlog
|
||||
@bin bin/mariadb-check
|
||||
bin/mariadb-config
|
||||
@bin bin/mariadb-conv
|
||||
bin/mariadb-convert-table-format
|
||||
@bin bin/mariadb-dump
|
||||
bin/mariadb-find-rows
|
||||
bin/mariadb-hotcopy
|
||||
@bin bin/mariadb-import
|
||||
@bin bin/mariadb-plugin
|
||||
bin/mariadb-setpermission
|
||||
@bin bin/mariadb-show
|
||||
@bin bin/mariadb-slap
|
||||
@bin bin/mariadb-waitpid
|
||||
@bin bin/mariadb_config
|
||||
bin/msql2mysql
|
||||
bin/mysql
|
||||
bin/mysql_config
|
||||
bin/mysql_find_rows
|
||||
bin/mysql_waitpid
|
||||
bin/mysqlaccess
|
||||
bin/mysqladmin
|
||||
bin/mysqlbinlog
|
||||
bin/mysqlcheck
|
||||
bin/mysqldump
|
||||
bin/mysqlimport
|
||||
bin/mysqlshow
|
||||
bin/mysqlslap
|
||||
bin/mytop
|
||||
include/mysql/
|
||||
include/mysql/errmsg.h
|
||||
include/mysql/ma_list.h
|
||||
include/mysql/ma_pvio.h
|
||||
include/mysql/ma_tls.h
|
||||
include/mysql/mariadb/
|
||||
include/mysql/mariadb/ma_io.h
|
||||
include/mysql/mariadb_com.h
|
||||
include/mysql/mariadb_ctype.h
|
||||
include/mysql/mariadb_dyncol.h
|
||||
include/mysql/mariadb_rpl.h
|
||||
include/mysql/mariadb_stmt.h
|
||||
include/mysql/mariadb_version.h
|
||||
include/mysql/my_alloca.h
|
||||
include/mysql/my_config.h
|
||||
include/mysql/my_global.h
|
||||
include/mysql/my_sys.h
|
||||
include/mysql/mysql/
|
||||
include/mysql/mysql.h
|
||||
include/mysql/mysql/client_plugin.h
|
||||
include/mysql/mysql/plugin_auth.h
|
||||
include/mysql/mysql/plugin_auth_common.h
|
||||
include/mysql/mysql_com.h
|
||||
include/mysql/mysql_version.h
|
||||
include/mysql/mysqld_error.h
|
||||
@lib lib/libmariadb.so.${LIBmariadb_VERSION}
|
||||
@lib lib/libmysqlclient.so.${LIBmysqlclient_VERSION}
|
||||
@lib lib/libmysqlclient_r.so.${LIBmysqlclient_r_VERSION}
|
||||
lib/mysql/
|
||||
@static-lib lib/mysql/libmariadb.a
|
||||
@lib lib/mysql/libmariadb.so.${LIBmariadb_VERSION}
|
||||
@static-lib lib/mysql/libmariadbclient.a
|
||||
@lib lib/mysql/libmysqlclient.so.${LIBmysqlclient_VERSION}
|
||||
@lib lib/mysql/libmysqlclient_r.so.${LIBmysqlclient_r_VERSION}
|
||||
@static-lib lib/mysql/libmysqlservices.a
|
||||
lib/pkgconfig/libmariadb.pc
|
||||
lib/pkgconfig/mariadb.pc
|
||||
@man man/man1/galera_new_cluster.1
|
||||
@man man/man1/galera_recovery.1
|
||||
@man man/man1/mariabackup.1
|
||||
@man man/man1/mariadb-access.1
|
||||
@man man/man1/mariadb-admin.1
|
||||
@man man/man1/mariadb-binlog.1
|
||||
@man man/man1/mariadb-check.1
|
||||
@man man/man1/mariadb-conv.1
|
||||
@man man/man1/mariadb-convert-table-format.1
|
||||
@man man/man1/mariadb-dump.1
|
||||
@man man/man1/mariadb-embedded.1
|
||||
@man man/man1/mariadb-find-rows.1
|
||||
@man man/man1/mariadb-hotcopy.1
|
||||
@man man/man1/mariadb-import.1
|
||||
@man man/man1/mariadb-ldb.1
|
||||
@man man/man1/mariadb-plugin.1
|
||||
@man man/man1/mariadb-service-convert.1
|
||||
@man man/man1/mariadb-setpermission.1
|
||||
@man man/man1/mariadb-show.1
|
||||
@man man/man1/mariadb-slap.1
|
||||
@man man/man1/mariadb-waitpid.1
|
||||
@man man/man1/mariadb.1
|
||||
@man man/man1/mariadb_config.1
|
||||
@man man/man1/mbstream.1
|
||||
@man man/man1/msql2mysql.1
|
||||
@man man/man1/my_safe_process.1
|
||||
@man man/man1/mysql.1
|
||||
@man man/man1/mysql_config.1
|
||||
@man man/man1/mysql_embedded.1
|
||||
@man man/man1/mysql_find_rows.1
|
||||
@man man/man1/mysql_ldb.1
|
||||
@man man/man1/mysql_waitpid.1
|
||||
@man man/man1/mysqlaccess.1
|
||||
@man man/man1/mysqladmin.1
|
||||
@man man/man1/mysqlbinlog.1
|
||||
@man man/man1/mysqlcheck.1
|
||||
@man man/man1/mysqld_safe_helper.1
|
||||
@man man/man1/mysqldump.1
|
||||
@man man/man1/mysqldumpslow.1
|
||||
@man man/man1/mysqlimport.1
|
||||
@man man/man1/mysqlshow.1
|
||||
@man man/man1/mysqlslap.1
|
||||
@man man/man1/mytop.1
|
||||
@man man/man3/mariadb_cancel.3
|
||||
@man man/man3/mariadb_connection.3
|
||||
@man man/man3/mariadb_dyncol_check.3
|
||||
@man man/man3/mariadb_dyncol_column_cmp_named.3
|
||||
@man man/man3/mariadb_dyncol_column_count.3
|
||||
@man man/man3/mariadb_dyncol_create_many_named.3
|
||||
@man man/man3/mariadb_dyncol_create_many_num.3
|
||||
@man man/man3/mariadb_dyncol_exists_named.3
|
||||
@man man/man3/mariadb_dyncol_exists_num.3
|
||||
@man man/man3/mariadb_dyncol_free.3
|
||||
@man man/man3/mariadb_dyncol_list_named.3
|
||||
@man man/man3/mariadb_dyncol_list_num.3
|
||||
@man man/man3/mariadb_dyncol_unpack.3
|
||||
@man man/man3/mariadb_dyncol_update_many_named.3
|
||||
@man man/man3/mariadb_dyncol_update_many_num.3
|
||||
@man man/man3/mariadb_get_infov.3
|
||||
@man man/man3/mariadb_reconnect.3
|
||||
@man man/man3/mariadb_rpl_close.3
|
||||
@man man/man3/mariadb_rpl_fetch.3
|
||||
@man man/man3/mariadb_rpl_get_optionsv.3
|
||||
@man man/man3/mariadb_rpl_open.3
|
||||
@man man/man3/mariadb_rpl_optionsv.3
|
||||
@man man/man3/mariadb_stmt_execute_direct.3
|
||||
@man man/man3/mariadb_stmt_fetch_fields.3
|
||||
@man man/man3/mysql_affected_rows.3
|
||||
@man man/man3/mysql_autocommit.3
|
||||
@man man/man3/mysql_change_user.3
|
||||
@man man/man3/mysql_close.3
|
||||
@man man/man3/mysql_commit.3
|
||||
@man man/man3/mysql_data_seek.3
|
||||
@man man/man3/mysql_errno.3
|
||||
@man man/man3/mysql_error.3
|
||||
@man man/man3/mysql_fetch_field.3
|
||||
@man man/man3/mysql_fetch_field_direct.3
|
||||
@man man/man3/mysql_fetch_fields.3
|
||||
@man man/man3/mysql_fetch_lengths.3
|
||||
@man man/man3/mysql_fetch_row.3
|
||||
@man man/man3/mysql_field_count.3
|
||||
@man man/man3/mysql_field_seek.3
|
||||
@man man/man3/mysql_field_tell.3
|
||||
@man man/man3/mysql_free_result.3
|
||||
@man man/man3/mysql_get_character_set_info.3
|
||||
@man man/man3/mysql_get_client_info.3
|
||||
@man man/man3/mysql_get_client_version.3
|
||||
@man man/man3/mysql_get_host_info.3
|
||||
@man man/man3/mysql_get_proto_info.3
|
||||
@man man/man3/mysql_get_server_info.3
|
||||
@man man/man3/mysql_get_server_version.3
|
||||
@man man/man3/mysql_get_socket.3
|
||||
@man man/man3/mysql_get_ssl_cipher.3
|
||||
@man man/man3/mysql_hex_string.3
|
||||
@man man/man3/mysql_info.3
|
||||
@man man/man3/mysql_init.3
|
||||
@man man/man3/mysql_kill.3
|
||||
@man man/man3/mysql_more_results.3
|
||||
@man man/man3/mysql_next_result.3
|
||||
@man man/man3/mysql_num_fields.3
|
||||
@man man/man3/mysql_num_rows.3
|
||||
@man man/man3/mysql_options.3
|
||||
@man man/man3/mysql_options4.3
|
||||
@man man/man3/mysql_optionsv.3
|
||||
@man man/man3/mysql_ping.3
|
||||
@man man/man3/mysql_query.3
|
||||
@man man/man3/mysql_read_query_result.3
|
||||
@man man/man3/mysql_real_connect.3
|
||||
@man man/man3/mysql_real_escape_string.3
|
||||
@man man/man3/mysql_real_query.3
|
||||
@man man/man3/mysql_refresh.3
|
||||
@man man/man3/mysql_reset_connection.3
|
||||
@man man/man3/mysql_rollback.3
|
||||
@man man/man3/mysql_row_seek.3
|
||||
@man man/man3/mysql_row_tell.3
|
||||
@man man/man3/mysql_select_db.3
|
||||
@man man/man3/mysql_send_query.3
|
||||
@man man/man3/mysql_server_end.3
|
||||
@man man/man3/mysql_server_init.3
|
||||
@man man/man3/mysql_session_track_get_first.3
|
||||
@man man/man3/mysql_session_track_get_next.3
|
||||
@man man/man3/mysql_set_character_set.3
|
||||
@man man/man3/mysql_set_server_option.3
|
||||
@man man/man3/mysql_shutdown.3
|
||||
@man man/man3/mysql_sqlstate.3
|
||||
@man man/man3/mysql_ssl_set.3
|
||||
@man man/man3/mysql_stat.3
|
||||
@man man/man3/mysql_stmt_affected_rows.3
|
||||
@man man/man3/mysql_stmt_attr_get.3
|
||||
@man man/man3/mysql_stmt_attr_set.3
|
||||
@man man/man3/mysql_stmt_bind_param.3
|
||||
@man man/man3/mysql_stmt_bind_result.3
|
||||
@man man/man3/mysql_stmt_close.3
|
||||
@man man/man3/mysql_stmt_data_seek.3
|
||||
@man man/man3/mysql_stmt_errno.3
|
||||
@man man/man3/mysql_stmt_error.3
|
||||
@man man/man3/mysql_stmt_execute.3
|
||||
@man man/man3/mysql_stmt_fetch.3
|
||||
@man man/man3/mysql_stmt_fetch_column.3
|
||||
@man man/man3/mysql_stmt_field_count.3
|
||||
@man man/man3/mysql_stmt_free_result.3
|
||||
@man man/man3/mysql_stmt_init.3
|
||||
@man man/man3/mysql_stmt_insert_id.3
|
||||
@man man/man3/mysql_stmt_more_results.3
|
||||
@man man/man3/mysql_stmt_next_result.3
|
||||
@man man/man3/mysql_stmt_num_rows.3
|
||||
@man man/man3/mysql_stmt_param_count.3
|
||||
@man man/man3/mysql_stmt_param_metadata.3
|
||||
@man man/man3/mysql_stmt_prepare.3
|
||||
@man man/man3/mysql_stmt_reset.3
|
||||
@man man/man3/mysql_stmt_result_metadata.3
|
||||
@man man/man3/mysql_stmt_row_seek.3
|
||||
@man man/man3/mysql_stmt_row_tell.3
|
||||
@man man/man3/mysql_stmt_send_long_data.3
|
||||
@man man/man3/mysql_stmt_sqlstate.3
|
||||
@man man/man3/mysql_stmt_store_result.3
|
||||
@man man/man3/mysql_stmt_warning_count.3
|
||||
@man man/man3/mysql_store_result.3
|
||||
@man man/man3/mysql_thread_end.3
|
||||
@man man/man3/mysql_thread_id.3
|
||||
@man man/man3/mysql_thread_init.3
|
||||
@man man/man3/mysql_use_result.3
|
||||
@man man/man3/mysql_warning_count.3
|
||||
share/aclocal/
|
||||
share/aclocal/mysql.m4
|
707
databases/mariadb/pkg/PLIST-server
Normal file
707
databases/mariadb/pkg/PLIST-server
Normal file
|
@ -0,0 +1,707 @@
|
|||
@conflict mariadb-client-<=10.4.12v1
|
||||
@newgroup _mysql:502
|
||||
@newuser _mysql:502:_mysql::MySQL Account:/nonexistent:/sbin/nologin
|
||||
@rcscript ${RCDIR}/mysqld
|
||||
@bin bin/aria_chk
|
||||
@bin bin/aria_dump_log
|
||||
@bin bin/aria_ftdump
|
||||
@bin bin/aria_pack
|
||||
@bin bin/aria_read_log
|
||||
@bin bin/aria_s3_copy
|
||||
@bin bin/innochecksum
|
||||
bin/mariabackup
|
||||
@bin bin/mariadb-backup
|
||||
bin/mariadb-dumpslow
|
||||
bin/mariadb-fix-extensions
|
||||
bin/mariadb-install-db
|
||||
bin/mariadb-secure-installation
|
||||
@bin bin/mariadb-tzinfo-to-sql
|
||||
@bin bin/mariadb-upgrade
|
||||
bin/mariadbd-multi
|
||||
bin/mariadbd-safe
|
||||
@bin bin/mariadbd-safe-helper
|
||||
@bin bin/mbstream
|
||||
@bin bin/my_print_defaults
|
||||
@bin bin/myisam_ftdump
|
||||
@bin bin/myisamchk
|
||||
@bin bin/myisamlog
|
||||
@bin bin/myisampack
|
||||
bin/mysql_convert_table_format
|
||||
bin/mysql_fix_extensions
|
||||
bin/mysql_install_db
|
||||
bin/mysql_plugin
|
||||
bin/mysql_secure_installation
|
||||
bin/mysql_setpermission
|
||||
bin/mysql_tzinfo_to_sql
|
||||
bin/mysql_upgrade
|
||||
bin/mysqld_multi
|
||||
bin/mysqld_safe
|
||||
bin/mysqld_safe_helper
|
||||
bin/mysqldumpslow
|
||||
bin/mysqlhotcopy
|
||||
@bin bin/perror
|
||||
@bin bin/replace
|
||||
@bin bin/resolve_stack_dump
|
||||
@bin bin/resolveip
|
||||
bin/wsrep_sst_backup
|
||||
bin/wsrep_sst_common
|
||||
bin/wsrep_sst_mariabackup
|
||||
bin/wsrep_sst_mysqldump
|
||||
bin/wsrep_sst_rsync
|
||||
bin/wsrep_sst_rsync_wan
|
||||
include/mysql/server/
|
||||
include/mysql/server/big_endian.h
|
||||
include/mysql/server/byte_order_generic.h
|
||||
include/mysql/server/byte_order_generic_x86.h
|
||||
include/mysql/server/byte_order_generic_x86_64.h
|
||||
include/mysql/server/decimal.h
|
||||
include/mysql/server/errmsg.h
|
||||
include/mysql/server/handler_ername.h
|
||||
include/mysql/server/handler_state.h
|
||||
include/mysql/server/json_lib.h
|
||||
include/mysql/server/keycache.h
|
||||
include/mysql/server/little_endian.h
|
||||
include/mysql/server/m_ctype.h
|
||||
include/mysql/server/m_string.h
|
||||
include/mysql/server/ma_dyncol.h
|
||||
include/mysql/server/mariadb_capi_rename.h
|
||||
include/mysql/server/my_alloc.h
|
||||
include/mysql/server/my_alloca.h
|
||||
include/mysql/server/my_attribute.h
|
||||
include/mysql/server/my_byteorder.h
|
||||
include/mysql/server/my_compiler.h
|
||||
include/mysql/server/my_config.h
|
||||
include/mysql/server/my_dbug.h
|
||||
include/mysql/server/my_decimal_limits.h
|
||||
include/mysql/server/my_dir.h
|
||||
include/mysql/server/my_getopt.h
|
||||
include/mysql/server/my_global.h
|
||||
include/mysql/server/my_list.h
|
||||
include/mysql/server/my_net.h
|
||||
include/mysql/server/my_pthread.h
|
||||
include/mysql/server/my_sys.h
|
||||
include/mysql/server/my_valgrind.h
|
||||
include/mysql/server/my_xml.h
|
||||
include/mysql/server/mysql/
|
||||
include/mysql/server/mysql.h
|
||||
include/mysql/server/mysql/auth_dialog_client.h
|
||||
include/mysql/server/mysql/client_plugin.h
|
||||
include/mysql/server/mysql/plugin.h
|
||||
include/mysql/server/mysql/plugin_audit.h
|
||||
include/mysql/server/mysql/plugin_auth.h
|
||||
include/mysql/server/mysql/plugin_auth_common.h
|
||||
include/mysql/server/mysql/plugin_data_type.h
|
||||
include/mysql/server/mysql/plugin_encryption.h
|
||||
include/mysql/server/mysql/plugin_ftparser.h
|
||||
include/mysql/server/mysql/plugin_function.h
|
||||
include/mysql/server/mysql/plugin_password_validation.h
|
||||
include/mysql/server/mysql/psi/
|
||||
include/mysql/server/mysql/psi/mysql_file.h
|
||||
include/mysql/server/mysql/psi/mysql_idle.h
|
||||
include/mysql/server/mysql/psi/mysql_mdl.h
|
||||
include/mysql/server/mysql/psi/mysql_memory.h
|
||||
include/mysql/server/mysql/psi/mysql_ps.h
|
||||
include/mysql/server/mysql/psi/mysql_socket.h
|
||||
include/mysql/server/mysql/psi/mysql_sp.h
|
||||
include/mysql/server/mysql/psi/mysql_stage.h
|
||||
include/mysql/server/mysql/psi/mysql_statement.h
|
||||
include/mysql/server/mysql/psi/mysql_table.h
|
||||
include/mysql/server/mysql/psi/mysql_thread.h
|
||||
include/mysql/server/mysql/psi/mysql_transaction.h
|
||||
include/mysql/server/mysql/psi/psi.h
|
||||
include/mysql/server/mysql/psi/psi_abi_v0.h
|
||||
include/mysql/server/mysql/psi/psi_abi_v1.h
|
||||
include/mysql/server/mysql/psi/psi_abi_v2.h
|
||||
include/mysql/server/mysql/psi/psi_base.h
|
||||
include/mysql/server/mysql/psi/psi_memory.h
|
||||
include/mysql/server/mysql/service_base64.h
|
||||
include/mysql/server/mysql/service_debug_sync.h
|
||||
include/mysql/server/mysql/service_encryption.h
|
||||
include/mysql/server/mysql/service_encryption_scheme.h
|
||||
include/mysql/server/mysql/service_json.h
|
||||
include/mysql/server/mysql/service_kill_statement.h
|
||||
include/mysql/server/mysql/service_logger.h
|
||||
include/mysql/server/mysql/service_md5.h
|
||||
include/mysql/server/mysql/service_my_crypt.h
|
||||
include/mysql/server/mysql/service_my_print_error.h
|
||||
include/mysql/server/mysql/service_my_snprintf.h
|
||||
include/mysql/server/mysql/service_progress_report.h
|
||||
include/mysql/server/mysql/service_sha1.h
|
||||
include/mysql/server/mysql/service_sha2.h
|
||||
include/mysql/server/mysql/service_sql.h
|
||||
include/mysql/server/mysql/service_thd_alloc.h
|
||||
include/mysql/server/mysql/service_thd_autoinc.h
|
||||
include/mysql/server/mysql/service_thd_error_context.h
|
||||
include/mysql/server/mysql/service_thd_mdl.h
|
||||
include/mysql/server/mysql/service_thd_rnd.h
|
||||
include/mysql/server/mysql/service_thd_specifics.h
|
||||
include/mysql/server/mysql/service_thd_timezone.h
|
||||
include/mysql/server/mysql/service_thd_wait.h
|
||||
include/mysql/server/mysql/service_wsrep.h
|
||||
include/mysql/server/mysql/services.h
|
||||
include/mysql/server/mysql_com.h
|
||||
include/mysql/server/mysql_com_server.h
|
||||
include/mysql/server/mysql_embed.h
|
||||
include/mysql/server/mysql_time.h
|
||||
include/mysql/server/mysql_version.h
|
||||
include/mysql/server/mysqld_ername.h
|
||||
include/mysql/server/mysqld_error.h
|
||||
include/mysql/server/pack.h
|
||||
include/mysql/server/private/
|
||||
include/mysql/server/private/aligned.h
|
||||
include/mysql/server/private/aria_backup.h
|
||||
include/mysql/server/private/assume_aligned.h
|
||||
include/mysql/server/private/atomic/
|
||||
include/mysql/server/private/atomic/gcc_builtins.h
|
||||
include/mysql/server/private/atomic/generic-msvc.h
|
||||
include/mysql/server/private/atomic/solaris.h
|
||||
include/mysql/server/private/authors.h
|
||||
include/mysql/server/private/backup.h
|
||||
include/mysql/server/private/bounded_queue.h
|
||||
include/mysql/server/private/client_settings.h
|
||||
include/mysql/server/private/compat56.h
|
||||
include/mysql/server/private/config.h
|
||||
include/mysql/server/private/contributors.h
|
||||
include/mysql/server/private/create_options.h
|
||||
include/mysql/server/private/create_tmp_table.h
|
||||
include/mysql/server/private/custom_conf.h
|
||||
include/mysql/server/private/datadict.h
|
||||
include/mysql/server/private/ddl_log.h
|
||||
include/mysql/server/private/debug.h
|
||||
include/mysql/server/private/debug_sync.h
|
||||
include/mysql/server/private/derived_handler.h
|
||||
include/mysql/server/private/derror.h
|
||||
include/mysql/server/private/des_key_file.h
|
||||
include/mysql/server/private/discover.h
|
||||
include/mysql/server/private/dur_prop.h
|
||||
include/mysql/server/private/event_data_objects.h
|
||||
include/mysql/server/private/event_db_repository.h
|
||||
include/mysql/server/private/event_parse_data.h
|
||||
include/mysql/server/private/event_queue.h
|
||||
include/mysql/server/private/event_scheduler.h
|
||||
include/mysql/server/private/events.h
|
||||
include/mysql/server/private/field.h
|
||||
include/mysql/server/private/field_comp.h
|
||||
include/mysql/server/private/filesort.h
|
||||
include/mysql/server/private/filesort_utils.h
|
||||
include/mysql/server/private/ft_global.h
|
||||
include/mysql/server/private/gcalc_slicescan.h
|
||||
include/mysql/server/private/gcalc_tools.h
|
||||
include/mysql/server/private/grant.h
|
||||
include/mysql/server/private/group_by_handler.h
|
||||
include/mysql/server/private/gstream.h
|
||||
include/mysql/server/private/ha_partition.h
|
||||
include/mysql/server/private/ha_sequence.h
|
||||
include/mysql/server/private/handle_connections_win.h
|
||||
include/mysql/server/private/handler.h
|
||||
include/mysql/server/private/hash.h
|
||||
include/mysql/server/private/hash_filo.h
|
||||
include/mysql/server/private/heap.h
|
||||
include/mysql/server/private/hostname.h
|
||||
include/mysql/server/private/ilist.h
|
||||
include/mysql/server/private/init.h
|
||||
include/mysql/server/private/innodb_priv.h
|
||||
include/mysql/server/private/item.h
|
||||
include/mysql/server/private/item_cmpfunc.h
|
||||
include/mysql/server/private/item_create.h
|
||||
include/mysql/server/private/item_func.h
|
||||
include/mysql/server/private/item_geofunc.h
|
||||
include/mysql/server/private/item_jsonfunc.h
|
||||
include/mysql/server/private/item_row.h
|
||||
include/mysql/server/private/item_strfunc.h
|
||||
include/mysql/server/private/item_subselect.h
|
||||
include/mysql/server/private/item_sum.h
|
||||
include/mysql/server/private/item_timefunc.h
|
||||
include/mysql/server/private/item_vers.h
|
||||
include/mysql/server/private/item_windowfunc.h
|
||||
include/mysql/server/private/item_xmlfunc.h
|
||||
include/mysql/server/private/json_table.h
|
||||
include/mysql/server/private/key.h
|
||||
include/mysql/server/private/keycaches.h
|
||||
include/mysql/server/private/lex.h
|
||||
include/mysql/server/private/lex_charset.h
|
||||
include/mysql/server/private/lex_string.h
|
||||
include/mysql/server/private/lex_symbol.h
|
||||
include/mysql/server/private/lf.h
|
||||
include/mysql/server/private/lock.h
|
||||
include/mysql/server/private/log.h
|
||||
include/mysql/server/private/log_event.h
|
||||
include/mysql/server/private/log_event_old.h
|
||||
include/mysql/server/private/log_slow.h
|
||||
include/mysql/server/private/maria.h
|
||||
include/mysql/server/private/mariadb.h
|
||||
include/mysql/server/private/mdl.h
|
||||
include/mysql/server/private/mem_root_array.h
|
||||
include/mysql/server/private/message.h
|
||||
include/mysql/server/private/multi_range_read.h
|
||||
include/mysql/server/private/my_alarm.h
|
||||
include/mysql/server/private/my_apc.h
|
||||
include/mysql/server/private/my_atomic.h
|
||||
include/mysql/server/private/my_atomic_wrapper.h
|
||||
include/mysql/server/private/my_base.h
|
||||
include/mysql/server/private/my_bit.h
|
||||
include/mysql/server/private/my_bitmap.h
|
||||
include/mysql/server/private/my_check_opt.h
|
||||
include/mysql/server/private/my_compare.h
|
||||
include/mysql/server/private/my_counter.h
|
||||
include/mysql/server/private/my_cpu.h
|
||||
include/mysql/server/private/my_crypt.h
|
||||
include/mysql/server/private/my_decimal.h
|
||||
include/mysql/server/private/my_default.h
|
||||
include/mysql/server/private/my_handler_errors.h
|
||||
include/mysql/server/private/my_json_writer.h
|
||||
include/mysql/server/private/my_libwrap.h
|
||||
include/mysql/server/private/my_md5.h
|
||||
include/mysql/server/private/my_minidump.h
|
||||
include/mysql/server/private/my_nosys.h
|
||||
include/mysql/server/private/my_rdtsc.h
|
||||
include/mysql/server/private/my_rnd.h
|
||||
include/mysql/server/private/my_service_manager.h
|
||||
include/mysql/server/private/my_stack_alloc.h
|
||||
include/mysql/server/private/my_stacktrace.h
|
||||
include/mysql/server/private/my_time.h
|
||||
include/mysql/server/private/my_tree.h
|
||||
include/mysql/server/private/my_uctype.h
|
||||
include/mysql/server/private/my_user.h
|
||||
include/mysql/server/private/myisam.h
|
||||
include/mysql/server/private/myisamchk.h
|
||||
include/mysql/server/private/myisammrg.h
|
||||
include/mysql/server/private/myisampack.h
|
||||
include/mysql/server/private/mysqld.h
|
||||
include/mysql/server/private/mysqld_default_groups.h
|
||||
include/mysql/server/private/mysqld_suffix.h
|
||||
include/mysql/server/private/mysys_err.h
|
||||
include/mysql/server/private/opt_histogram_json.h
|
||||
include/mysql/server/private/opt_range.h
|
||||
include/mysql/server/private/opt_subselect.h
|
||||
include/mysql/server/private/opt_trace.h
|
||||
include/mysql/server/private/opt_trace_context.h
|
||||
include/mysql/server/private/parse_file.h
|
||||
include/mysql/server/private/partition_element.h
|
||||
include/mysql/server/private/partition_info.h
|
||||
include/mysql/server/private/password.h
|
||||
include/mysql/server/private/pfs_file_provider.h
|
||||
include/mysql/server/private/pfs_idle_provider.h
|
||||
include/mysql/server/private/pfs_memory_provider.h
|
||||
include/mysql/server/private/pfs_metadata_provider.h
|
||||
include/mysql/server/private/pfs_socket_provider.h
|
||||
include/mysql/server/private/pfs_stage_provider.h
|
||||
include/mysql/server/private/pfs_statement_provider.h
|
||||
include/mysql/server/private/pfs_table_provider.h
|
||||
include/mysql/server/private/pfs_thread_provider.h
|
||||
include/mysql/server/private/pfs_transaction_provider.h
|
||||
include/mysql/server/private/privilege.h
|
||||
include/mysql/server/private/probes_mysql.h
|
||||
include/mysql/server/private/probes_mysql_nodtrace.h
|
||||
include/mysql/server/private/procedure.h
|
||||
include/mysql/server/private/protocol.h
|
||||
include/mysql/server/private/providers/
|
||||
include/mysql/server/private/providers/bzlib.h
|
||||
include/mysql/server/private/providers/lz4.h
|
||||
include/mysql/server/private/providers/lzma.h
|
||||
include/mysql/server/private/providers/lzo/
|
||||
include/mysql/server/private/providers/lzo/lzo1x.h
|
||||
include/mysql/server/private/providers/snappy-c.h
|
||||
include/mysql/server/private/proxy_protocol.h
|
||||
include/mysql/server/private/queues.h
|
||||
include/mysql/server/private/records.h
|
||||
include/mysql/server/private/repl_failsafe.h
|
||||
include/mysql/server/private/replication.h
|
||||
include/mysql/server/private/rijndael.h
|
||||
include/mysql/server/private/rowid_filter.h
|
||||
include/mysql/server/private/rpl_constants.h
|
||||
include/mysql/server/private/rpl_filter.h
|
||||
include/mysql/server/private/rpl_gtid.h
|
||||
include/mysql/server/private/rpl_injector.h
|
||||
include/mysql/server/private/rpl_mi.h
|
||||
include/mysql/server/private/rpl_parallel.h
|
||||
include/mysql/server/private/rpl_record.h
|
||||
include/mysql/server/private/rpl_record_old.h
|
||||
include/mysql/server/private/rpl_reporting.h
|
||||
include/mysql/server/private/rpl_rli.h
|
||||
include/mysql/server/private/rpl_tblmap.h
|
||||
include/mysql/server/private/rpl_utility.h
|
||||
include/mysql/server/private/scheduler.h
|
||||
include/mysql/server/private/scope.h
|
||||
include/mysql/server/private/select_handler.h
|
||||
include/mysql/server/private/semisync.h
|
||||
include/mysql/server/private/semisync_master.h
|
||||
include/mysql/server/private/semisync_master_ack_receiver.h
|
||||
include/mysql/server/private/semisync_slave.h
|
||||
include/mysql/server/private/service_versions.h
|
||||
include/mysql/server/private/session_tracker.h
|
||||
include/mysql/server/private/set_var.h
|
||||
include/mysql/server/private/slave.h
|
||||
include/mysql/server/private/source_revision.h
|
||||
include/mysql/server/private/sp.h
|
||||
include/mysql/server/private/sp_cache.h
|
||||
include/mysql/server/private/sp_head.h
|
||||
include/mysql/server/private/sp_pcontext.h
|
||||
include/mysql/server/private/sp_rcontext.h
|
||||
include/mysql/server/private/span.h
|
||||
include/mysql/server/private/spatial.h
|
||||
include/mysql/server/private/sql_acl.h
|
||||
include/mysql/server/private/sql_admin.h
|
||||
include/mysql/server/private/sql_alloc.h
|
||||
include/mysql/server/private/sql_alter.h
|
||||
include/mysql/server/private/sql_analyse.h
|
||||
include/mysql/server/private/sql_analyze_stmt.h
|
||||
include/mysql/server/private/sql_array.h
|
||||
include/mysql/server/private/sql_audit.h
|
||||
include/mysql/server/private/sql_base.h
|
||||
include/mysql/server/private/sql_basic_types.h
|
||||
include/mysql/server/private/sql_binlog.h
|
||||
include/mysql/server/private/sql_bitmap.h
|
||||
include/mysql/server/private/sql_bootstrap.h
|
||||
include/mysql/server/private/sql_cache.h
|
||||
include/mysql/server/private/sql_callback.h
|
||||
include/mysql/server/private/sql_class.h
|
||||
include/mysql/server/private/sql_cmd.h
|
||||
include/mysql/server/private/sql_connect.h
|
||||
include/mysql/server/private/sql_const.h
|
||||
include/mysql/server/private/sql_crypt.h
|
||||
include/mysql/server/private/sql_cte.h
|
||||
include/mysql/server/private/sql_cursor.h
|
||||
include/mysql/server/private/sql_db.h
|
||||
include/mysql/server/private/sql_debug.h
|
||||
include/mysql/server/private/sql_delete.h
|
||||
include/mysql/server/private/sql_derived.h
|
||||
include/mysql/server/private/sql_digest.h
|
||||
include/mysql/server/private/sql_digest_stream.h
|
||||
include/mysql/server/private/sql_do.h
|
||||
include/mysql/server/private/sql_error.h
|
||||
include/mysql/server/private/sql_explain.h
|
||||
include/mysql/server/private/sql_expression_cache.h
|
||||
include/mysql/server/private/sql_get_diagnostics.h
|
||||
include/mysql/server/private/sql_handler.h
|
||||
include/mysql/server/private/sql_help.h
|
||||
include/mysql/server/private/sql_hset.h
|
||||
include/mysql/server/private/sql_i_s.h
|
||||
include/mysql/server/private/sql_insert.h
|
||||
include/mysql/server/private/sql_join_cache.h
|
||||
include/mysql/server/private/sql_lex.h
|
||||
include/mysql/server/private/sql_lifo_buffer.h
|
||||
include/mysql/server/private/sql_limit.h
|
||||
include/mysql/server/private/sql_list.h
|
||||
include/mysql/server/private/sql_load.h
|
||||
include/mysql/server/private/sql_locale.h
|
||||
include/mysql/server/private/sql_manager.h
|
||||
include/mysql/server/private/sql_mode.h
|
||||
include/mysql/server/private/sql_parse.h
|
||||
include/mysql/server/private/sql_partition.h
|
||||
include/mysql/server/private/sql_partition_admin.h
|
||||
include/mysql/server/private/sql_plist.h
|
||||
include/mysql/server/private/sql_plugin.h
|
||||
include/mysql/server/private/sql_plugin_compat.h
|
||||
include/mysql/server/private/sql_prepare.h
|
||||
include/mysql/server/private/sql_priv.h
|
||||
include/mysql/server/private/sql_profile.h
|
||||
include/mysql/server/private/sql_reload.h
|
||||
include/mysql/server/private/sql_rename.h
|
||||
include/mysql/server/private/sql_repl.h
|
||||
include/mysql/server/private/sql_schema.h
|
||||
include/mysql/server/private/sql_select.h
|
||||
include/mysql/server/private/sql_sequence.h
|
||||
include/mysql/server/private/sql_servers.h
|
||||
include/mysql/server/private/sql_show.h
|
||||
include/mysql/server/private/sql_signal.h
|
||||
include/mysql/server/private/sql_sort.h
|
||||
include/mysql/server/private/sql_statistics.h
|
||||
include/mysql/server/private/sql_string.h
|
||||
include/mysql/server/private/sql_table.h
|
||||
include/mysql/server/private/sql_test.h
|
||||
include/mysql/server/private/sql_time.h
|
||||
include/mysql/server/private/sql_trigger.h
|
||||
include/mysql/server/private/sql_truncate.h
|
||||
include/mysql/server/private/sql_tvc.h
|
||||
include/mysql/server/private/sql_type.h
|
||||
include/mysql/server/private/sql_type_fixedbin.h
|
||||
include/mysql/server/private/sql_type_fixedbin_storage.h
|
||||
include/mysql/server/private/sql_type_geom.h
|
||||
include/mysql/server/private/sql_type_int.h
|
||||
include/mysql/server/private/sql_type_json.h
|
||||
include/mysql/server/private/sql_type_real.h
|
||||
include/mysql/server/private/sql_type_string.h
|
||||
include/mysql/server/private/sql_udf.h
|
||||
include/mysql/server/private/sql_union.h
|
||||
include/mysql/server/private/sql_update.h
|
||||
include/mysql/server/private/sql_view.h
|
||||
include/mysql/server/private/sql_window.h
|
||||
include/mysql/server/private/ssl_compat.h
|
||||
include/mysql/server/private/strfunc.h
|
||||
include/mysql/server/private/structs.h
|
||||
include/mysql/server/private/sys_vars_shared.h
|
||||
include/mysql/server/private/t_ctype.h
|
||||
include/mysql/server/private/table.h
|
||||
include/mysql/server/private/table_cache.h
|
||||
include/mysql/server/private/thr_alarm.h
|
||||
include/mysql/server/private/thr_lock.h
|
||||
include/mysql/server/private/thr_malloc.h
|
||||
include/mysql/server/private/thr_timer.h
|
||||
include/mysql/server/private/thread_cache.h
|
||||
include/mysql/server/private/threadpool.h
|
||||
include/mysql/server/private/threadpool_generic.h
|
||||
include/mysql/server/private/threadpool_winsockets.h
|
||||
include/mysql/server/private/transaction.h
|
||||
include/mysql/server/private/tzfile.h
|
||||
include/mysql/server/private/tztime.h
|
||||
include/mysql/server/private/uniques.h
|
||||
include/mysql/server/private/unireg.h
|
||||
include/mysql/server/private/vers_string.h
|
||||
include/mysql/server/private/violite.h
|
||||
include/mysql/server/private/waiting_threads.h
|
||||
include/mysql/server/private/welcome_copyright_notice.h
|
||||
include/mysql/server/private/win_tzname_data.h
|
||||
include/mysql/server/private/winservice.h
|
||||
include/mysql/server/private/wqueue.h
|
||||
include/mysql/server/private/wsrep.h
|
||||
include/mysql/server/private/wsrep_applier.h
|
||||
include/mysql/server/private/wsrep_binlog.h
|
||||
include/mysql/server/private/wsrep_client_service.h
|
||||
include/mysql/server/private/wsrep_client_state.h
|
||||
include/mysql/server/private/wsrep_condition_variable.h
|
||||
include/mysql/server/private/wsrep_high_priority_service.h
|
||||
include/mysql/server/private/wsrep_mutex.h
|
||||
include/mysql/server/private/wsrep_mysqld.h
|
||||
include/mysql/server/private/wsrep_mysqld_c.h
|
||||
include/mysql/server/private/wsrep_on.h
|
||||
include/mysql/server/private/wsrep_priv.h
|
||||
include/mysql/server/private/wsrep_schema.h
|
||||
include/mysql/server/private/wsrep_server_service.h
|
||||
include/mysql/server/private/wsrep_server_state.h
|
||||
include/mysql/server/private/wsrep_sst.h
|
||||
include/mysql/server/private/wsrep_status.h
|
||||
include/mysql/server/private/wsrep_storage_service.h
|
||||
include/mysql/server/private/wsrep_thd.h
|
||||
include/mysql/server/private/wsrep_trans_observer.h
|
||||
include/mysql/server/private/wsrep_types.h
|
||||
include/mysql/server/private/wsrep_utils.h
|
||||
include/mysql/server/private/wsrep_var.h
|
||||
include/mysql/server/private/wsrep_xid.h
|
||||
include/mysql/server/private/xa.h
|
||||
include/mysql/server/sql_common.h
|
||||
include/mysql/server/sql_state.h
|
||||
include/mysql/server/sslopt-case.h
|
||||
include/mysql/server/sslopt-longopts.h
|
||||
include/mysql/server/sslopt-vars.h
|
||||
include/mysql/server/typelib.h
|
||||
lib/mysql/plugin/
|
||||
@so lib/mysql/plugin/adt_null.so
|
||||
@so lib/mysql/plugin/auth_0x0100.so
|
||||
@so lib/mysql/plugin/auth_ed25519.so
|
||||
@so lib/mysql/plugin/auth_test_plugin.so
|
||||
@so lib/mysql/plugin/caching_sha2_password.so
|
||||
@so lib/mysql/plugin/client_ed25519.so
|
||||
lib/mysql/plugin/daemon_example.ini
|
||||
@so lib/mysql/plugin/debug_key_management.so
|
||||
@so lib/mysql/plugin/dialog.so
|
||||
@so lib/mysql/plugin/dialog_examples.so
|
||||
@so lib/mysql/plugin/disks.so
|
||||
@so lib/mysql/plugin/example_key_management.so
|
||||
@so lib/mysql/plugin/file_key_management.so
|
||||
@so lib/mysql/plugin/ha_archive.so
|
||||
@so lib/mysql/plugin/ha_blackhole.so
|
||||
@so lib/mysql/plugin/ha_connect.so
|
||||
@so lib/mysql/plugin/ha_example.so
|
||||
@so lib/mysql/plugin/ha_federated.so
|
||||
@so lib/mysql/plugin/ha_federatedx.so
|
||||
@so lib/mysql/plugin/ha_s3.so
|
||||
@so lib/mysql/plugin/ha_sphinx.so
|
||||
@so lib/mysql/plugin/ha_spider.so
|
||||
@so lib/mysql/plugin/ha_test_sql_discovery.so
|
||||
@so lib/mysql/plugin/handlersocket.so
|
||||
@so lib/mysql/plugin/hashicorp_key_management.so
|
||||
@so lib/mysql/plugin/libdaemon_example.so
|
||||
@so lib/mysql/plugin/locales.so
|
||||
@so lib/mysql/plugin/metadata_lock_info.so
|
||||
@so lib/mysql/plugin/mypluglib.so
|
||||
@so lib/mysql/plugin/mysql_clear_password.so
|
||||
@so lib/mysql/plugin/password_reuse_check.so
|
||||
@so lib/mysql/plugin/provider_bzip2.so
|
||||
@so lib/mysql/plugin/provider_lz4.so
|
||||
@so lib/mysql/plugin/provider_lzma.so
|
||||
@so lib/mysql/plugin/provider_lzo.so
|
||||
@so lib/mysql/plugin/provider_snappy.so
|
||||
@so lib/mysql/plugin/qa_auth_client.so
|
||||
@so lib/mysql/plugin/qa_auth_interface.so
|
||||
@so lib/mysql/plugin/qa_auth_server.so
|
||||
@so lib/mysql/plugin/query_cache_info.so
|
||||
@so lib/mysql/plugin/query_response_time.so
|
||||
@so lib/mysql/plugin/server_audit.so
|
||||
@so lib/mysql/plugin/sha256_password.so
|
||||
@so lib/mysql/plugin/simple_password_check.so
|
||||
@so lib/mysql/plugin/sql_errlog.so
|
||||
@so lib/mysql/plugin/type_mysql_json.so
|
||||
@so lib/mysql/plugin/wsrep_info.so
|
||||
@so lib/mysql/plugin/zstd.so
|
||||
@bin libexec/mariadbd
|
||||
libexec/mysqld
|
||||
@man man/man1/aria_chk.1
|
||||
@man man/man1/aria_dump_log.1
|
||||
@man man/man1/aria_ftdump.1
|
||||
@man man/man1/aria_pack.1
|
||||
@man man/man1/aria_read_log.1
|
||||
@man man/man1/aria_s3_copy.1
|
||||
@man man/man1/innochecksum.1
|
||||
@man man/man1/mariadb-backup.1
|
||||
@man man/man1/mariadb-dumpslow.1
|
||||
@man man/man1/mariadb-fix-extensions.1
|
||||
@man man/man1/mariadb-install-db.1
|
||||
@man man/man1/mariadb-secure-installation.1
|
||||
@man man/man1/mariadb-tzinfo-to-sql.1
|
||||
@man man/man1/mariadb-upgrade.1
|
||||
@man man/man1/mariadbd-multi.1
|
||||
@man man/man1/mariadbd-safe-helper.1
|
||||
@man man/man1/mariadbd-safe.1
|
||||
@man man/man1/my_print_defaults.1
|
||||
@man man/man1/myisam_ftdump.1
|
||||
@man man/man1/myisamchk.1
|
||||
@man man/man1/myisamlog.1
|
||||
@man man/man1/myisampack.1
|
||||
@man man/man1/mysql.server.1
|
||||
@man man/man1/mysql_convert_table_format.1
|
||||
@man man/man1/mysql_fix_extensions.1
|
||||
@man man/man1/mysql_install_db.1
|
||||
@man man/man1/mysql_plugin.1
|
||||
@man man/man1/mysql_secure_installation.1
|
||||
@man man/man1/mysql_setpermission.1
|
||||
@man man/man1/mysql_tzinfo_to_sql.1
|
||||
@man man/man1/mysql_upgrade.1
|
||||
@man man/man1/mysqld_multi.1
|
||||
@man man/man1/mysqld_safe.1
|
||||
@man man/man1/mysqlhotcopy.1
|
||||
@man man/man1/perror.1
|
||||
@man man/man1/replace.1
|
||||
@man man/man1/resolve_stack_dump.1
|
||||
@man man/man1/resolveip.1
|
||||
@man man/man1/wsrep_sst_common.1
|
||||
@man man/man1/wsrep_sst_mariabackup.1
|
||||
@man man/man1/wsrep_sst_mysqldump.1
|
||||
@man man/man1/wsrep_sst_rsync.1
|
||||
@man man/man1/wsrep_sst_rsync_wan.1
|
||||
@man man/man8/mariadbd.8
|
||||
@man man/man8/mysqld.8
|
||||
share/doc/mysql/
|
||||
share/doc/mysql/COPYING
|
||||
share/doc/mysql/CREDITS
|
||||
share/doc/mysql/INSTALL-BINARY
|
||||
share/doc/mysql/README-wsrep
|
||||
share/doc/mysql/README.md
|
||||
share/doc/mysql/THIRDPARTY
|
||||
share/doc/mysql/hashicorp_key_management.txt
|
||||
share/doc/pkg-readmes/${PKGSTEM}
|
||||
share/examples/login.conf.d/mysqld
|
||||
@sample ${SYSCONFDIR}/login.conf.d/mysqld
|
||||
share/examples/mysql/
|
||||
share/examples/mysql/binary-configure
|
||||
share/examples/mysql/magic
|
||||
share/examples/mysql/mini-benchmark
|
||||
share/examples/mysql/my.cnf
|
||||
@sample ${SYSCONFDIR}/my.cnf
|
||||
share/examples/mysql/mysql-log-rotate
|
||||
share/examples/mysql/mysql.server
|
||||
share/examples/mysql/mysqld_multi.server
|
||||
share/examples/mysql/policy/
|
||||
share/examples/mysql/policy/apparmor/
|
||||
share/examples/mysql/policy/apparmor/README
|
||||
share/examples/mysql/policy/apparmor/usr.sbin.mysqld
|
||||
share/examples/mysql/policy/apparmor/usr.sbin.mysqld.local
|
||||
share/examples/mysql/policy/selinux/
|
||||
share/examples/mysql/policy/selinux/README
|
||||
share/examples/mysql/policy/selinux/mariadb-server.fc
|
||||
share/examples/mysql/policy/selinux/mariadb-server.te
|
||||
share/examples/mysql/policy/selinux/mariadb.te
|
||||
share/examples/mysql/wsrep.cnf
|
||||
share/examples/mysql/wsrep_notify
|
||||
share/mysql/
|
||||
share/mysql/bulgarian/
|
||||
share/mysql/bulgarian/errmsg.sys
|
||||
share/mysql/charsets/
|
||||
share/mysql/charsets/Index.xml
|
||||
share/mysql/charsets/README
|
||||
share/mysql/charsets/armscii8.xml
|
||||
share/mysql/charsets/ascii.xml
|
||||
share/mysql/charsets/cp1250.xml
|
||||
share/mysql/charsets/cp1251.xml
|
||||
share/mysql/charsets/cp1256.xml
|
||||
share/mysql/charsets/cp1257.xml
|
||||
share/mysql/charsets/cp850.xml
|
||||
share/mysql/charsets/cp852.xml
|
||||
share/mysql/charsets/cp866.xml
|
||||
share/mysql/charsets/dec8.xml
|
||||
share/mysql/charsets/geostd8.xml
|
||||
share/mysql/charsets/greek.xml
|
||||
share/mysql/charsets/hebrew.xml
|
||||
share/mysql/charsets/hp8.xml
|
||||
share/mysql/charsets/keybcs2.xml
|
||||
share/mysql/charsets/koi8r.xml
|
||||
share/mysql/charsets/koi8u.xml
|
||||
share/mysql/charsets/latin1.xml
|
||||
share/mysql/charsets/latin2.xml
|
||||
share/mysql/charsets/latin5.xml
|
||||
share/mysql/charsets/latin7.xml
|
||||
share/mysql/charsets/macce.xml
|
||||
share/mysql/charsets/macroman.xml
|
||||
share/mysql/charsets/swe7.xml
|
||||
share/mysql/chinese/
|
||||
share/mysql/chinese/errmsg.sys
|
||||
share/mysql/czech/
|
||||
share/mysql/czech/errmsg.sys
|
||||
share/mysql/danish/
|
||||
share/mysql/danish/errmsg.sys
|
||||
share/mysql/dutch/
|
||||
share/mysql/dutch/errmsg.sys
|
||||
share/mysql/english/
|
||||
share/mysql/english/errmsg.sys
|
||||
share/mysql/errmsg-utf8.txt
|
||||
share/mysql/estonian/
|
||||
share/mysql/estonian/errmsg.sys
|
||||
share/mysql/fill_help_tables.sql
|
||||
share/mysql/french/
|
||||
share/mysql/french/errmsg.sys
|
||||
share/mysql/german/
|
||||
share/mysql/german/errmsg.sys
|
||||
share/mysql/greek/
|
||||
share/mysql/greek/errmsg.sys
|
||||
share/mysql/hindi/
|
||||
share/mysql/hindi/errmsg.sys
|
||||
share/mysql/hungarian/
|
||||
share/mysql/hungarian/errmsg.sys
|
||||
share/mysql/italian/
|
||||
share/mysql/italian/errmsg.sys
|
||||
share/mysql/japanese/
|
||||
share/mysql/japanese/errmsg.sys
|
||||
share/mysql/korean/
|
||||
share/mysql/korean/errmsg.sys
|
||||
share/mysql/maria_add_gis_sp.sql
|
||||
share/mysql/maria_add_gis_sp_bootstrap.sql
|
||||
share/mysql/mysql_performance_tables.sql
|
||||
share/mysql/mysql_sys_schema.sql
|
||||
share/mysql/mysql_system_tables.sql
|
||||
share/mysql/mysql_system_tables_data.sql
|
||||
share/mysql/mysql_test_data_timezone.sql
|
||||
share/mysql/mysql_test_db.sql
|
||||
share/mysql/norwegian/
|
||||
share/mysql/norwegian-ny/
|
||||
share/mysql/norwegian-ny/errmsg.sys
|
||||
share/mysql/norwegian/errmsg.sys
|
||||
share/mysql/polish/
|
||||
share/mysql/polish/errmsg.sys
|
||||
share/mysql/portuguese/
|
||||
share/mysql/portuguese/errmsg.sys
|
||||
share/mysql/romanian/
|
||||
share/mysql/romanian/errmsg.sys
|
||||
share/mysql/russian/
|
||||
share/mysql/russian/errmsg.sys
|
||||
share/mysql/serbian/
|
||||
share/mysql/serbian/errmsg.sys
|
||||
share/mysql/slovak/
|
||||
share/mysql/slovak/errmsg.sys
|
||||
share/mysql/spanish/
|
||||
share/mysql/spanish/errmsg.sys
|
||||
share/mysql/swedish/
|
||||
share/mysql/swedish/errmsg.sys
|
||||
share/mysql/ukrainian/
|
||||
share/mysql/ukrainian/errmsg.sys
|
||||
%%le%%
|
||||
%%rocksdb%%
|
17100
databases/mariadb/pkg/PLIST-tests
Normal file
17100
databases/mariadb/pkg/PLIST-tests
Normal file
File diff suppressed because it is too large
Load diff
51
databases/mariadb/pkg/README-server
Normal file
51
databases/mariadb/pkg/README-server
Normal file
|
@ -0,0 +1,51 @@
|
|||
+-----------------------------------------------------------------------
|
||||
| Running ${PKGSTEM} on OpenBSD
|
||||
+-----------------------------------------------------------------------
|
||||
|
||||
Initial setup
|
||||
=============
|
||||
|
||||
If you are installing MariaDB for the first time, you have to create
|
||||
a default database first. In order to create the database, please run
|
||||
${TRUEPREFIX}/bin/mariadb-install-db
|
||||
|
||||
You will need to tune the values in the my.cnf file (examples
|
||||
available in ${TRUEPREFIX}/share/examples/mysql).
|
||||
|
||||
By default, the MariaDB processes run in the login(1) class of "mysqld".
|
||||
On a busy server, it may be advisable to tune the resources, such as more
|
||||
open file descriptors etc.
|
||||
|
||||
The capability database file is located at /etc/login.conf.d/mysqld
|
||||
|
||||
If you are using InnoDB and experience an error such as "doesn't exist
|
||||
in engine" you will need to increase kern.maxlocksperuid.
|
||||
|
||||
For larger servers and dedicated database servers, these numbers
|
||||
and memory limits (e.g. datasize and stacksize) may also need to be
|
||||
increased. Please report any changes and experiences to the package
|
||||
maintainers so that we can update this file for future versions.
|
||||
|
||||
Upgrades
|
||||
========
|
||||
|
||||
mariadb-upgrade(1) should be run after updating the MariaDB server.
|
||||
|
||||
chrooted daemons and MariaDB socket
|
||||
===================================
|
||||
|
||||
For external program running under a chroot(8) to be able to access the
|
||||
MariaDB server without using a network connection, the socket must be
|
||||
placed inside the chroot.
|
||||
|
||||
e.g. httpd(8) or nginx(8): connecting to MariaDB from PHP
|
||||
---------------------------------------------------------
|
||||
Create a directory for the MariaDB socket:
|
||||
|
||||
# install -d -m 0711 -o _mysql -g _mysql /var/www/var/run/mysql
|
||||
|
||||
Adjust ${SYSCONFDIR}/my.cnf to use the socket in the chroot - this
|
||||
applies to both client and server processes:
|
||||
|
||||
[client-server]
|
||||
socket = /var/www/var/run/mysql/mysql.sock
|
5
databases/mariadb/pkg/mysqld.login
Normal file
5
databases/mariadb/pkg/mysqld.login
Normal file
|
@ -0,0 +1,5 @@
|
|||
mysqld:\
|
||||
:datasize=8192M:\
|
||||
:openfiles-cur=1024:\
|
||||
:openfiles-max=2048:\
|
||||
:tc=daemon:
|
12
databases/mariadb/pkg/mysqld.rc
Executable file
12
databases/mariadb/pkg/mysqld.rc
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/ksh
|
||||
|
||||
daemon="${TRUEPREFIX}/bin/mariadbd-safe"
|
||||
daemon_timeout=300
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
pexp="${TRUEPREFIX}/libexec/mariadbd .*"
|
||||
rc_bg=YES
|
||||
rc_reload=NO
|
||||
|
||||
rc_cmd $1
|
Loading…
Add table
Add a link
Reference in a new issue