aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/mariadb101-client/files/patch-CMakeLists.txt13
-rw-r--r--databases/mariadb101-client/files/patch-build-fail-MDEV-12261236
-rw-r--r--databases/mariadb101-client/pkg-plist2
-rw-r--r--databases/mariadb101-server/Makefile4
-rw-r--r--databases/mariadb101-server/distinfo6
-rw-r--r--databases/mariadb101-server/files/patch-CMakeLists.txt12
-rw-r--r--databases/mariadb101-server/files/patch-MDEV-1228115
-rw-r--r--databases/mariadb101-server/pkg-plist14
8 files changed, 48 insertions, 254 deletions
diff --git a/databases/mariadb101-client/files/patch-CMakeLists.txt b/databases/mariadb101-client/files/patch-CMakeLists.txt
index 285d6128cd3c..052cc744a248 100644
--- a/databases/mariadb101-client/files/patch-CMakeLists.txt
+++ b/databases/mariadb101-client/files/patch-CMakeLists.txt
@@ -1,22 +1,23 @@
---- CMakeLists.txt.orig 2016-03-24 09:12:10 UTC
+--- CMakeLists.txt.orig 2017-05-02 05:13:38 UTC
+++ CMakeLists.txt
-@@ -380,7 +380,6 @@ ADD_SUBDIRECTORY(libmysql)
+@@ -385,7 +385,7 @@ ADD_SUBDIRECTORY(libmysql)
ADD_SUBDIRECTORY(client)
ADD_SUBDIRECTORY(extra)
ADD_SUBDIRECTORY(libservices)
-ADD_SUBDIRECTORY(sql/share)
++#ADD_SUBDIRECTORY(sql/share)
IF(NOT WITHOUT_SERVER)
ADD_SUBDIRECTORY(tests)
-@@ -460,6 +459,7 @@ ADD_CUSTOM_TARGET(INFO_BIN ALL
+@@ -465,6 +465,7 @@ ADD_CUSTOM_TARGET(INFO_BIN ALL
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
+IF(FALSE)
- INSTALL_DOCUMENTATION(README CREDITS COPYING COPYING.LESSER COPYING.thirdparty
+ INSTALL_DOCUMENTATION(README CREDITS COPYING COPYING.thirdparty
EXCEPTIONS-CLIENT COMPONENT Readme)
- # MDEV-6526 these files are not installed anymore
-@@ -470,6 +470,7 @@ IF(UNIX)
+
+@@ -476,6 +477,7 @@ IF(UNIX)
INSTALL_DOCUMENTATION(Docs/INSTALL-BINARY COMPONENT Readme)
INSTALL_DOCUMENTATION(Docs/INSTALL-BINARY Docs/README-wsrep COMPONENT Readme)
ENDIF()
diff --git a/databases/mariadb101-client/files/patch-build-fail-MDEV-12261 b/databases/mariadb101-client/files/patch-build-fail-MDEV-12261
deleted file mode 100644
index be788e005bfc..000000000000
--- a/databases/mariadb101-client/files/patch-build-fail-MDEV-12261
+++ /dev/null
@@ -1,236 +0,0 @@
-From 2c2bd8c1556b081fccd0fc3e010dc3ea2c38fffb Mon Sep 17 00:00:00 2001
-From: Sergei Golubchik <serg@mariadb.org>
-Date: Wed, 15 Mar 2017 11:46:54 +0100
-Subject: [PATCH] MDEV-12261 build failure without P_S
-
-restore mysql_file_delete_with_symlink() but let it use
-new my_handler_delete_with_symlink() mysys helper.
----
- include/my_sys.h | 3 +--
- include/mysql/psi/mysql_file.h | 44 ++++++++++++++++++++++++++++++++++++++++
- mysys/my_symlink2.c | 14 ++++++-------
- sql/handler.cc | 2 +-
- sql/sql_db.cc | 6 +++---
- sql/table.cc | 2 +-
- storage/maria/ma_delete_table.c | 8 ++++----
- storage/myisam/mi_delete_table.c | 8 ++++----
- 8 files changed, 64 insertions(+), 23 deletions(-)
-
-diff --git a/include/my_sys.h b/include/my_sys.h
-index 4e129cc..5b0a114 100644
---- include/my_sys.h.orig
-+++ include/my_sys.h
-@@ -597,8 +597,7 @@ extern File my_create_with_symlink(const char *linkname, const char *filename,
- myf MyFlags);
- extern int my_rename_with_symlink(const char *from,const char *to,myf MyFlags);
- extern int my_symlink(const char *content, const char *linkname, myf MyFlags);
--extern int my_handler_delete_with_symlink(PSI_file_key key, const char *name,
-- const char *ext, myf sync_dir);
-+extern int my_handler_delete_with_symlink(const char *filename, myf sync_dir);
-
- extern size_t my_read(File Filedes,uchar *Buffer,size_t Count,myf MyFlags);
- extern size_t my_pread(File Filedes,uchar *Buffer,size_t Count,my_off_t offset,
-diff --git a/include/mysql/psi/mysql_file.h b/include/mysql/psi/mysql_file.h
-index aca66bd..df94603 100644
---- include/mysql/psi/mysql_file.h.orig
-+++ include/mysql/psi/mysql_file.h
-@@ -442,6 +442,20 @@
- #endif
-
- /**
-+ @def mysql_file_delete_with_symlink(K, P1, P2, P3)
-+ Instrumented delete with symbolic link.
-+ @c mysql_file_delete_with_symlink is a replacement
-+ for @c my_handler_delete_with_symlink.
-+*/
-+#ifdef HAVE_PSI_FILE_INTERFACE
-+ #define mysql_file_delete_with_symlink(K, P1, P2, P3) \
-+ inline_mysql_file_delete_with_symlink(K, __FILE__, __LINE__, P1, P2, P3)
-+#else
-+ #define mysql_file_delete_with_symlink(K, P1, P2, P3) \
-+ inline_mysql_file_delete_with_symlink(P1, P2, P3)
-+#endif
-+
-+/**
- @def mysql_file_rename_with_symlink(K, P1, P2, P3)
- Instrumented rename with symbolic link.
- @c mysql_file_rename_with_symlink is a replacement
-@@ -1294,6 +1308,7 @@ inline_mysql_file_rename(
- return result;
- }
-
-+
- static inline File
- inline_mysql_file_create_with_symlink(
- #ifdef HAVE_PSI_FILE_INTERFACE
-@@ -1325,6 +1340,35 @@ inline_mysql_file_create_with_symlink(
-
-
- static inline int
-+inline_mysql_file_delete_with_symlink(
-+#ifdef HAVE_PSI_FILE_INTERFACE
-+ PSI_file_key key, const char *src_file, uint src_line,
-+#endif
-+ const char *name, const char *ext, myf flags)
-+{
-+ int result;
-+ char fullname[FN_REFLEN];
-+ fn_format(fullname, name, "", ext, MY_UNPACK_FILENAME | MY_APPEND_EXT);
-+#ifdef HAVE_PSI_FILE_INTERFACE
-+ struct PSI_file_locker *locker;
-+ PSI_file_locker_state state;
-+ locker= PSI_FILE_CALL(get_thread_file_name_locker)
-+ (&state, key, PSI_FILE_DELETE, fullname, &locker);
-+ if (likely(locker != NULL))
-+ {
-+ PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line);
-+ result= my_handler_delete_with_symlink(fullname, flags);
-+ PSI_FILE_CALL(end_file_close_wait)(locker, result);
-+ return result;
-+ }
-+#endif
-+
-+ result= my_handler_delete_with_symlink(fullname, flags);
-+ return result;
-+}
-+
-+
-+static inline int
- inline_mysql_file_rename_with_symlink(
- #ifdef HAVE_PSI_FILE_INTERFACE
- PSI_file_key key, const char *src_file, uint src_line,
-diff --git a/mysys/my_symlink2.c b/mysys/my_symlink2.c
-index defcb59..c851468 100644
---- mysys/my_symlink2.c.orig
-+++ mysys/my_symlink2.c
-@@ -170,22 +170,20 @@ int my_rename_with_symlink(const char *from, const char *to, myf MyFlags)
- in this case both the symlink and the symlinked file are deleted,
- but only if the symlinked file is not in the datadir.
- */
--int my_handler_delete_with_symlink(PSI_file_key key, const char *name,
-- const char *ext, myf sync_dir)
-+int my_handler_delete_with_symlink(const char *filename, myf sync_dir)
- {
-- char orig[FN_REFLEN], real[FN_REFLEN];
-+ char real[FN_REFLEN];
- int res= 0;
- DBUG_ENTER("my_handler_delete_with_symlink");
-
-- fn_format(orig, name, "", ext, MY_UNPACK_FILENAME | MY_APPEND_EXT);
-- if (my_is_symlink(orig))
-+ if (my_is_symlink(filename))
- {
- /*
- Delete the symlinked file only if the symlink is not
- pointing into datadir.
- */
-- if (!(my_realpath(real, orig, MYF(0)) || mysys_test_invalid_symlink(real)))
-- res= mysql_file_delete(key, real, MYF(MY_NOSYMLINKS | sync_dir));
-+ if (!(my_realpath(real, filename, MYF(0)) || mysys_test_invalid_symlink(real)))
-+ res= my_delete(real, MYF(MY_NOSYMLINKS | sync_dir));
- }
-- DBUG_RETURN(mysql_file_delete(key, orig, MYF(sync_dir)) || res);
-+ DBUG_RETURN(my_delete(filename, MYF(sync_dir)) || res);
- }
-diff --git a/sql/handler.cc b/sql/handler.cc
-index 7fa8afd..fc70ed5 100644
---- sql/handler.cc.orig
-+++ sql/handler.cc
-@@ -3850,7 +3850,7 @@ int handler::delete_table(const char *name)
-
- for (const char **ext=bas_ext(); *ext ; ext++)
- {
-- if (my_handler_delete_with_symlink(key_file_misc, name, *ext, 0))
-+ if (mysql_file_delete_with_symlink(key_file_misc, name, *ext, 0))
- {
- if (my_errno != ENOENT)
- {
-diff --git a/sql/sql_db.cc b/sql/sql_db.cc
-index 3f43a33..6c8c384 100644
---- sql/sql_db.cc.orig
-+++ sql/sql_db.cc
-@@ -815,7 +815,7 @@ bool mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
- if there exists a table with the name 'db', so let's just do it
- separately. We know this file exists and needs to be deleted anyway.
- */
-- if (my_handler_delete_with_symlink(key_file_misc, path, "", MYF(0)) &&
-+ if (mysql_file_delete_with_symlink(key_file_misc, path, "", MYF(0)) &&
- my_errno != ENOENT)
- {
- my_error(EE_DELETE, MYF(0), path, my_errno);
-@@ -1119,7 +1119,7 @@ static bool find_db_tables_and_rm_known_files(THD *thd, MY_DIR *dirp,
- We ignore ENOENT error in order to skip files that was deleted
- by concurrently running statement like REPAIR TABLE ...
- */
-- if (my_handler_delete_with_symlink(key_file_misc, filePath, "", MYF(0)) &&
-+ if (mysql_file_delete_with_symlink(key_file_misc, filePath, "", MYF(0)) &&
- my_errno != ENOENT)
- {
- my_error(EE_DELETE, MYF(0), filePath, my_errno);
-@@ -1235,7 +1235,7 @@ long mysql_rm_arc_files(THD *thd, MY_DIR *dirp, const char *org_path)
- continue;
- }
- strxmov(filePath, org_path, "/", file->name, NullS);
-- if (my_handler_delete_with_symlink(key_file_misc, filePath, "", MYF(MY_WME)))
-+ if (mysql_file_delete_with_symlink(key_file_misc, filePath, "", MYF(MY_WME)))
- {
- goto err;
- }
-diff --git a/sql/table.cc b/sql/table.cc
-index 80d0e02..975d9d5 100644
---- sql/table.cc.orig
-+++ sql/table.cc
-@@ -569,7 +569,7 @@ enum open_frm_error open_table_def(THD *thd, TABLE_SHARE *share, uint flags)
- {
- DBUG_ASSERT(flags & GTS_TABLE);
- DBUG_ASSERT(flags & GTS_USE_DISCOVERY);
-- my_handler_delete_with_symlink(key_file_frm, path, "", MYF(0));
-+ mysql_file_delete_with_symlink(key_file_frm, path, "", MYF(0));
- file= -1;
- }
- else
-diff --git a/storage/maria/ma_delete_table.c b/storage/maria/ma_delete_table.c
-index a9ab8e5..186075d 100644
---- storage/maria/ma_delete_table.c.orig
-+++ storage/maria/ma_delete_table.c
-@@ -86,13 +86,13 @@ int maria_delete_table_files(const char
- {
- DBUG_ENTER("maria_delete_table_files");
-
-- if (my_handler_delete_with_symlink(key_file_kfile, name, MARIA_NAME_IEXT, MYF(MY_WME | sync_dir)) ||
-- my_handler_delete_with_symlink(key_file_dfile, name, MARIA_NAME_DEXT, MYF(MY_WME | sync_dir)))
-+ if (mysql_handler_delete_with_symlink(key_file_kfile, name, MARIA_NAME_IEXT, MYF(MY_WME | sync_dir)) ||
-+ mysql_handler_delete_with_symlink(key_file_dfile, name, MARIA_NAME_DEXT, MYF(MY_WME | sync_dir)))
- DBUG_RETURN(my_errno);
-
- if (!temporary) {
-- my_handler_delete_with_symlink(key_file_dfile, name, ".TMD", MYF(0));
-- my_handler_delete_with_symlink(key_file_dfile, name, ".OLD", MYF(0));
-+ mysql_handler_delete_with_symlink(key_file_dfile, name, ".TMD", MYF(0));
-+ mysql_handler_delete_with_symlink(key_file_dfile, name, ".OLD", MYF(0));
- }
- DBUG_RETURN(0);
- }
-diff --git a/storage/myisam/mi_delete_table.c b/storage/myisam/mi_delete_table.c
-index 3422e6b..d766fb2 100644
---- storage/myisam/mi_delete_table.c.orig
-+++ storage/myisam/mi_delete_table.c
-@@ -34,14 +34,14 @@ int mi_delete_table(const char *name)
- check_table_is_closed(name,"delete");
- #endif
-
-- if (my_handler_delete_with_symlink(mi_key_file_kfile, name, MI_NAME_IEXT, MYF(MY_WME)) ||
-- my_handler_delete_with_symlink(mi_key_file_dfile, name, MI_NAME_DEXT, MYF(MY_WME)))
-+ if (mysql_file_delete_with_symlink(mi_key_file_kfile, name, MI_NAME_IEXT, MYF(MY_WME)) ||
-+ mysql_file_delete_with_symlink(mi_key_file_dfile, name, MI_NAME_DEXT, MYF(MY_WME)))
- DBUG_RETURN(my_errno);
-
-
- // optionally present:
-- my_handler_delete_with_symlink(mi_key_file_dfile, name, ".OLD", MYF(0));
-- my_handler_delete_with_symlink(mi_key_file_dfile, name, ".TMD", MYF(0));
-+ mysql_file_delete_with_symlink(mi_key_file_dfile, name, ".OLD", MYF(0));
-+ mysql_file_delete_with_symlink(mi_key_file_dfile, name, ".TMD", MYF(0));
-
- DBUG_RETURN(0);
- }
diff --git a/databases/mariadb101-client/pkg-plist b/databases/mariadb101-client/pkg-plist
index ae1714c5e485..8002b7ea3dd3 100644
--- a/databases/mariadb101-client/pkg-plist
+++ b/databases/mariadb101-client/pkg-plist
@@ -71,6 +71,8 @@ include/mysql/service_encryption_scheme.h
include/mysql/service_kill_statement.h
include/mysql/service_logger.h
include/mysql/service_md5.h
+include/mysql/service_my_crypt.h
+include/mysql/service_my_print_error.h
include/mysql/service_my_snprintf.h
include/mysql/service_progress_report.h
include/mysql/service_sha1.h
diff --git a/databases/mariadb101-server/Makefile b/databases/mariadb101-server/Makefile
index dd2bba557cd7..b304324fd0da 100644
--- a/databases/mariadb101-server/Makefile
+++ b/databases/mariadb101-server/Makefile
@@ -1,8 +1,8 @@
# $FreeBSD$
PORTNAME?= mariadb
-PORTVERSION= 10.1.22
-PORTREVISION?= 2
+PORTVERSION= 10.1.23
+PORTREVISION?= 0
CATEGORIES= databases ipv6
MASTER_SITES= http://ftp.osuosl.org/pub/${SITESDIR}/ \
http://mirrors.supportex.net/${SITESDIR}/ \
diff --git a/databases/mariadb101-server/distinfo b/databases/mariadb101-server/distinfo
index 69dbc62ab044..1792151eec79 100644
--- a/databases/mariadb101-server/distinfo
+++ b/databases/mariadb101-server/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1489523834
-SHA256 (mariadb-10.1.22.tar.gz) = bcb0572e7ad32cea9740a21e9255f733bdf60a5561ffbda317c22dd12b3966ce
-SIZE (mariadb-10.1.22.tar.gz) = 61542321
+TIMESTAMP = 1493839895
+SHA256 (mariadb-10.1.23.tar.gz) = 54d8114e24bfa5e3ebdc7d69e071ad1471912847ea481b227d204f9d644300bf
+SIZE (mariadb-10.1.23.tar.gz) = 61772244
diff --git a/databases/mariadb101-server/files/patch-CMakeLists.txt b/databases/mariadb101-server/files/patch-CMakeLists.txt
index 6133bbc0be89..e79a34edc9d1 100644
--- a/databases/mariadb101-server/files/patch-CMakeLists.txt
+++ b/databases/mariadb101-server/files/patch-CMakeLists.txt
@@ -1,16 +1,14 @@
-Fix up missing WITHOUT_DOCS, WITHOUT_CLIENT options
-
---- CMakeLists.txt.orig 2016-03-24 09:12:10 UTC
+--- CMakeLists.txt.orig 2017-05-02 05:13:38 UTC
+++ CMakeLists.txt
-@@ -460,6 +460,7 @@ ADD_CUSTOM_TARGET(INFO_BIN ALL
+@@ -465,6 +465,7 @@ ADD_CUSTOM_TARGET(INFO_BIN ALL
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
+IF(FALSE)
- INSTALL_DOCUMENTATION(README CREDITS COPYING COPYING.LESSER COPYING.thirdparty
+ INSTALL_DOCUMENTATION(README CREDITS COPYING COPYING.thirdparty
EXCEPTIONS-CLIENT COMPONENT Readme)
- # MDEV-6526 these files are not installed anymore
-@@ -470,6 +471,7 @@ IF(UNIX)
+
+@@ -476,6 +477,7 @@ IF(UNIX)
INSTALL_DOCUMENTATION(Docs/INSTALL-BINARY COMPONENT Readme)
INSTALL_DOCUMENTATION(Docs/INSTALL-BINARY Docs/README-wsrep COMPONENT Readme)
ENDIF()
diff --git a/databases/mariadb101-server/files/patch-MDEV-12281 b/databases/mariadb101-server/files/patch-MDEV-12281
new file mode 100644
index 000000000000..ffbd1833f294
--- /dev/null
+++ b/databases/mariadb101-server/files/patch-MDEV-12281
@@ -0,0 +1,15 @@
+--- storage/innobase/dict/dict0stats.cc.orig 2017-05-02 07:13:44.000000000 +0200
++++ storage/innobase/dict/dict0stats.cc 2017-05-03 17:26:34.159233678 +0200
+@@ -1168,10 +1168,10 @@
+ leaf-level delete marks because delete marks on
+ non-leaf level do not make sense. */
+
+- if (level == 0 && srv_stats_include_delete_marked? 0:
++ if (level == 0 && (srv_stats_include_delete_marked ? 0:
+ rec_get_deleted_flag(
+ rec,
+- page_is_comp(btr_pcur_get_page(&pcur)))) {
++ page_is_comp(btr_pcur_get_page(&pcur))))) {
+
+ if (rec_is_last_on_page
+ && !prev_rec_is_copied
diff --git a/databases/mariadb101-server/pkg-plist b/databases/mariadb101-server/pkg-plist
index 8c661d59739f..980b6aaabf92 100644
--- a/databases/mariadb101-server/pkg-plist
+++ b/databases/mariadb101-server/pkg-plist
@@ -4,6 +4,8 @@ bin/aria_ftdump
bin/aria_pack
bin/aria_read_log
bin/innochecksum
+bin/mariabackup
+bin/mbstream
bin/my_print_defaults
bin/myisam_ftdump
bin/myisamchk
@@ -37,6 +39,7 @@ bin/resolveip
%%TOKUDB%%bin/tokuft_logprint
%%TOKUDB%%bin/tokuftdump
bin/wsrep_sst_common
+bin/wsrep_sst_mariabackup
bin/wsrep_sst_mysqldump
bin/wsrep_sst_rsync
bin/wsrep_sst_xtrabackup
@@ -150,7 +153,10 @@ man/man1/aria_dump_log.1.gz
man/man1/aria_ftdump.1.gz
man/man1/aria_pack.1.gz
man/man1/aria_read_log.1.gz
+man/man1/galera_new_cluster.1.gz
+man/man1/galera_recovery.1.gz
man/man1/innochecksum.1.gz
+man/man1/mariadb-service-convert.1.gz
man/man1/my_print_defaults.1.gz
man/man1/myisam_ftdump.1.gz
man/man1/myisamchk.1.gz
@@ -168,6 +174,7 @@ man/man1/mysql_zap.1.gz
man/man1/mysqlbug.1.gz
man/man1/mysqld_multi.1.gz
man/man1/mysqld_safe.1.gz
+man/man1/mysqld_safe_helper.1.gz
man/man1/mysqldumpslow.1.gz
man/man1/mysqlhotcopy.1.gz
man/man1/mysqltest.1.gz
@@ -175,6 +182,13 @@ man/man1/perror.1.gz
man/man1/replace.1.gz
man/man1/resolve_stack_dump.1.gz
man/man1/resolveip.1.gz
+%%TOKUDB%%man/man1/tokuft_logdump.1.gz
+%%TOKUDB%%man/man1/tokuftdump.1.gz
+man/man1/wsrep_sst_common.1.gz
+man/man1/wsrep_sst_mysqldump.1.gz
+man/man1/wsrep_sst_rsync.1.gz
+man/man1/wsrep_sst_xtrabackup-v2.1.gz
+man/man1/wsrep_sst_xtrabackup.1.gz
man/man8/mysqld.8.gz
%%DATADIR%%/binary-configure
%%DATADIR%%/charsets/Index.xml