public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Aaron Bauman" <bman@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mysql-connector-c++/files/
Date: Wed, 27 Feb 2019 05:35:37 +0000 (UTC)	[thread overview]
Message-ID: <1551245727.8d6c764e744f6ef30074fdd68d03843eeff6c159.bman@gentoo> (raw)

commit:     8d6c764e744f6ef30074fdd68d03843eeff6c159
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Tue Feb 12 16:28:29 2019 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Wed Feb 27 05:35:27 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d6c764e

dev-db/mysql-connector-c++: remove unused patches

Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>

 .../mysql-connector-c++-1.1.3-fix-cmake.patch      | 123 ---------------------
 .../mysql-connector-c++-1.1.5-fix-mariadb.patch    |  45 --------
 2 files changed, 168 deletions(-)

diff --git a/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.3-fix-cmake.patch b/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.3-fix-cmake.patch
deleted file mode 100644
index 5f0669ca338..00000000000
--- a/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.3-fix-cmake.patch
+++ /dev/null
@@ -1,123 +0,0 @@
---- a/CMakeLists.txt	2014-05-04 21:27:59.000000000 -0400
-+++ b/CMakeLists.txt	2014-05-04 21:47:31.460572470 -0400
-@@ -38,7 +38,7 @@
- 
- if(COMMAND cmake_policy AND POLICY CMP0015)
- 	cmake_policy(SET CMP0015 NEW)
--endif(COMMAND cmake_policy)
-+endif(COMMAND cmake_policy AND POLICY CMP0015)
- 
- #-----------------
- # CPPFLAGS, CXXFLAGS and LDFLAGS from the environment
-@@ -258,14 +258,14 @@
- 	${CPACK_RESOURCE_FILE_LICENSE}
- 	"${CMAKE_SOURCE_DIR}/Licenses_for_Third-Party_Components.txt"
- 	"${CMAKE_SOURCE_DIR}/ANNOUNCEMENT"
--	DESTINATION "." OPTIONAL)
-+	DESTINATION "${INSTALL_DOCS}" OPTIONAL)
- 
- SET(COMMON_IGNORE_FILES "/CMakeFiles/" "/Testing/" "/.bzr/" "_CPack_Packages/"
-     ".cmake$" "~" ".swp" ".log" ".gz" ".directory$" "CMakeCache.txt" "Makefile"
- 	"install_manifest.txt")
- SET(PRJ_COMMON_IGNORE_FILES ${COMMON_IGNORE_FILES} "ANNOUNCEMENT_102_ALPHA" "ANNOUNCEMENT_103_ALPHA" "ANNOUNCEMENT_104_BETA" "ANNOUNCEMENT_105_GA" "ANNOUNCEMENT_110_GA" "ANNOUNCEMENT_111_GA" "ANNOUNCEMENT_DRAFT" )
- 
--SET(CPACK_SOURCE_IGNORE_FILES ${PRJ_COMMON_IGNORE_FILES}  "./cppconn/config.h$" "./driver/nativeapi/binding_config.h$")
-+SET(CPACK_SOURCE_IGNORE_FILES ${PRJ_COMMON_IGNORE_FILES}  "${CMAKE_CURRENT_SOURCE_DIR}/cppconn/config.h$" "${CMAKE_CURRENT_SOURCE_DIR}/driver/nativeapi/binding_config.h$")
- SET(CPACK_PACKAGE_IGNORE_FILES ${PRJ_COMMON_IGNORE_FILES} "something_there" )
- SET(CPACK_SOURCE_GENERATOR "TGZ")
- 
-@@ -292,10 +292,6 @@
- ADD_SUBDIRECTORY(cppconn)
- ADD_SUBDIRECTORY(driver)
- ADD_SUBDIRECTORY(examples)
--ADD_SUBDIRECTORY(test)
--ADD_SUBDIRECTORY(test/framework)
--ADD_SUBDIRECTORY(test/CJUnitTestsPort)
--ADD_SUBDIRECTORY(test/unit)
- 
- IF(DEFINED CMAKE_SYSTEM_NAME AND ${CMAKE_SYSTEM_NAME} STREQUAL "SunOS")
- 	# see also README
---- a/FindMySQL.cm	2014-05-04 22:20:50.000000000 -0400
-+++ b/FindMySQL.cm	2014-05-04 22:21:40.325384447 -0400
-@@ -58,7 +58,7 @@
- 	EXECUTE_PROCESS(COMMAND ${MYSQL_CONFIG_EXECUTABLE} "--cflags"
- 					OUTPUT_VARIABLE _mysql_config_output
- 					)
--	STRING(REGEX MATCHALL "-m([^\r\n]+)" MYSQL_LINK_FLAGS "${_mysql_config_output}")
-+	STRING(REGEX MATCHALL " -m([^\r\n]+)" MYSQL_LINK_FLAGS "${_mysql_config_output}")
- 	STRING(REGEX REPLACE "[\r\n]$" "" MYSQL_CXXFLAGS "${_mysql_config_output}")
- #	ADD_DEFINITIONS("${MYSQL_CXXFLAGS}")
- ELSE (MYSQL_CONFIG_EXECUTABLE AND NOT WIN32)
-diff -urN a/cppconn/CMakeLists.txt b/cppconn/CMakeLists.txt
---- a/cppconn/CMakeLists.txt	2011-07-30 13:15:44.000000000 +0200
-+++ b/cppconn/CMakeLists.txt	2011-07-30 14:10:34.000000000 +0200
-@@ -55,7 +55,7 @@
- 
- SET(MYSQLCPPCONN_INSTALL_HEADERS
- 		build_config.h
--		config.h
-+		${CMAKE_CURRENT_BINARY_DIR}/config.h
- 		connection.h
- 		datatype.h
- 		driver.h
-diff -urN mysql-connector-c++-1.1.0.old/driver/CMakeLists.txt mysql-connector-c++-1.1.0/driver/CMakeLists.txt
---- a/driver/CMakeLists.txt	2011-07-30 13:15:44.000000000 +0200
-+++ b/driver/CMakeLists.txt	2011-07-30 13:20:36.000000000 +0200
-@@ -26,6 +26,9 @@
- 
- INCLUDE_DIRECTORIES(${MYSQLCPPCONN_SOURCE_DIR})
- INCLUDE_DIRECTORIES(${MYSQLCPPCONN_SOURCE_DIR}/cppconn)
-+INCLUDE_DIRECTORIES(${MYSQLCPPCONN_BINARY_DIR})
-+INCLUDE_DIRECTORIES(${MYSQLCPPCONN_BINARY_DIR}/cppconn)
-+INCLUDE_DIRECTORIES(${MYSQLCPPCONN_BINARY_DIR}/driver/nativeapi)
- INCLUDE_DIRECTORIES(${MYSQLCPPCONN_BOOST_INCLUDE_DIRS})
- MESSAGE(STATUS "BOOST_INCLUDE_DIRS=${MYSQLCPPCONN_BOOST_INCLUDE_DIRS}")
- 
-@@ -149,20 +152,22 @@
- 		nativeapi/native_statement_wrapper.h
- 		nativeapi/mysql_native_resultset_wrapper.h
- 		nativeapi/native_resultset_wrapper.h
--		../cppconn/warning.h
--		../cppconn/statement.h
--		../cppconn/sqlstring.h
--		../cppconn/resultset_metadata.h
--		../cppconn/resultset.h
--		../cppconn/prepared_statement.h
--		../cppconn/parameter_metadata.h
--		../cppconn/metadata.h
--		../cppconn/exception.h
--		../cppconn/driver.h
--		../cppconn/datatype.h
--		../cppconn/connection.h
--		../cppconn/config.h
--		../cppconn/build_config.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/warning.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/statement.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/sqlstring.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/resultset_metadata.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/resultset.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/prepared_statement.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/parameter_metadata.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/metadata.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/exception.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/driver.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/datatype.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/connection.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/config.h
-+		${CMAKE_CURRENT_BINARY_DIR}/cppconn/config.h
-+		${CMAKE_CURRENT_SOURCE_DIR}/cppconn/build_config.h
-+		${CMAKE_CURRENT_BINARY_DIR}/cppconn/build_config.h
- 
- 	)
- 
-@@ -271,8 +276,8 @@
- 	)
- ELSE(WIN32)
- 	INSTALL(TARGETS mysqlcppconn mysqlcppconn-static
--		LIBRARY DESTINATION lib
--		ARCHIVE DESTINATION lib
-+		LIBRARY DESTINATION lib${LIB_SUFFIX}
-+		ARCHIVE DESTINATION lib${LIB_SUFFIX}
- 	)
- ENDIF(WIN32)
- 

diff --git a/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.5-fix-mariadb.patch b/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.5-fix-mariadb.patch
deleted file mode 100644
index fa36e3bad93..00000000000
--- a/dev-db/mysql-connector-c++/files/mysql-connector-c++-1.1.5-fix-mariadb.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-diff -aruN a/driver/nativeapi/libmysql_static_proxy.cpp b/driver/nativeapi/libmysql_static_proxy.cpp
---- a/driver/nativeapi/libmysql_static_proxy.cpp	2014-11-19 08:37:11.000000000 -0500
-+++ b/driver/nativeapi/libmysql_static_proxy.cpp	2015-02-21 22:19:50.119234140 -0500
-@@ -319,7 +319,7 @@
- int
- LibmysqlStaticProxy::get_option(MYSQL * mysql, enum mysql_option option, const void *arg)
- {
--#if MYSQL_VERSION_ID >= 50703
-+#if MYSQL_VERSION_ID >= 50703 && !defined( MARIADB_BASE_VERSION )
- 	if (::mysql_get_option(mysql, option, arg)) {
- 		throw sql::InvalidArgumentException("Unsupported option provided to mysql_get_option()");
- 	} else {
-diff -aruN a/driver/mysql_connection.cpp b/driver/mysql_connection.cpp
---- a/driver/mysql_connection.cpp	2014-11-19 08:37:11.000000000 -0500
-+++ b/driver/mysql_connection.cpp	2015-02-21 22:28:48.920210376 -0500
-@@ -1015,6 +1015,7 @@
- 		MY_CHARSET_INFO cs;
- 		proxy->get_character_set_info(&cs);
- 		*(static_cast<int *>(optionValue)) = cs.mbmaxlen;
-+#ifndef MARIADB_BASE_VERSION
- 	/* mysql_get_option() was added in mysql 5.7.3 version */
- 	} else if ( proxy->get_server_version() >= 50703 ) {
- 		try {
-@@ -1029,6 +1030,7 @@
- 			CPP_ERR_FMT("Unsupported option : %d:(%s) %s", proxy->errNo(), proxy->sqlstate().c_str(), proxy->error().c_str());
- 			throw e;
- 		}
-+#endif /* MARIADB_BASE_VERSION */
- 	}
- }
- /* }}} */
-@@ -1046,11 +1048,13 @@
- 		MY_CHARSET_INFO cs;
- 		proxy->get_character_set_info(&cs);
- 		return cs.dir ? sql::SQLString(cs.dir) : "";
-+#ifndef MARIADB_BASE_VERSION
- 	} else if ( proxy->get_server_version() >= 50703 ) {
- 		const char* optionValue= NULL;
- 		if (GET_CONN_OPTION(optionName, &optionValue, stringOptions)) {
- 			return optionValue ? sql::SQLString(optionValue) : "";
- 		}
-+#endif /* MARIADB_BASE_VERSION */
- 	}
- 	return "";
- }


             reply	other threads:[~2019-02-27  5:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-27  5:35 Aaron Bauman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-11-18 22:17 [gentoo-commits] repo/gentoo:master commit in: dev-db/mysql-connector-c++/files/ Aaron Bauman
2021-05-03 18:46 Sam James
2021-09-20 20:11 Conrad Kostecki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1551245727.8d6c764e744f6ef30074fdd68d03843eeff6c159.bman@gentoo \
    --to=bman@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox