From be08f22ae1bb0c19f8d526d2a6a9234b8d20b37c Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Fri, 10 Oct 2014 16:38:54 +0300 Subject: [PATCH 1/2] Changed old references to SkySQL to MariaDB Corporation and Gateway to MaxScale. --- query_classifier/test/classify.c | 2 +- server/core/buffer.c | 6 +++--- server/modules/filter/test/harness.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/query_classifier/test/classify.c b/query_classifier/test/classify.c index 96a001771..4fe33a68b 100644 --- a/query_classifier/test/classify.c +++ b/query_classifier/test/classify.c @@ -9,7 +9,7 @@ #include static char* server_options[] = { - "SkySQL Gateway", + "MariaDB Corporation MaxScale", "--no-defaults", "--datadir=.", "--language=.", diff --git a/server/core/buffer.c b/server/core/buffer.c index 46315cf69..9ee13c87f 100644 --- a/server/core/buffer.c +++ b/server/core/buffer.c @@ -1,5 +1,5 @@ /* - * This file is distributed as part of the SkySQL Gateway. It is free + * This file is distributed as part of the MariaDB Corporation MaxScale. It 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. @@ -13,11 +13,11 @@ * this program; if not, write to the Free Software Foundation, Inc., 51 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * Copyright SkySQL Ab 2013 + * Copyright MariaDB Corporation Ab 2014 */ /** - * @file buffer.h - The Gateway buffer management functions + * @file buffer.h - The MaxScale buffer management functions * * The buffer management is based on the principle of a linked list * of variable size buffer, the intention beign to allow longer diff --git a/server/modules/filter/test/harness.h b/server/modules/filter/test/harness.h index 69b12b9d9..c30c266c2 100644 --- a/server/modules/filter/test/harness.h +++ b/server/modules/filter/test/harness.h @@ -1,7 +1,7 @@ #ifndef _FILTER_HARNESS_H #define _FILTER_HARNESS_H /* - * This file is distributed as part of the SkySQL Gateway. It is free + * This file is distributed as part of the MariaDB Corporation MaxScale. It 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. @@ -15,7 +15,7 @@ * this program; if not, write to the Free Software Foundation, Inc., 51 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * - * Copyright SkySQL Ab 2013 + * Copyright MariaDB Corporation Ab 2014 */ /** From 7165f5d29b73394576abb538ba170246a86ba553 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Fri, 10 Oct 2014 17:14:49 +0300 Subject: [PATCH 2/2] Added more checks for RabbitMQ library versions. --- macros.cmake | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/macros.cmake b/macros.cmake index bc1bd24e6..920c915c7 100644 --- a/macros.cmake +++ b/macros.cmake @@ -57,11 +57,12 @@ endmacro() macro(check_deps) + # Check for libraries MaxScale depends on set(MAXSCALE_DEPS aio ssl crypt crypto z m dl rt pthread) foreach(lib ${MAXSCALE_DEPS}) find_library(lib${lib} ${lib}) - if((DEFINED lib${lib}) AND (${lib${lib}} STREQUAL "lib${lib}-NOTFOUND")) + if((DEFINED lib${lib}) AND (${lib${lib}} MATCHES "NOTFOUND")) set(DEPS_ERROR TRUE) set(FAILED_DEPS "${FAILED_DEPS} lib${lib}") elseif(DEBUG_OUTPUT) @@ -159,7 +160,7 @@ macro(check_dirs) unset(EMBEDDED_LIB_STATIC) # Inform the user about the embedded library - if( (${EMBEDDED_LIB} STREQUAL "EMBEDDED_LIB_STATIC-NOTFOUND") OR (${EMBEDDED_LIB} STREQUAL "EMBEDDED_LIB_DYNAMIC-NOTFOUND")) + if( (${EMBEDDED_LIB} MATCHES "NOTFOUND") OR (${EMBEDDED_LIB} MATCHES "NOTFOUND")) set(DEPS_OK FALSE CACHE BOOL "If all the dependencies were found.") message(FATAL_ERROR "Library not found: libmysqld. If your install of MySQL is in a non-default location, please provide the location with -DEMBEDDED_LIB=") else() @@ -186,6 +187,7 @@ macro(check_dirs) #Check RabbitMQ headers and libraries if(BUILD_RABBITMQ) + include(CheckCSourceCompiles) if(DEFINED RABBITMQ_LIB) find_library(RMQ_LIB rabbitmq PATHS ${RABBITMQ_LIB} NO_DEFAULT_PATH) @@ -212,7 +214,12 @@ macro(check_dirs) set(RABBITMQ_HEADERS ${RMQ_HEADERS} CACHE PATH "Path to RabbitMQ headers" FORCE) message(STATUS "Using RabbitMQ headers found at: ${RABBITMQ_HEADERS}") endif() - + set(CMAKE_REQUIRED_INCLUDES ${RABBITMQ_HEADERS}) + check_c_source_compiles("#include \n int main(){if(AMQP_DELIVERY_PERSISTENT){return 0;}return 1;}" HAVE_RMQ50) + if(NOT HAVE_RMQ50) + message(FATAL_ERROR "Old version of RabbitMQ-C library found. Version 0.5 or newer is required.") + endif() + endif() endmacro()