diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2018-08-16 16:35:17 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-08-28 20:29:12 +0200 |
commit | 490c6cd0ed877a0bd22a7592b42d70edd83114ca (patch) | |
tree | 340f64246980e3ee793309dac0453584676c3790 /external | |
parent | 4e8a7a6cbca2ba4119647dfeb59da68bedb3e157 (diff) |
Moving mysqlc into connectivity as a library
Additionally I erased the remains of the old mysql C++ connector.
Also update the code where the clang plugins were unhappy after moving
the mysqlc module.
Remove mysql-cpp-connector external.
Change-Id: I771cc7afacf5012fc349afb6b36828fb0fee5a66
Reviewed-on: https://gerrit.libreoffice.org/59200
Tested-by: Jenkins
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/59713
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/Module_external.mk | 1 | ||||
-rw-r--r-- | external/mariadb-connector-c/StaticLibrary_mariadb-connector-c.mk | 2 | ||||
-rw-r--r-- | external/mysql-connector-cpp/Makefile | 7 | ||||
-rw-r--r-- | external/mysql-connector-cpp/Module_mysql-connector-cpp.mk | 17 | ||||
-rw-r--r-- | external/mysql-connector-cpp/README | 1 | ||||
-rw-r--r-- | external/mysql-connector-cpp/UnpackedTarball_mysql-connector-cpp.mk | 26 | ||||
-rw-r--r-- | external/mysql-connector-cpp/binding_config.h | 5 | ||||
-rw-r--r-- | external/mysql-connector-cpp/config.h | 39 | ||||
-rw-r--r-- | external/mysql-connector-cpp/patches/dynexcspec.patch.0 | 15 | ||||
-rw-r--r-- | external/mysql-connector-cpp/patches/enable-libmysql-proxy.patch | 27 | ||||
-rw-r--r-- | external/mysql-connector-cpp/patches/mysql-connector-c++-1.1.0.patch | 115 | ||||
-rw-r--r-- | external/mysql-connector-cpp/patches/warnings.patch.0 | 11 | ||||
-rw-r--r-- | external/mysql-connector-cpp/version_info.h | 42 |
13 files changed, 2 insertions, 306 deletions
diff --git a/external/Module_external.mk b/external/Module_external.mk index 2c79bc3a2bfc..9f1b8d43feac 100644 --- a/external/Module_external.mk +++ b/external/Module_external.mk @@ -71,7 +71,6 @@ $(eval $(call gb_Module_add_moduledirs,external,\ $(call gb_Helper_optional,MORE_FONTS,more_fonts) \ $(call gb_Helper_optional,MSPUB,libmspub) \ $(call gb_Helper_optional,MWAW,libmwaw) \ - $(call gb_Helper_optional,MYSQL_CONNECTOR_CPP,mysql-connector-cpp) \ $(call gb_Helper_optional,MYTHES,mythes) \ $(call gb_Helper_optional,NEON,neon) \ $(call gb_Helper_optional,NOTO_FONT,noto_font) \ diff --git a/external/mariadb-connector-c/StaticLibrary_mariadb-connector-c.mk b/external/mariadb-connector-c/StaticLibrary_mariadb-connector-c.mk index 952f69a78d86..38803b594a1a 100644 --- a/external/mariadb-connector-c/StaticLibrary_mariadb-connector-c.mk +++ b/external/mariadb-connector-c/StaticLibrary_mariadb-connector-c.mk @@ -107,6 +107,8 @@ $(eval $(call gb_StaticLibrary_add_generated_cobjects,mariadb-connector-c,\ UnpackedTarball/mariadb-connector-c/libmariadb/client_plugin \ UnpackedTarball/mariadb-connector-c/libmariadb/my_auth \ UnpackedTarball/mariadb-connector-c/libmariadb/ma_secure \ +$(if $(filter $(OS),WNT), \ + UnpackedTarball/mariadb-connector-c/win-iconv/win_iconv,) \ )) # vim: set noet sw=4 ts=4: diff --git a/external/mysql-connector-cpp/Makefile b/external/mysql-connector-cpp/Makefile deleted file mode 100644 index e4968cf85fb6..000000000000 --- a/external/mysql-connector-cpp/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- - -module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) - -include $(module_directory)/../../solenv/gbuild/partial_build.mk - -# vim: set noet sw=4 ts=4: diff --git a/external/mysql-connector-cpp/Module_mysql-connector-cpp.mk b/external/mysql-connector-cpp/Module_mysql-connector-cpp.mk deleted file mode 100644 index 59e6229166bd..000000000000 --- a/external/mysql-connector-cpp/Module_mysql-connector-cpp.mk +++ /dev/null @@ -1,17 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# - -$(eval $(call gb_Module_Module,mysql-connector-cpp)) - -$(eval $(call gb_Module_add_targets,mysql-connector-cpp,\ - UnpackedTarball_mysql-connector-cpp \ - Library_mysqlcppconn \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/external/mysql-connector-cpp/README b/external/mysql-connector-cpp/README deleted file mode 100644 index b49803dadfdb..000000000000 --- a/external/mysql-connector-cpp/README +++ /dev/null @@ -1 +0,0 @@ -From [http://dev.mysql.com/downloads/connector/cpp/] diff --git a/external/mysql-connector-cpp/UnpackedTarball_mysql-connector-cpp.mk b/external/mysql-connector-cpp/UnpackedTarball_mysql-connector-cpp.mk deleted file mode 100644 index be0e482d5315..000000000000 --- a/external/mysql-connector-cpp/UnpackedTarball_mysql-connector-cpp.mk +++ /dev/null @@ -1,26 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# This file is part of the LibreOffice project. -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# - -$(eval $(call gb_UnpackedTarball_UnpackedTarball,mysql-connector-cpp)) - -$(eval $(call gb_UnpackedTarball_set_tarball,mysql-connector-cpp,$(MYSQL_CONNECTOR_CPP_TARBALL))) - -$(eval $(call gb_UnpackedTarball_add_file,mysql-connector-cpp,cppconn/config.h,external/mysql-connector-cpp/config.h)) -$(eval $(call gb_UnpackedTarball_add_file,mysql-connector-cpp,version_info.h,external/mysql-connector-cpp/version_info.h)) - -$(eval $(call gb_UnpackedTarball_add_file,mysql-connector-cpp,driver/nativeapi/binding_config.h,external/mysql-connector-cpp/binding_config.h)) - -$(eval $(call gb_UnpackedTarball_add_patches,mysql-connector-cpp,\ - external/mysql-connector-cpp/patches/mysql-connector-c++-1.1.0.patch \ - external/mysql-connector-cpp/patches/warnings.patch.0 \ - external/mysql-connector-cpp/patches/enable-libmysql-proxy.patch \ - external/mysql-connector-cpp/patches/dynexcspec.patch.0 \ -)) - -# vim: set noet sw=4 ts=4: diff --git a/external/mysql-connector-cpp/binding_config.h b/external/mysql-connector-cpp/binding_config.h deleted file mode 100644 index 23811e8965b3..000000000000 --- a/external/mysql-connector-cpp/binding_config.h +++ /dev/null @@ -1,5 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -#define HAVE_DLFCN_H 1 -#define MYSQLCLIENT_STATIC_BINDING 1 - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/external/mysql-connector-cpp/config.h b/external/mysql-connector-cpp/config.h deleted file mode 100644 index eaa929437182..000000000000 --- a/external/mysql-connector-cpp/config.h +++ /dev/null @@ -1,39 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -#include <sal/types.h> - -#define HAVE_FUNCTION_STRTOL 1 -#define HAVE_FUNCTION_STRTOUL 1 -#define HAVE_FUNCTION_STRTOL 1 -#define HAVE_FUNCTION_STRTOULL 1 - -#if defined(MACOSX) || defined(__sun) || defined(LINUX) || defined (_MSC_VER) - #define HAVE_STDINT_H -#ifndef _MSC_VER - #define HAVE_INTTYPES_H -#endif -#endif - -#ifdef HAVE_STDINT_H -#include <stdint.h> -#endif - -#ifdef HAVE_INTTYPES_H -#include <inttypes.h> -#endif - -#if !defined(HAVE_STDINT_H) && !defined(HAVE_INTTYPES_H) - -// if we do not have the standard C99 integer types, then define them based on the respective SAL types -#if !defined(_SYS_TYPES_H) -typedef sal_Int8 int8_t; -typedef sal_Int16 int16_t; -typedef sal_Int32 int32_t; -#endif // !defined(_SYS_TYPES_H) -typedef sal_uInt8 uint8_t; -typedef sal_uInt16 uint16_t; -typedef sal_uInt32 uint32_t; -typedef sal_Int64 int64_t; -typedef sal_uInt64 uint64_t; -#endif // !defined(HAVE_STDINT_H) && !defined(HAVE_INTTYPES_H) - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/external/mysql-connector-cpp/patches/dynexcspec.patch.0 b/external/mysql-connector-cpp/patches/dynexcspec.patch.0 deleted file mode 100644 index ed7ac3685a4b..000000000000 --- a/external/mysql-connector-cpp/patches/dynexcspec.patch.0 +++ /dev/null @@ -1,15 +0,0 @@ ---- cppconn/exception.h -+++ cppconn/exception.h -@@ -36,10 +36,10 @@ - { - - #define MEMORY_ALLOC_OPERATORS(Class) \ -- void* operator new(size_t size) throw (std::bad_alloc) { return ::operator new(size); } \ -+ void* operator new(size_t size) { return ::operator new(size); } \ - void* operator new(size_t, void*) throw(); \ - void* operator new(size_t, const std::nothrow_t&) throw(); \ -- void* operator new[](size_t) throw (std::bad_alloc); \ -+ void* operator new[](size_t); \ - void* operator new[](size_t, void*) throw(); \ - void* operator new[](size_t, const std::nothrow_t&) throw(); \ - void* operator new(size_t N, std::allocator<Class>&); diff --git a/external/mysql-connector-cpp/patches/enable-libmysql-proxy.patch b/external/mysql-connector-cpp/patches/enable-libmysql-proxy.patch deleted file mode 100644 index 6a5894cb1e9c..000000000000 --- a/external/mysql-connector-cpp/patches/enable-libmysql-proxy.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- UnpackedTarball/mysqlcppconn/driver/nativeapi/mysql_client_api.cpp 2014-07-30 13:41:37.000000000 +0200 -+++ UnpackedTarball/mysqlcppconn/driver/nativeapi/mysql_client_api.cpp 2014-09-17 22:12:26.000000000 +0200 -@@ -32,10 +32,10 @@ - - #ifdef MYSQLCLIENT_STATIC_BINDING - /* MySQL client library is linked */ --# include "libmysql_static_proxy.h" -+ #include "libmysql_static_proxy.h" - #else - /* MySQL client library will be dynamically loaded */ --# include "libmysql_dynamic_proxy.h" -+ #include "libmysql_dynamic_proxy.h" - #endif - - namespace sql -@@ -76,9 +76,9 @@ - #include "binding_config.h" - - #ifdef MYSQLCLIENT_STATIC_BINDING --# include "libmysql_static_proxy.cpp" -+ #include "libmysql_static_proxy.cpp" - #else --# include "libmysql_dynamic_proxy.cpp" -+ #include "libmysql_dynamic_proxy.cpp" - #endif - - /* diff --git a/external/mysql-connector-cpp/patches/mysql-connector-c++-1.1.0.patch b/external/mysql-connector-cpp/patches/mysql-connector-c++-1.1.0.patch deleted file mode 100644 index ec439d2dfd56..000000000000 --- a/external/mysql-connector-cpp/patches/mysql-connector-c++-1.1.0.patch +++ /dev/null @@ -1,115 +0,0 @@ ---- misc/mysql-connector-c++-1.1.0/cppconn/build_config.h 2010-09-10 11:47:47.000000000 +0200 -+++ misc/build/mysql-connector-c++-1.1.0/cppconn/build_config.h 2011-11-12 00:45:19.000000000 +0100 -@@ -25,25 +25,21 @@ - #ifndef _SQL_BUILD_CONFIG_H_ - #define _SQL_BUILD_CONFIG_H_ - --#ifndef CPPCONN_PUBLIC_FUNC -+#include <sal/types.h> - --#if defined(_WIN32) - // mysqlcppconn_EXPORTS is added by cmake and defined for dynamic lib build only - #ifdef mysqlcppconn_EXPORTS -- #define CPPCONN_PUBLIC_FUNC __declspec(dllexport) -+ #define CPPCONN_PUBLIC_FUNC SAL_DLLPUBLIC_EXPORT - #else - // this is for static build - #ifdef CPPCONN_LIB_BUILD - #define CPPCONN_PUBLIC_FUNC - #else - // this is for clients using dynamic lib -- #define CPPCONN_PUBLIC_FUNC __declspec(dllimport) -+ #define CPPCONN_PUBLIC_FUNC SAL_DLLPUBLIC_IMPORT - #endif - #endif --#else -- #define CPPCONN_PUBLIC_FUNC --#endif - --#endif //#ifndef CPPCONN_PUBLIC_FUNC -+ #define CPPCONN_PUBLIC_EXCEPTION SAL_EXCEPTION_DLLPUBLIC_EXPORT - - #endif //#ifndef _SQL_BUILD_CONFIG_H_ ---- misc/mysql-connector-c++-1.1.0/cppconn/exception.h 2009-08-20 17:51:23.000000000 +0200 -+++ misc/build/mysql-connector-c++-1.1.0/cppconn/exception.h 2009-09-11 09:41:41.076379817 +0200 -@@ -37,7 +37,7 @@ - #pragma warning(push) - #pragma warning(disable: 4275) - #endif --class CPPCONN_PUBLIC_FUNC SQLException : public std::runtime_error -+class CPPCONN_PUBLIC_EXCEPTION SQLException : public std::runtime_error - { - #ifdef _WIN32 - #pragma warning(pop) -@@ -83,26 +83,26 @@ - MEMORY_ALLOC_OPERATORS(SQLException) - }; - --struct CPPCONN_PUBLIC_FUNC MethodNotImplementedException : public SQLException -+struct CPPCONN_PUBLIC_EXCEPTION MethodNotImplementedException : public SQLException - { - MethodNotImplementedException(const MethodNotImplementedException& e) : SQLException(e.what(), e.sql_state, e.errNo) { } - MethodNotImplementedException(const std::string& reason) : SQLException(reason, "", 0) {} - }; - --struct CPPCONN_PUBLIC_FUNC InvalidArgumentException : public SQLException -+struct CPPCONN_PUBLIC_EXCEPTION InvalidArgumentException : public SQLException - { - InvalidArgumentException(const InvalidArgumentException& e) : SQLException(e.what(), e.sql_state, e.errNo) { } - InvalidArgumentException(const std::string& reason) : SQLException(reason, "", 0) {} - }; - --struct CPPCONN_PUBLIC_FUNC InvalidInstanceException : public SQLException -+struct CPPCONN_PUBLIC_EXCEPTION InvalidInstanceException : public SQLException - { - InvalidInstanceException(const InvalidInstanceException& e) : SQLException(e.what(), e.sql_state, e.errNo) { } - InvalidInstanceException(const std::string& reason) : SQLException(reason, "", 0) {} - }; - - --struct CPPCONN_PUBLIC_FUNC NonScrollableException : public SQLException -+struct CPPCONN_PUBLIC_EXCEPTION NonScrollableException : public SQLException - { - NonScrollableException(const NonScrollableException& e) : SQLException(e.what(), e.sql_state, e.errNo) { } - NonScrollableException(const std::string& reason) : SQLException(reason, "", 0) {} ---- misc/mysql-connector-c++-1.1.0/driver/mysql_debug.h 2009-08-13 17:13:46.000000000 +0200 -+++ misc/build/mysql-connector-c++-1.1.0/driver/mysql_debug.h 2009-08-14 09:56:37.015625000 +0200 -@@ -25,16 +25,6 @@ - - - --#if defined(WE_HAVE_VARARGS_MACRO_SUPPORT) && (CPPCONN_TRACE_ENABLED || defined(SAL_DLLPRIVATE)) -- #define CPP_ENTER(msg) const boost::shared_ptr< MySQL_DebugLogger > __l = this->logger;(void)__l;\ -- MySQL_DebugEnterEvent __this_func(__LINE__, __FILE__, msg, this->logger) -- #define CPP_ENTER_WL(l, msg) const boost::shared_ptr< MySQL_DebugLogger > __l = (l);(void)__l;\ -- MySQL_DebugEnterEvent __this_func(__LINE__, __FILE__, msg, (l)) -- #define CPP_INFO(msg) {if (__l) __l->log("INF", msg); } -- #define CPP_INFO_FMT(...) {if (__l) __l->log_va("INF", __VA_ARGS__); } -- #define CPP_ERR(msg) {if (__l) __l->log("ERR", msg); } -- #define CPP_ERR_FMT(...) {if (__l) __l->log_va("ERR", __VA_ARGS__); } --#else - #define CPP_ENTER(msg) - #define CPP_ENTER_WL(l, msg) - #define CPP_INFO(msg) -@@ -42,7 +32,6 @@ - #define CPP_ENTER_WL(l, msg) - static inline void CPP_INFO_FMT(...) {} - static inline void CPP_ERR_FMT(...) {} --#endif - - #include <stack> - #include "mysql_util.h" ---- misc/mysql-connector-c++-1.1.0/driver/mysql_prepared_statement.cpp 2013-03-06 10:29:26.890721534 +0100 -+++ misc/build/mysql-connector-c++-1.1.0/driver/mysql_prepared_statement.cpp 2013-03-06 10:32:02.979904080 +0100 -@@ -46,6 +46,10 @@ - - #include "mysql_debug.h" - -+#ifndef CR_INVALID_BUFFER_USE -+#define CR_INVALID_BUFFER_USE 2035 -+#endif -+ - - namespace sql - { - diff --git a/external/mysql-connector-cpp/patches/warnings.patch.0 b/external/mysql-connector-cpp/patches/warnings.patch.0 deleted file mode 100644 index 2cda42d86398..000000000000 --- a/external/mysql-connector-cpp/patches/warnings.patch.0 +++ /dev/null @@ -1,11 +0,0 @@ ---- cppconn/warning.h -+++ cppconn/warning.h -@@ -59,7 +59,7 @@ - - virtual ~SQLWarning(){}; - -- SQLWarning(const SQLWarning& e){}; -+ SQLWarning(const SQLWarning&){}; - - private: - const SQLWarning & operator = (const SQLWarning & rhs); diff --git a/external/mysql-connector-cpp/version_info.h b/external/mysql-connector-cpp/version_info.h deleted file mode 100644 index a0203da33864..000000000000 --- a/external/mysql-connector-cpp/version_info.h +++ /dev/null @@ -1,42 +0,0 @@ -/* -Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. - -The MySQL Connector/C++ is licensed under the terms of the GPLv2 -<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most -MySQL Connectors. There are special exceptions to the terms and -conditions of the GPLv2 as it is applied to this software, see the -FLOSS License Exception -<http://www.mysql.com/about/legal/licensing/foss-exception.html>. - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published -by the Free Software Foundation; version 2 of the License. - -This program is distributed in the hope that it will be useful, but -WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License -for more details. - -You should have received a copy of the GNU General Public License along -with this program; if not, write to the Free Software Foundation, Inc., -51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ - -/* Please do not edit this file - it is generated by cmake. Edit its source file instead. */ - -#define MYCPPCONN_MAJOR_VERSION 1 -#define MYCPPCONN_MINOR_VERSION 1 -#define MYCPPCONN_PATCH_VERSION 4 - -#define SETUP_VERSION "1.01.0004" -#define DRIVER_VERSION "0" SETUP_VERSION - -#define MYCPPCONN_VERSION SETUP_VERSION -#define MYCPPCONN_FILEVER 1,1,4,0 -#define MYCPPCONN_PRODUCTVER MYCPPCONN_FILEVER -#define MYCPPCONN_STRFILEVER "1, 1, 4, 0\0" -#define MYCPPCONN_STRPRODUCTVER MYCPPCONN_STRFILEVER - -#define MYCPPCONN_STRSERIES "1.1" -#define MYCPPCONN_STRQUALITY "GA" -#define MYCPPCONN_STRVERSION "1.1.4" |