Commit 1e6ef7f4 authored by Tatiana Azundris Nurnberg's avatar Tatiana Azundris Nurnberg

merge

parents 7553a1f6 b995d57a
...@@ -344,7 +344,7 @@ ENDIF() ...@@ -344,7 +344,7 @@ ENDIF()
# RPM installs documentation directly from the source tree # RPM installs documentation directly from the source tree
# #
IF(NOT INSTALL_LAYOUT MATCHES "RPM") IF(NOT INSTALL_LAYOUT MATCHES "RPM")
INSTALL(FILES COPYING EXCEPTIONS-CLIENT LICENSE.mysql INSTALL(FILES COPYING LICENSE.mysql
DESTINATION ${INSTALL_DOCREADMEDIR} DESTINATION ${INSTALL_DOCREADMEDIR}
COMPONENT Readme COMPONENT Readme
OPTIONAL OPTIONAL
......
...@@ -53,23 +53,27 @@ ...@@ -53,23 +53,27 @@
SET(abi_check_out ${BINARY_DIR}/abi_check.out) SET(abi_check_out ${BINARY_DIR}/abi_check.out)
FOREACH(file ${ABI_HEADERS}) FOREACH(file ${ABI_HEADERS})
SET(tmpfile ${file}.pp.tmp) GET_FILENAME_COMPONENT(header_basename ${file} NAME)
EXECUTE_PROCESS( SET(tmpfile ${BINARY_DIR}/${header_basename}.pp.tmp)
COMMAND ${COMPILER}
-E -nostdinc -dI -DMYSQL_ABI_CHECK -I${SOURCE_DIR}/include EXECUTE_PROCESS(
-I${BINARY_DIR}/include -I${SOURCE_DIR}/include/mysql -I${SOURCE_DIR}/sql COMMAND ${COMPILER}
${file} -E -nostdinc -dI -DMYSQL_ABI_CHECK -I${SOURCE_DIR}/include
ERROR_QUIET OUTPUT_FILE ${tmpfile}) -I${BINARY_DIR}/include -I${SOURCE_DIR}/include/mysql -I${SOURCE_DIR}/sql
EXECUTE_PROCESS( ${file}
COMMAND sed -e ERROR_QUIET OUTPUT_FILE ${tmpfile})
"/^# /d" -e "/^[ ]*$/d" -e "/^#pragma GCC set_debug_pwd/d" -e "/^#ident/d" EXECUTE_PROCESS(
RESULT_VARIABLE result OUTPUT_FILE ${abi_check_out} INPUT_FILE ${tmpfile}) COMMAND sed -e "/^# /d"
-e "/^[ ]*$/d"
-e "/^#pragma GCC set_debug_pwd/d"
-e "/^#ident/d"
RESULT_VARIABLE result OUTPUT_FILE ${abi_check_out} INPUT_FILE ${tmpfile})
IF(NOT ${result} EQUAL 0) IF(NOT ${result} EQUAL 0)
MESSAGE(FATAL_ERROR "sed returned error ${result}") MESSAGE(FATAL_ERROR "sed returned error ${result}")
ENDIF() ENDIF()
FILE(REMOVE ${tmpfile}) FILE(REMOVE ${tmpfile})
EXECUTE_PROCESS(COMMAND diff -w ${file}.pp ${abi_check_out} RESULT_VARIABLE EXECUTE_PROCESS(
result) COMMAND diff -w ${file}.pp ${abi_check_out} RESULT_VARIABLE result)
IF(NOT ${result} EQUAL 0) IF(NOT ${result} EQUAL 0)
MESSAGE(FATAL_ERROR MESSAGE(FATAL_ERROR
"ABI check found difference between ${file}.pp and ${abi_check_out}") "ABI check found difference between ${file}.pp and ${abi_check_out}")
......
...@@ -153,13 +153,23 @@ ENDFUNCTION() ...@@ -153,13 +153,23 @@ ENDFUNCTION()
# to mysqld. # to mysqld.
MACRO (DTRACE_INSTRUMENT_STATIC_LIBS target libs) MACRO (DTRACE_INSTRUMENT_STATIC_LIBS target libs)
IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND ENABLE_DTRACE) IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND ENABLE_DTRACE)
# Filter out non-static libraries in the list, if any
SET(static_libs)
FOREACH(lib ${libs}) FOREACH(lib ${libs})
GET_TARGET_PROPERTY(libtype ${lib} TYPE)
IF(libtype MATCHES STATIC_LIBRARY)
SET(static_libs ${static_lics} ${lib})
ENDIF()
ENDFOREACH()
FOREACH(lib ${static_libs})
SET(dirs ${dirs} ${TARGET_OBJECT_DIRECTORY_${lib}}) SET(dirs ${dirs} ${TARGET_OBJECT_DIRECTORY_${lib}})
ENDFOREACH() ENDFOREACH()
SET (obj ${CMAKE_CURRENT_BINARY_DIR}/${target}_dtrace_all.o) SET (obj ${CMAKE_CURRENT_BINARY_DIR}/${target}_dtrace_all.o)
ADD_CUSTOM_COMMAND( ADD_CUSTOM_COMMAND(
OUTPUT ${obj} OUTPUT ${obj}
DEPENDS ${libs} DEPENDS ${static_libs}
COMMAND ${CMAKE_COMMAND} COMMAND ${CMAKE_COMMAND}
-DDTRACE=${DTRACE} -DDTRACE=${DTRACE}
-DOUTFILE=${obj} -DOUTFILE=${obj}
......
...@@ -21,17 +21,21 @@ SET(SHARED_LIB_MAJOR_VERSION "16") ...@@ -21,17 +21,21 @@ SET(SHARED_LIB_MAJOR_VERSION "16")
SET(PROTOCOL_VERSION "10") SET(PROTOCOL_VERSION "10")
SET(DOT_FRM_VERSION "6") SET(DOT_FRM_VERSION "6")
# Generate "something" to trigger cmake rerun when VERSION changes
CONFIGURE_FILE(
${CMAKE_SOURCE_DIR}/VERSION
${CMAKE_BINARY_DIR}/VERSION.dep
)
# Read value for a variable from VERSION. # Read value for a variable from VERSION.
MACRO(MYSQL_GET_CONFIG_VALUE keyword var) MACRO(MYSQL_GET_CONFIG_VALUE keyword var)
IF(NOT ${var}) IF(NOT ${var})
IF (EXISTS ${CMAKE_SOURCE_DIR}/VERSION) FILE (STRINGS ${CMAKE_SOURCE_DIR}/VERSION str REGEX "^[ ]*${keyword}=")
FILE (STRINGS ${CMAKE_SOURCE_DIR}/VERSION str REGEX "^[ ]*${keyword}=") IF(str)
IF(str) STRING(REPLACE "${keyword}=" "" str ${str})
STRING(REPLACE "${keyword}=" "" str ${str}) STRING(REGEX REPLACE "[ ].*" "" str "${str}")
STRING(REGEX REPLACE "[ ].*" "" str "${str}") SET(${var} ${str})
SET(${var} ${str})
ENDIF()
ENDIF() ENDIF()
ENDIF() ENDIF()
ENDMACRO() ENDMACRO()
......
...@@ -123,7 +123,7 @@ MACRO(MYSQL_ADD_PLUGIN) ...@@ -123,7 +123,7 @@ MACRO(MYSQL_ADD_PLUGIN)
# Update mysqld dependencies # Update mysqld dependencies
SET (MYSQLD_STATIC_PLUGIN_LIBS ${MYSQLD_STATIC_PLUGIN_LIBS} SET (MYSQLD_STATIC_PLUGIN_LIBS ${MYSQLD_STATIC_PLUGIN_LIBS}
${target} CACHE INTERNAL "" FORCE) ${target} ${ARG_LINK_LIBRARIES} CACHE INTERNAL "" FORCE)
IF(ARG_MANDATORY) IF(ARG_MANDATORY)
SET(${with_var} ON CACHE INTERNAL "Link ${plugin} statically to the server" SET(${with_var} ON CACHE INTERNAL "Link ${plugin} statically to the server"
......
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
the Free Software Foundation. the Free Software Foundation.
There are special exceptions to the terms and conditions of the GPL as it There are special exceptions to the terms and conditions of the GPL as it
is applied to this software. View the full text of the exception in file is applied to this software.
EXCEPTIONS-CLIENT in the directory of this software distribution.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
......
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
the Free Software Foundation. the Free Software Foundation.
There are special exceptions to the terms and conditions of the GPL as it There are special exceptions to the terms and conditions of the GPL as it
is applied to this software. View the full text of the exception in file is applied to this software.
EXCEPTIONS-CLIENT in the directory of this software distribution.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
......
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
the Free Software Foundation. the Free Software Foundation.
There are special exceptions to the terms and conditions of the GPL as it There are special exceptions to the terms and conditions of the GPL as it
is applied to this software. View the full text of the exception in file is applied to this software.
EXCEPTIONS-CLIENT in the directory of this software distribution.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
......
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
the Free Software Foundation. the Free Software Foundation.
There are special exceptions to the terms and conditions of the GPL as it There are special exceptions to the terms and conditions of the GPL as it
is applied to this software. View the full text of the exception in file is applied to this software.
EXCEPTIONS-CLIENT in the directory of this software distribution.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
......
...@@ -26,7 +26,6 @@ ${CMAKE_SOURCE_DIR}/regex ...@@ -26,7 +26,6 @@ ${CMAKE_SOURCE_DIR}/regex
${ZLIB_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR}
${SSL_INCLUDE_DIRS} ${SSL_INCLUDE_DIRS}
${SSL_INTERNAL_INCLUDE_DIRS} ${SSL_INTERNAL_INCLUDE_DIRS}
${NDB_CLUSTER_INCLUDES}
${CMAKE_SOURCE_DIR}/sql/backup ${CMAKE_SOURCE_DIR}/sql/backup
) )
...@@ -110,7 +109,7 @@ SET(LIBS ...@@ -110,7 +109,7 @@ SET(LIBS
dbug strings regex mysys vio dbug strings regex mysys vio
${ZLIB_LIBRARY} ${SSL_LIBRARIES} ${ZLIB_LIBRARY} ${SSL_LIBRARIES}
${LIBWRAP} ${LIBCRYPT} ${LIBDL} ${LIBWRAP} ${LIBCRYPT} ${LIBDL}
${MYSQLD_STATIC_PLUGIN_LIBS} ${NDB_CLIENT_LIBS} ${MYSQLD_STATIC_PLUGIN_LIBS}
sql_embedded sql_embedded
) )
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
INCLUDE_DIRECTORIES(${WIX_DIR}/../SDK/inc) INCLUDE_DIRECTORIES(${WIX_DIR}/../SDK/inc)
LINK_DIRECTORIES(${WIX_DIR}/../SDK/lib) LINK_DIRECTORIES(${WIX_DIR}/../SDK/lib)
SET(WIXCA_SOURCES CustomAction.cpp CustomAction.rc CustomAction.def) SET(WIXCA_SOURCES CustomAction.cpp CustomAction.def)
IF(CMAKE_SIZEOF_VOID_P EQUAL 8) IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
LINK_LIBRARIES(wcautil_x64 dutil_x64 msi version) LINK_LIBRARIES(wcautil_x64 dutil_x64 msi version)
......
#include "afxres.h"
#undef APSTUDIO_READONLY_SYMBOLS
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x0L
FILESUBTYPE 0x0L
BEGIN
END
...@@ -128,10 +128,10 @@ ...@@ -128,10 +128,10 @@
Impersonate="no" Impersonate="no"
Return="check" /> Return="check" />
<InstallExecuteSequence> <InstallExecuteSequence>
<Custom Action="UnregisterProperty" After="InstallInitialize">Installed And Not UPGRADINGPRODUCTCODE</Custom> <Custom Action="UnregisterProperty" After="InstallInitialize">Installed And Not UPGRADINGPRODUCTCODE And REMOVE="ALL"</Custom>
<Custom Action="UnregisterPropertySilent" After="InstallInitialize">Installed And Not UPGRADINGPRODUCTCODE</Custom> <Custom Action="UnregisterPropertySilent" After="InstallInitialize">Installed And Not UPGRADINGPRODUCTCODE And REMOVE="ALL"</Custom>
<Custom Action="UnregisterService" After="UnregisterProperty">Installed And Not UPGRADINGPRODUCTCODE And UILevel&gt;4</Custom> <Custom Action="UnregisterService" After="UnregisterProperty">Installed And Not UPGRADINGPRODUCTCODE And REMOVE="ALL" And UILevel&gt;4</Custom>
<Custom Action="UnregisterServiceSilently" After="UnregisterPropertySilent">Installed And Not UPGRADINGPRODUCTCODE And UILevel&lt;=4</Custom> <Custom Action="UnregisterServiceSilently" After="UnregisterPropertySilent">Installed And Not UPGRADINGPRODUCTCODE And REMOVE="ALL" And UILevel&lt;=4</Custom>
</InstallExecuteSequence> </InstallExecuteSequence>
<!-- Installation root--> <!-- Installation root-->
......
...@@ -304,8 +304,8 @@ mv $DEST/bin/mysql_install_db $DEST/scripts/ ...@@ -304,8 +304,8 @@ mv $DEST/bin/mysql_install_db $DEST/scripts/
# Copy readme and license files # Copy readme and license files
cp README Docs/INSTALL-BINARY $DEST/ cp README Docs/INSTALL-BINARY $DEST/
if [ -f COPYING -a -f EXCEPTIONS-CLIENT ] ; then if [ -f COPYING ] ; then
cp COPYING EXCEPTIONS-CLIENT $DEST/ cp COPYING $DEST/
elif [ -f LICENSE.mysql ] ; then elif [ -f LICENSE.mysql ] ; then
cp LICENSE.mysql $DEST/ cp LICENSE.mysql $DEST/
else else
......
...@@ -183,8 +183,8 @@ cp ChangeLog $DESTDIR/Docs/ || /bin/true ...@@ -183,8 +183,8 @@ cp ChangeLog $DESTDIR/Docs/ || /bin/true
cp support-files/my-*.ini $DESTDIR/ cp support-files/my-*.ini $DESTDIR/
if [ -f COPYING ] ; then if [ -f COPYING ] ; then
cp COPYING EXCEPTIONS-CLIENT $DESTDIR/ cp COPYING $DESTDIR/
cp COPYING $DESTDIR/Docs/ cp COPYING $DESTDIR/Docs/
fi fi
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
......
...@@ -144,6 +144,12 @@ ...@@ -144,6 +144,12 @@
*/ */
#define OPTION_MASTER_SQL_ERROR (1ULL << 35) #define OPTION_MASTER_SQL_ERROR (1ULL << 35)
/*
Dont report errors for individual rows,
But just report error on commit (or read ofcourse)
Note! Reserved for use in MySQL Cluster
*/
#define OPTION_ALLOW_BATCH (ULL(1) << 36) // THD, intern (slave)
/* The rest of the file is included in the server only */ /* The rest of the file is included in the server only */
#ifndef MYSQL_CLIENT #ifndef MYSQL_CLIENT
......
...@@ -211,7 +211,6 @@ ...@@ -211,7 +211,6 @@
%define license_files_server %{src_dir}/LICENSE.mysql %define license_files_server %{src_dir}/LICENSE.mysql
%define license_type Commercial %define license_type Commercial
%else %else
%define license_files_devel %{src_dir}/EXCEPTIONS-CLIENT
%define license_files_server %{src_dir}/COPYING %{src_dir}/README %define license_files_server %{src_dir}/COPYING %{src_dir}/README
%define license_type GPL %define license_type GPL
%endif %endif
...@@ -1037,9 +1036,6 @@ echo "=====" >> $STATUS_HISTORY ...@@ -1037,9 +1036,6 @@ echo "=====" >> $STATUS_HISTORY
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
%files -n MySQL-devel%{product_suffix} -f optional-files-devel %files -n MySQL-devel%{product_suffix} -f optional-files-devel
%defattr(-, root, root, 0755) %defattr(-, root, root, 0755)
%if %{defined license_files_devel}
%doc %{license_files_devel}
%endif
%doc %attr(644, root, man) %{_mandir}/man1/comp_err.1* %doc %attr(644, root, man) %{_mandir}/man1/comp_err.1*
%doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1* %doc %attr(644, root, man) %{_mandir}/man1/mysql_config.1*
%attr(755, root, root) %{_bindir}/mysql_config %attr(755, root, root) %{_bindir}/mysql_config
...@@ -1099,6 +1095,10 @@ echo "=====" >> $STATUS_HISTORY ...@@ -1099,6 +1095,10 @@ echo "=====" >> $STATUS_HISTORY
- Add a "triggerpostun" to handle the uninstall of the "-community" server RPM. - Add a "triggerpostun" to handle the uninstall of the "-community" server RPM.
- This fixes bug#55015 "MySQL server is not restarted properly after RPM upgrade". - This fixes bug#55015 "MySQL server is not restarted properly after RPM upgrade".
* Wed Nov 24 2010 Alexander Nozdrin <alexander.nozdrin@oracle.com>
- EXCEPTIONS-CLIENT has been deleted, remove it from here too.
* Tue Jun 15 2010 Joerg Bruehe <joerg.bruehe@sun.com> * Tue Jun 15 2010 Joerg Bruehe <joerg.bruehe@sun.com>
- Change the behaviour on installation and upgrade: - Change the behaviour on installation and upgrade:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment