From 37b93a6828635cee2044019dbf1123547a3d829d Mon Sep 17 00:00:00 2001 From: Balasubramanian Kandasamy Date: Tue, 27 Aug 2019 12:05:26 +0200 Subject: [PATCH 01/17] Raise version number after cloning 5.5.66 Approved-by: Bjorn Munch --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index df06ca3b38a1..127385d04a0f 100644 --- a/VERSION +++ b/VERSION @@ -1,4 +1,4 @@ MYSQL_VERSION_MAJOR=5 MYSQL_VERSION_MINOR=5 -MYSQL_VERSION_PATCH=66 +MYSQL_VERSION_PATCH=67 MYSQL_VERSION_EXTRA= From b7f73a1fcbcdd5caf52290c277110e024d19b7d4 Mon Sep 17 00:00:00 2001 From: Balasubramanian Kandasamy Date: Wed, 28 Aug 2019 13:59:14 +0200 Subject: [PATCH 02/17] - Update the server compat version for el6 builds Reviewed-by: Terje Rosten --- packaging/rpm-oel/mysql.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/rpm-oel/mysql.spec.in b/packaging/rpm-oel/mysql.spec.in index 117735eff99e..6ee11543840b 100644 --- a/packaging/rpm-oel/mysql.spec.in +++ b/packaging/rpm-oel/mysql.spec.in @@ -53,7 +53,7 @@ %endif %if 0%{?rhel} == 6 -%global compatver 5.1.72 +%global compatver 5.1.73 %global compatlib 16 %global compatsrc https://cdn.mysql.com/Downloads/MySQL-5.1/mysql-%{compatver}.tar.gz %endif From b93cef501e10617ad04b3d3f89643c186822741d Mon Sep 17 00:00:00 2001 From: Tor Didriksen Date: Fri, 30 Aug 2019 12:59:44 +0200 Subject: [PATCH 03/17] WL#12903: Support compilation with OpenSSL 1.1.1 for MYSQL 5.6 & 5.7 Additional patch clarifying what "system" SSL means on Windows. Change-Id: I809847f1097d98062bfcc695b18c957f1eab899f --- cmake/ssl.cmake | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/cmake/ssl.cmake b/cmake/ssl.cmake index ac7c72a51bda..767d4192aac5 100644 --- a/cmake/ssl.cmake +++ b/cmake/ssl.cmake @@ -27,8 +27,7 @@ # or # - cmake -DWITH_SSL= # -# The default value for WITH_SSL is "system" -# set in cmake/build_configurations/feature_set.cmake +# The default value for WITH_SSL is "system". # # WITH_SSL="system" means: use the SSL library that comes with the operating # system. This typically means you have to do 'yum install openssl-devel' @@ -37,7 +36,7 @@ # For Windows or macOS, WITH_SSL="system" is handled a bit differently: # We assume you have installed # https://slproweb.com/products/Win32OpenSSL.html -# We look for "C:/OpenSSL-Win64/" +# We look for "C:/Program Files/OpenSSL-Win64/" # The .dll files must be in your PATH. # or # http://brewformulas.org/Openssl @@ -122,10 +121,6 @@ MACRO (MYSQL_CHECK_SSL) IF(APPLE) SET(WITH_SSL_PATH "/usr/local/opt/openssl") ELSE() - SET(WITH_SSL_PATH "C:/OpenSSL-Win64/") - # OpenSSL-1.1 requires backport of the patch for - # Bug #28179051: ADD SUPPORT FOR OPENSSL 1.1 ON WINDOWS - # SET(WITH_SSL_PATH "C:/OpenSSL-1.1-Win64/") SET(WITH_SSL_PATH "C:/Program Files/OpenSSL-Win64/") ENDIF() ENDIF() @@ -150,6 +145,7 @@ MACRO (MYSQL_CHECK_SSL) IF (WIN32) FIND_FILE(OPENSSL_APPLINK_C NAMES openssl/applink.c + NO_DEFAULT_PATH HINTS ${OPENSSL_ROOT_DIR}/include ) MESSAGE(STATUS "OPENSSL_APPLINK_C ${OPENSSL_APPLINK_C}") @@ -252,7 +248,9 @@ MACRO (MYSQL_CHECK_SSL) ENDIF() MESSAGE(STATUS "SSL_LIBRARIES = ${SSL_LIBRARIES}") IF(WIN32 AND WITH_SSL STREQUAL "system") - MESSAGE(STATUS "Please do\nPATH=\"${WITH_SSL_PATH}/bin\":$PATH") + MESSAGE(STATUS "Please do\nPATH=\"${WITH_SSL_PATH}bin\":$PATH") + FILE(TO_NATIVE_PATH "${WITH_SSL_PATH}" WITH_SSL_PATH_XX) + MESSAGE(STATUS "or\nPATH=\"${WITH_SSL_PATH_XX}bin\":$PATH") ENDIF() SET(SSL_INCLUDE_DIRS ${OPENSSL_INCLUDE_DIR}) SET(SSL_INTERNAL_INCLUDE_DIRS "") From 392069e34a6aa5a9df82004801fda31bf134dc46 Mon Sep 17 00:00:00 2001 From: Tor Didriksen Date: Wed, 28 Aug 2019 13:44:47 +0200 Subject: [PATCH 04/17] Bug#30243901 SOLARIS SUPPORT COMPILATION WITH OPENSSL 1.1.1 FOR MYSQL 5.6 & 5.7 Patch for 5.6 Workaround for compiler bug ld.so.1: mysqld: fatal: relocation error: file sql/mysqld: symbol OPENSSL_sk_new_null: referenced symbol not found openssl/safestack.h has lots of pragma weak . All are tagged as WEAK in generated binaries. Taking the address of OPENSSL_sk_new_null solves the problem. We do it in sql/net_serv.cc because this file is used by both client and server and "embedded" versions of client and server. Change-Id: I49b27dade048d8e27715ecfe3d6bd6c076cb7b55 --- cmake/os/SunOS.cmake | 7 ++++++- sql/net_serv.cc | 12 +++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/cmake/os/SunOS.cmake b/cmake/os/SunOS.cmake index 8ef643298c4f..a18e01137dc6 100644 --- a/cmake/os/SunOS.cmake +++ b/cmake/os/SunOS.cmake @@ -1,4 +1,4 @@ -# Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -24,6 +24,11 @@ INCLUDE(CheckSymbolExists) INCLUDE(CheckCSourceRuns) INCLUDE(CheckCSourceCompiles) +SET(SOLARIS 1) +IF(CMAKE_SYSTEM_PROCESSOR MATCHES "sparc") + SET(SOLARIS_SPARC 1) +ENDIF() + # We require SunStudio 12u2 (CC 5.11) IF(NOT FORCE_UNSUPPORTED_COMPILER) IF(CMAKE_C_COMPILER_ID MATCHES "SunPro") diff --git a/sql/net_serv.cc b/sql/net_serv.cc index dd759afcc24a..0e360ad44908 100644 --- a/sql/net_serv.cc +++ b/sql/net_serv.cc @@ -1,4 +1,4 @@ -/* Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, @@ -68,6 +68,16 @@ using std::max; #define MYSQL_CLIENT #endif /*EMBEDDED_LIBRARY */ +// Workaround for compiler bug +// ld.so.1: mysqld: fatal: relocation error: file sql/mysqld: +// symbol OPENSSL_sk_new_null: referenced symbol not found +// openssl/safestack.h has lots of pragma weak +// Taking the address of the function solves the problem. +// (note, do not make it static, it may be optimized away) +#if defined(HAVE_TLSv13) && defined(__SUNPRO_CC) +#include +void *address_of_sk_new_null = &OPENSSL_sk_new_null; +#endif /* The following handles the differences when this is linked between the From 73bf7f221aae8d69e4a21646e5051fdca3a596de Mon Sep 17 00:00:00 2001 From: Bjorn Munch Date: Thu, 5 Sep 2019 13:37:22 +0200 Subject: [PATCH 05/17] Bug #30145579 UPDATE README IN SOURCE TREE TO NEW FORMAT This also involves removing COPYING and replacing it with the License Book. Packaging changes accordingly. Change-Id: I501aa36117634e915a12bc74a9bce351001ed446 --- CMakeLists.txt | 10 +- COPYING | 339 -- LICENSE | 4434 +++++++++++++++++ README | 59 +- packaging/WiX/CMakeLists.txt | 22 +- packaging/WiX/create_msi.cmake.in | 4 +- packaging/WiX/mysql_server.wxs.in | 4 +- packaging/deb-in/CMakeLists.txt | 5 +- packaging/deb-in/copyright.com.in | 64 +- packaging/deb-in/copyright.gpl.in | 43 +- .../libmysqlclient-dev.lintian-overrides.in | 5 +- .../libmysqlclient18.lintian-overrides.in | 4 +- .../deb-in/libmysqld-dev.lintian-overrides.in | 5 +- .../deb-in/mysql-client.lintian-overrides.in | 5 +- .../deb-in/mysql-common.lintian-overrides.in | 5 +- ...l-packagesource-bench.lintian-overrides.in | 4 +- ...-packagesource-client.lintian-overrides.in | 5 +- ...-packagesource-server.lintian-overrides.in | 5 +- ...-packagesource-source.lintian-overrides.in | 5 +- ...ql-packagesource-test.lintian-overrides.in | 5 +- .../deb-in/mysql-server.lintian-overrides.in | 5 +- .../mysql-testsuite.lintian-overrides.in | 5 +- packaging/rpm-docker/mysql.spec.in | 9 +- packaging/rpm-fedora/mysql.spec.in | 8 +- packaging/rpm-oel/mysql.spec.in | 9 +- packaging/rpm-sles/mysql.spec.in | 9 +- support-files/mysql.spec.sh | 6 +- 27 files changed, 4538 insertions(+), 545 deletions(-) delete mode 100644 COPYING create mode 100644 LICENSE diff --git a/CMakeLists.txt b/CMakeLists.txt index 14fb8fd21d9e..d89bb2001589 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -635,12 +635,10 @@ ENDIF() # RPM installs documentation directly from the source tree # IF(NOT INSTALL_LAYOUT MATCHES "RPM") - INSTALL(FILES COPYING LICENSE.mysql - DESTINATION ${INSTALL_DOCREADMEDIR} - COMPONENT Readme - OPTIONAL - ) - INSTALL(FILES README DESTINATION ${INSTALL_DOCREADMEDIR} COMPONENT Readme) + INSTALL(FILES + README + LICENSE + DESTINATION ${INSTALL_DOCREADMEDIR} COMPONENT Readme) INSTALL(FILES ${CMAKE_BINARY_DIR}/Docs/INFO_SRC ${CMAKE_BINARY_DIR}/Docs/INFO_BIN DESTINATION ${INSTALL_DOCDIR}) # MYSQL_DOCS_LOCATON is used in "make dist", points to the documentation directory SET(MYSQL_DOCS_LOCATION "" CACHE PATH "Location from where documentation is copied") diff --git a/COPYING b/COPYING deleted file mode 100644 index d511905c1647..000000000000 --- a/COPYING +++ /dev/null @@ -1,339 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - 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; either version 2 of the License, or - (at your option) any later version. - - 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 Street, Fifth Floor, Boston, MA 02110-1301 USA. - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000000..1f1840d339a0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,4434 @@ +Licensing Information User Manual + +MySQL 5.6 + __________________________________________________________________ + +Introduction + + This License Information User Manual contains Oracle's product license + and other licensing information, including licensing information for + third-party software which may be included in this distribution of + MySQL 5.6. + + Last updated: August 2019 + +Licensing Information + +Product License - MySQL 5.6 + + This is a release of MySQL 5.6, the dual-license open-source RDBMS. For + the avoidance of doubt, this particular copy of the software is + released under version 2 of the GNU General Public License. MySQL 5.6 + is brought to you by the MySQL team at Oracle. + + Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights + reserved. + +Election of GPLv2 + + For the avoidance of doubt, except that if any license choice other + than GPL or LGPL is available it will apply instead, Oracle elects to + use only the General Public License version 2 (GPLv2) at this time for + any software where a choice of GPL license versions is made available + with the language indicating that GPLv2 or any later version may be + used, or where a choice of which version of the GPL is applied is + otherwise unspecified. + +GNU General Public License Version 2.0, June 1991 + +The following applies to all products licensed under the GNU General +Public License, Version 2.0: You may not use the identified files +except in compliance with the GNU General Public License, Version +2.0 (the "License.") You may obtain a copy of the License at +http://www.gnu.org/licenses/gpl-2.0.txt. A copy of the license is +also reproduced below. Unless required by applicable law or agreed +to in writing, software distributed under the License is distributed +on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, +either express or implied. See the License for the specific language +governing permissions and limitations under the License. + +GNU GENERAL PUBLIC LICENSE +Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +Everyone is permitted to copy and distribute verbatim +copies of this license document, but changing it is not +allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, +and (2) offer you this license which gives you legal permission to +copy, distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, +we want its recipients to know that what they have is not the original, +so that any problems introduced by others will not reflect on the +original authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software + interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as +a special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + + 9. The Free Software Foundation may publish revised and/or new +versions of the General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Program does not specify a +version number of this License, you may choose any version ever +published by the Free Software Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the +author to ask for permission. For software which is copyrighted by the +Free Software Foundation, write to the Free Software Foundation; we +sometimes make exceptions for this. Our decision will be guided by the +two goals of preserving the free status of all derivatives of our free +software and of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, +EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS +WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + 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; either version 2 of + + the License, or (at your option) any later version. + + 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 Street, Fifth Floor, Boston, MA + 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details + type 'show w'. This is free software, and you are welcome + to redistribute it under certain conditions; type 'show c' + for details. + +The hypothetical commands 'show w' and 'show c' should show the +appropriate parts of the General Public License. Of course, the +commands you use may be called something other than 'show w' and +'show c'; they could even be mouse-clicks or menu items--whatever +suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + program 'Gnomovision' (which makes passes at compilers) written + by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, +you may consider it more useful to permit linking proprietary +applications with the library. If this is what you want to do, use +the GNU Lesser General Public License instead of this License. + +MySQL FOSS License Exception + + We want free and open source software applications under certain + licenses to be able to use the GPL-licensed MySQL 5.6 despite the fact + that not all such FOSS licenses are compatible with version 2 of the + GNU General Public License. Therefore there are special exceptions to + the terms and conditions of the GPLv2 as applied to these client + libraries, which are identified and described in more detail in the + FOSS License Exception at + http://www.mysql.com/about/legal/licensing/foss-exception/. + + This software is OSI Certified Open Source Software. OSI Certified is a + certification mark of the Open Source Initiative. + +Licenses for Third-Party Components + + The following sections contain licensing information for libraries that + we have included with the MySQL 5.6 source and components used to test + MySQL 5.6. Commonly used licenses referenced herein can be found in + Commonly Used Licenses. We are thankful to all individuals that have + created these. + +GNU GPL Version 2 Third-Party Software Notice + + This product contains one or more software components provided under + version 2 of the GNU General Public License. See GNU General Public + License Version 2.0, June 1991, for the full text of this license. + +Boost Library + + The following software may be included in this product: + + Boost C++ Libraries + + Use of any of this software is governed by the terms of the license + below: +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or +organization obtaining a copy of the software and accompanying +documentation covered by this license (the "Software") to use, +reproduce, display, distribute, execute, and transmit the Software, +and to prepare derivative works of the Software, and to permit +third-parties to whom the Software is furnished to do so, all +subject to the following: + +The copyright notices in the Software and this entire statement, +including the above license grant, this restriction and the +following disclaimer, must be included in all copies of the +Software, in whole or in part, and all derivative works of the +Software, unless such copies or derivative works are solely in the +form of machine-executable object code generated by a source +language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND +NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE +DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER +LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT +OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. + +dtoa.c + + The following software may be included in this product: + + dtoa.c +The author of this software is David M. Gay. + +Copyright (c) 1991, 2000, 2001 by Lucent Technologies. + +Permission to use, copy, modify, and distribute this software for +any purpose without fee is hereby granted, provided that this entire +notice is included in all copies of any software which is or includes +a copy or modification of this software and in all copies of the +supporting documentation for such software. + +THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR +IMPLIED WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR LUCENT +MAKES ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE +MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR +PURPOSE. + +Editline Library (libedit) + + The following software may be included in this product: + + Editline Library (libedit) + + Some files are: +Copyright (c) 1992, 1993 +The Regents of the University of California. All rights reserved. + +This code is derived from software contributed to +Berkeley by Christos Zoulas of Cornell University. + +Redistribution and use in source and binary forms, +with or without modification, are permitted provided +that the following conditions are met: + +1. Redistributions of source code must retain the + above copyright notice, this list of conditions + and the following disclaimer. +2. Redistributions in binary form must reproduce the + above copyright notice, this list of conditions and + the following disclaimer in the documentation and/or + other materials provided with the distribution. +3. Neither the name of the University nor the names of + its contributors may be used to endorse or promote + products derived from this software without specific + prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED +AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +OF THE POSSIBILITY OF SUCH DAMAGE. + + Some files are: +Copyright (c) 2001 The NetBSD Foundation, Inc. +All rights reserved. + +This code is derived from software contributed to The NetBSD Foundation + +by Anthony Mallet. + +Redistribution and use in source and binary forms, +with or without modification, are permitted provided +that the following conditions are met: + +1. Redistributions of source code must retain the + above copyright notice, this list of conditions + and the following disclaimer. +2. Redistributions in binary form must reproduce the + above copyright notice, this list of conditions and the + following disclaimer in the documentation and/or + other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. +AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. + + Some files are: +Copyright (c) 1997 The NetBSD Foundation, Inc. +All rights reserved. + +This code is derived from software contributed to The NetBSD Foundation + +by Jaromir Dolecek. + +Redistribution and use in source and binary forms, +with or without modification, are permitted provided +that the following conditions are met: + +1. Redistributions of source code must retain the + above copyright notice, this list of conditions + and the following disclaimer. +2. Redistributions in binary form must reproduce + the above copyright notice, this list of conditions + and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. +AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL +THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. + + Some files are: +Copyright (c) 1998 Todd C. Miller + +Permission to use, copy, modify, and distribute this +software for any purpose with or without fee is hereby +granted, provided that the above copyright notice and +this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND TODD C. MILLER +DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE +INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL TODD C. MILLER BE LIABLE +FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL +DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION +OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + Some files are: +Copyright (c) 1998 The NetBSD Foundation, Inc. +All rights reserved. + +This code is derived from software contributed to The NetBSD +Foundation by Christos Zoulas. + +Redistribution and use in source and binary forms, with or +without modification, are permitted provided that the following +conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND +CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, +OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT +OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + Some files are: +Copyright (c) 2009 The NetBSD Foundation, Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the + distribution. +3. All advertising materials mentioning features or use of this + software must display the following acknowledgement: + This product includes software developed by the NetBSD + Foundation, Inc. and its contributors. +4. Neither the name of The NetBSD Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND +CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, +OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT +OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Expect.pm + + The following software may be included in this product: + + Expect.pm Perl module +Expect.pm is licensed under the Perl license, which is essentially a dual +license. + +Oracle may use, redistribute and/or modify this code under the terms of +either: + + a) the GNU General Public License as published by the Free Software +Foundation; either version 1, or (at your option) any later version, or + + b) the "Artistic License" which comes with the Expect/pr code. + +Oracle elects to use the GPLv2 for version of MySQL that are licensed under +the GPL. + +Oracle elects to use the Artistic license for all other (commercial) versions +of MySQL. + +A copy of the GPLv2 and the Artistic License (Perl) 1.0 must be included with +any distribution: + +The GNU General Public License (GPL-2.0) +Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc. +59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. + +Preamble + +The licenses for most software are designed to take away your freedom to +share and change it. By contrast, the GNU General Public License is intended +to guarantee your freedom to share and change free software--to make sure the +software is free for all its users. This General Public License applies to +most of the Free Software Foundation's software and to any other program +whose authors commit to using it. (Some other Free Software Foundation +software is covered by the GNU Library General Public License instead.) You +can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our +General Public Licenses are designed to make sure that you have the freedom +to distribute copies of free software (and charge for this service if you +wish), that you receive source code or can get it if you want it, that you +can change the software or use pieces of it in new free programs; and that +you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to +deny you these rights or to ask you to surrender the rights. These +restrictions translate to certain responsibilities for you if you distribute +copies of the software, or if you modify it. + +For example, if you distribute copies of such a program, whether gratis or +for a fee, you must give the recipients all the rights that you have. You +must make sure that they, too, receive or can get the source code. And you +must show them these terms so they know their rights. + +We protect your rights with two steps: (1) copyright the software, and (2) +offer you this license which gives you legal permission to copy, distribute +and/or modify the software. + +Also, for each author's protection and ours, we want to make certain that +everyone understands that there is no warranty for this free software. If the +software is modified by someone else and passed on, we want its recipients to +know that what they have is not the original, so that any problems introduced +by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We +wish to avoid the danger that redistributors of a free program will +individually obtain patent licenses, in effect making the program +proprietary. To prevent this, we have made it clear that any patent must be +licensed for everyone's free use or not licensed at all. + +The precise terms and conditions for copying, distribution and modification +follow. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License applies to any program or other work which contains a notice +placed by the copyright holder saying it may be distributed under the terms +of this General Public License. The "Program", below, refers to any such +program or work, and a "work based on the Program" means either the Program +or any derivative work under copyright law: that is to say, a work containing +the Program or a portion of it, either verbatim or with modifications and/or +translated into another language. (Hereinafter, translation is included +without limitation in the term "modification".) Each licensee is addressed as +"you". + +Activities other than copying, distribution and modification are not covered +by this License; they are outside its scope. The act of running the Program +is not restricted, and the output from the Program is covered only if its +contents constitute a work based on the Program (independent of having been +made by running the Program). Whether that is true depends on what the +Program does. + +1. You may copy and distribute verbatim copies of the Program's source code +as you receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice and +disclaimer of warranty; keep intact all the notices that refer to this +License and to the absence of any warranty; and give any other recipients of +the Program a copy of this License along with the Program. + +You may charge a fee for the physical act of transferring a copy, and you may +at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Program or any portion of it, +thus forming a work based on the Program, and copy and distribute such +modifications or work under the terms of Section 1 above, provided that you +also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices stating +that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in whole +or in part contains or is derived from the Program or any part thereof, to be +licensed as a whole at no charge to all third parties under the terms of this +License. + + c) If the modified program normally reads commands interactively when +run, you must cause it, when started running for such interactive use in the +most ordinary way, to print or display an announcement including an +appropriate copyright notice and a notice that there is no warranty (or else, +saying that you provide a warranty) and that users may redistribute the +program under these conditions, and telling the user how to view a copy of +this License. (Exception: if the Program itself is interactive but does not +normally print such an announcement, your work based on the Program is not +required to print an announcement.) + +These requirements apply to the modified work as a whole. If identifiable +sections of that work are not derived from the Program, and can be reasonably +considered independent and separate works in themselves, then this License, +and its terms, do not apply to those sections when you distribute them as +separate works. But when you distribute the same sections as part of a whole +which is a work based on the Program, the distribution of the whole must be +on the terms of this License, whose permissions for other licensees extend to +the entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest your +rights to work written entirely by you; rather, the intent is to exercise the +right to control the distribution of derivative or collective works based on +the Program. + +In addition, mere aggregation of another work not based on the Program with +the Program (or with a work based on the Program) on a volume of a storage or +distribution medium does not bring the other work under the scope of this +License. + +3. You may copy and distribute the Program (or a work based on it, under +Section 2) in object code or executable form under the terms of Sections 1 +and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable source +code, which must be distributed under the terms of Sections 1 and 2 above on +a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three years, to +give any third party, for a charge no more than your cost of physically +performing source distribution, a complete machine-readable copy of the +corresponding source code, to be distributed under the terms of Sections 1 +and 2 above on a medium customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer to +distribute corresponding source code. (This alternative is allowed only for +noncommercial distribution and only if you received the program in object +code or executable form with such an offer, in accord with Subsection b +above.) + +The source code for a work means the preferred form of the work for making +modifications to it. For an executable work, complete source code means all +the source code for all modules it contains, plus any associated interface +definition files, plus the scripts used to control compilation and +installation of the executable. However, as a special exception, the source +code distributed need not include anything that is normally distributed (in +either source or binary form) with the major components (compiler, kernel, +and so on) of the operating system on which the executable runs, unless that +component itself accompanies the executable. + +If distribution of executable or object code is made by offering access to +copy from a designated place, then offering equivalent access to copy the +source code from the same place counts as distribution of the source code, +even though third parties are not compelled to copy the source along with the +object code. + +4. You may not copy, modify, sublicense, or distribute the Program except as +expressly provided under this License. Any attempt otherwise to copy, modify, +sublicense or distribute the Program is void, and will automatically +terminate your rights under this License. However, parties who have received +copies, or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + +5. You are not required to accept this License, since you have not signed it. +However, nothing else grants you permission to modify or distribute the +Program or its derivative works. These actions are prohibited by law if you +do not accept this License. Therefore, by modifying or distributing the +Program (or any work based on the Program), you indicate your acceptance of +this License to do so, and all its terms and conditions for copying, +distributing or modifying the Program or works based on it. + +6. Each time you redistribute the Program (or any work based on the Program), +the recipient automatically receives a license from the original licensor to +copy, distribute or modify the Program subject to these terms and conditions. +You may not impose any further restrictions on the recipients' exercise of +the rights granted herein. You are not responsible for enforcing compliance +by third parties to this License. + +7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not excuse +you from the conditions of this License. If you cannot distribute so as to +satisfy simultaneously your obligations under this License and any other +pertinent obligations, then as a consequence you may not distribute the +Program at all. For example, if a patent license would not permit +royalty-free redistribution of the Program by all those who receive copies +directly or indirectly through you, then the only way you could satisfy both +it and this License would be to refrain entirely from distribution of the +Program. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply and +the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents +or other property right claims or to contest validity of any such claims; +this section has the sole purpose of protecting the integrity of the free +software distribution system, which is implemented by public license +practices. Many people have made generous contributions to the wide range of +software distributed through that system in reliance on consistent +application of that system; it is up to the author/donor to decide if he or +she is willing to distribute software through any other system and a licensee +cannot impose that choice. + +This section is intended to make thoroughly clear what is believed to be a +consequence of the rest of this License. + +8. If the distribution and/or use of the Program is restricted in certain +countries either by patents or by copyrighted interfaces, the original +copyright holder who places the Program under this License may add an +explicit geographical distribution limitation excluding those countries, so +that distribution is permitted only in or among countries not thus excluded. +In such case, this License incorporates the limitation as if written in the +body of this License. + +9. The Free Software Foundation may publish revised and/or new versions of +the General Public License from time to time. Such new versions will be +similar in spirit to the present version, but may differ in detail to address +new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any later +version", you have the option of following the terms and conditions either of +that version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of this License, +you may choose any version ever published by the Free Software Foundation. + +10. If you wish to incorporate parts of the Program into other free programs +whose distribution conditions are different, write to the author to ask for +permission. For software which is copyrighted by the Free Software +Foundation, write to the Free Software Foundation; we sometimes make +exceptions for this. Our decision will be guided by the two goals of +preserving the free status of all derivatives of our free software and of +promoting the sharing and reuse of software generally. + +NO WARRANTY + +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR +THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE +STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE +PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND +PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, +YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO +LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR +THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible +use to the public, the best way to achieve this is to make it free software +which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach +them to the start of each source file to most effectively convey the +exclusion of warranty; and each file should have at least the "copyright" +line and a pointer to where the full notice is found. + + One line to give the program's name and a brief idea of what it does. + Copyright (C) + + 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; either version 2 of the License, or (at your option) any +later version. + + 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., 59 +Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this when +it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author Gnomovision +comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free +software, and you are welcome to redistribute it under certain conditions; +type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may be +called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program +`Gnomovision' (which makes passes at compilers) written by James Hacker. + + signature of Ty Coon, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General Public +License instead of this License. + +________________________________________________________ + +The "Artistic License" + +Preamble + +The intent of this document is to state the conditions under which a +Package may be copied, such that the Copyright Holder maintains some +semblance of artistic control over the development of the package, +while giving the users of the package the right to use and distribute +the Package in a more-or-less customary fashion, plus the right to make +reasonable modifications. + +Definitions: + + "Package" refers to the collection of files distributed by the + Copyright Holder, and derivatives of that collection of files + created through textual modification. + + "Standard Version" refers to such a Package if it has not been + modified, or has been modified in accordance with the wishes + of the Copyright Holder as specified below. + + "Copyright Holder" is whoever is named in the copyright or + copyrights for the package. + + "You" is you, if you're thinking about copying or distributing + this Package. + + "Reasonable copying fee" is whatever you can justify on the + basis of media cost, duplication charges, time of people involved, + and so on. (You will not be required to justify it to the + Copyright Holder, but only to the computing community at large + as a market that must bear the fee.) + + "Freely Available" means that no fee is charged for the item + itself, though there may be fees involved in handling the item. + It also means that recipients of the item may redistribute it + under the same conditions they received it. + +1. You may make and give away verbatim copies of the source form of the +Standard Version of this Package without restriction, provided that you +duplicate all of the original copyright notices and associated disclaimers. + +2. You may apply bug fixes, portability fixes and other modifications +derived from the Public Domain or from the Copyright Holder. A Package +modified in such a way shall still be considered the Standard Version. + +3. You may otherwise modify your copy of this Package in any way, provided +that you insert a prominent notice in each changed file stating how and +when you changed that file, and provided that you do at least ONE of the +following: + + a) place your modifications in the Public Domain or otherwise make them + Freely Available, such as by posting said modifications to Usenet or + an equivalent medium, or placing the modifications on a major archive + site such as uunet.uu.net, or by allowing the Copyright Holder to include + your modifications in the Standard Version of the Package. + + b) use the modified Package only within your corporation or organization. + + c) rename any non-standard executables so the names do not conflict + with standard executables, which must also be provided, and provide + a separate manual page for each non-standard executable that clearly + documents how it differs from the Standard Version. + + d) make other distribution arrangements with the Copyright Holder. + +4. You may distribute the programs of this Package in object code or +executable form, provided that you do at least ONE of the following: + + a) distribute a Standard Version of the executables and library files, + together with instructions (in the manual page or equivalent) on where + to get the Standard Version. + + b) accompany the distribution with the machine-readable source of + the Package with your modifications. + + c) give non-standard executables non-standard names, and clearly + document the differences in manual pages (or equivalent), together + with instructions on where to get the Standard Version. + + d) make other distribution arrangements with the Copyright Holder. + +5. You may charge a reasonable copying fee for any distribution of this +Package. You may charge any fee you choose for support of this +Package. You may not charge a fee for this Package itself. However, +you may distribute this Package in aggregate with other (possibly +commercial) programs as part of a larger (possibly commercial) software +distribution provided that you do not advertise this Package as a +product of your own. You may embed this Package's interpreter within +an executable of yours (by linking); this shall be construed as a mere +form of aggregation, provided that the complete Standard Version of the +interpreter is so embedded. + +6. The scripts and library files supplied as input to or produced as +output from the programs of this Package do not automatically fall +under the copyright of this Package, but belong to whoever generated +them, and may be sold commercially, and may be aggregated with this +Package. If such scripts or library files are aggregated with this +Package via the so-called "undump" or "unexec" methods of producing a +binary executable image, then distribution of such an image shall +neither be construed as a distribution of this Package nor shall it +fall under the restrictions of Paragraphs 3 and 4, provided that you do +not represent such an executable image as a Standard Version of this +Package. + +7. C subroutines (or comparably compiled subroutines in other +languages) supplied by you and linked into this Package in order to +emulate subroutines and variables of the language defined by this +Package shall not be considered part of this Package, but are the +equivalent of input as in Paragraph 6, provided these subroutines do +not change the language in any way that would cause it to fail the +regression tests for the language. + +8. Aggregation of this Package with a commercial distribution is always +permitted provided that the use of this Package is embedded; that is, +when no overt attempt is made to make this Package's interfaces visible +to the end user of the commercial distribution. Such use shall not be +construed as a distribution of this Package. + +9. The name of the Copyright Holder may not be used to endorse or promote +products derived from this software without specific prior written +permission. + +10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED +WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + The End + +Facebook Fast Checksum Patch + + The following software may be included in this product: +Facebook Fast Checksum Patch + +Copyright (C) 2009-2010 Facebook, Inc. All Rights Reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY FACEBOOK, INC. "AS IS" AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +EVENT SHALL FACEBOOK, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Also included: + +crc32.c -- compute the CRC-32 of a buf stream +Copyright (C) 1995-2005 Mark Adler + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. + +Jean-loup Gailly jloup@gzip.org +Mark Adler madler@alumni.caltech.edu + +Facebook Patches + + The following software may be included in this product: +Copyright (c) 2012, Facebook, Inc. +All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +* Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +FindGTest.cmake + + The following software may be included in this product: +FindGTest.cmake helper script (part of CMake) + +Copyright 2009 Kitware, Inc. +Copyright 2009 Philip Lowman +Copyright 2009 Daniel Blezek + +Distributed under the OSI-approved BSD License (the "License"); +see accompanying file Copyright.txt for details. + +This software is distributed WITHOUT ANY WARRANTY; without even the +implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +See the License for more information. +========================================================================== +(To distributed this file outside of CMake, substitute the full + License text for the above reference.) + +Thanks to Daniel Blezek for the GTEST_ADD_TESTS code + +Text of Copyright.txt mentioned above: + +CMake - Cross Platform Makefile Generator +Copyright 2000-2009 Kitware, Inc., Insight Software Consortium +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +* Neither the names of Kitware, Inc., the Insight Software Consortium, + nor the names of their contributors may be used to endorse or promote + products derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Fred Fish's Dbug Library + + The following software may be included in this product: + + Fred Fish's Dbug Library + N O T I C E + + + + Copyright Abandoned, 1987, Fred Fish + + + + This previously copyrighted work has been placed into the public + + domain by the author and may be freely used for any purpose, + + private or commercial. + + + + Because of the number of inquiries I was receiving about the use + + of this product in commercially developed works I have decided to + + simply make it public domain to further its unrestricted use. I + + specifically would be most happy to see this material become a + + part of the standard Unix distributions by AT&T and the Berkeley + + Computer Science Research Group, and a standard part of the GNU + + system from the Free Software Foundation. + + + + I would appreciate it, as a courtesy, if this notice is left in + + all copies and derivative works. Thank you. + + + + The author makes no warranty of any kind with respect to this + + product and explicitly disclaims any implied warranties of mer- + + chantability or fitness for any particular purpose. + +The dbug_analyze.c file is subject to the following notice: + + Copyright June 1987, Binayak Banerjee + All rights reserved. + + This program may be freely distributed under the same terms and + conditions as Fred Fish's Dbug package. + +getarg + + The following software may be included in this product: + + getarg Function (getarg.h, getarg.c files) +Copyright (c) 1997 - 2000 Kungliga Tekniska Högskolan +(Royal Institute of Technology, Stockholm, Sweden). +All rights reserved. + +Redistribution and use in source and binary forms, with +or without modification, are permitted provided that the +following conditions are met: + +1. Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. +2. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. +3. Neither the name of the Institute nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. + +GNU Readline + + The following software may be included in this product: + + GNU Readline Library +GNU Readline Library +With respect to MySQL Server/Cluster software licensed +under GNU General Public License, you are receiving a +copy of the GNU Readline Library in source code. The +terms of any Oracle license that might accompany the +Oracle programs do NOT apply to the GNU Readline Library; +it is licensed under the following license, separately +from the Oracle programs you receive. Oracle elects to +use GNU General Public License version 2 (GPL) for any +software where a choice of GPL license versions are +made available with the language indicating that GPLv2 +or any later version may be used, or where a choice of +which version of the GPL is applied is unspecified. + + This component is licensed under the GNU GPL license, version 2.0. + +Google C++ Mocking Framework (Google Mock) + + This Oracle Product includes or references Gmock (including gtest), + which is licensed to Oracle under the following terms: +Copyright 2008, Google Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, +this list of conditions and the following disclaimer in the documentation +and/or other materials provided with the distribution. +* Neither the name of Google Inc. nor the names of its contributors may be +used to endorse or promote products derived from this software without +specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +Google Controlling Master Thread I/O Rate Patch + + The following software may be included in this product: + + Google Controlling master thread I/O rate patch +Copyright (c) 2009, Google Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of the Google Inc. nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +Google Perftools (TCMalloc utility) + + The following software may be included in this product: +Google Perftools (TCMalloc utility) + +Copyright (c) 1998-2006, Google Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or +without modification, are permitted provided that the following +conditions are met: + + + * Redistributions of source code must retain the above + copyright notice, this list of conditions and the following + disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Google SMP Patch + + The following software may be included in this product: + + Google SMP Patch +Google SMP patch + +Copyright (c) 2008, Google Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of the Google Inc. nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +Janson + + The following software may be included in this product: + + Janson 2.6 +Include the following verbatim in the documentation: + +Licence Text: + +Copyright (c) (c) 2009-2013 Petri Lehtinen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +lib_sql.cc + + The following software may be included in this product: + + lib_sql.cc +Copyright (c) 2000 +SWsoft company + +This material is provided "as is", with absolutely no warranty +expressed or implied. Any use is at your own risk. + +Permission to use or copy this software for any purpose is hereby +granted without fee, provided the above notices are retained on +all copies. Permission to modify the code and to distribute modified +code is granted, provided the above notices are retained, and a +notice that the code was modified is included with the above copyright +notice. + +This code was modified by the MySQL team. + +Libaio + + The following software may be included in this product: +libaio + + You may be receiving a copy of the Libaio library with this MySQL + product. The terms of the Oracle license do NOT apply to the Libaio + library; it is licensed under the following license, separately from + the Oracle programs you receive. If you do not wish to install this + program, you may delete its files. + + This component is licensed under GNU Lesser General Public License + Version 2.1, February 1999. + +libevent + + The following software may be included in this product: + +Copyright (c) 2000-2007 Niels Provos +Copyright (c) 2007-2012 Niels Provos and Nick Mathewson + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products +derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +============================== + +Portions of Libevent are based on works by others, also made available by +them under the three-clause BSD license above. The copyright notices are +available in the corresponding source files; the license is as above. Here's +a list: + +log.c: +Copyright (c) 2000 Dug Song +Copyright (c) 1993 The Regents of the University of California. + +strlcpy.c: +Copyright (c) 1998 Todd C. Miller + +win32select.c: +Copyright (c) 2003 Michael A. Davis + +ht-internal.h: +Copyright (c) 2002 Christopher Clark + +minheap-internal.h: +Copyright (c) 2006 Maxim Yegorushkin + +============================== + +The arc4module is available under the following, sometimes called the +"OpenBSD" license: + +Copyright (c) 1996, David Mazieres +Copyright (c) 2008, Damien Miller + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +libgcc & libstdc++ Libraries + + The following software may be included in this product: + + libgcc & libstdc++ libraries + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + +Copyright (C) 2007 Free Software Foundation, Inc. +Everyone is permitted to copy and distribute verbatim copies of +this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are +designed to take away your freedom to share and change the works. +By contrast, the GNU General Public License is intended to guarantee +your freedom to share and change all versions of a program--to make +sure it remains free software for all its users. We, the Free +Software Foundation, use the GNU General Public License for most +of our software; it applies also to any other work released this +way by its authors. You can apply it to your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and +charge for them if you wish), that you receive source code or can +get it if you want it, that you can change the software or use +pieces of it in new free programs, and that you know you can do +these things. + + To protect your rights, we need to prevent others from denying +you these rights or asking you to surrender the rights. Therefore, +you have certain responsibilities if you distribute copies of the +software, or if you modify it: responsibilities to respect the +freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, +receive or can get the source code. And you must show them these +terms so they know their rights. + + Developers that use the GNU GPL protect your rights with two +steps: (1) assert copyright on the software, and (2) offer you this +License giving you legal permission to copy, distribute and/or +modify it. + + For the developers' and authors' protection, the GPL clearly +explains that there is no warranty for this free software. For +both users' and authors' sake, the GPL requires that modified +versions be marked as changed, so that their problems will not be +attributed erroneously to authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the +manufacturer can do so. This is fundamentally incompatible with +the aim of protecting users' freedom to change the software. The +systematic pattern of such abuse occurs in the area of products for +individuals to use, which is precisely where it is most unacceptable. +Therefore, we have designed this version of the GPL to prohibit the +practice for those products. If such problems arise substantially +in other domains, we stand ready to extend this provision to those +domains in future versions of the GPL, as needed to protect the +freedom of users. + + Finally, every program is threatened constantly by software +patents. States should not allow patents to restrict development +and use of software on general-purpose computers, but in those that +do, we wish to avoid the special danger that patents applied to a +free program could make it effectively proprietary. To prevent +this, the GPL assures that patents cannot be used to render the +program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds +of works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the +work in a fashion requiring copyright permission, other than the +making of an exact copy. The resulting work is called a "modified +version" of the earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it +on a computer or modifying a private copy. Propagation includes +copying, distribution (with or without modification), making available +to the public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user +through a computer network, with no transfer of a copy, is not +conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to +the extent that warranties are provided), that licensees may convey +the work under this License, and how to view a copy of this License. +If the interface presents a list of user commands or options, such +as a menu, a prominent item in the list meets this criterion. + + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case +of interfaces specified for a particular programming language, one +that is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form +of packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts +to control those activities. However, it does not include the +work's System Libraries, or general-purpose tools or generally +available free programs which are used unmodified in performing +those activities but which are not part of the work. For example, +Corresponding Source includes interface definition files associated +with source files for the work, and the source code for shared +libraries and dynamically linked subprograms that the work is +specifically designed to require, such as by intimate data communication +or control flow between those subprograms and other parts of the +work. + + The Corresponding Source need not include anything that users can +regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running +a covered work is covered by this License only if the output, given +its content, constitutes a covered work. This License acknowledges +your rights of fair use or other equivalent, as provided by copyright +law. + + You may make, run and propagate covered works that you do not convey, +without conditions so long as your license otherwise remains in +force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide +you with facilities for running those works, provided that you +comply with the terms of this License in conveying all material for +which you do not control copyright. Those thus making or running +the covered works for you must do so exclusively on your behalf, +under your direction and control, on terms that prohibit them from +making any copies of your copyrighted material outside their +relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section +10 makes it unnecessary. + + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect +to the covered work, and you disclaim any intention to limit operation +or modification of the work as a means of enforcing, against the +work's users, your or third parties' legal rights to forbid +circumvention of technological measures. + + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any non-permissive +terms added in accord with section 7 apply to the code; keep intact +all notices of the absence of any warranty; and give all recipients +a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications +to produce it from the Program, in the form of source code under +the terms of section 4, provided that you also meet all of these +conditions: + + a) The work must carry prominent notices stating that you + modified it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under + section 7. This requirement modifies the requirement in + section 4 to "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has + interactive interfaces that do not display Appropriate Legal + Notices, your work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called +an "aggregate" if the compilation and its resulting copyright are +not used to limit the access or legal rights of the compilation's +users beyond what the individual works permit. Inclusion of a +covered work in an aggregate does not cause this License to apply +to the other parts of the aggregate. + + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the machine-readable +Corresponding Source under the terms of this License, in one of +these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that + product model, to give anyone who possesses the object code + either (1) a copy of the Corresponding Source for all the + software in the product that is covered by this License, on a + durable physical medium customarily used for software + interchange, for a price no more than your reasonable cost + of physically performing this conveying of source, or (2) + access to copy the Corresponding Source from a network server + at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in + accord with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to + the Corresponding Source in the same way through the same place + at no further charge. You need not require recipients to copy + the Corresponding Source along with the object code. If the + place to copy the object code is a network server, the + Corresponding Source may be on a different server (operated + by you or a third party) that supports equivalent copying + facilities, provided you maintain clear directions next to the + object code saying where to find the Corresponding Source. + Regardless of what server hosts the Corresponding Source, you + remain obligated to ensure that it is available for as long + as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, + provided you inform other peers where the object code and + Corresponding Source of the work are being offered to the + general public at no charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means +any tangible personal property which is normally used for personal, +family, or household purposes, or (2) anything designed or sold for +incorporation into a dwelling. In determining whether a product +is a consumer product, doubtful cases shall be resolved in favor +of coverage. For a particular product received by a particular +user, "normally used" refers to a typical or common use of that +class of product, regardless of the status of the particular user +or of the way in which the particular user actually uses, or expects +or is expected to use, the product. A product is a consumer product +regardless of whether the product has substantial commercial, +industrial or non-consumer uses, unless such uses represent the +only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to +install and execute modified versions of a covered work in that +User Product from a modified version of its Corresponding Source. +The information must suffice to ensure that the continued functioning +of the modified object code is in no case prevented or interfered +with solely because modification has been made. + + If you convey an object code work under this section in, or with, +or specifically for use in, a User Product, and the conveying occurs +as part of a transaction in which the right of possession and use +of the User Product is transferred to the recipient in perpetuity +or for a fixed term (regardless of how the transaction is characterized), +the Corresponding Source conveyed under this section must be +accompanied by the Installation Information. But this requirement +does not apply if neither you nor any third party retains the ability +to install modified object code on the User Product (for example, +the work has been installed in ROM). + + The requirement to provide Installation Information does not include +a requirement to continue to provide support service, warranty, or +updates for a work that has been modified or installed by the +recipient, or for the User Product in which it has been modified +or installed. Access to a network may be denied when the modification +itself materially and adversely affects the operation of the network +or violates the rules and protocols for communication across the +network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of +this License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program +shall be treated as though they were included in this License, to +the extent that they are valid under applicable law. If additional +permissions apply only to part of the Program, that part may be +used separately under those permissions, but the entire Program +remains governed by this License without regard to the additional +permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part +of it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material +you add to a covered work, you may (if authorized by the copyright +holders of that material) supplement the terms of this License with +terms: + + a) Disclaiming warranty or limiting liability differently from + the terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices + or author attributions in that material or in the Appropriate + Legal Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, + or requiring that modified versions of such material be marked + in reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors + or authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions + of it) with contractual assumptions of liability to the + recipient, for any liability that these contractual assumptions + directly impose on those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as +you received it, or any part of it, contains a notice stating that +it is governed by this License along with a term that is a further +restriction, you may remove that term. If a license document +contains a further restriction but permits relicensing or conveying +under this License, you may add to a covered work material governed +by the terms of that license document, provided that the further +restriction does not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in +the form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate +or modify it is void, and will automatically terminate your rights +under this License (including any patent licenses granted under the +third paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from +that copyright holder, and you cure the violation prior to 30 days +after your receipt of the notice. + + Termination of your rights under this section does not terminate +the licenses of parties who have received copies or rights from you +under this License. If your rights have been terminated and not +permanently reinstated, you do not qualify to receive new licenses +for the same material under section 10. + + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you +may not impose a license fee, royalty, or other charge for exercise +of rights granted under this License, and you may not initiate +litigation (including a cross-claim or counterclaim in a lawsuit) +alleging that any patent claim is infringed by making, using, +selling, offering for sale, or importing the Program or any portion +of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired +or hereafter acquired, that would be infringed by some manner, +permitted by this License, of making, using, or selling its contributor +version, but do not include claims that would be infringed only as +a consequence of further modification of the contributor version. +For purposes of this definition, "control" includes the right to +grant patent sublicenses in a manner consistent with the requirements +of this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify +and propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a +patent (such as an express permission to practice a patent or +covenant not to sue for patent infringement). To "grant" such a +patent license to a party means to make such an agreement or +commitment not to enforce a patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through +a publicly available network server or other readily accessible +means, then you must either (1) cause the Corresponding Source to +be so available, or (2) arrange to deprive yourself of the benefit +of the patent license for this particular work, or (3) arrange, in +a manner consistent with the requirements of this License, to extend +the patent license to downstream recipients. "Knowingly relying" +means you have actual knowledge that, but for the patent license, +your conveying the covered work in a country, or your recipient's +use of the covered work in a country, would infringe one or more +identifiable patents in that country that you have reason to believe +are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, +a covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, +modify or convey a specific copy of the covered work, then the +patent license you grant is automatically extended to all recipients +of the covered work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is conditioned +on the non-exercise of one or more of the rights that are specifically +granted under this License. You may not convey a covered work if +you are a party to an arrangement with a third party that is in the +business of distributing software, under which you make payment to +the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement +or otherwise) that contradict the conditions of this License, they +do not excuse you from the conditions of this License. If you +cannot convey a covered work so as to satisfy simultaneously your +obligations under this License and any other pertinent obligations, +then as a consequence you may not convey it at all. For example, +if you agree to terms that obligate you to collect a royalty for +further conveying from those to whom you convey the Program, the +only way you could satisfy both those terms and this License would +be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a +single combined work, and to convey the resulting work. The terms +of this License will continue to apply to the part which is the +covered work, but the special requirements of the GNU Affero General +Public License, section 13, concerning interaction through a network +will apply to the combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU General Public License from time to time. Such new +versions will be similar in spirit to the present version, but may +differ in detail to address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of +the GNU General Public License, you may choose any version ever +published by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes +you to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow +a later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT +WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT +NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND +PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE +DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR +OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR +CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES +ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING +BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE +OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE +PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER +OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make +it free software which everyone can redistribute and change under +these terms. + +To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is +found. + + + Copyright (C) + + 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, either version 3 + of the License, or (at your option) any later version. + + 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, see + . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type 'show c' for details. + +The hypothetical commands 'show w' and 'show c' should show the +appropriate parts of the General Public License. Of course, your +program's commands might be different; for a GUI interface, you +would use an "about box". + + You should also get your employer (if you work as a programmer) or +school, if any, to sign a "copyright disclaimer" for the program, +if necessary. For more information on this, and how to apply and +follow the GNU GPL, see . + +The GNU General Public License does not permit incorporating your +program into proprietary programs. If your program is a subroutine +library, you may consider it more useful to permit linking proprietary +applications with the library. If this is what you want to do, use +the GNU Lesser General Public License instead of this License. But +first, please read . +== + +== +GCC RUNTIME LIBRARY EXCEPTION + +Version 3.1, 31 March 2009 + +Copyright (c) 2009 Free Software Foundation, Inc. + +Everyone is permitted to copy and distribute verbatim copies of +this license document, but changing it is not allowed. + +This GCC Runtime Library Exception ("Exception") is an additional +permission under section 7 of the GNU General Public License, version +3 ("GPLv3"). It applies to a given file (the "Runtime Library") +that bears a notice placed by the copyright holder of the file +stating that the file is governed by GPLv3 along with this Exception. + +When you use GCC to compile a program, GCC may combine portions of +certain GCC header files and runtime libraries with the compiled +program. The purpose of this Exception is to allow compilation of +non-GPL (including proprietary) programs to use, in this way, the +header files and runtime libraries covered by this Exception. + +0. Definitions. + +A file is an "Independent Module" if it either requires the Runtime +Library for execution after a Compilation Process, or makes use of +an interface provided by the Runtime Library, but is not otherwise +based on the Runtime Library. + +"GCC" means a version of the GNU Compiler Collection, with or without +modifications, governed by version 3 (or a specified later version) +of the GNU General Public License (GPL) with the option of using +any subsequent versions published by the FSF. + +"GPL-compatible Software" is software whose conditions of propagation, +modification and use would permit combination with GCC in accord +with the license of GCC. + +"Target Code" refers to output from any compiler for a real or +virtual target processor architecture, in executable form or suitable +for input to an assembler, loader, linker and/or execution phase. +Notwithstanding that, Target Code does not include data in any +format that is used as a compiler intermediate representation, or +used for producing a compiler intermediate representation. + +The "Compilation Process" transforms code entirely represented in +non-intermediate languages designed for human-written code, and/or +in Java Virtual Machine byte code, into Target Code. Thus, for +example, use of source code generators and preprocessors need not +be considered part of the Compilation Process, since the Compilation +Process can be understood as starting with the output of the +generators or preprocessors. + +A Compilation Process is "Eligible" if it is done using GCC, alone +or with other GPL-compatible software, or if it is done without +using any work based on GCC. For example, using non-GPL-compatible +Software to optimize any GCC intermediate representations would not +qualify as an Eligible Compilation Process. + +1. Grant of Additional Permission. + +You have permission to propagate a work of Target Code formed by +combining the Runtime Library with Independent Modules, even if +such propagation would otherwise violate the terms of GPLv3, provided +that all Target Code was generated by Eligible Compilation Processes. +You may then convey such a combination under terms of your choice, +consistent with the licensing of the Independent Modules. + +2. No Weakening of GCC Copyleft. + +The availability of this Exception does not imply any general +presumption that third-party software is unaffected by the copyleft +requirements of the license of GCC. +== + +== + Copyright (c) 1994 + Hewlett-Packard Company + + Permission to use, copy, modify, distribute and sell this software + and its documentation for any purpose is hereby granted without fee, + provided that the above copyright notice appear in all copies and + that both that copyright notice and this permission notice appear + in supporting documentation. Hewlett-Packard Company makes no + representations about the suitability of this software for any + purpose. It is provided "as is" without express or implied + warranty. +== + +== + Copyright (c) 1996,1997 + Silicon Graphics Computer Systems, Inc. + + Permission to use, copy, modify, distribute and sell this software + and its documentation for any purpose is hereby granted without fee, + provided that the above copyright notice appear in all copies and + that both that copyright notice and this permission notice appear + in supporting documentation. Silicon Graphics makes no + representations about the suitability of this software for any + purpose. It is provided "as is" without express or implied + warranty. +== + +== + shared_count.hpp +@ Copyright (c) 2001, 2002, 2003 Peter Dimov and Multi Media Ltd. + + shared_ptr.hpp + Copyright (C) 1998, 1999 Greg Colvin and Beman Dawes. + Copyright (C) 2001, 2002, 2003 Peter Dimov + + weak_ptr.hpp + Copyright (C) 2001, 2002, 2003 Peter Dimov + + enable_shared_from_this.hpp + Copyright (C) 2002 Peter Dimov + +Distributed under the Boost Software License, Version 1.0. + +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or +organization obtaining a copy of the software and accompanying +documentation covered by this license (the "Software") to use, +reproduce, display, distribute, execute, and transmit the Software, +and to prepare derivative works of the Software, and to permit +third-parties to whom the Software is furnished to do so, all subject +to the following: + +The copyright notices in the Software and this entire statement, +including the above license grant, this restriction and the following +disclaimer, must be included in all copies of the Software, in whole +or in part, and all derivative works of the Software, unless such +copies or derivative works are solely in the form of machine-executable +object code generated by a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND +NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE +DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER +LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. +== + +== +Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL. + +Permission to use, copy, modify, sell, and distribute this software +is hereby granted without fee, provided that the above copyright +notice appears in all copies, and that both that copyright notice +and this permission notice appear in supporting documentation. None +of the above authors, nor IBM Haifa Research Laboratories, make any +representation about the suitability of this software for any +purpose. It is provided "as is" without express or implied warranty. +== + +Linux-PAM + + The following software may be included in this product: +Linux-PAM (pam-devel, Pluggable authentication modules for Linux) + +Copyright Theodore Ts'o, 1996. All rights reserved. + +(For the avoidance of doubt, Oracle uses and distributes this +component under the terms below and elects not to do so under +the GPL even though the GPL is referenced as an option below.) + +Redistribution and use in source and binary forms, with or +without modification, are permitted provided that the following +conditions are met: + +1. Redistributions of source code must retain the above copyright + notice, and the entire permission notice in its entirety, + including the disclaimer of warranties. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. +3. The name of the author may not be used to endorse or promote + products derived from this software without specific prior + written permission. + +ALTERNATIVELY, this product may be distributed under the terms +of the GNU Public License, in which case the provisions of the +GPL are required INSTEAD OF the above restrictions. (This clause +is necessary due to a potential bad interaction between the GPL +and the restrictions contained in a BSD-style copyright.) + +THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED +OF THE POSSIBILITY OF SUCH DAMAGE. + +md5 (Message-Digest Algorithm 5) + + The following software may be included in this product: +md5 (Message-Digest Algorithm 5) + + This code implements the MD5 message-digest algorithm. + The algorithm is due to Ron Rivest. This code was + written by Colin Plumb in 1993, no copyright is claimed. + This code is in the public domain; do with it what you wish. + + Equivalent code is available from RSA Data Security, Inc. + This code has been tested against that, and is equivalent, + except that you don't need to include two pages of legalese + with every copy. + + The code has been modified by Mikael Ronstroem to handle + calculating a hash value of a key that is always a multiple + of 4 bytes long. Word 0 of the calculated 4-word hash value + is returned as the hash value. + +memcached + + The following software may be included in this product: + + memcached +Copyright (c) 2003, Danga Interactive, Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + + + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + + + * Neither the name of the Danga Interactive nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Memcached.pm + + The following software may be included in this product: + + Memcached.pm +Memcached.pm is licensed under the Perl license. + +Oracle may use, redistribute and/or modify this code under the terms of +either: + + a) the GNU General Public License as published by the Free Software +Foundation; either version 1, or (at your option) any later version, or + + b) the "Artistic License" which comes with the Expect/pr code. + +Oracle elects to use the GPLv2 for version of MySQL that are licensed under +the GPL. + +Oracle elects to use the Artistic license for all other (commercial) versions +of MySQL. + +A copy of the GPLv2 and the Artistic License (Perl) 1.0 must be included with +any distribution. + + This component is licensed under the GNU GPL license, version 2.0. + + This component is licensed under Artistic License (Perl) 1.0 + +mkpasswd.pl + + The following software may be included in this product: + + mkpasswd.pl Perl module +Copyright (C) 2003-2004 by Chris Grau + +This library is free software; you can redistribute it and/or modify it under +the same terms as Perl itself, either Perl version 5.8.1 or, at your option, +any later version of Perl 5 you may have available. + +The Perl 5.8.1 license (from http://www.cpan.org/src/5.0/perl-5.8.1.tar.gz - mai +n readme file): + + + Perl Kit, Version 5 + + Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998 + 1999, 2000, 2001, by Larry Wall and others + + All rights reserved. + + This program is free software; you can redistribute it and/or modify + it under the terms of either: + +a) the GNU General Public License as published by the Free +Software Foundation; either version 1, or (at your option) any +later version, or + +b) the "Artistic License" which comes with this Kit. + + 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 either + the GNU General Public License or the Artistic License for more details. + + You should have received a copy of the Artistic License with this + Kit, in the file named "Artistic". If not, I'll be glad to provide one. + + You should also have received a copy of the GNU General Public License + along with this program in the file named "Copying". If not, write to the + + Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307, USA or visit their web page on the internet at + http://www.gnu.org/copyleft/gpl.html. + + For those of you that choose to use the GNU General Public License, + my interpretation of the GNU General Public License is that no Perl + script falls under the terms of the GPL unless you explicitly put + said script under the terms of the GPL yourself. Furthermore, any + object code linked with perl does not automatically fall under the + terms of the GPL, provided such object code only adds definitions + of subroutines and variables, and does not otherwise impair the + resulting interpreter from executing any standard Perl script. I + consider linking in C subroutines in this manner to be the moral + equivalent of defining subroutines in the Perl language itself. You + may sell such an object file as proprietary provided that you provide + or offer to provide the Perl source, as specified by the GNU General + Public License. (This is merely an alternate way of specifying input + to the program.) You may also sell a binary produced by the dumping of + a running Perl script that belongs to you, provided that you provide or + offer to provide the Perl source as specified by the GPL. (The + fact that a Perl interpreter and your code are in the same binary file + is, in this case, a form of mere aggregation.) This is my interpretation + of the GPL. If you still have concerns or difficulties understanding + my intent, feel free to contact me. Of course, the Artistic License + spells all this out for your protection, so you may prefer to use that. + +-------------------------------------------------------------------------- + +Perl is a language that combines some of the features of C, sed, awk +and shell. See the manual page for more hype. There are also many Perl +books available, covering a wide variety of topics, from various publishers. +See pod/perlbook.pod for more information. + +Please read all the directions below before you proceed any further, and +then follow them carefully. + +After you have unpacked your kit, you should have all the files listed +in MANIFEST. + +Installation + +1) Detailed instructions are in the file "INSTALL", which you should +read if you are either installing on a system resembling Unix +or porting perl to another platform. For non-Unix platforms, see the +corresponding README. + +2) Read the manual entries before running perl. + +3) IMPORTANT! Help save the world! Communicate any problems and suggested +patches to perlbug@perl.org so we can keep the world in sync. +If you have a problem, there's someone else out there who either has had +or will have the same problem. It's usually helpful if you send the +output of the "myconfig" script in the main perl directory. + +If you've succeeded in compiling perl, the perlbug script in the "utils" +subdirectory can be used to help mail in a bug report. + +If possible, send in patches such that the patch program will apply them. +Context diffs are the best, then normal diffs. Don't send ed scripts-- +I've probably changed my copy since the version you have. + +The latest versions of perl are always available on the various CPAN +(Comprehensive Perl Archive Network) sites around the world. +See . + + +Just a personal note: I want you to know that I create nice things like this +because it pleases the Author of my story. If this bothers you, then your +notion of Authorship needs some revision. But you can use perl anyway. :-) + +The author. +=============================================== + +The "Artistic License" + +Preamble + +The intent of this document is to state the conditions under which a +Package may be copied, such that the Copyright Holder maintains some +semblance of artistic control over the development of the package, +while giving the users of the package the right to use and distribute +the Package in a more-or-less customary fashion, plus the right to make +reasonable modifications. + +Definitions: + +"Package" refers to the collection of files distributed by the +Copyright Holder, and derivatives of that collection of files +created through textual modification. + +"Standard Version" refers to such a Package if it has not been +modified, or has been modified in accordance with the wishes +of the Copyright Holder as specified below. + +"Copyright Holder" is whoever is named in the copyright or +copyrights for the package. + +"You" is you, if you're thinking about copying or distributing +this Package. + +"Reasonable copying fee" is whatever you can justify on the +basis of media cost, duplication charges, time of people involved, +and so on. (You will not be required to justify it to the +Copyright Holder, but only to the computing community at large +as a market that must bear the fee.) + +"Freely Available" means that no fee is charged for the item +itself, though there may be fees involved in handling the item. +It also means that recipients of the item may redistribute it +under the same conditions they received it. + +1. You may make and give away verbatim copies of the source form of the +Standard Version of this Package without restriction, provided that you +duplicate all of the original copyright notices and associated disclaimers. + +2. You may apply bug fixes, portability fixes and other modifications +derived from the Public Domain or from the Copyright Holder. A Package +modified in such a way shall still be considered the Standard Version. + +3. You may otherwise modify your copy of this Package in any way, provided +that you insert a prominent notice in each changed file stating how and +when you changed that file, and provided that you do at least ONE of the +following: + + a) place your modifications in the Public Domain or otherwise make them + Freely Available, such as by posting said modifications to Usenet or + an equivalent medium, or placing the modifications on a major archive + site such as uunet.uu.net, or by allowing the Copyright Holder to include + your modifications in the Standard Version of the Package. + + b) use the modified Package only within your corporation or organization. + + c) rename any non-standard executables so the names do not conflict + with standard executables, which must also be provided, and provide + a separate manual page for each non-standard executable that clearly + documents how it differs from the Standard Version. + + d) make other distribution arrangements with the Copyright Holder. + +4. You may distribute the programs of this Package in object code or +executable form, provided that you do at least ONE of the following: + + a) distribute a Standard Version of the executables and library files, + together with instructions (in the manual page or equivalent) on where + to get the Standard Version. + + b) accompany the distribution with the machine-readable source of + the Package with your modifications. + + c) give non-standard executables non-standard names, and clearly + document the differences in manual pages (or equivalent), together + with instructions on where to get the Standard Version. + + d) make other distribution arrangements with the Copyright Holder. + +5. You may charge a reasonable copying fee for any distribution of this +Package. You may charge any fee you choose for support of this +Package. You may not charge a fee for this Package itself. However, +you may distribute this Package in aggregate with other (possibly +commercial) programs as part of a larger (possibly commercial) software +distribution provided that you do not advertise this Package as a +product of your own. You may embed this Package's interpreter within +an executable of yours (by linking); this shall be construed as a mere +form of aggregation, provided that the complete Standard Version of the +interpreter is so embedded. + +6. The scripts and library files supplied as input to or produced as +output from the programs of this Package do not automatically fall +under the copyright of this Package, but belong to whoever generated +them, and may be sold commercially, and may be aggregated with this +Package. If such scripts or library files are aggregated with this +Package via the so-called "undump" or "unexec" methods of producing a +binary executable image, then distribution of such an image shall +neither be construed as a distribution of this Package nor shall it +fall under the restrictions of Paragraphs 3 and 4, provided that you do +not represent such an executable image as a Standard Version of this +Package. + +7. C subroutines (or comparably compiled subroutines in other +languages) supplied by you and linked into this Package in order to +emulate subroutines and variables of the language defined by this +Package shall not be considered part of this Package, but are the +equivalent of input as in Paragraph 6, provided these subroutines do +not change the language in any way that would cause it to fail the +regression tests for the language. + +8. Aggregation of this Package with a commercial distribution is always +permitted provided that the use of this Package is embedded; that is, +when no overt attempt is made to make this Package's interfaces visible +to the end user of the commercial distribution. Such use shall not be +construed as a distribution of this Package. + +9. The name of the Copyright Holder may not be used to endorse or promote +products derived from this software without specific prior written +permission. + +10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED +WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + +The End + +nt_servc (Windows NT Service class library) + + The following software may be included in this product: + + nt_servc (Windows NT Service class library) +Windows NT Service class library +Copyright Abandoned 1998 Irena Pancirov - Irnet Snc +This file is public domain and comes with NO WARRANTY of any kind + +NUMA + + The following software may be included in this product: +You are receiving a copy of libnuma as part of MySQL in object code form. +The terms of the Oracle license do NOT apply to libnuma; the libnuma source +code is licensed under the LGPLv2.1 license. + + This component is licensed under GNU Lesser General Public License + Version 2.1, February 1999. + +OpenPAM + + The following software may be included in this product: + + OpenPAM +Copyright (c) 2002-2003 Networks Associates Technology, Inc. +Copyright (c) 2004-2007 Dag-Erling Smørgrav +All rights reserved. + +This software was developed for the FreeBSD Project by +ThinkSec AS and Network Associates Laboratories, the +Security Research Division of Network Associates, Inc. +under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), +as part of the DARPA CHATS research program. + +Redistribution and use in source and binary forms, +with or without modification, are permitted provided +that the following conditions are met: + +1. Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. +2. Redistributions in binary form must reproduce the + above copyright notice, this list of conditions and + the following disclaimer in the documentation and/or + other materials provided with the distribution. +3. The name of the author may not be used to endorse or + promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN +NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED +AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Percona Multiple I/O Threads Patch + + The following software may be included in this product: + + Percona Multiple I/O threads patch +Copyright (c) 2008, 2009 Percona Inc +All rights reserved. + +Redistribution and use of this software in source and binary forms, +with or without modification, are permitted provided that the +following conditions are met: + + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the name of Percona Inc. nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission of Percona Inc. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +Pion + + This Oracle Product includes or references Pion which is licensed to + Oracle under the following terms: +Boost Software License - Version 1.0 - August 17th, 2003 + +Permission is hereby granted, free of charge, to any person or organization +obtaining a copy of the software and accompanying documentation covered by +this license (the "Software") to use, reproduce, display, distribute, +execute, and transmit the Software, and to prepare derivative works of the +Software, and to permit third-parties to whom the Software is furnished to +do so, all subject to the following: + +The copyright notices in the Software and this entire statement, including +the above license grant, this restriction and the following disclaimer, +must be included in all copies of the Software, in whole or in part, and +all derivative works of the Software, unless such copies or derivative +works are solely in the form of machine-executable object code generated by +a source language processor. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT +SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE +FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + +Red HAT RPM Spec File + + The following software may be included in this product: + + Red Hat RPM Spec File +You are receiving a copy of the Red Hat spec file. The terms of the Oracle +license do NOT apply to the Red Hat spec file; it is licensed under the +following license, separately from the Oracle programs you receive. + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. +[for rest of text, see following link] + + This component is licensed under the GNU GPL license, version 2.0. + +RegEX-Spencer Library + + The following software may be included in this product: Henry Spencer's + Regular-Expression Library (RegEX-Spencer) +Copyright 1992, 1993, 1994 Henry Spencer. All rights reserved. +This software is not subject to any license of the American Telephone +and Telegraph Company or of the Regents of the University of California. + +Permission is granted to anyone to use this software for any purpose on +any computer system, and to alter it and redistribute it, subject +to the following restrictions: + +1. The author is not responsible for the consequences of use of this + software, no matter how awful, even if they arise from flaws in it. + +2. The origin of this software must not be misrepresented, either by + explicit claim or by omission. Since few users ever read sources, + credits must appear in the documentation. + +3. Altered versions must be plainly marked as such, and must not be + misrepresented as being the original software. Since few users + ever read sources, credits must appear in the documentation. + +4. This notice may not be removed or altered. + +Richard A. O'Keefe String Library + + The following software may be included in this product: + + Richard A. O'Keefe String Library +The Richard O'Keefe String Library is subject to the following notice: + +These files are in the public domain. This includes getopt.c, which +is the work of Henry Spencer, University of Toronto Zoology, who +says of it "None of this software is derived from Bell software. I +had no access to the source for Bell's versions at the time I wrote +it. This software is hereby explicitly placed in the public domain. +It may be used for any purpose on any machine by anyone." I would +greatly prefer it if *my* material received no military use. + +The t_ctype.h file is subject to the following notice: + +Copyright (C) 1998, 1999 by Pruet Boonma, all rights reserved. +Copyright (C) 1998 by Theppitak Karoonboonyanan, all rights reserved. + + Permission to use, copy, modify, distribute and sell this software and its +documentation for any purpose is hereby granted without fee, provided that the a +bove +copyright notice appear in all copies. + + Smaphan Raruenrom and Pruet Boonma makes no representations about +the suitability of this software for any purpose. It is provided +"as is" without express or implied warranty. + +sajson + + The following software may be included in this product: + + sajson +Copyright (c) 2012 Chad Austin + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject +to the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +SHA-1 in C + + The following software may be included in this product: + + SHA-1 in C +SHA-1 in C +By Steve Reid +100% Public Domain + +Unicode Data Files + + The following software may be included in this product: + + Unicode Data Files +COPYRIGHT AND PERMISSION NOTICE + +Copyright (c) 1991-2014 Unicode, Inc. All rights reserved. Distributed under +the Terms of Use in http://www.unicode.org/copyright.html. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of the Unicode data files and any associated documentation (the "Data Files") +or Unicode software and any associated documentation (the "Software") to deal +in the Data Files or Software without restriction, including without +limitation the rights to use, copy, modify, merge, publish, distribute, +and/or sell copies of the Data Files or Software, and to permit persons to +whom the Data Files or Software are furnished to do so, provided that (a) the +above copyright notice(s) and this permission notice appear with all copies +of the Data Files or Software, (b) both the above copyright notice(s) and +this permission notice appear in associated documentation, and (c) there is +clear notice in each modified Data File or in the Software as well as in the +documentation associated with the Data File(s) or Software that the data or +software has been modified. + +THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS +INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR +CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +DATA OR +PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS +ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE +DATA FILES OR SOFTWARE. + +Except as contained in this notice, the name of a copyright holder shall not +be used in advertising or otherwise to promote the sale, use or other +dealings in these Data Files or Software without prior written authorization +of the copyright holder. + +zlib + + The following software may be included in this product: + + zlib + + Oracle gratefully acknowledges the contributions of Jean-loup Gailly + and Mark Adler in creating the zlib general purpose compression library + which is used in this product. +zlib.h -- interface of the 'zlib' general purpose compression library +Copyright (C) 1995-2004 Jean-loup Gailly and Mark Adler + +zlib.h -- interface of the 'zlib' general purpose compression library +version 1.2.3, July 18th, 2005 +Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler + +zlib.h -- interface of the 'zlib' general purpose compression library +version 1.2.5, April 19th, 2010 +Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler + +This software is provided 'as-is', without any express or implied warranty. +In no event will the authors be held liable for any damages arising from the +use of this software. Permission is granted to anyone to use this software +for any purpose,including commercial applications, and to alter it and +redistribute it freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would + be appreciated but is not required. +2. Altered source versions must be plainly marked as such, and must not + be misrepresented as being the original software. +3. This notice may not be removed or altered from any source distribution. + +Jean-loup Gailly jloup@gzip.org +Mark Adler madler@alumni.caltech.edu + +Commonly Used Licenses + +Artistic License (Perl) 1.0 + +The "Artistic License" + +Preamble + +The intent of this document is to state the conditions under which a +Package may be copied, such that the Copyright Holder maintains some +semblance of artistic control over the development of the package, +while giving the users of the package the right to use and distribute +the Package in a more-or-less customary fashion, plus the right to make +reasonable modifications. + +Definitions: + + "Package" refers to the collection of files distributed by the + Copyright Holder, and derivatives of that collection of files + created through textual modification. + + "Standard Version" refers to such a Package if it has not been + modified, or has been modified in accordance with the wishes + of the Copyright Holder as specified below. + + "Copyright Holder" is whoever is named in the copyright or + copyrights for the package. + + "You" is you, if you're thinking about copying or distributing + this Package. + + "Reasonable copying fee" is whatever you can justify on the + basis of media cost, duplication charges, time of people involved, + and so on. (You will not be required to justify it to the + Copyright Holder, but only to the computing community at large + as a market that must bear the fee.) + + "Freely Available" means that no fee is charged for the item + itself, though there may be fees involved in handling the item. + It also means that recipients of the item may redistribute it + under the same conditions they received it. + +1. You may make and give away verbatim copies of the source form of the +Standard Version of this Package without restriction, provided that you +duplicate all of the original copyright notices and associated disclaimers. + +2. You may apply bug fixes, portability fixes and other modifications +derived from the Public Domain or from the Copyright Holder. A Package +modified in such a way shall still be considered the Standard Version. + +3. You may otherwise modify your copy of this Package in any way, provided +that you insert a prominent notice in each changed file stating how and +when you changed that file, and provided that you do at least ONE of the +following: + + a) place your modifications in the Public Domain or otherwise make them + Freely Available, such as by posting said modifications to Usenet or + an equivalent medium, or placing the modifications on a major archive + site such as uunet.uu.net, or by allowing the Copyright Holder to include + your modifications in the Standard Version of the Package. + + b) use the modified Package only within your corporation or organization. + + c) rename any non-standard executables so the names do not conflict + with standard executables, which must also be provided, and provide + a separate manual page for each non-standard executable that clearly + documents how it differs from the Standard Version. + + d) make other distribution arrangements with the Copyright Holder. + +4. You may distribute the programs of this Package in object code or +executable form, provided that you do at least ONE of the following: + + a) distribute a Standard Version of the executables and library files, + together with instructions (in the manual page or equivalent) on where + to get the Standard Version. + + b) accompany the distribution with the machine-readable source of + the Package with your modifications. + + c) give non-standard executables non-standard names, and clearly + document the differences in manual pages (or equivalent), together + with instructions on where to get the Standard Version. + + d) make other distribution arrangements with the Copyright Holder. + +5. You may charge a reasonable copying fee for any distribution of this +Package. You may charge any fee you choose for support of this +Package. You may not charge a fee for this Package itself. However, +you may distribute this Package in aggregate with other (possibly +commercial) programs as part of a larger (possibly commercial) software +distribution provided that you do not advertise this Package as a +product of your own. You may embed this Package's interpreter within +an executable of yours (by linking); this shall be construed as a mere +form of aggregation, provided that the complete Standard Version of the +interpreter is so embedded. + +6. The scripts and library files supplied as input to or produced as +output from the programs of this Package do not automatically fall +under the copyright of this Package, but belong to whoever generated +them, and may be sold commercially, and may be aggregated with this +Package. If such scripts or library files are aggregated with this +Package via the so-called "undump" or "unexec" methods of producing a +binary executable image, then distribution of such an image shall +neither be construed as a distribution of this Package nor shall it +fall under the restrictions of Paragraphs 3 and 4, provided that you do +not represent such an executable image as a Standard Version of this +Package. + +7. C subroutines (or comparably compiled subroutines in other +languages) supplied by you and linked into this Package in order to +emulate subroutines and variables of the language defined by this +Package shall not be considered part of this Package, but are the +equivalent of input as in Paragraph 6, provided these subroutines do +not change the language in any way that would cause it to fail the +regression tests for the language. + +8. Aggregation of this Package with a commercial distribution is always +permitted provided that the use of this Package is embedded; that is, +when no overt attempt is made to make this Package's interfaces visible +to the end user of the commercial distribution. Such use shall not be +construed as a distribution of this Package. + +9. The name of the Copyright Holder may not be used to endorse or promote +products derived from this software without specific prior written +permission. + +10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED +WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + + The End + +GNU Lesser General Public License Version 2.1, February 1999 + +The following applies to all products licensed under the +GNU Lesser General Public License, Version 2.1: You may +not use the identified files except in compliance with +the GNU Lesser General Public License, Version 2.1 (the +"License"). You may obtain a copy of the License at +http://www.gnu.org/licenses/lgpl-2.1.html. A copy of the +license is also reproduced below. Unless required by +applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +or implied. See the License for the specific language governing +permissions and limitations under the License. + + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it +becomes a de-facto standard. To achieve this, non-free programs +must be allowed to use the library. A more frequent case is that +a free library does the same job as widely used non-free libraries. +In this case, there is little to gain by limiting the free library +to free software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control +compilation and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended +to apply, and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms +of the ordinary General Public License). + + To apply these terms, attach the following notices to the library. +It is safest to attach them to the start of each source file to most +effectively convey the exclusion of warranty; and each file should +have at least the "copyright" line and a pointer to where the full +notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James + Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + +GNU Lesser General Public License Version 2, June 1991 + +GNU LIBRARY GENERAL PUBLIC LICENSE + +Version 2, June 1991 + +Copyright (C) 1991 Free Software Foundation, Inc. +51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA +Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. + +[This is the first released version of the library GPL. It is numbered 2 +because it goes with version 2 of the ordinary GPL.] + +Preamble + +The licenses for most software are designed to take away your freedom to +share and change it. By contrast, the GNU General Public Licenses are +intended to guarantee your freedom to share and change free software--to make +sure the software is free for all its users. + +This license, the Library General Public License, applies to some specially +designated Free Software Foundation software, and to any other libraries +whose authors decide to use it. You can use it for your libraries, too. + +When we speak of free software, we are referring to freedom, not price. Our +General Public Licenses are designed to make sure that you have the freedom +to distribute copies of free software (and charge for this service if you +wish), that you receive source code or can get it if you want it, that you +can change the software or use pieces of it in new free programs; and that +you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to +deny you these rights or to ask you to surrender the rights. These +restrictions translate to certain responsibilities for you if you distribute +copies of the library, or if you modify it. + +For example, if you distribute copies of the library, whether gratis or for a +fee, you must give the recipients all the rights that we gave you. You must +make sure that they, too, receive or can get the source code. If you link a +program with the library, you must provide complete object files to the +recipients so that they can relink them with the library, after making +changes to the library and recompiling it. And you must show them these terms +so they know their rights. + +Our method of protecting your rights has two steps: (1) copyright the +library, and (2) offer you this license which gives you legal permission to +copy, distribute and/or modify the library. + +Also, for each distributor's protection, we want to make certain that +everyone understands that there is no warranty for this free library. If the +library is modified by someone else and passed on, we want its recipients to +know that what they have is not the original version, so that any problems +introduced by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We +wish to avoid the danger that companies distributing free software will +individually obtain patent licenses, thus in effect transforming the program +into proprietary software. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + +Most GNU software, including some libraries, is covered by the ordinary GNU +General Public License, which was designed for utility programs. This +license, the GNU Library General Public License, applies to certain +designated libraries. This license is quite different from the ordinary one; +be sure to read it in full, and don't assume that anything in it is the same +as in the ordinary license. + +The reason we have a separate public license for some libraries is that they +blur the distinction we usually make between modifying or adding to a program +and simply using it. Linking a program with a library, without changing the +library, is in some sense simply using the library, and is analogous to +running a utility program or application program. However, in a textual and +legal sense, the linked executable is a combined work, a derivative of the +original library, and the ordinary General Public License treats it as such. + +Because of this blurred distinction, using the ordinary General Public +License for libraries did not effectively promote software sharing, because +most developers did not use the libraries. We concluded that weaker +conditions might promote sharing better. + +However, unrestricted linking of non-free programs would deprive the users of +those programs of all benefit from the free status of the libraries +themselves. This Library General Public License is intended to permit +developers of non-free programs to use free libraries, while preserving your +freedom as a user of such programs to change the free libraries that are +incorporated in them. (We have not seen how to achieve this as regards +changes in header files, but we have achieved it as regards changes in the +actual functions of the Library.) The hope is that this will lead to faster +development of free libraries. + +The precise terms and conditions for copying, distribution and modification +follow. Pay close attention to the difference between a "work based on the +library" and a "work that uses the library". The former contains code derived +from the library, while the latter only works together with the library. + +Note that it is possible for a library to be covered by the ordinary General +Public License rather than by this special one. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License Agreement applies to any software library which contains a +notice placed by the copyright holder or other authorized party saying it may +be distributed under the terms of this Library General Public License (also +called "this License"). Each licensee is addressed as "you". + +A "library" means a collection of software functions and/or data prepared so +as to be conveniently linked with application programs (which use some of +those functions and data) to form executables. + +The "Library", below, refers to any such software library or work which has +been distributed under these terms. A "work based on the Library" means +either the Library or any derivative work under copyright law: that is to +say, a work containing the Library or a portion of it, either verbatim or +with modifications and/or translated straightforwardly into another language. +(Hereinafter, translation is included without limitation in the term +"modification".) + +"Source code" for a work means the preferred form of the work for making +modifications to it. For a library, complete source code means all the source +code for all modules it contains, plus any associated interface definition +files, plus the scripts used to control compilation and installation of the +library. + +Activities other than copying, distribution and modification are not covered +by this License; they are outside its scope. The act of running a program +using the Library is not restricted, and output from such a program is +covered only if its contents constitute a work based on the Library +(independent of the use of the Library in a tool for writing it). Whether +that is true depends on what the Library does and what the program that uses +the Library does. + +1. You may copy and distribute verbatim copies of the Library's complete +source code as you receive it, in any medium, provided that you conspicuously +and appropriately publish on each copy an appropriate copyright notice and +disclaimer of warranty; keep intact all the notices that refer to this +License and to the absence of any warranty; and distribute a copy of this +License along with the Library. + +You may charge a fee for the physical act of transferring a copy, and you may +at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Library or any portion of it, +thus forming a work based on the Library, and copy and distribute such +modifications or work under the terms of Section 1 above, provided that you +also meet all of these conditions: + + a) The modified work must itself be a software library. + b) You must cause the files modified to carry prominent notices stating +that you changed the files and the date of any change. + c) You must cause the whole of the work to be licensed at no charge to +all third parties under the terms of this License. + d) If a facility in the modified Library refers to a function or a table +of data to be supplied by an application program that uses the facility, +other than as an argument passed when the facility is invoked, then you must +make a good faith effort to ensure that, in the event an application does not +supply such function or table, the facility still operates, and performs +whatever part of its purpose remains meaningful. + + (For example, a function in a library to compute square roots has a +purpose that is entirely well-defined independent of the application. +Therefore, Subsection 2d requires that any application-supplied function or +table used by this function must be optional: if the application does not +supply it, the square root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If identifiable +sections of that work are not derived from the Library, and can be reasonably +considered independent and separate works in themselves, then this License, +and its terms, do not apply to those sections when you distribute them as +separate works. But when you distribute the same sections as part of a whole +which is a work based on the Library, the distribution of the whole must be +on the terms of this License, whose permissions for other licensees extend to +the entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest your +rights to work written entirely by you; rather, the intent is to exercise the +right to control the distribution of derivative or collective works based on +the Library. + +In addition, mere aggregation of another work not based on the Library with +the Library (or with a work based on the Library) on a volume of a storage or +distribution medium does not bring the other work under the scope of this +License. + +3. You may opt to apply the terms of the ordinary GNU General Public License +instead of this License to a given copy of the Library. To do this, you must +alter all the notices that refer to this License, so that they refer to the +ordinary GNU General Public License, version 2, instead of to this License. +(If a newer version than version 2 of the ordinary GNU General Public License +has appeared, then you can specify that version instead if you wish.) Do not +make any other change in these notices. + +Once this change is made in a given copy, it is irreversible for that copy, +so the ordinary GNU General Public License applies to all subsequent copies +and derivative works made from that copy. + +This option is useful when you wish to copy part of the code of the Library +into a program that is not a library. + +4. You may copy and distribute the Library (or a portion or derivative of it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you accompany it with the complete +corresponding machine-readable source code, which must be distributed under +the terms of Sections 1 and 2 above on a medium customarily used for software +interchange. + +If distribution of object code is made by offering access to copy from a +designated place, then offering equivalent access to copy the source code +from the same place satisfies the requirement to distribute the source code, +even though third parties are not compelled to copy the source along with the +object code. + +5. A program that contains no derivative of any portion of the Library, but +is designed to work with the Library by being compiled or linked with it, is +called a "work that uses the Library". Such a work, in isolation, is not a +derivative work of the Library, and therefore falls outside the scope of this +License. + +However, linking a "work that uses the Library" with the Library creates an +executable that is a derivative of the Library (because it contains portions +of the Library), rather than a "work that uses the library". The executable +is therefore covered by this License. Section 6 states terms for distribution +of such executables. + +When a "work that uses the Library" uses material from a header file that is +part of the Library, the object code for the work may be a derivative work of +the Library even though the source code is not. Whether this is true is +especially significant if the work can be linked without the Library, or if +the work is itself a library. The threshold for this to be true is not +precisely defined by law. + +If such an object file uses only numerical parameters, data structure layouts +and accessors, and small macros and small inline functions (ten lines or less +in length), then the use of the object file is unrestricted, regardless of +whether it is legally a derivative work. (Executables containing this object +code plus portions of the Library will still fall under Section 6.) + +Otherwise, if the work is a derivative of the Library, you may distribute the +object code for the work under the terms of Section 6. Any executables +containing that work also fall under Section 6, whether or not they are +linked directly with the Library itself. + +6. As an exception to the Sections above, you may also compile or link a +"work that uses the Library" with the Library to produce a work containing +portions of the Library, and distribute that work under terms of your choice, +provided that the terms permit modification of the work for the customer's +own use and reverse engineering for debugging such modifications. + +You must give prominent notice with each copy of the work that the Library is +used in it and that the Library and its use are covered by this License. You +must supply a copy of this License. If the work during execution displays +copyright notices, you must include the copyright notice for the Library +among them, as well as a reference directing the user to the copy of this +License. Also, you must do one of these things: + + a) Accompany the work with the complete corresponding machine-readable +source code for the Library including whatever changes were used in the work +(which must be distributed under Sections 1 and 2 above); and, if the work is +an executable linked with the Library, with the complete machine-readable +"work that uses the Library", as object code and/or source code, so that the +user can modify the Library and then relink to produce a modified executable +containing the modified Library. (It is understood that the user who changes +the contents of definitions files in the Library will not necessarily be able +to recompile the application to use the modified definitions.) + b) Accompany the work with a written offer, valid for at least three +years, to give the same user the materials specified in Subsection 6a, above, +for a charge no more than the cost of performing this distribution. + c) If distribution of the work is made by offering access to copy from a +designated place, offer equivalent access to copy the above specified +materials from the same place. + d) Verify that the user has already received a copy of these materials or +that you have already sent this user a copy. + +For an executable, the required form of the "work that uses the Library" must +include any data and utility programs needed for reproducing the executable +from it. However, as a special exception, the source code distributed need +not include anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component itself +accompanies the executable. + +It may happen that this requirement contradicts the license restrictions of +other proprietary libraries that do not normally accompany the operating +system. Such a contradiction means you cannot use both them and the Library +together in an executable that you distribute. + +7. You may place library facilities that are a work based on the Library +side-by-side in a single library together with other library facilities not +covered by this License, and distribute such a combined library, provided +that the separate distribution of the work based on the Library and of the +other library facilities is otherwise permitted, and provided that you do +these two things: + + a) Accompany the combined library with a copy of the same work based on +the Library, uncombined with any other library facilities. This must be +distributed under the terms of the Sections above. + b) Give prominent notice with the combined library of the fact that part +of it is a work based on the Library, and explaining where to find the +accompanying uncombined form of the same work. + +8. You may not copy, modify, sublicense, link with, or distribute the Library +except as expressly provided under this License. Any attempt otherwise to +copy, modify, sublicense, link with, or distribute the Library is void, and +will automatically terminate your rights under this License. However, parties +who have received copies, or rights, from you under this License will not +have their licenses terminated so long as such parties remain in full +compliance. + +9. You are not required to accept this License, since you have not signed it. +However, nothing else grants you permission to modify or distribute the +Library or its derivative works. These actions are prohibited by law if you +do not accept this License. Therefore, by modifying or distributing the +Library (or any work based on the Library), you indicate your acceptance of +this License to do so, and all its terms and conditions for copying, +distributing or modifying the Library or works based on it. + +10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the original +licensor to copy, distribute, link with or modify the Library subject to +these terms and conditions. You may not impose any further restrictions on +the recipients' exercise of the rights granted herein. You are not +responsible for enforcing compliance by third parties to this License. + +11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not excuse +you from the conditions of this License. If you cannot distribute so as to +satisfy simultaneously your obligations under this License and any other +pertinent obligations, then as a consequence you may not distribute the +Library at all. For example, if a patent license would not permit +royalty-free redistribution of the Library by all those who receive copies +directly or indirectly through you, then the only way you could satisfy both +it and this License would be to refrain entirely from distribution of the +Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, and +the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents +or other property right claims or to contest validity of any such claims; +this section has the sole purpose of protecting the integrity of the free +software distribution system which is implemented by public license +practices. Many people have made generous contributions to the wide range of +software distributed through that system in reliance on consistent +application of that system; it is up to the author/donor to decide if he or +she is willing to distribute software through any other system and a licensee +cannot impose that choice. + +This section is intended to make thoroughly clear what is believed to be a +consequence of the rest of this License. + +12. If the distribution and/or use of the Library is restricted in certain +countries either by patents or by copyrighted interfaces, the original +copyright holder who places the Library under this License may add an +explicit geographical distribution limitation excluding those countries, so +that distribution is permitted only in or among countries not thus excluded. +In such case, this License incorporates the limitation as if written in the +body of this License. + +13. The Free Software Foundation may publish revised and/or new versions of +the Library General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and "any later +version", you have the option of following the terms and conditions either of +that version or of any later version published by the Free Software +Foundation. If the Library does not specify a license version number, you may +choose any version ever published by the Free Software Foundation. + +14. If you wish to incorporate parts of the Library into other free programs +whose distribution conditions are incompatible with these, write to the +author to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes make +exceptions for this. Our decision will be guided by the two goals of +preserving the free status of all derivatives of our free software and of +promoting the sharing and reuse of software generally. + +NO WARRANTY + +15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR +THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE +STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE +LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND +PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, +YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO +LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR +THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER +SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. +END OF TERMS AND CONDITIONS +How to Apply These Terms to Your New Libraries + +If you develop a new library, and you want it to be of the greatest possible +use to the public, we recommend making it free software that everyone can +redistribute and change. You can do so by permitting redistribution under +these terms (or, alternatively, under the terms of the ordinary General +Public License). + +To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + +one line to give the library's name and an idea of what it does. +Copyright (C) year name of author + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public +License as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later version. + +This library 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 +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with this library; if not, write to the +Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, +Boston, MA 02110-1301, USA. + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + +Yoyodyne, Inc., hereby disclaims all copyright interest in +the library `Frob' (a library for tweaking knobs) written +by James Random Hacker. + +signature of Ty Coon, 1 April 1990 +Ty Coon, President of Vice + +That's all there is to it! + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +Written Offer for Source Code + + For any software that you receive from Oracle in binary form which is + licensed under an open source license that gives you the right to + receive the source code for that binary, you can obtain a copy of the + applicable source code by visiting + http://www.oracle.com/goto/opensourcecode. If the source code for the + binary was not provided to you with the binary, you can also receive a + copy of the source code on physical media by submitting a written + request to the address listed below or by sending an email to Oracle + using the following link: + http://www.oracle.com/goto/opensourcecode/request. + Oracle America, Inc. + Attn: Senior Vice President + Development and Engineering Legal + 500 Oracle Parkway, 10th Floor + Redwood Shores, CA 94065 + + Your request should include: + + * The name of the binary for which you are requesting the source code + + * The name and version number of the Oracle product containing the + binary + + * The date you received the Oracle product + + * Your name + + * Your company name (if applicable) + + * Your return mailing address and email, and + + * A telephone number in the event we need to reach you. + + We may charge you a fee to cover the cost of physical media and + processing. + + Your request must be sent + a. within three (3) years of the date you received the Oracle product + that included the binary that is the subject of your request, or + b. in the case of code licensed under the GPL v3 for as long as Oracle + offers spare parts or customer support for that product model. diff --git a/README b/README index c92a97846b68..ab8cc78119d5 100644 --- a/README +++ b/README @@ -1,56 +1,17 @@ -MySQL Server 5.6 - -This is a release of MySQL, a dual-license SQL database server. -For the avoidance of doubt, this particular copy of the software -is released under the version 2 of the GNU General Public License. -MySQL is brought to you by Oracle. - Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. -License information can be found in the COPYING file. - -MySQL FOSS License Exception -We want free and open source software applications under certain -licenses to be able to use specified GPL-licensed MySQL client -libraries despite the fact that not all such FOSS licenses are -compatible with version 2 of the GNU General Public License. -Therefore there are special exceptions to the terms and conditions -of the GPLv2 as applied to these client libraries, which are -identified and described in more detail in the FOSS License -Exception at -. +This is a release of MySQL, an SQL database server. -This distribution may include materials developed by third -parties. For license and attribution notices for these -materials, please refer to the documentation that accompanies -this distribution (see the "Licenses for Third-Party Components" -appendix) or view the online documentation at -. +License information can be found in the LICENSE file. -GPLv2 Disclaimer -For the avoidance of doubt, except that if any license choice -other than GPL or LGPL is available it will apply instead, -Oracle elects to use only the General Public License version 2 -(GPLv2) at this time for any software where a choice of GPL -license versions is made available with the language indicating -that GPLv2 or any later version may be used, or where a choice -of which version of the GPL is applied is otherwise unspecified. +This distribution may include materials developed by third parties. +For license and attribution notices for these materials, +please refer to the LICENSE file. -For further information about MySQL or additional documentation, -see: -- The latest information about MySQL: http://www.mysql.com -- The current MySQL documentation: http://dev.mysql.com/doc +For further information on MySQL or additional documentation, visit + http://dev.mysql.com/doc/ -Some Reference Manual sections of special interest: -- If you are migrating from an older version of MySQL, please - read the "Upgrading from..." section. -- To see what MySQL can do, take a look at the features section. -- For installation instructions, see the Installing and Upgrading - chapter. -- For the new features/bugfix history, see the MySQL Change History - appendix. +For additional downloads and the source of MySQL, visit + http://dev.mysql.com/downloads/ -You can browse the MySQL Reference Manual online or download it -in any of several formats at the URL given earlier in this file. -Source distributions include a local copy of the manual in the -Docs directory. +MySQL is brought to you by the MySQL team at Oracle. diff --git a/packaging/WiX/CMakeLists.txt b/packaging/WiX/CMakeLists.txt index 82c13f5db157..b5c867a199d7 100644 --- a/packaging/WiX/CMakeLists.txt +++ b/packaging/WiX/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -88,22 +88,18 @@ FIND_PROGRAM(CANDLE_EXECUTABLE candle ${WIX_DIR}) FIND_PROGRAM(LIGHT_EXECUTABLE light ${WIX_DIR}) # WiX wants the license text as rtf; if there is no rtf license, -# we create a fake one from the plain text COPYING file. -IF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/COPYING.rtf") - SET(COPYING_RTF "${CMAKE_CURRENT_SOURCE_DIR}/COPYING.rtf") +# we create a fake one from the plain text LICENSE file. +IF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.rtf") + SET(LICENSE_RTF "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.rtf") ELSE() - IF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../../LICENSE.mysql") - SET(LICENSE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/../../LICENSE.mysql") - ELSE() - SET(LICENSE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/../../COPYING") - ENDIF() + SET(LICENSE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/../../LICENSE") FILE(READ ${LICENSE_FILE} CONTENTS) STRING(REGEX REPLACE "\n" "\\\\par\n" CONTENTS "${CONTENTS}") STRING(REGEX REPLACE "\t" "\\\\tab" CONTENTS "${CONTENTS}") - FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/COPYING.rtf" "{\\rtf1\\ansi\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0 Courier New;}}\\viewkind4\\uc1\\pard\\lang1031\\f0\\fs15") - FILE(APPEND "${CMAKE_CURRENT_BINARY_DIR}/COPYING.rtf" "${CONTENTS}") - FILE(APPEND "${CMAKE_CURRENT_BINARY_DIR}/COPYING.rtf" "\n}\n") - SET(COPYING_RTF "${CMAKE_CURRENT_BINARY_DIR}/COPYING.rtf") + FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/LICENSE.rtf" "{\\rtf1\\ansi\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0 Courier New;}}\\viewkind4\\uc1\\pard\\lang1031\\f0\\fs15") + FILE(APPEND "${CMAKE_CURRENT_BINARY_DIR}/LICENSE.rtf" "${CONTENTS}") + FILE(APPEND "${CMAKE_CURRENT_BINARY_DIR}/LICENSE.rtf" "\n}\n") + SET(LICENSE_RTF "${CMAKE_CURRENT_BINARY_DIR}/LICENSE.rtf") ENDIF() SET(CPACK_WIX_CONFIG ${CMAKE_CURRENT_SOURCE_DIR}/CPackWixConfig.cmake) SET(CPACK_WIX_INCLUDE "${CMAKE_CURRENT_BINARY_DIR}/mysql_server_extra.wxs;${CMAKE_CURRENT_SOURCE_DIR}/custom_ui.wxs") diff --git a/packaging/WiX/create_msi.cmake.in b/packaging/WiX/create_msi.cmake.in index 13a601427f13..83da580e3221 100644 --- a/packaging/WiX/create_msi.cmake.in +++ b/packaging/WiX/create_msi.cmake.in @@ -1,4 +1,4 @@ -# Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -33,7 +33,7 @@ SET(MINOR_VERSION "@MINOR_VERSION@") SET(PATCH_VERSION "@PATCH_VERSION@") SET(CMAKE_SIZEOF_VOID_P @CMAKE_SIZEOF_VOID_P@) SET(MANUFACTURER "@MANUFACTURER@") -SET(COPYING_RTF "@COPYING_RTF@") +SET(LICENSE_RTF "@LICENSE_RTF@") SET(CPACK_WIX_CONFIG "@CPACK_WIX_CONFIG@") SET(CPACK_WIX_INCLUDE "@CPACK_WIX_INCLUDE@") diff --git a/packaging/WiX/mysql_server.wxs.in b/packaging/WiX/mysql_server.wxs.in index b33746389683..405ab336a156 100644 --- a/packaging/WiX/mysql_server.wxs.in +++ b/packaging/WiX/mysql_server.wxs.in @@ -2,7 +2,7 @@ xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> + Value="@LICENSE_RTF@"/> diff --git a/packaging/deb-in/CMakeLists.txt b/packaging/deb-in/CMakeLists.txt index 14231b328af4..dd0efccb0594 100644 --- a/packaging/deb-in/CMakeLists.txt +++ b/packaging/deb-in/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -48,7 +48,6 @@ IF (DEB_PRODUCT STREQUAL "commercial") SET (DEB_PRODUCTNAMEC "Commercial") SET (DEB_NOTPRODUCTNAME "community") SET (DEB_LICENSENAME "Advanced") - SET (DEB_INSTALL_LICENSEFILE "LICENSE.mysql") SET (DEB_SERVERVERSION "${VERSION}+commercial-1") SET (DEB_PLUGIN_SETPERMISSION "") SET (DEB_MAN_SETPERMISSION "") @@ -91,12 +90,12 @@ ELSE() SET (DEB_PRODUCTNAMEC "Community") SET (DEB_NOTPRODUCTNAME "commercial") SET (DEB_LICENSENAME "GPL") - SET (DEB_INSTALL_LICENSEFILE "COPYING") SET (DEB_SERVERVERSION "${VERSION}-1") SET (DEB_REMOVEPATTERN "com.in") SET (DEB_PLUGIN_SETPERMISSION "usr/bin/mysql_setpermission") SET (DEB_MAN_SETPERMISSION "usr/share/man/man1/mysql_setpermission.1") ENDIF() +SET (DEB_INSTALL_LICENSEFILE "LICENSE") # Platform specifics. The differences are generally only distro version # and whether or not systemd and/or apparmor are available diff --git a/packaging/deb-in/copyright.com.in b/packaging/deb-in/copyright.com.in index 4a2bcd76aa68..b5f276261c45 100644 --- a/packaging/deb-in/copyright.com.in +++ b/packaging/deb-in/copyright.com.in @@ -4,61 +4,21 @@ Upstream-Contact: MySQL Release Engineering Source: http://dev.mysql.com/ Files: * -Copyright: 2000, 2018, Oracle and/or its affiliates. All rights reserved. +Copyright: 2000, 2019, Oracle and/or its affiliates. All rights reserved. License: Commercial - This is a release of MySQL, a dual-license SQL database server. - For the avoidance of doubt, this particular copy of the software - is released under a commercial license and the GNU General Public - License does not apply. MySQL is brought to you by Oracle. + This is a release of MySQL, an SQL database server. . - This distribution may include materials developed by third - parties. For license and attribution notices for these - materials, please refer to the documentation that accompanies - this distribution (see the "Licenses for Third-Party Components" - appendix) or view the online documentation at - . + License information can be found in the LICENSE file. . - This software and related documentation are provided under a license - agreement containing restrictions on use and disclosure and are protected by - intellectual property laws. Except as expressly permitted in your license - agreement or allowed by law, you may not use, copy, reproduce, translate, - broadcast, modify, license, transmit, distribute, exhibit, perform, publish, - or display any part, in any form, or by any means. Reverse engineering, - disassembly, or decompilation of this software, unless required by law for - interoperability, is prohibited. + This distribution may include materials developed by third parties. + For license and attribution notices for these materials, + please refer to the LICENSE file. . - If this software or related documentation is delivered to the U.S. - Government or anyone licensing it on behalf of the U.S. Government, the - following notice is applicable: + For more information on MySQL, visit + https://docs.oracle.com/cd/E17952_01/mysql-5.6-en/index.html + or http://dev.mysql.com/doc/ . - U.S. GOVERNMENT RIGHTS Programs, software, databases, and related - documentation and technical data delivered to U.S. Government customers are - "commercial computer software" or "commercial technical data" pursuant to - the applicable Federal Acquisition Regulation and agency-specific - supplemental regulations. As such, the use, duplication, disclosure, - modification, and adaptation shall be subject to the restrictions and - license terms set forth in the applicable Government contract, and, to the - extent applicable by the terms of the Government contract, the additional - rights set forth in FAR 52.227-19, Commercial Computer Software License - (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA - 94065. + For additional downloads of MySQL, visit + https://support.oracle.com/ . - This software is developed for general use in a variety of information - management applications. It is not developed or intended for use in any - inherently dangerous applications, including applications which may create a - risk of personal injury. If you use this software in dangerous applications, - then you shall be responsible to take all appropriate fail-safe, backup, - redundancy, and other measures to ensure the safe use of this software. - Oracle Corporation and its affiliates disclaim any liability for any damages - caused by use of this software in dangerous applications. - . - Oracle is a registered trademark of Oracle Corporation and/or its - affiliates. Other names may be trademarks of their respective owners. - . - This software and documentation may provide access to or information on - content, products, and services from third parties. Oracle Corporation and - its affiliates are not responsible for and expressly disclaim all warranties - of any kind with respect to third-party content, products, and services. - Oracle Corporation and its affiliates will not be responsible for any loss, - costs, or damages incurred due to your access to or use of third-party - content, products, or services. + MySQL is brought to you by the MySQL team at Oracle. diff --git a/packaging/deb-in/copyright.gpl.in b/packaging/deb-in/copyright.gpl.in index 45563622359f..c9ebaacd3cc7 100644 --- a/packaging/deb-in/copyright.gpl.in +++ b/packaging/deb-in/copyright.gpl.in @@ -3,39 +3,20 @@ Upstream-Name: @DEB_COPYRIGHT_UPSTREAMNAME@ Upstream-Contact: MySQL Release Engineering Source: http://dev.mysql.com/ -Copyright: 2000, 2018, Oracle and/or its affiliates. All rights reserved. +Copyright: 2000, 2019, Oracle and/or its affiliates. All rights reserved. License: - This is a release of MySQL, a dual-license SQL database server. - For the avoidance of doubt, this particular copy of the software - is released under the version 2 of the GNU General Public License. - MySQL is brought to you by Oracle. + This is a release of MySQL, an SQL database server. . - MySQL FOSS License Exception - We want free and open source software applications under certain - licenses to be able to use specified GPL-licensed MySQL client - libraries despite the fact that not all such FOSS licenses are - compatible with version 2 of the GNU General Public License. - Therefore there are special exceptions to the terms and conditions - of the GPLv2 as applied to these client libraries, which are - identified and described in more detail in the FOSS License - Exception at - . + License information can be found in the LICENSE file. . - This distribution may include materials developed by third - parties. For license and attribution notices for these - materials, please refer to the documentation that accompanies - this distribution (see the "Licenses for Third-Party Components" - appendix) or view the online documentation at - . + This distribution may include materials developed by third parties. + For license and attribution notices for these materials, + please refer to the LICENSE file. . - GPLv2 Disclaimer - For the avoidance of doubt, except that if any license choice - other than GPL or LGPL is available it will apply instead, - Oracle elects to use only the General Public License version 2 - (GPLv2) at this time for any software where a choice of GPL - license versions is made available with the language indicating - that GPLv2 or any later version may be used, or where a choice + For further information on MySQL or additional documentation, visit + http://dev.mysql.com/doc/ . - The full text of the GNU General Public License version 2 can - be found in the file - `/usr/share/mysql/doc/@DEB_INSTALL_LICENSEFILE@'. + For additional downloads and the source of MySQL, visit + http://dev.mysql.com/downloads/ + . + MySQL is brought to you by the MySQL team at Oracle. diff --git a/packaging/deb-in/libmysqlclient-dev.lintian-overrides.in b/packaging/deb-in/libmysqlclient-dev.lintian-overrides.in index 3b711ee2cf4b..c3fe70b430aa 100644 --- a/packaging/deb-in/libmysqlclient-dev.lintian-overrides.in +++ b/packaging/deb-in/libmysqlclient-dev.lintian-overrides.in @@ -1,4 +1,4 @@ -# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -21,8 +21,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Additional license file is needed so overriding this warning -libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/LICENSE.mysql -libmysqlclient-dev: extra-license-file usr/share/doc/libmysqlclient-dev/@DEB_INSTALL_LICENSEFILE@.gz +libmysqlclient-dev: extra-license-file libmysqlclient-dev: copyright-should-refer-to-common-license-file-for-lgpl # Due to static linking this cannot be avoided and hence being overridden libmysqlclient-dev: embedded-library diff --git a/packaging/deb-in/libmysqlclient18.lintian-overrides.in b/packaging/deb-in/libmysqlclient18.lintian-overrides.in index c8d384cf03f9..03665df8da22 100644 --- a/packaging/deb-in/libmysqlclient18.lintian-overrides.in +++ b/packaging/deb-in/libmysqlclient18.lintian-overrides.in @@ -1,4 +1,4 @@ -# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -21,7 +21,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Additional license file is needed so overriding this warning -libmysqlclient18: extra-license-file usr/share/doc/libmysqlclient18/@DEB_INSTALL_LICENSEFILE@.gz +libmysqlclient18: extra-license-file libmysqlclient18: copyright-should-refer-to-common-license-file-for-lgpl # Due to static linking this cannot be avoided and hence being overridden libmysqlclient18: embedded-library diff --git a/packaging/deb-in/libmysqld-dev.lintian-overrides.in b/packaging/deb-in/libmysqld-dev.lintian-overrides.in index 5b40a54137c3..8240950ec7bb 100644 --- a/packaging/deb-in/libmysqld-dev.lintian-overrides.in +++ b/packaging/deb-in/libmysqld-dev.lintian-overrides.in @@ -1,4 +1,4 @@ -# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -21,6 +21,5 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Additional license file is needed so overriding this warning -libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/LICENSE.mysql -libmysqld-dev: extra-license-file usr/share/doc/libmysqld-dev/@DEB_INSTALL_LICENSEFILE@.gz +libmysqld-dev: extra-license-file libmysqld-dev: copyright-should-refer-to-common-license-file-for-lgpl diff --git a/packaging/deb-in/mysql-client.lintian-overrides.in b/packaging/deb-in/mysql-client.lintian-overrides.in index 3f5022c8eada..a186d7d02b8f 100644 --- a/packaging/deb-in/mysql-client.lintian-overrides.in +++ b/packaging/deb-in/mysql-client.lintian-overrides.in @@ -1,4 +1,4 @@ -# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -21,6 +21,5 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Additional license file is needed so overriding this warning -mysql-client: extra-license-file usr/share/doc/mysql-client/LICENSE.mysql -mysql-client: extra-license-file usr/share/doc/mysql-client/@DEB_INSTALL_LICENSEFILE@.gz +mysql-client: extra-license-file mysql-client: copyright-should-refer-to-common-license-file-for-lgpl diff --git a/packaging/deb-in/mysql-common.lintian-overrides.in b/packaging/deb-in/mysql-common.lintian-overrides.in index 6a8725472adf..7148729731f2 100644 --- a/packaging/deb-in/mysql-common.lintian-overrides.in +++ b/packaging/deb-in/mysql-common.lintian-overrides.in @@ -1,4 +1,4 @@ -# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -21,6 +21,5 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Additional license file is needed so overriding this warning -mysql-common: extra-license-file usr/share/doc/mysql-common/LICENSE.mysql -mysql-common: extra-license-file usr/share/doc/mysql-common/@DEB_INSTALL_LICENSEFILE@.gz +mysql-common: extra-license-file mysql-common: copyright-should-refer-to-common-license-file-for-lgpl diff --git a/packaging/deb-in/mysql-packagesource-bench.lintian-overrides.in b/packaging/deb-in/mysql-packagesource-bench.lintian-overrides.in index 00af725a5c79..33382508c8a3 100644 --- a/packaging/deb-in/mysql-packagesource-bench.lintian-overrides.in +++ b/packaging/deb-in/mysql-packagesource-bench.lintian-overrides.in @@ -1,4 +1,4 @@ -# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -21,5 +21,5 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Additional license file is needed so overriding this warning -mysql-@DEB_PRODUCTNAME@-bench: extra-license-file usr/share/doc/mysql-@DEB_PRODUCTNAME@-bench/@DEB_INSTALL_LICENSEFILE@.gz +mysql-@DEB_PRODUCTNAME@-bench: extra-license-file mysql-community-bench: copyright-should-refer-to-common-license-file-for-lgpl diff --git a/packaging/deb-in/mysql-packagesource-client.lintian-overrides.in b/packaging/deb-in/mysql-packagesource-client.lintian-overrides.in index 0d1449e02e1c..01cb1cd363f8 100644 --- a/packaging/deb-in/mysql-packagesource-client.lintian-overrides.in +++ b/packaging/deb-in/mysql-packagesource-client.lintian-overrides.in @@ -1,4 +1,4 @@ -# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -21,8 +21,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Additional license file is needed so overriding this warning -mysql-@DEB_PRODUCTNAME@-client: extra-license-file usr/share/doc/mysql-@DEB_PRODUCTNAME@-client/LICENSE.mysql -mysql-@DEB_PRODUCTNAME@-client: extra-license-file usr/share/doc/mysql-@DEB_PRODUCTNAME@-client/@DEB_INSTALL_LICENSEFILE@.gz +mysql-@DEB_PRODUCTNAME@-client: extra-license-file mysql-@DEB_PRODUCTNAME@-client: copyright-should-refer-to-common-license-file-for-lgpl # Due to static linking this cannot be avoided and hence being overridden mysql-@DEB_PRODUCTNAME@-client: embedded-library diff --git a/packaging/deb-in/mysql-packagesource-server.lintian-overrides.in b/packaging/deb-in/mysql-packagesource-server.lintian-overrides.in index 020de514b0dc..423bc897e358 100644 --- a/packaging/deb-in/mysql-packagesource-server.lintian-overrides.in +++ b/packaging/deb-in/mysql-packagesource-server.lintian-overrides.in @@ -1,4 +1,4 @@ -# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -21,8 +21,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Additional license file is needed so overriding this warning -mysql-@DEB_PRODUCTNAME@-server: extra-license-file usr/share/doc/mysql-@DEB_PRODUCTNAME@-server/LICENSE.mysql -mysql-@DEB_PRODUCTNAME@-server: extra-license-file usr/share/doc/mysql-@DEB_PRODUCTNAME@-server/@DEB_INSTALL_LICENSEFILE@.gz +mysql-@DEB_PRODUCTNAME@-server: extra-license-file mysql-@DEB_PRODUCTNAME@-server: copyright-should-refer-to-common-license-file-for-lgpl # Due to static linking this cannot be avoided and hence being overridden mysql-@DEB_PRODUCTNAME@-server: embedded-library diff --git a/packaging/deb-in/mysql-packagesource-source.lintian-overrides.in b/packaging/deb-in/mysql-packagesource-source.lintian-overrides.in index b90cfd826936..8f520b66280f 100644 --- a/packaging/deb-in/mysql-packagesource-source.lintian-overrides.in +++ b/packaging/deb-in/mysql-packagesource-source.lintian-overrides.in @@ -1,4 +1,4 @@ -# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -21,6 +21,5 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Additional license file is needed so overriding this warning -mysql-@DEB_PRODUCTNAME@-source: extra-license-file usr/share/doc/mysql-@DEB_PRODUCTNAME@-source/LICENSE.mysql -mysql-@DEB_PRODUCTNAME@-source: extra-license-file usr/share/doc/mysql-@DEB_PRODUCTNAME@-source/@DEB_INSTALL_LICENSEFILE@.gz +mysql-@DEB_PRODUCTNAME@-source: extra-license-file mysql-@DEB_PRODUCTNAME@-source: copyright-should-refer-to-common-license-file-for-lgpl diff --git a/packaging/deb-in/mysql-packagesource-test.lintian-overrides.in b/packaging/deb-in/mysql-packagesource-test.lintian-overrides.in index af3e36c5f9ba..a99feff69d7e 100644 --- a/packaging/deb-in/mysql-packagesource-test.lintian-overrides.in +++ b/packaging/deb-in/mysql-packagesource-test.lintian-overrides.in @@ -1,4 +1,4 @@ -# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -21,6 +21,5 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Additional license file is needed so overriding this warning -mysql-@DEB_PRODUCTNAME@-test: extra-license-file usr/share/doc/mysql-@DEB_PRODUCTNAME@-test/LICENSE.mysql -mysql-@DEB_PRODUCTNAME@-test: extra-license-file usr/share/doc/mysql-@DEB_PRODUCTNAME@-test/@DEB_INSTALL_LICENSEFILE@.gz +mysql-@DEB_PRODUCTNAME@-test: extra-license-file mysql-@DEB_PRODUCTNAME@-test: copyright-should-refer-to-common-license-file-for-lgpl diff --git a/packaging/deb-in/mysql-server.lintian-overrides.in b/packaging/deb-in/mysql-server.lintian-overrides.in index d4d6279ad497..177498653d2a 100644 --- a/packaging/deb-in/mysql-server.lintian-overrides.in +++ b/packaging/deb-in/mysql-server.lintian-overrides.in @@ -1,4 +1,4 @@ -# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -21,6 +21,5 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Additional license file is needed so overriding this warning -mysql-server: extra-license-file usr/share/doc/mysql-server/LICENSE.mysql -mysql-server: extra-license-file usr/share/doc/mysql-server/@DEB_INSTALL_LICENSEFILE@.gz +mysql-server: extra-license-file mysql-server: copyright-should-refer-to-common-license-file-for-lgpl diff --git a/packaging/deb-in/mysql-testsuite.lintian-overrides.in b/packaging/deb-in/mysql-testsuite.lintian-overrides.in index 997edc0ec286..776c15309150 100644 --- a/packaging/deb-in/mysql-testsuite.lintian-overrides.in +++ b/packaging/deb-in/mysql-testsuite.lintian-overrides.in @@ -1,4 +1,4 @@ -# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0, @@ -21,6 +21,5 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Additional license file is needed so overriding this warning -mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/LICENSE.mysql -mysql-testsuite: extra-license-file usr/share/doc/mysql-testsuite/@DEB_INSTALL_LICENSEFILE@.gz +mysql-testsuite: extra-license-file mysql-testsuite: copyright-should-refer-to-common-license-file-for-lgpl diff --git a/packaging/rpm-docker/mysql.spec.in b/packaging/rpm-docker/mysql.spec.in index ee41dbd86e59..3258fb844616 100644 --- a/packaging/rpm-docker/mysql.spec.in +++ b/packaging/rpm-docker/mysql.spec.in @@ -17,7 +17,7 @@ # GNU General Public License, version 2.0, for more details. # # You should have received a copy of the GNU General Public License -# along with this program; see the file COPYING. If not, write to the +# along with this program. If not, write to the # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston # MA 02110-1301 USA. @@ -35,11 +35,11 @@ %global src_dir %{src_base}-%{version} +%global license_files_server %{src_dir}/LICENSE %{src_dir}/README + %if 0%{?commercial} -%global license_files_server %{src_dir}/LICENSE.mysql %global license_type Commercial %else -%global license_files_server %{src_dir}/COPYING %{src_dir}/README %global license_type GPLv2 %endif @@ -309,6 +309,9 @@ rm -r $(readlink var) var %dir %attr(750, mysql, mysql) /var/lib/mysql-files %changelog +* Thu Sep 05 2019 Bjorn Munch - 5.6.46-1 +- Add License Book, remove COPYING + * Tue Sep 13 2016 Balasubramanian Kandasamy - 5.6.34-1 - Add connection_control.so to server subpackage diff --git a/packaging/rpm-fedora/mysql.spec.in b/packaging/rpm-fedora/mysql.spec.in index ace017b91bd9..5fb1aa731cf4 100644 --- a/packaging/rpm-fedora/mysql.spec.in +++ b/packaging/rpm-fedora/mysql.spec.in @@ -17,7 +17,7 @@ # GNU General Public License, version 2.0, for more details. # # You should have received a copy of the GNU General Public License -# along with this program; see the file COPYING. If not, write to the +# along with this program. If not, write to the # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston # MA 02110-1301 USA. @@ -53,11 +53,10 @@ # multiarch %global multiarchs ppc %{power64} %{ix86} x86_64 %{sparc} +%global license_files_server %{src_dir}/LICENSE %{src_dir}/README %if 0%{?commercial} -%global license_files_server %{src_dir}/LICENSE.mysql %global license_type Commercial %else -%global license_files_server %{src_dir}/COPYING %{src_dir}/README %global license_type GPLv2 %endif @@ -726,6 +725,9 @@ rm -r $(readlink var) var %attr(755, root, root) %{_libdir}/mysql/libmysqld.so %changelog +* Thu Sep 05 2019 Bjorn Munch - 5.6.46-1 +- Add License Book, remove COPYING + * Wed Jan 10 2018 Bjorn Munch - 5.6.40-1 - No longer need to remove obsoleted mysqltest man pages diff --git a/packaging/rpm-oel/mysql.spec.in b/packaging/rpm-oel/mysql.spec.in index 6ee11543840b..8327788c2c6c 100644 --- a/packaging/rpm-oel/mysql.spec.in +++ b/packaging/rpm-oel/mysql.spec.in @@ -17,7 +17,7 @@ # GNU General Public License, version 2.0, for more details. # # You should have received a copy of the GNU General Public License -# along with this program; see the file COPYING. If not, write to the +# along with this program. If not, write to the # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston # MA 02110-1301 USA. @@ -80,11 +80,11 @@ %global __os_install_post /usr/lib/rpm/brp-compress %{nil} %endif +%global license_files_server %{src_dir}/LICENSE %{src_dir}/README + %if 0%{?commercial} -%global license_files_server %{src_dir}/LICENSE.mysql %global license_type Commercial %else -%global license_files_server %{src_dir}/COPYING %{src_dir}/README %global license_type GPLv2 %endif @@ -958,6 +958,9 @@ fi %endif %changelog +* Thu Sep 05 2019 Bjorn Munch - 5.6.46-1 +- Add License Book, remove COPYING + * Wed Jan 10 2018 Bjorn Munch - 5.6.40-1 - No longer need to remove obsoleted mysqltest man pages diff --git a/packaging/rpm-sles/mysql.spec.in b/packaging/rpm-sles/mysql.spec.in index d5466b7d0279..3a1c8ee3a7d0 100644 --- a/packaging/rpm-sles/mysql.spec.in +++ b/packaging/rpm-sles/mysql.spec.in @@ -17,7 +17,7 @@ # GNU General Public License, version 2.0, for more details. # # You should have received a copy of the GNU General Public License -# along with this program; see the file COPYING. If not, write to the +# along with this program. If not, write to the # Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston # MA 02110-1301 USA. @@ -51,11 +51,11 @@ %global __os_install_post /usr/lib/rpm/brp-compress %{nil} %endif +%global license_files_server %{src_dir}/LICENSE %{src_dir}/README + %if 0%{?commercial} -%global license_files_server %{src_dir}/LICENSE.mysql %global license_type Commercial %else -%global license_files_server %{src_dir}/COPYING %{src_dir}/README %global license_type GPLv2 %endif @@ -826,6 +826,9 @@ fi %attr(755, root, root) %{_libdir}/mysql/libmysqld.so %changelog +* Thu Sep 05 2019 Bjorn Munch - 5.6.46-1 +- Add License Book, remove COPYING + * Wed Jan 10 2018 Bjorn Munch - 5.6.40-1 - No longer need to remove obsoleted mysqltest man pages diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index 12eb121d741c..6994413d1cd9 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -234,11 +234,10 @@ # Configuration based upon above user input, not to be set directly ############################################################################## +%define license_files_server %{src_dir}/LICENSE %{src_dir}/README %if 0%{?commercial} -%define license_files_server %{src_dir}/LICENSE.mysql %define license_type Commercial %else -%define license_files_server %{src_dir}/COPYING %{src_dir}/README %define license_type GPL %endif @@ -1236,6 +1235,9 @@ echo "=====" >> $STATUS_HISTORY # merging BK trees) ############################################################################## %changelog +* Thu Sep 05 2019 Bjorn Munch +- Add License Book, remove COPYING + * Wed Jan 10 2018 Bjorn Munch - No longer need to remove obsoleted mysqltest man pages From ba8d5d07c259dbcd4ce81121c173104a69ad1293 Mon Sep 17 00:00:00 2001 From: Piotr Obrzut Date: Wed, 25 Sep 2019 16:17:10 +0200 Subject: [PATCH 06/17] Bug #30323924 UNABLE TO UNISTALL MYSQL SERVER 5 .7 ON WINDOWS SERVER 2012 Problem: The failure of server msi service removal action would cause the entire uninstall process to fail. The action can fail for multiple reasons. Two known problems are localized Windows Server versions and change of the server install path. The report was filed against server 5.7, but server 5.6 suffers from the same issues. Solution: Made the service removal action handle install path changes and localized Windows (by using WMI instead of sc.exe). Additionally the service removal action was made non-critical (the fallback will require Windows restart). RB: 23053 --- packaging/WiX/mysql_server.wxs.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/WiX/mysql_server.wxs.in b/packaging/WiX/mysql_server.wxs.in index 405ab336a156..dbbf63f78837 100644 --- a/packaging/WiX/mysql_server.wxs.in +++ b/packaging/WiX/mysql_server.wxs.in @@ -176,12 +176,12 @@ INSTALLDIR2 - - + (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL") AND (NOT MYSQL_INSTALLER="YES") + From 84d381a1e1b7f4087383ff687c6b66a7e542dde8 Mon Sep 17 00:00:00 2001 From: Balasubramanian Kandasamy Date: Sun, 29 Sep 2019 19:13:20 +0200 Subject: [PATCH 07/17] Updated the GPL LIUMs for 5.6 Reviewed-by: Bjorn Munch --- LICENSE | 353 +++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 300 insertions(+), 53 deletions(-) diff --git a/LICENSE b/LICENSE index 1f1840d339a0..a004ce7ced8b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ Licensing Information User Manual -MySQL 5.6 +MySQL 5.6.46 (and later) __________________________________________________________________ Introduction @@ -8,18 +8,32 @@ Introduction This License Information User Manual contains Oracle's product license and other licensing information, including licensing information for third-party software which may be included in this distribution of - MySQL 5.6. + MySQL 5.6.46 (and later). - Last updated: August 2019 + Last updated: September 2019 Licensing Information -Product License - MySQL 5.6 - - This is a release of MySQL 5.6, the dual-license open-source RDBMS. For - the avoidance of doubt, this particular copy of the software is - released under version 2 of the GNU General Public License. MySQL 5.6 - is brought to you by the MySQL team at Oracle. + This is a release of MySQL 5.6.46 (and later), brought to you by the + MySQL team at Oracle. This software is released under version 2 of the + GNU General Public License (GPLv2), as set forth below, with the + following additional permissions: + + This distribution of MySQL 5.6.46 (and later) is distributed with + certain software (including but not limited to OpenSSL) that is + licensed under separate terms, as designated in a particular file or + component or in the license documentation. Without limiting your rights + under the GPLv2, the authors of MySQL hereby grant you an additional + permission to link the program and your derivative works with the + separately licensed software that they have included with the program. + + This distribution includes the MySQL C API client library + (libmysqlclient) otherwise known as MySQL Connector/C. Without limiting + the foregoing grant of rights under the GPLv2 and additional permission + as to separately licensed software, this Connector is also subject to + the Universal FOSS Exception, version 1.0, a copy of which is + reproduced below and can also be found along with its FAQ at + http://oss.oracle.com/licenses/universal-foss-exception. Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. @@ -404,33 +418,64 @@ you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. -MySQL FOSS License Exception - - We want free and open source software applications under certain - licenses to be able to use the GPL-licensed MySQL 5.6 despite the fact - that not all such FOSS licenses are compatible with version 2 of the - GNU General Public License. Therefore there are special exceptions to - the terms and conditions of the GPLv2 as applied to these client - libraries, which are identified and described in more detail in the - FOSS License Exception at - http://www.mysql.com/about/legal/licensing/foss-exception/. - - This software is OSI Certified Open Source Software. OSI Certified is a - certification mark of the Open Source Initiative. +The Universal FOSS Exception, Version 1.0 + + In addition to the rights set forth in the other license(s) included in + the distribution for this software, data, and/or documentation + (collectively the "Software", and such licenses collectively with this + additional permission the "Software License"), the copyright holders + wish to facilitate interoperability with other software, data, and/or + documentation distributed with complete corresponding source under a + license that is OSI-approved and/or categorized by the FSF as free + (collectively "Other FOSS"). We therefore hereby grant the following + additional permission with respect to the use and distribution of the + Software with Other FOSS, and the constants, function signatures, data + structures and other invocation methods used to run or interact with + each of them (as to each, such software's "Interfaces"): + i. The Software's Interfaces may, to the extent permitted by the + license of the Other FOSS, be copied into, used and distributed in + the Other FOSS in order to enable interoperability, without + requiring a change to the license of the Other FOSS other than as + to any Interfaces of the Software embedded therein. The Software's + Interfaces remain at all times under the Software License, + including without limitation as used in the Other FOSS (which upon + any such use also then contains a portion of the Software under the + Software License). + ii. The Other FOSS's Interfaces may, to the extent permitted by the + license of the Other FOSS, be copied into, used and distributed in + the Software in order to enable interoperability, without requiring + that such Interfaces be licensed under the terms of the Software + License or otherwise altering their original terms, if this does + not require any portion of the Software other than such Interfaces + to be licensed under the terms other than the Software License. + iii. If only Interfaces and no other code is copied between the + Software and the Other FOSS in either direction, the use and/or + distribution of the Software with the Other FOSS shall not be + deemed to require that the Other FOSS be licensed under the license + of the Software, other than as to any Interfaces of the Software + copied into the Other FOSS. This includes, by way of example and + without limitation, statically or dynamically linking the Software + together with Other FOSS after enabling interoperability using the + Interfaces of one or both, and distributing the resulting + combination under different licenses for the respective portions + thereof. For avoidance of doubt, a license which is OSI-approved or + categorized by the FSF as free, includes, for the purpose of this + permission, such licenses with additional permissions, and any + license that has previously been so approved or categorized as + free, even if now deprecated or otherwise no longer recognized as + approved or free. Nothing in this additional permission grants any + right to distribute any portion of the Software on terms other than + those of the Software License or grants any additional permission + of any kind for use or distribution of the Software in conjunction + with software other than Other FOSS. Licenses for Third-Party Components The following sections contain licensing information for libraries that - we have included with the MySQL 5.6 source and components used to test - MySQL 5.6. Commonly used licenses referenced herein can be found in - Commonly Used Licenses. We are thankful to all individuals that have - created these. - -GNU GPL Version 2 Third-Party Software Notice - - This product contains one or more software components provided under - version 2 of the GNU General Public License. See GNU General Public - License Version 2.0, June 1991, for the full text of this license. + we have included with the MySQL 5.6.46 (and later) source and + components used to test MySQL 5.6.46 (and later). Commonly used + licenses referenced herein can be found in Commonly Used Licenses. We + are thankful to all individuals that have created these. Boost Library @@ -1394,27 +1439,6 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -GNU Readline - - The following software may be included in this product: - - GNU Readline Library -GNU Readline Library -With respect to MySQL Server/Cluster software licensed -under GNU General Public License, you are receiving a -copy of the GNU Readline Library in source code. The -terms of any Oracle license that might accompany the -Oracle programs do NOT apply to the GNU Readline Library; -it is licensed under the following license, separately -from the Oracle programs you receive. Oracle elects to -use GNU General Public License version 2 (GPL) for any -software where a choice of GPL license versions are -made available with the language indicating that GPLv2 -or any later version may be used, or where a choice of -which version of the GPL is applied is unspecified. - - This component is licensed under the GNU GPL license, version 2.0. - Google C++ Mocking Framework (Google Mock) This Oracle Product includes or references Gmock (including gtest), @@ -3006,6 +3030,229 @@ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +OpenSSL License + + You are receiving a copy of OpenSSL as part of this product in object + code form. The terms of the Oracle license do NOT apply to OpenSSL. + OpenSSL is licensed under a double license, of the OpenSSL License and + the original SSLeay license, separate from the Oracle product. If you + do not wish to install this library, you may remove it, but the Oracle + program might not operate properly or at all without it. + LICENSE ISSUES + ============== + + The OpenSSL toolkit stays under a double license, i.e. both the conditions of + the OpenSSL License and the original SSLeay license apply to the toolkit. + See below for the actual license texts. Actually both licenses are BSD-style + Open Source licenses. In case of any license issues related to OpenSSL + please contact openssl-core@openssl.org. + + OpenSSL License + --------------- + +/* ==================================================================== + + * Copyright (c) 1998-2017 The OpenSSL Project. All rights reserved. + * + + * Redistribution and use in source and binary forms, with or without + + * modification, are permitted provided that the following conditions + + * are met: + * + + * 1. Redistributions of source code must retain the above copyright + + * notice, this list of conditions and the following disclaimer. + * + + * 2. Redistributions in binary form must reproduce the above copyright + + * notice, this list of conditions and the following disclaimer in + + * the documentation and/or other materials provided with the + + * distribution. + * + + * 3. All advertising materials mentioning features or use of this + + * software must display the following acknowledgment: + + * "This product includes software developed by the OpenSSL Project + + * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" + * + + * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to + + * endorse or promote products derived from this software without + + * prior written permission. For written permission, please contact + + * openssl-core@openssl.org. + * + + * 5. Products derived from this software may not be called "OpenSSL" + + * nor may "OpenSSL" appear in their names without prior written + + * permission of the OpenSSL Project. + * + + * 6. Redistributions of any form whatsoever must retain the following + + * acknowledgment: + + * "This product includes software developed by the OpenSSL Project + + * for use in the OpenSSL Toolkit (http://www.openssl.org/)" + * + + * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY + + * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR + + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, + + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + + * OF THE POSSIBILITY OF SUCH DAMAGE. + + * ==================================================================== + * + + * This product includes cryptographic software written by Eric Young + + * (eay@cryptsoft.com). This product includes software written by Tim + + * Hudson (tjh@cryptsoft.com). + * + */ + + Original SSLeay License + ----------------------- + +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) + + * All rights reserved. + * + + * This package is an SSL implementation written + + * by Eric Young (eay@cryptsoft.com). + + * The implementation was written so as to conform with Netscapes SSL. + * + + * This library is free for commercial and non-commercial use as long as + + * the following conditions are aheared to. The following conditions + + * apply to all code found in this distribution, be it the RC4, RSA, + + * lhash, DES, etc., code; not just the SSL code. The SSL documentation + + * included with this distribution is covered by the same copyright terms + + * except that the holder is Tim Hudson (tjh@cryptsoft.com). + * + + * Copyright remains Eric Young's, and as such any Copyright notices in + + * the code are not to be removed. + + * If this package is used in a product, Eric Young should be given attribution + + * as the author of the parts of the library used. + + * This can be in the form of a textual message at program startup or + + * in documentation (online or textual) provided with the package. + * + + * Redistribution and use in source and binary forms, with or without + + * modification, are permitted provided that the following conditions + + * are met: + + * 1. Redistributions of source code must retain the copyright + + * notice, this list of conditions and the following disclaimer. + + * 2. Redistributions in binary form must reproduce the above copyright + + * notice, this list of conditions and the following disclaimer in the + + * documentation and/or other materials provided with the distribution. + + * 3. All advertising materials mentioning features or use of this software + + * must display the following acknowledgement: + + * "This product includes cryptographic software written by + + * Eric Young (eay@cryptsoft.com)" + + * The word 'cryptographic' can be left out if the rouines from the library + + * being used are not cryptographic related :-). + + * 4. If you include any Windows specific code (or a derivative thereof) from + + * the apps directory (application code) you must include an acknowledgement: + + * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" + * + + * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND + + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + + * SUCH DAMAGE. + * + + * The licence and distribution terms for any publically available version or + + * derivative of this code cannot be changed. i.e. this code cannot simply be + + * copied and put under another distribution licence + + * [including the GNU Public Licence.] + */ + Percona Multiple I/O Threads Patch The following software may be included in this product: From a2a1fa2b18f1ddcf16fd54c730c0074becfcc9bc Mon Sep 17 00:00:00 2001 From: Srikanth B R Date: Fri, 18 Oct 2019 18:17:14 +0530 Subject: [PATCH 08/17] Bug#30429863 MTR: BACKPORT FIX RELATED TO VALGRIND TOOLS This is a backport of the patch for 'Bug#23713613: MTR DOES NOT ALLOW VALGRIND TO BE RUN WITH CUSTOM TOOL' Issue ===== - MTR can not be run with --valgrind-option=--tool= like massif/helgrind as it always adds the options for memcheck which can be invalid for other tools. - The MTR --callgrind option does not work as it supplies an invalid callgrind argument '--base'. Fix === - The patch restructures MTR to allow usage of the command line option --valgrind-option=--tool= and removes the invalid option '--base' which was being supplied to callgrind. - In addition, valgrind logs for tools like callgrind and massif are generated in the location /log Change-Id: I1b1e02061f3c029bb89818aee2f113f2b9effbfb --- mysql-test/include/mtr_warnings.sql | 8 +++ mysql-test/mysql-test-run.pl | 81 ++++++++++++++++++----------- 2 files changed, 59 insertions(+), 30 deletions(-) diff --git a/mysql-test/include/mtr_warnings.sql b/mysql-test/include/mtr_warnings.sql index e2289d11c247..da57f0091857 100644 --- a/mysql-test/include/mtr_warnings.sql +++ b/mysql-test/include/mtr_warnings.sql @@ -204,6 +204,14 @@ INSERT INTO global_suppressions VALUES ("==[0-9]*== Warning: set address range perms: large range"), /* valgrind-3.5.0 dumps this */ ("==[0-9]*== Command: "), + /* Messages from valgrind tools */ + ("==[0-9]*== Callgrind"), + ("==[0-9]*== For interactive control, run 'callgrind_control -h'"), + ("==[0-9]*== Events :"), + ("==[0-9]*== Collected : [0-9]+"), + ("==[0-9]*== I refs: [0-9]+"), + ("==[0-9]*== Massif"), + ("==[0-9]*== Helgrind"), /* valgrind warnings: invalid file descriptor -1 in syscall write()/read(). Bug #50414 */ diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 691588910e53..39a41abffc72 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -302,7 +302,6 @@ END our $opt_valgrind= 0; my $opt_valgrind_mysqld= 0; my $opt_valgrind_mysqltest= 0; -my @default_valgrind_args= ("--show-reachable=yes"); my @valgrind_args; my $opt_valgrind_path; my $valgrind_reports= 0; @@ -1687,6 +1686,16 @@ sub command_line_setup { "for option --testsuite-timeout") if ($opt_suite_timeout <= 0); + # -------------------------------------------------------------------------- + # Check trace protocol option + # -------------------------------------------------------------------------- + if ( $opt_trace_protocol ) + { + push(@opt_extra_mysqld_opt, "--optimizer_trace=enabled=on,one_line=off"); + # Some queries yield big traces: + push(@opt_extra_mysqld_opt, "--optimizer-trace-max-mem-size=1000000"); + } + # -------------------------------------------------------------------------- # Check valgrind arguments # -------------------------------------------------------------------------- @@ -1720,32 +1729,40 @@ sub command_line_setup { $opt_valgrind= 1; $opt_valgrind_mysqld= 1; - # Set special valgrind options unless options passed on command line - push(@valgrind_args, "--trace-children=yes") - unless @valgrind_args; - } + push(@valgrind_args, "--tool=callgrind", "--trace-children=yes"); - if ( $opt_trace_protocol ) - { - push(@opt_extra_mysqld_opt, "--optimizer_trace=enabled=on,one_line=off"); - # some queries yield big traces: - push(@opt_extra_mysqld_opt, "--optimizer-trace-max-mem-size=1000000"); + # Increase the timeouts when running with callgrind + $opt_testcase_timeout*= 10; + $opt_suite_timeout*= 6; + $opt_start_timeout*= 10; + $opt_debug_sync_timeout*= 10; } - if ( $opt_valgrind ) + if ($opt_valgrind) { - # Set valgrind_options to default unless already defined - push(@valgrind_args, @default_valgrind_args) - unless @valgrind_args; + # Default to --tool=memcheck if no other tool has been explicitly + # specified. From >= 2.1.2, this option is needed + if (!@valgrind_args or !grep(/^--tool=/, @valgrind_args)) + { + # Set default valgrind options for memcheck, can be overriden by user + unshift(@valgrind_args, ("--tool=memcheck", "--num-callers=16", + "--show-reachable=yes")); + } - # Don't add --quiet; you will loose the summary reports. + # Add suppression file if not specified + if (!grep(/^--suppressions=/, @valgrind_args)) + { + push(@valgrind_args,"--suppressions=${glob_mysql_test_dir}/valgrind.supp") + if -f "$glob_mysql_test_dir/valgrind.supp"; + } + # Don't add --quiet; you will loose the summary reports. mtr_report("Running valgrind with options \"", - join(" ", @valgrind_args), "\""); - + join(" ", @valgrind_args), "\""); + # Turn off check testcases to save time mtr_report("Turning off --check-testcases to save time when valgrinding"); - $opt_check_testcases = 0; + $opt_check_testcases = 0; } if ($opt_debug_common) @@ -5304,7 +5321,7 @@ ($$) if ( $opt_valgrind_mysqld ) { - valgrind_arguments($args, \$exe); + valgrind_arguments($args, \$exe, $mysqld->name()); } mtr_add_arg($args, "--defaults-group-suffix=%s", $mysqld->after('mysqld')); @@ -6335,19 +6352,23 @@ sub strace_server_arguments { sub valgrind_arguments { my $args= shift; my $exe= shift; + my $report_prefix= shift; - if ( $opt_callgrind) + if (my @tool_list= grep(/^--tool=(memcheck|callgrind|massif)/, @valgrind_args)) { - mtr_add_arg($args, "--tool=callgrind"); - mtr_add_arg($args, "--base=$opt_vardir/log"); - } - else - { - mtr_add_arg($args, "--tool=memcheck"); # From >= 2.1.2 needs this option - mtr_add_arg($args, "--leak-check=yes"); - mtr_add_arg($args, "--num-callers=16"); - mtr_add_arg($args, "--suppressions=%s/valgrind.supp", $glob_mysql_test_dir) - if -f "$glob_mysql_test_dir/valgrind.supp"; + # Get the value of the last specified --tool=<> argument to valgrind + my ($tool_name)= $tool_list[-1] =~ /(memcheck|callgrind|massif)$/; + if ($tool_name=~ /memcheck/) + { + mtr_add_arg($args, "--leak-check=yes") ; + } + else + { + $$exe=~ /.*[\/](.*)$/; + my $report_prefix= defined $report_prefix ? $report_prefix : $1; + mtr_add_arg($args, "--$tool_name-out-file=$opt_vardir/log/". + "$report_prefix"."_$tool_name.out.%%p"); + } } # Add valgrind options, can be overriden by user From d8439a67977a8bb5d77de48712a749eea1d03b17 Mon Sep 17 00:00:00 2001 From: Chandan Kunal Date: Tue, 12 Nov 2019 19:45:54 +0530 Subject: [PATCH 09/17] Bug #29770705: SERVER CRASHED WHILE EXECUTING SELECT WITH SPECIFIC WHERE CLAUSE Description: ============ If a condition ANDed with another condition having multiple ORs results in an impossible range, then server exits trying to use the ANDed condition next time as it was deleted already. ANALYSIS: ========= For the query in bugpage, when t.b=4000 gets ANDed with t.b = 10, it leads to an impossible range which results in deletion of the node in the tree. However the same condition needs to be ANDed with another condition as part of the OR. This leads to assertion as the tree is already deleted. The assumption for deletion is that, if the node was needed, it would have been cloned already. However, cloning happens (in key_and) only when the use_count of the node is higher than "1" which is not true for this case. SOLUTION: ========= In 5.7 and below, use_count handling is not always correct. As this has completely changed in 8.0, we are not touching use_count handling to fix this problem. Instead we use the "clone_flag" to determine if a key needs to be cloned. "clone_flag" is set to true if the conditions which need to be ANDed (in tree_and) are not simple (has many OR conditions within). This information is passed to key_and and other helper functions. Use the same along with use_count check, to clone a key tree. Change-Id: Iaf7c8d9ff11e2f328ef31376bc19211af7d02a9b --- sql/opt_range.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 0f7d602d4ab4..e326b92e3e95 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -1,4 +1,4 @@ -/* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights +/* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights * reserved. This program is free software; you can redistribute it and/or modify @@ -7605,7 +7605,13 @@ key_and(RANGE_OPT_PARAM *param, SEL_ARG *key1, SEL_ARG *key2, uint clone_flag) } // key1->part < key2->part key1->use_count--; - if (key1->use_count > 0) + /* + Clone key1 if the use_count is greater than 0 otherwise use the + "clone_flag" to determine if a key needs to be cloned. + "clone_flag" is set to true if the conditions which need to be + ANDed (in tree_and) are not simple (has many OR conditions within). + */ + if (key1->use_count > 0 || (clone_flag & CLONE_KEY2_MAYBE)) if (!(key1= key1->clone_tree(param))) return 0; // OOM return and_all_keys(param, key1, key2, clone_flag); From 70bb88ede1cfe789488e82266876049678ddc53e Mon Sep 17 00:00:00 2001 From: Venkatesh Venugopal Date: Tue, 19 Nov 2019 12:29:18 +0530 Subject: [PATCH 10/17] Bug#29769293: ERROR 1236 "MASTER HAS PURGED BINARY LOGS CONTAINING GTIDS": GTID NOT LOGGED This is a backport of Bug#26004541. Description ----------- A misleading error message is outputted when ER_MASTER_HAS_PURGED_REQUIRED_GTIDS error is generated. The message should be changed and the user should be informed about the missing transactions and should be guided to a solution. Analysis -------- - Message is stored in errmsg-utf8.txt. - The error message gets trimmed by wrapping error message defined in errmsg-utf8.txt. ER_MASTER_FATAL_ERROR_READING_BINLOG truncates the message if the message is of length more than 320 characters. - Increasing the message max length, for debugging purposes, disclosed another problem, the lack of escaping in ./include/show_slave_status.inc, which got broken because of unescaped '"' in the error message while executing: --let $_show_slave_status_value= SELECT REPLACE("$_show_slave_status_value", '$MYSQL_TEST_DIR', 'MYSQL_TEST_DIR') Fix --- - Log the missing GTIDs to the master's error log as a warning. If the missing GTIDs are too long to print in the message, suggest the steps to extract the missing transactions. - Write a not misleading error message that gives information about the GTID set sent by the slave, transactions missing on the master and few suggestions to recover from the error. This message shall be sent to slave and will be logged as an error wrapped by ER_MASTER_FATAL_ERROR_READING_BINLOG. - Increase the length of the wrapped error message to 512 characters. As a result, ER_MASTER_FATAL_ERROR_READING_BINLOG is now capable of wrapping the messages of length upto 512 characters. - Replace occurrences of old message in related test and result files. - Created escape_sql.inc script, providing SQL escaping functionality. Reviewed by: Pedro Figueiredo Reviewed by: Pedro Gomes RB: 22926, 23030, 23031 --- mysql-test/include/escape_sql.inc | 60 +++++++ mysql-test/include/show_slave_status.inc | 9 + ...gtid_deleted_binlog_fail_to_connect.result | 69 ++++++++ .../r/rpl_gtid_purged_fail_to_connect.result | 63 +++++-- .../r/rpl_gtid_validate_slave_gtids.result | 8 +- ...l_gtid_deleted_binlog_fail_to_connect.test | 144 ++++++++++++++++ .../t/rpl_gtid_purged_fail_to_connect.test | 140 +++++++++++---- .../rpl/t/rpl_gtid_validate_slave_gtids.test | 15 +- sql/binlog.cc | 162 +++++++++++++++++- sql/binlog.h | 51 +++++- sql/log.cc | 6 +- sql/log.h | 6 +- sql/rpl_gtid.h | 4 +- sql/rpl_gtid_set.cc | 11 +- sql/rpl_master.cc | 6 +- sql/share/errmsg-utf8.txt | 24 +-- 16 files changed, 697 insertions(+), 81 deletions(-) create mode 100644 mysql-test/include/escape_sql.inc create mode 100644 mysql-test/suite/rpl/r/rpl_gtid_deleted_binlog_fail_to_connect.result create mode 100644 mysql-test/suite/rpl/t/rpl_gtid_deleted_binlog_fail_to_connect.test diff --git a/mysql-test/include/escape_sql.inc b/mysql-test/include/escape_sql.inc new file mode 100644 index 000000000000..e827ea5a766a --- /dev/null +++ b/mysql-test/include/escape_sql.inc @@ -0,0 +1,60 @@ +# ==== Purpose ==== +# +# Escape occurences of " or ' in a string, in order to be used inside +# an SQL statement. +# +# ==== Usage ==== +# +# --let $escape_string= String +# [--let $enclosing_char= "|' (default is ")] +# --source include/escape_sql.inc +# --echo $escape_string +# +# Parameters: +# $escape_string +# String to search for occurences of the $enclosing_char and +# escape them according to SQL syntax. It is also the output +# parameter. + +# $enclosing_char +# The character that will be used to enclose $escape_string when +# included in an SQL statement. +# + +if (!$escape_string) +{ + --die Error: set $escape_string before sourcing escape_sql.inc +} + +if ($escape_string != '') +{ + --let $_enclosing_char= " + if ($enclosing_char) + { + --let $_enclosing_char= $enclosing_char + } + + + --let $_output_filename= `SELECT UUID()` + --let $_output_filename= $MYSQLTEST_VARDIR/tmp/$_output_filename + --let full_output_filename= $_output_filename + --let to_replace= $escape_string + --let used_quote= $_enclosing_char + + perl; + my $out= $ENV{'full_output_filename'}; + my $to_replace= $ENV{'to_replace'}; + my $quote= $ENV{'used_quote'}; + + $to_replace =~ s/$quote/$quote$quote/g; + + open(FILE, ">", $out) or die "Error $? opening $output_filename: $!"; + print FILE $to_replace or die "Error $? writing to $output_filename: $!"; + close FILE or die "Error $? closing $output_filename: $!"; + chmod 0777, $out; + EOF + + --let $escape_string= `SELECT LOAD_FILE('$_output_filename')` +} +# Cleanup +--remove_file $_output_filename diff --git a/mysql-test/include/show_slave_status.inc b/mysql-test/include/show_slave_status.inc index 85acb008ef6f..6eb72d7866fc 100644 --- a/mysql-test/include/show_slave_status.inc +++ b/mysql-test/include/show_slave_status.inc @@ -93,6 +93,15 @@ while ($_show_slave_status_items) --let $_show_slave_status_items= `SELECT LTRIM(SUBSTRING('$_show_slave_status_items', LENGTH('$_show_slave_status_name') + 2))` --let $_show_slave_status_value= query_get_value(SHOW SLAVE STATUS, $_show_slave_status_name, 1) + + if ($_show_slave_status_value) + { + --let $escape_string= $_show_slave_status_value + --let $enclosing_char= " + --source include/escape_sql.inc + --let $_show_slave_status_value= $escape_string + } + --let $_slave_field_result_replace= /[\\]/\// $slave_field_result_replace --replace_regex $_slave_field_result_replace --let $_show_slave_status_value= `SELECT REPLACE("$_show_slave_status_value", '$MYSQL_TEST_DIR', 'MYSQL_TEST_DIR')` diff --git a/mysql-test/suite/rpl/r/rpl_gtid_deleted_binlog_fail_to_connect.result b/mysql-test/suite/rpl/r/rpl_gtid_deleted_binlog_fail_to_connect.result new file mode 100644 index 000000000000..b17fd65fdc55 --- /dev/null +++ b/mysql-test/suite/rpl/r/rpl_gtid_deleted_binlog_fail_to_connect.result @@ -0,0 +1,69 @@ +# +# 1) Create a master-slave setup. +# +include/master-slave.inc +Warnings: +Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. +Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. +[connection master] +# +# 2) Create a table on master, sync it, stop the slave threads and dump +# thread on master. +# +CREATE TABLE t1 (a INT) ENGINE = InnoDB; +include/sync_slave_sql_with_master.inc +include/stop_slave.inc +[connection master] +include/stop_dump_threads.inc +# +# 3) On master, generate a transaction, flush the binary log and delete +# the first binary logs so that only remaining binlog only contains +# transaction UUID:3. +# +INSERT INTO t1 VALUES (1); +FLUSH LOGS; +INSERT INTO t1 VALUES (2); +# +# 4) Verify that the slave fails if it tries to connect using CHANGE +# MASTER TO MASTER_AUTO_POSITION=1. +# +[connection slave] +CHANGE MASTER TO MASTER_AUTO_POSITION = 1; +START SLAVE; +include/wait_for_slave_io_error.inc [errno=1236 # ER_MASTER_FATAL_ERROR_READING_BINLOG] +include/stop_slave_sql.inc +# +# 5) Verify that appropriate messages are logged into master's and slave's +# error log. +# +include/assert_grep.inc [Found warning containing lost GTIDs in the master error log.] +include/assert_grep.inc [Found warning containing lost GTIDs in the slave error log.] +# +# 6) Verify that replication succeeds if it tries to connect using CHANGE +# MASTER TO MASTER_LOG_POS. +# +CHANGE MASTER TO MASTER_LOG_FILE = 'MASTER_FILE', MASTER_LOG_POS = MASTER_POS, MASTER_AUTO_POSITION = 0; +include/start_slave.inc +include/assert.inc [t1 should contain only one row with the value 2] +[connection master] +CALL mtr.add_suppression("Cannot replicate to server.*server has purged required binary logs.*"); +CALL mtr.add_suppression("Failed to open log"); +CALL mtr.add_suppression("Could not open log"); +[connection slave] +CALL mtr.add_suppression("Got fatal error 1236 from master.*Replicate the missing transactions from elsewhere"); +include/stop_slave.inc +# +# 7) Cleanup. +# +RESET MASTER; +RESET SLAVE; +[connection master] +RESET MASTER; +Warnings: +Warning 1612 Being purged log ./master-bin.000001 was not found +[connection slave] +include/start_slave.inc +[connection master] +DROP TABLE t1; +include/sync_slave_sql_with_master.inc +include/rpl_end.inc diff --git a/mysql-test/suite/rpl/r/rpl_gtid_purged_fail_to_connect.result b/mysql-test/suite/rpl/r/rpl_gtid_purged_fail_to_connect.result index 6310fd7a33a2..4f032a4dcb40 100644 --- a/mysql-test/suite/rpl/r/rpl_gtid_purged_fail_to_connect.result +++ b/mysql-test/suite/rpl/r/rpl_gtid_purged_fail_to_connect.result @@ -1,37 +1,80 @@ +# +# 1) Create a master-slave setup. +# include/master-slave.inc Warnings: Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information. [connection master] -call mtr.add_suppression("Got fatal error 1236 from master when reading data from binary log: 'The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires."); -######## Initialize ######## +# +# 2) Create a table on master, sync it, stop the slave threads and dump +# thread on master. +# CREATE TABLE t1 (a INT) ENGINE = InnoDB; include/sync_slave_sql_with_master.inc include/stop_slave.inc +[connection master] include/stop_dump_threads.inc +# +# 3) On master, generate a transaction, flush the binary log and execute +# PURGE BINARY LOGS TO command so that only remaining binlog only contains +# transaction UUID:3. +# INSERT INTO t1 VALUES (1); FLUSH LOGS; INSERT INTO t1 VALUES (2); PURGE BINARY LOGS TO 'master-bin.000002'; -include/assert.inc [PURGE BINARY LOGS successfully removed all but the latest files] -INSERT INTO t1 VALUES (2); +include/assert.inc [PURGE BINARY LOGS successfully removed all but the latest file] +# +# 4) Verify that the slave fails if it tries to connect using CHANGE +# MASTER TO MASTER_AUTO_POSITION=1. +# +[connection slave] CHANGE MASTER TO MASTER_AUTO_POSITION = 1; START SLAVE; include/wait_for_slave_io_error.inc [errno=1236 # ER_MASTER_FATAL_ERROR_READING_BINLOG] include/stop_slave_sql.inc -CHANGE MASTER TO MASTER_LOG_FILE = 'master-bin.000002', MASTER_LOG_POS = MASTER_POS, MASTER_AUTO_POSITION = 0; +[connection master] +SET @saved_debug= @@GLOBAL.DEBUG; +SET GLOBAL DEBUG= '+d,simulate_long_missing_gtids'; +[connection slave] +START SLAVE; +include/wait_for_slave_io_error.inc [errno=1236 # ER_MASTER_FATAL_ERROR_READING_BINLOG] +include/stop_slave_sql.inc +[connection master] +SET GLOBAL DEBUG= @saved_debug; +[connection slave] +# +# 5) Verify that appropriate messages are logged into master's and slave's +# error log. +# +include/assert_grep.inc [Found the suggestions to extract the missing GTIDs in the master error log.] +include/assert_grep.inc [Found a message about the long GTIDs in the slave error log.] +# +# 6) Verify that replication succeeds if it tries to connect using CHANGE +# MASTER TO MASTER_LOG_POS. +# +CHANGE MASTER TO MASTER_LOG_FILE = 'MASTER_FILE', MASTER_LOG_POS = MASTER_POS, MASTER_AUTO_POSITION = 0; include/start_slave.inc include/assert.inc [t1 should contain only one row with the value 2] -######## Clean up ######## -=== Stop and reset slave/master (connection slave) ==== +include/assert_grep.inc [Found warning containing lost GTIDs in the master error log.] +include/assert_grep.inc [Found warning containing lost GTIDs in the slave error log.] +[connection master] +CALL mtr.add_suppression("Cannot replicate to server.*server has purged required binary logs.*"); +[connection slave] +CALL mtr.add_suppression("Got fatal error 1236 from master.*Replicate the missing transactions from elsewhere"); +# +# 7) Cleanup. +# +[connection slave] include/stop_slave.inc RESET MASTER; RESET SLAVE; -=== Stop and reset master (connection master) ==== +[connection master] RESET MASTER; -=== Start slave (connection slave) ==== +[connection slave] include/start_slave.inc -=== Sync slave with master (connection master/slave) ==== +[connection master] DROP TABLE t1; include/sync_slave_sql_with_master.inc include/rpl_end.inc diff --git a/mysql-test/suite/rpl/r/rpl_gtid_validate_slave_gtids.result b/mysql-test/suite/rpl/r/rpl_gtid_validate_slave_gtids.result index 7e723082384b..b06d3159023e 100644 --- a/mysql-test/suite/rpl/r/rpl_gtid_validate_slave_gtids.result +++ b/mysql-test/suite/rpl/r/rpl_gtid_validate_slave_gtids.result @@ -8,12 +8,14 @@ CREATE TABLE t1(i INT); DROP TABLE t1; START SLAVE IO_THREAD; include/wait_for_slave_io_error.inc [errno=1236] -Last_IO_Error = 'Got fatal error 1236 from master when reading data from binary log: 'The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires.'' +Last_IO_Error = 'Got fatal error 1236 from master when reading data from binary log: 'The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires. Replicate the missing transactions from elsewhere, or provision a new slave from backup. Consider increasing the master's binary log expiration period. The GTID set sent by the slave is '', and the missing transactions are 'MASTER_UUID:1-2'.'' SET GLOBAL GTID_PURGED= "master_uuid:1-2"; include/start_slave.inc include/sync_slave_sql_with_master.inc include/assert.inc [Slave should be able to get GTID-3 and 4 now.] -call mtr.add_suppression(".*Master has purged binary logs containing GTIDs that the slave requires.*"); +CALL mtr.add_suppression(".*Cannot replicate.*purged required binary logs.*"); +CALL mtr.add_suppression(".*Master has purged binary logs containing GTIDs that the slave requires.*"); +include/assert_grep.inc [Found warning continaining lost GTIDs] include/rpl_reset.inc CREATE TABLE t1(i INT); DROP TABLE t1; @@ -21,7 +23,7 @@ include/stop_slave.inc include/rpl_restart_server.inc [server_number=1] START SLAVE IO_THREAD; include/wait_for_slave_io_error.inc [errno=1236] -Last_IO_Error = 'Got fatal error 1236 from master when reading data from binary log: 'Slave has more GTIDs than the master has, using the master's SERVER_UUID. This may indicate that the end of the binary log was truncated or that the last binary log file was lost, e.g., after a power or disk failure when sync_binlog != 1. The master may or may not have rolled back transactions that were already replica'' +Last_IO_Error = 'Got fatal error 1236 from master when reading data from binary log: 'Slave has more GTIDs than the master has, using the master's SERVER_UUID. This may indicate that the end of the binary log was truncated or that the last binary log file was lost, e.g., after a power or disk failure when sync_binlog != 1. The master may or may not have rolled back transactions that were already replicated to the slave. Suggest to replicate any transactions that master has rolled back from slave to master, and/or commit empty transactions on master to account for transactions that have been'' call mtr.add_suppression(".*Slave has more GTIDs than the master has.*"); SET GLOBAL GTID_PURGED= "master_uuid:1-2"; include/start_slave.inc diff --git a/mysql-test/suite/rpl/t/rpl_gtid_deleted_binlog_fail_to_connect.test b/mysql-test/suite/rpl/t/rpl_gtid_deleted_binlog_fail_to_connect.test new file mode 100644 index 000000000000..6fc791d7a183 --- /dev/null +++ b/mysql-test/suite/rpl/t/rpl_gtid_deleted_binlog_fail_to_connect.test @@ -0,0 +1,144 @@ +# ==== Purpose ==== +# +# Test that the slave fails to connect to the master with +# MASTER_AUTO_POSITION=1 if the slave is missing some transactions that +# the user has manually deleted the binary logs that slave requires. +# +# ==== Implementation ==== +# +# 1) Create a master-slave setup. +# 2) Create a table on master, sync it, stop the slave threads and dump thread +# on master. +# 3) On master, generate a transaction, flush the binary log and delete the +# first binary logs so that only remaining binlog only contains transaction +# UUID:3. +# 4) Verify that the slave fails if it tries to connect using CHANGE MASTER TO +# MASTER_AUTO_POSITION=1. +# 5) Verify that appropriate messages are logged into master's and slave's +# error log. +# 6) Verify that replication succeeds if it tries to connect using CHANGE +# MASTER TO MASTER_LOG_POS. +# 7) Cleanup. +# +# ==== References ==== +# +# Bug#29769293 - ERROR 1236 "MASTER HAS PURGED BINARY LOGS CONTAINING GTIDS": +# GTID NOT LOGGED + +# This test is binlog format agnostic +--source include/have_binlog_format_row.inc +--source include/have_debug.inc +--source include/have_gtid.inc +--let $rpl_gtid_utils= 1 + +--echo # +--echo # 1) Create a master-slave setup. +--echo # +--source include/master-slave.inc + +--let $master_uuid= `SELECT @@SERVER_UUID` + +--echo # +--echo # 2) Create a table on master, sync it, stop the slave threads and dump +--echo # thread on master. +--echo # +CREATE TABLE t1 (a INT) ENGINE = InnoDB; +--source include/sync_slave_sql_with_master.inc +--source include/stop_slave.inc + +--source include/rpl_connection_master.inc +# Need to kill the dump thread explicitly: stop slave does not do +# that, and if the dump thread is slow, it will still be reading from +# the old binlog at the time we do PURGE BINARY LOGS below. That would +# prevent PURGE BINARY LOGS from purging the log. +--source include/stop_dump_threads.inc + +--echo # +--echo # 3) On master, generate a transaction, flush the binary log and delete +--echo # the first binary logs so that only remaining binlog only contains +--echo # transaction UUID:3. +--echo # +INSERT INTO t1 VALUES (1); + +--let $master_file_old= query_get_value(SHOW MASTER STATUS, File, 1) +FLUSH LOGS; + +--let $master_file= query_get_value(SHOW MASTER STATUS, File, 1) +--let $master_pos= query_get_value(SHOW MASTER STATUS, Position, 1) +INSERT INTO t1 VALUES (2); +--save_master_pos + +# Remove the binary log manually +--let $MASTER_DATADIR= `select @@datadir` +--remove_file $MASTER_DATADIR/$master_file_old + +--echo # +--echo # 4) Verify that the slave fails if it tries to connect using CHANGE +--echo # MASTER TO MASTER_AUTO_POSITION=1. +--echo # +--source include/rpl_connection_slave.inc +CHANGE MASTER TO MASTER_AUTO_POSITION = 1; + +START SLAVE; + +--let $slave_io_errno= 1236 # ER_MASTER_FATAL_ERROR_READING_BINLOG +--source include/wait_for_slave_io_error.inc +--source include/stop_slave_sql.inc + +--echo # +--echo # 5) Verify that appropriate messages are logged into master's and slave's +--echo # error log. +--echo # + +# Verify that warning about the missing transactions are logged into the master's error log. +--let $assert_file=$MYSQLTEST_VARDIR/log/mysqld.1.err +--let $assert_match= .*Cannot replicate to server with server_uuid.*The missing transactions are '.*:1'.* +--let $assert_select= Cannot replicate to server with server_uuid +--let $assert_text= Found warning containing lost GTIDs in the master error log. +--source include/assert_grep.inc + +# Verify that an error about the missing transactions are logged into the slave's error log. +--let $assert_file=$MYSQLTEST_VARDIR/log/mysqld.2.err +--let $assert_match= .*Replicate the missing transactions from elsewhere, or provision a new slave from backup.*the missing transactions are '.*:1'.* +--let $assert_select= Replicate the missing transactions from elsewhere, or provision a new slave from backup +--let $assert_text= Found warning containing lost GTIDs in the slave error log. +--source include/assert_grep.inc + +--echo # +--echo # 6) Verify that replication succeeds if it tries to connect using CHANGE +--echo # MASTER TO MASTER_LOG_POS. +--echo # +--replace_result $master_file MASTER_FILE $master_pos MASTER_POS +--eval CHANGE MASTER TO MASTER_LOG_FILE = '$master_file', MASTER_LOG_POS = $master_pos, MASTER_AUTO_POSITION = 0 + +--source include/start_slave.inc +--sync_with_master + +--let $assert_text= t1 should contain only one row with the value 2 +--let $assert_cond= "[SELECT COUNT(*) FROM t1]" = "1" AND "[SELECT * FROM t1]" = "2" +--source include/assert.inc + +# Suppress the error on master. +--source include/rpl_connection_master.inc +CALL mtr.add_suppression("Cannot replicate to server.*server has purged required binary logs.*"); +CALL mtr.add_suppression("Failed to open log"); +CALL mtr.add_suppression("Could not open log"); + +# Suppress the error on slave. +--source include/rpl_connection_slave.inc +CALL mtr.add_suppression("Got fatal error 1236 from master.*Replicate the missing transactions from elsewhere"); +--source include/stop_slave.inc + +--echo # +--echo # 7) Cleanup. +--echo # +RESET MASTER; +RESET SLAVE; +--source include/rpl_connection_master.inc +RESET MASTER; +--source include/rpl_connection_slave.inc +--source include/start_slave.inc +--source include/rpl_connection_master.inc +DROP TABLE t1; +--source include/sync_slave_sql_with_master.inc +--source include/rpl_end.inc diff --git a/mysql-test/suite/rpl/t/rpl_gtid_purged_fail_to_connect.test b/mysql-test/suite/rpl/t/rpl_gtid_purged_fail_to_connect.test index 46cce3aa977e..e5a96b65e8ae 100644 --- a/mysql-test/suite/rpl/t/rpl_gtid_purged_fail_to_connect.test +++ b/mysql-test/suite/rpl/t/rpl_gtid_purged_fail_to_connect.test @@ -6,66 +6,124 @@ # # ==== Implementation ==== # -# Start master and slave, then stop the slave. Generate a transaction -# on master and purge it. Verify that the slave fails if it tries to -# connect using CHANGE MASTER TO MASTER_AUTO_POSITION, but the slave -# succeeds if it tries to connect using CHANGE MASTER TO -# MASTER_LOG_POS. +# 1) Create a master-slave setup. +# 2) Create a table on master, sync it, stop the slave threads and dump thread +# on master. +# 3) On master, generate a transaction, flush the binary log and execute PURGE +# BINARY LOGS TO command so that only remaining binlog only contains +# transaction UUID:3. +# 4) Verify that the slave fails if it tries to connect using CHANGE MASTER TO +# MASTER_AUTO_POSITION=1. +# 5) Verify that appropriate messages are logged into master's and slave's +# error log. +# 6) Verify that replication succeeds if it tries to connect using CHANGE +# MASTER TO MASTER_LOG_POS. +# 7) Cleanup. # # ==== References ==== # -# Added in WL#3584 - Global Transaction Identifiers +# WL#3584 - Global Transaction Identifiers +# Bug#29769293 - ERROR 1236 "MASTER HAS PURGED BINARY LOGS CONTAINING GTIDS": +# GTID NOT LOGGED --source include/have_debug.inc --source include/have_gtid.inc --let $rpl_gtid_utils= 1 ---source include/master-slave.inc - -call mtr.add_suppression("Got fatal error 1236 from master when reading data from binary log: 'The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires."); ---echo ######## Initialize ######## +--echo # +--echo # 1) Create a master-slave setup. +--echo # +--source include/master-slave.inc --let $master_uuid= `SELECT @@SERVER_UUID` + +--echo # +--echo # 2) Create a table on master, sync it, stop the slave threads and dump +--echo # thread on master. +--echo # CREATE TABLE t1 (a INT) ENGINE = InnoDB; --source include/sync_slave_sql_with_master.inc --source include/stop_slave.inc ---connection master +--source include/rpl_connection_master.inc # Need to kill the dump thread explicitly: stop slave does not do # that, and if the dump thread is slow, it will still be reading from # the old binlog at the time we do PURGE BINARY LOGS below. That would # prevent PURGE BINARY LOGS from purging the log. --source include/stop_dump_threads.inc +--echo # +--echo # 3) On master, generate a transaction, flush the binary log and execute +--echo # PURGE BINARY LOGS TO command so that only remaining binlog only contains +--echo # transaction UUID:3. +--echo # INSERT INTO t1 VALUES (1); FLUSH LOGS; --let $master_file= query_get_value(SHOW MASTER STATUS, File, 1) --let $master_pos= query_get_value(SHOW MASTER STATUS, Position, 1) INSERT INTO t1 VALUES (2); -eval PURGE BINARY LOGS TO '$master_file'; +--save_master_pos + +--eval PURGE BINARY LOGS TO '$master_file' --let $assert_cond= "[SHOW MASTER STATUS, File, 1]" = "$master_file" ---let $assert_text= PURGE BINARY LOGS successfully removed all but the latest files +--let $assert_text= PURGE BINARY LOGS successfully removed all but the latest file --source include/assert.inc ---let $master_file= query_get_value(SHOW MASTER STATUS, File, 1) ---let $master_pos= query_get_value(SHOW MASTER STATUS, Position, 1) -INSERT INTO t1 VALUES (2); ---save_master_pos - ---connection slave +--echo # +--echo # 4) Verify that the slave fails if it tries to connect using CHANGE +--echo # MASTER TO MASTER_AUTO_POSITION=1. +--echo # +--source include/rpl_connection_slave.inc CHANGE MASTER TO MASTER_AUTO_POSITION = 1; START SLAVE; + # BUG#13727933 causes this test to fail sporadically on the following line # apparently the binlog is not always purged on the master (?) --let $slave_io_errno= 1236 # ER_MASTER_FATAL_ERROR_READING_BINLOG --source include/wait_for_slave_io_error.inc --source include/stop_slave_sql.inc ---replace_result $master_file MASTER_FILE ---replace_result $master_pos MASTER_POS +# Testing with long set of gtids +--source include/rpl_connection_master.inc +SET @saved_debug= @@GLOBAL.DEBUG; +SET GLOBAL DEBUG= '+d,simulate_long_missing_gtids'; +--source include/rpl_connection_slave.inc +START SLAVE; + +--let $slave_io_errno= 1236 # ER_MASTER_FATAL_ERROR_READING_BINLOG +--source include/wait_for_slave_io_error.inc +--source include/stop_slave_sql.inc +--source include/rpl_connection_master.inc +SET GLOBAL DEBUG= @saved_debug; +--source include/rpl_connection_slave.inc + +--echo # +--echo # 5) Verify that appropriate messages are logged into master's and slave's +--echo # error log. +--echo # + +# Verify that suggestions to extract the missing gtids are logged into the master's error log. +--let $assert_file=$MYSQLTEST_VARDIR/log/mysqld.1.err +--let $assert_match= .*To find the missing purged transactions.* +--let $assert_select= To find the missing purged transactions +--let $assert_text= Found the suggestions to extract the missing GTIDs in the master error log. +--source include/assert_grep.inc + +# Verify that an error about long gtids are logged into the slave's error log. +--let $assert_file=$MYSQLTEST_VARDIR/log/mysqld.2.err +--let $assert_match= .*The GTID sets and the missing purged transactions are too long to print in this message.* +--let $assert_select= The GTID sets and the missing purged transactions are too long to print in this message. +--let $assert_text= Found a message about the long GTIDs in the slave error log. +--source include/assert_grep.inc + +--echo # +--echo # 6) Verify that replication succeeds if it tries to connect using CHANGE +--echo # MASTER TO MASTER_LOG_POS. +--echo # +--replace_result $master_file MASTER_FILE $master_pos MASTER_POS eval CHANGE MASTER TO MASTER_LOG_FILE = '$master_file', MASTER_LOG_POS = $master_pos, MASTER_AUTO_POSITION = 0; --source include/start_slave.inc @@ -75,22 +133,40 @@ eval CHANGE MASTER TO MASTER_LOG_FILE = '$master_file', MASTER_LOG_POS = $master --let $assert_cond= "[SELECT COUNT(*) FROM t1]" = "1" AND "[SELECT * FROM t1]" = "2" --source include/assert.inc ---echo ######## Clean up ######## ---echo === Stop and reset slave/master (connection slave) ==== ---connection slave +# Verify that warning about the missing transactions are logged into the master's error log. +--let $assert_file=$MYSQLTEST_VARDIR/log/mysqld.1.err +--let $assert_match= .*Cannot replicate to server with server_uuid.*The missing transactions are '.*:2'.* +--let $assert_select= Cannot replicate to server with server_uuid +--let $assert_text= Found warning containing lost GTIDs in the master error log. +--source include/assert_grep.inc + +# Verify that an error about the missing transactions are logged into the slave's error log. +--let $assert_file=$MYSQLTEST_VARDIR/log/mysqld.2.err +--let $assert_match= .*Replicate the missing transactions from elsewhere, or provision a new slave from backup.*the missing transactions are '.*:2'.* +--let $assert_select= Replicate the missing transactions from elsewhere, or provision a new slave from backup +--let $assert_text= Found warning containing lost GTIDs in the slave error log. +--source include/assert_grep.inc + +# Suppress the error on master. +--source include/rpl_connection_master.inc +CALL mtr.add_suppression("Cannot replicate to server.*server has purged required binary logs.*"); + +# Suppress the error on slave. +--source include/rpl_connection_slave.inc +CALL mtr.add_suppression("Got fatal error 1236 from master.*Replicate the missing transactions from elsewhere"); + +--echo # +--echo # 7) Cleanup. +--echo # +--source include/rpl_connection_slave.inc --source include/stop_slave.inc RESET MASTER; RESET SLAVE; ---echo === Stop and reset master (connection master) ==== ---connection master +--source include/rpl_connection_master.inc RESET MASTER; ---echo === Start slave (connection slave) ==== ---connection slave +--source include/rpl_connection_slave.inc --source include/start_slave.inc ---echo === Sync slave with master (connection master/slave) ==== ---connection master +--source include/rpl_connection_master.inc DROP TABLE t1; --source include/sync_slave_sql_with_master.inc - ---connection master --source include/rpl_end.inc diff --git a/mysql-test/suite/rpl/t/rpl_gtid_validate_slave_gtids.test b/mysql-test/suite/rpl/t/rpl_gtid_validate_slave_gtids.test index 91d567a605a7..06627876f264 100644 --- a/mysql-test/suite/rpl/t/rpl_gtid_validate_slave_gtids.test +++ b/mysql-test/suite/rpl/t/rpl_gtid_validate_slave_gtids.test @@ -36,8 +36,9 @@ START SLAVE IO_THREAD; # Step-4)since Master has already purged binary logs containing GTID 1 and 2, # it should throw error and I/O thread should not be started. #1236 = ER_MASTER_FATAL_ERROR_READING_BINLOG ---let $slave_io_errno= 1236 +--let $slave_io_errno= convert_error(ER_MASTER_FATAL_ERROR_READING_BINLOG) --let $show_slave_io_error= 1 +--let $slave_io_error_replace= /$master_uuid/MASTER_UUID/ --source include/wait_for_slave_io_error.inc # Fix the problem by setting GTID_PURGED on Slave as well. @@ -55,7 +56,17 @@ START SLAVE IO_THREAD; --let $assert_cond= "[SELECT @@GLOBAL.GTID_EXECUTED]" = "$master_uuid:1-4" --source include/assert.inc -call mtr.add_suppression(".*Master has purged binary logs containing GTIDs that the slave requires.*"); +# Suppress the errors and warnings +--connection master +CALL mtr.add_suppression(".*Cannot replicate.*purged required binary logs.*"); +--connection slave +CALL mtr.add_suppression(".*Master has purged binary logs containing GTIDs that the slave requires.*"); + +--let $assert_file=$MYSQLTEST_VARDIR/log/mysqld.1.err +--let $assert_match= .*Cannot replicate to server with server_uuid.*The missing transactions are '$master_uuid:1-2'.* +--let $assert_select= Cannot replicate to server with server_uuid +--let $assert_text= Found warning continaining lost GTIDs +--source include/assert_grep.inc ############################################################################### #Bug #18789758 DATA INCONSISTENCIES WHEN MASTER HAS TRUNCATED BINARY LOG WITH diff --git a/sql/binlog.cc b/sql/binlog.cc index 724a67723112..b58d92ae0fa5 100644 --- a/sql/binlog.cc +++ b/sql/binlog.cc @@ -38,6 +38,7 @@ #include "rpl_mi.h" #include #include +#include #include using std::max; @@ -3025,6 +3026,7 @@ bool MYSQL_BIN_LOG::find_first_log_not_in_gtid_set(char *binlog_file_name, error= 0; while (rit != filename_list.rend()) { + previous_gtid_set.clear(); const char *filename= rit->c_str(); DBUG_PRINT("info", ("Read Previous_gtids_log_event from filename='%s'", filename)); @@ -3061,14 +3063,13 @@ bool MYSQL_BIN_LOG::find_first_log_not_in_gtid_set(char *binlog_file_name, case TRUNCATED: break; } - previous_gtid_set.clear(); rit++; } if (rit == filename_list.rend()) { - *errmsg= ER(ER_MASTER_HAS_PURGED_REQUIRED_GTIDS); + report_missing_gtids(&previous_gtid_set, gtid_set, errmsg); error= -5; } @@ -7719,6 +7720,163 @@ int MYSQL_BIN_LOG::recover(IO_CACHE *log, Format_description_log_event *fdle, return 1; } +void MYSQL_BIN_LOG::report_missing_purged_gtids(const Gtid_set* slave_executed_gtid_set, + const char** errmsg) +{ + DBUG_ENTER("MYSQL_BIN_LOG::report_missing_purged_gtids"); + THD *thd= current_thd; + Gtid_set gtid_missing(gtid_state->get_lost_gtids()->get_sid_map()); + gtid_missing.add_gtid_set(gtid_state->get_lost_gtids()); + gtid_missing.remove_gtid_set(slave_executed_gtid_set); + + String tmp_uuid; + uchar name[]= "slave_uuid"; + + /* Protects thd->user_vars. */ + mysql_mutex_lock(&thd->LOCK_thd_data); + user_var_entry *entry= + (user_var_entry*) my_hash_search(&thd->user_vars, name, sizeof(name)-1); + if (entry && entry->length() > 0) + tmp_uuid.copy(entry->ptr(), entry->length(), NULL); + mysql_mutex_unlock(&thd->LOCK_thd_data); + + + char* missing_gtids= NULL; + char* slave_executed_gtids= NULL; + gtid_missing.to_string(&missing_gtids, NULL); + slave_executed_gtid_set->to_string(&slave_executed_gtids, NULL); + + /* + Log the information about the missing purged GTIDs to the error log + if the message is less than MAX_LOG_BUFFER_SIZE. + */ + std::ostringstream log_info; + log_info << "The missing transactions are '"<< missing_gtids <<"'"; + const char* log_msg= ER(ER_FOUND_MISSING_GTIDS); + + /* Don't consider the "%s" in the format string. Subtract 2 from the + total length */ + int total_length= (strlen(log_msg) - 2 + log_info.str().length()); + + DBUG_EXECUTE_IF("simulate_long_missing_gtids", + { total_length= MAX_LOG_BUFFER_SIZE + 1;}); + + if (total_length > MAX_LOG_BUFFER_SIZE) + log_info.str("To find the missing purged transactions, run \"SELECT" + " @@GLOBAL.GTID_PURGED\" on the master, then run \"SHOW" + " SLAVE STATUS\" on the slave for the Retrieved_Gtid_Set," + " and then run \"SELECT GTID_SUBTRACT(," + " )\" on any server"); + + sql_print_warning(ER_THD(thd, ER_FOUND_MISSING_GTIDS), tmp_uuid.ptr(), + log_info.str().c_str()); + + /* + Send the information about the slave executed GTIDs and missing + purged GTIDs to slave if the message is less than MYSQL_ERRMSG_SIZE. + */ + std::ostringstream gtid_info; + gtid_info << "The GTID set sent by the slave is '" << slave_executed_gtids + << "', and the missing transactions are '"<< missing_gtids <<"'"; + *errmsg= ER_THD(thd, ER_MASTER_HAS_PURGED_REQUIRED_GTIDS); + + /* Don't consider the "%s" in the format string. Subtract 2 from the + total length */ + total_length= (strlen(*errmsg) - 2 + gtid_info.str().length()); + + DBUG_EXECUTE_IF("simulate_long_missing_gtids", + { total_length= MYSQL_ERRMSG_SIZE + 1;}); + + if (total_length > MYSQL_ERRMSG_SIZE) + gtid_info.str("The GTID sets and the missing purged transactions are too" + " long to print in this message. For more information," + " please see the master's error log or the manual for" + " GTID_SUBTRACT"); + + /* Buffer for formatting the message about the missing GTIDs. */ + static char buff[MYSQL_ERRMSG_SIZE]; + snprintf(buff, MYSQL_ERRMSG_SIZE, *errmsg, gtid_info.str().c_str()); + *errmsg= const_cast(buff); + + my_free(missing_gtids); + my_free(slave_executed_gtids); + DBUG_VOID_RETURN; +} + +void MYSQL_BIN_LOG::report_missing_gtids(const Gtid_set* previous_gtid_set, + const Gtid_set* slave_executed_gtid_set, + const char** errmsg) +{ + DBUG_ENTER("MYSQL_BIN_LOG::report_missing_gtids"); + THD *thd=current_thd; + char* missing_gtids= NULL; + char* slave_executed_gtids= NULL; + Gtid_set gtid_missing(slave_executed_gtid_set->get_sid_map()); + gtid_missing.add_gtid_set(slave_executed_gtid_set); + gtid_missing.remove_gtid_set(previous_gtid_set); + gtid_missing.to_string(&missing_gtids, NULL); + slave_executed_gtid_set->to_string(&slave_executed_gtids, NULL); + + String tmp_uuid; + uchar name[]= "slave_uuid"; + + /* Protects thd->user_vars. */ + mysql_mutex_lock(&thd->LOCK_thd_data); + + user_var_entry *entry= + (user_var_entry*) my_hash_search(&thd->user_vars, name, sizeof(name)-1); + if (entry && entry->length() > 0) + tmp_uuid.copy(entry->ptr(), entry->length(), NULL); + mysql_mutex_unlock(&thd->LOCK_thd_data); + + /* + Log the information about the missing purged GTIDs to the error log + if the message is less than MAX_LOG_BUFFER_SIZE. + */ + std::ostringstream log_info; + log_info << "If the binary log files have been deleted from disk," + " check the consistency of 'GTID_PURGED' variable." + " The missing transactions are '"<< missing_gtids <<"'"; + const char* log_msg= ER(ER_FOUND_MISSING_GTIDS); + + /* Don't consider the "%s" in the format string. Subtract 2 from the + total length */ + if ((strlen(log_msg) - 2 + log_info.str().length()) > MAX_LOG_BUFFER_SIZE) + log_info.str("To find the missing purged transactions, run \"SELECT" + " @@GLOBAL.GTID_PURGED\" on the master, then run \"SHOW" + " SLAVE STATUS\" on the slave for the Retrieved_Gtid_Set," + " and then run \"SELECT GTID_SUBTRACT(," + " )\" on any server"); + + sql_print_warning(ER_THD(thd, ER_FOUND_MISSING_GTIDS), tmp_uuid.ptr(), + log_info.str().c_str()); + + /* + Send the information about the slave executed GTIDs and missing + purged GTIDs to slave if the message is less than MYSQL_ERRMSG_SIZE. + */ + std::ostringstream gtid_info; + gtid_info << "The GTID set sent by the slave is '" << slave_executed_gtids + << "', and the missing transactions are '"<< missing_gtids <<"'"; + *errmsg= ER_THD(thd, ER_MASTER_HAS_PURGED_REQUIRED_GTIDS); + + /* Don't consider the "%s" in the format string. Subtract 2 from the + total length */ + if ((strlen(*errmsg) - 2 + gtid_info.str().length()) > MYSQL_ERRMSG_SIZE) + gtid_info.str("The GTID sets and the missing purged transactions are too" + " long to print in this message. For more information," + " please see the master's error log or the manual for" + " GTID_SUBTRACT"); + /* Buffer for formatting the message about the missing GTIDs. */ + static char buff[MYSQL_ERRMSG_SIZE]; + snprintf(buff, MYSQL_ERRMSG_SIZE, *errmsg, gtid_info.str().c_str()); + *errmsg= const_cast(buff); + + my_free(missing_gtids); + my_free(slave_executed_gtids); + + DBUG_VOID_RETURN; +} Group_cache *THD::get_group_cache(bool is_transactional) { DBUG_ENTER("THD::get_group_cache(bool)"); diff --git a/sql/binlog.h b/sql/binlog.h index c282f26cb2ef..b7965b3e563f 100644 --- a/sql/binlog.h +++ b/sql/binlog.h @@ -1,5 +1,5 @@ #ifndef BINLOG_H_INCLUDED -/* Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, @@ -675,6 +675,55 @@ class MYSQL_BIN_LOG: public TC_LOG, private MYSQL_LOG inline void unlock_index() { mysql_mutex_unlock(&LOCK_index);} inline IO_CACHE *get_index_file() { return &index_file;} inline uint32 get_open_count() { return open_count; } + + /** + Function to report the missing GTIDs. + + This function logs the missing transactions on master to its error log + as a warning. If the missing GTIDs are too long to print in a message, + it suggests the steps to extract the missing transactions. + + This function also informs slave about the GTID set sent by the slave, + transactions missing on the master and few suggestions to recover from + the error. This message shall be wrapped by + ER_MASTER_FATAL_ERROR_READING_BINLOG on slave and will be logged as an + error. + + This function will be called from mysql_binlog_send() function. + + @param slave_executed_gtid_set GTID set executed by slave + @param errmsg Pointer to the error message + + @return void + */ + void report_missing_purged_gtids(const Gtid_set* slave_executed_gtid_set, + const char** errmsg); + + /** + Function to report the missing GTIDs. + + This function logs the missing transactions on master to its error log + as a warning. If the missing GTIDs are too long to print in a message, + it suggests the steps to extract the missing transactions. + + This function also informs slave about the GTID set sent by the slave, + transactions missing on the master and few suggestions to recover from + the error. This message shall be wrapped by + ER_MASTER_FATAL_ERROR_READING_BINLOG on slave and will be logged as an + error. + + This function will be called from find_first_log_not_in_gtid_set() + function. + + @param previous_gtid_set Previous GTID set found + @param slave_executed_gtid_set GTID set executed by slave + @param errmsg Pointer to the error message + + @return void + */ + void report_missing_gtids(const Gtid_set* previous_gtid_set, + const Gtid_set* slave_executed_gtid_set, + const char** errmsg); static const int MAX_RETRIES_FOR_DELETE_RENAME_FAILURE = 5; }; diff --git a/sql/log.cc b/sql/log.cc index da52b34ceea7..3c00d85124ed 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -1,4 +1,4 @@ -/* Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, @@ -54,10 +54,6 @@ using std::min; using std::max; -/* max size of log messages (error log, plugins' logging, general log) */ -#define MAX_LOG_BUFFER_SIZE 1024 -#define MAX_TIME_SIZE 32 - static const TABLE_FIELD_TYPE slow_query_log_table_fields[SQLT_FIELD_COUNT] = { diff --git a/sql/log.h b/sql/log.h index 1d9e8d46870e..6ed3cfa51063 100644 --- a/sql/log.h +++ b/sql/log.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, @@ -219,6 +219,10 @@ extern TC_LOG_DUMMY tc_log_dummy; */ #define LOG_WARN_UNIQUE_FN_EXT_LEFT 1000 +/* max size of log messages (error log, plugins' logging, general log) */ +#define MAX_LOG_BUFFER_SIZE 1024 +#define MAX_TIME_SIZE 32 + #ifdef HAVE_PSI_INTERFACE extern PSI_mutex_key key_LOG_INFO_lock; #endif diff --git a/sql/rpl_gtid.h b/sql/rpl_gtid.h index 8289e2a1f789..a9744c8dbf71 100644 --- a/sql/rpl_gtid.h +++ b/sql/rpl_gtid.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, @@ -2284,7 +2284,7 @@ class Gtid_state enum_return_status add_lost_gtids(const char *text); /// Return a pointer to the Gtid_set that contains the logged groups. const Gtid_set *get_logged_gtids() const { return &logged_gtids; } - /// Return a pointer to the Gtid_set that contains the logged groups. + /// Return a pointer to the Gtid_set that contains the lost groups. const Gtid_set *get_lost_gtids() const { return &lost_gtids; } /// Return a pointer to the Owned_gtids that contains the owned groups. const Owned_gtids *get_owned_gtids() const { return &owned_gtids; } diff --git a/sql/rpl_gtid_set.cc b/sql/rpl_gtid_set.cc index de3b860639a8..8c71dec06eb2 100644 --- a/sql/rpl_gtid_set.cc +++ b/sql/rpl_gtid_set.cc @@ -1,4 +1,4 @@ -/* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, @@ -713,14 +713,6 @@ enum_return_status Gtid_set::remove_gtid_set(const Gtid_set *other) } else { - /* - This code is not being used but we will keep it as it may be - useful to optimize gtids by avoiding sharing mappings from - sid to sidno. For instance, the IO Thread and the SQL Thread - may have different mappings in the future. - */ - DBUG_ASSERT(0); /*NOTREACHED*/ -#ifdef NON_DISABLED_GTID Sid_map *other_sid_map= other->sid_map; for (rpl_sidno other_sidno= 1; other_sidno <= max_other_sidno; other_sidno++) @@ -735,7 +727,6 @@ enum_return_status Gtid_set::remove_gtid_set(const Gtid_set *other) remove_gno_intervals(this_sidno, other_ivit, &lock)); } } -#endif } RETURN_OK; } diff --git a/sql/rpl_master.cc b/sql/rpl_master.cc index 4d3967daa82a..ac630439b708 100644 --- a/sql/rpl_master.cc +++ b/sql/rpl_master.cc @@ -1,4 +1,4 @@ -/* Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, @@ -868,7 +868,7 @@ void mysql_binlog_send(THD* thd, char* log_ident, my_off_t pos, bool time_for_hb_event= false; int error= 0; const char *errmsg = "Unknown error"; - char error_text[MAX_SLAVE_ERRMSG]; // to be send to slave via my_message() + char error_text[MAX_SLAVE_ERRMSG]= {0}; // to be send to slave via my_message() NET* net = &thd->net; mysql_mutex_t *log_lock; mysql_cond_t *log_cond; @@ -1013,7 +1013,7 @@ void mysql_binlog_send(THD* thd, char* log_ident, my_off_t pos, */ if (!gtid_state->get_lost_gtids()->is_subset(slave_gtid_executed)) { - errmsg= ER(ER_MASTER_HAS_PURGED_REQUIRED_GTIDS); + mysql_bin_log.report_missing_purged_gtids(slave_gtid_executed, &errmsg); my_errno= ER_MASTER_FATAL_ERROR_READING_BINLOG; global_sid_lock->unlock(); GOTO_ERR; diff --git a/sql/share/errmsg-utf8.txt b/sql/share/errmsg-utf8.txt index adf4811fcfce..cf38e3f5e0ca 100644 --- a/sql/share/errmsg-utf8.txt +++ b/sql/share/errmsg-utf8.txt @@ -4713,15 +4713,15 @@ ER_NOT_SUPPORTED_YET 42000 spa "Esta versión de MySQL no soporta todavia '%s'" swe "Denna version av MySQL kan ännu inte utföra '%s'" ER_MASTER_FATAL_ERROR_READING_BINLOG - nla "Kreeg fatale fout %d: '%-.320s' van master tijdens lezen van data uit binaire log" - eng "Got fatal error %d from master when reading data from binary log: '%-.320s'" - ger "Schwerer Fehler %d: '%-.320s vom Master beim Lesen des binären Logs" - ita "Errore fatale %d: '%-.320s' dal master leggendo i dati dal log binario" - jpn "致命的なエラー %d: '%-.320s' がマスターでバイナリログ読み込み中に発生しました。" - por "Obteve fatal erro %d: '%-.320s' do master quando lendo dados do binary log" - rus "Получена неисправимая ошибка %d: '%-.320s' от головного сервера в процессе выборки данных из двоичного журнала" - spa "Recibió fatal error %d: '%-.320s' del master cuando leyendo datos del binary log" - swe "Fick fatalt fel %d: '%-.320s' från master vid läsning av binärloggen" + nla "Kreeg fatale fout %d: '%-.512s' van master tijdens lezen van data uit binaire log" + eng "Got fatal error %d from master when reading data from binary log: '%-.512s'" + ger "Schwerer Fehler %d: '%-.512s vom Master beim Lesen des binären Logs" + ita "Errore fatale %d: '%-.512s' dal master leggendo i dati dal log binario" + jpn "致命的なエラー %d: '%-.512s' がマスターでバイナリログ読み込み中に発生しました。" + por "Obteve fatal erro %d: '%-.512s' do master quando lendo dados do binary log" + rus "Получена неисправимая ошибка %d: '%-.512s' от головного сервера в процессе выборки данных из двоичного журнала" + spa "Recibió fatal error %d: '%-.512s' del master cuando leyendo datos del binary log" + swe "Fick fatalt fel %d: '%-.512s' från master vid läsning av binärloggen" ER_SLAVE_IGNORED_TABLE eng "Slave SQL thread ignored the query because of replicate-*-table rules" ger "Slave-SQL-Thread hat die Abfrage aufgrund von replicate-*-table-Regeln ignoriert" @@ -6787,7 +6787,7 @@ ER_GTID_MODE_CAN_ONLY_CHANGE_ONE_STEP_AT_A_TIME eng "The value of @@GLOBAL.GTID_MODE can only change one step at a time: OFF <-> UPGRADE_STEP_1 <-> UPGRADE_STEP_2 <-> ON. Also note that this value must be stepped up or down simultaneously on all servers; see the Manual for instructions." ER_MASTER_HAS_PURGED_REQUIRED_GTIDS - eng "The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires." + eng "The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires. Replicate the missing transactions from elsewhere, or provision a new slave from backup. Consider increasing the master's binary log expiration period. %s." ER_CANT_SET_GTID_NEXT_WHEN_OWNING_GTID eng "@@SESSION.GTID_NEXT cannot be changed by a client that owns a GTID. The client owns %s. Ownership is released on COMMIT or ROLLBACK." @@ -7115,6 +7115,10 @@ ER_MISSING_KEY WARN_NAMED_PIPE_ACCESS_EVERYONE eng "Setting named_pipe_full_access_group='%s' is insecure. Consider using a Windows group with fewer members." + +ER_FOUND_MISSING_GTIDS + eng "Cannot replicate to server with server_uuid='%.36s' because the present server has purged required binary logs. The connecting server needs to replicate the missing transactions from elsewhere, or be replaced by a new server created from a more recent backup. To prevent this error in the future, consider increasing the binary log expiration period on the present server. %s." + # # End of 5.6 error messages. # From cbd87693248cb4d2a217a8f1c13108e3eca1ecff Mon Sep 17 00:00:00 2001 From: Maheedhar PV Date: Wed, 20 Nov 2019 08:10:36 +0530 Subject: [PATCH 11/17] Bug#30194841 INSERT ON DUPLICATE KEY UPDATE UPDATES THE WRONG ROW Cause When multiple sessions are inserting into a table having auto-increment column, unique key constraint using IODKU (without having explicit values for the auto-increment column) into a table, the insert can fail with the unique index violation. In such a case, the failing insert has a valid current-id for the auto-increment column but an old/invalid value (the interleaving session has used up the id and the failing session has not yet updated its own next auto-increment id) as the next-id. This failed insert updates the correct row(the row violating unique key). The invalid value of next-id of the auto-increment column is saved and reused as the current-id for the subsequent inserts. These subsequent inserts, without having explicit values for the auto-increment column, end up updating rows because of the auto-increment key violation during the insert. Fix When an insert of a IODKU fails, retain the auto-increment id of the failed row (current-id, not the next-id) to be used for next insert. Change-Id: I7df17c90992b3658ced6d6b2a89e50546c4ce5a9 --- mysql-test/r/insert_debug.result | 24 +++++++++++++ mysql-test/t/insert_debug-master.opt | 1 + mysql-test/t/insert_debug.test | 52 ++++++++++++++++++++++++++++ sql/sql_insert.cc | 8 ++++- 4 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 mysql-test/r/insert_debug.result create mode 100644 mysql-test/t/insert_debug-master.opt create mode 100644 mysql-test/t/insert_debug.test diff --git a/mysql-test/r/insert_debug.result b/mysql-test/r/insert_debug.result new file mode 100644 index 000000000000..e5e884339f3f --- /dev/null +++ b/mysql-test/r/insert_debug.result @@ -0,0 +1,24 @@ +SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED; +SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED; +CREATE TABLE t1(c1 VARCHAR(10) NOT NULL, c2 VARCHAR(10) NOT NULL, c3 VARCHAR(10) NOT NULL); +INSERT INTO t1(c1, c2, c3) VALUES('A1','B1','IT1'), ('A2','B2','IT1'), ('A3','B3','IT1'), ('A4','B4','IT1'), ('A5','B5','IT1'), ('A6','B6','IT1'), ('A7','B7','IT1'); +CREATE TABLE t2(c1 VARCHAR(10) NOT NULL, c2 VARCHAR(10) NOT NULL, c3 VARCHAR(10) NOT NULL); +INSERT INTO t2(c1, c2, c3) VALUES ('A3','B3','IT2'), ('A2','B2','IT2'), ('A4','B4','IT2'), ('A5','B5','II2'); +CREATE TABLE result(id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, c1 VARCHAR(10) NOT NULL, c2 VARCHAR(10), +c3 VARCHAR(10), update_count INT DEFAULT 0, UNIQUE KEY uniq_idx (c1,c2), PRIMARY KEY (id)) ENGINE = innodb; +SET DEBUG_SYNC = "ha_write_row_end WAIT_FOR flushed EXECUTE 1"; +INSERT INTO result(c1, c2, c3) SELECT * FROM t1 ON DUPLICATE KEY UPDATE c2=t1.c2, c3='UT1', update_count=update_count+1; +INSERT INTO result(c1, c2, c3) SELECT * FROM t2 ON DUPLICATE KEY UPDATE c2=t2.c2, c3='UT2', update_count=update_count+1; +SET DEBUG_SYNC = "now SIGNAL flushed"; +SELECT * FROM result; +id c1 c2 c3 update_count +1 A1 B1 IT1 0 +2 A3 B3 UT1 1 +3 A2 B2 UT1 1 +4 A4 B4 UT1 1 +5 A5 B5 UT1 1 +9 A6 B6 IT1 0 +10 A7 B7 IT1 0 +DROP TABLE t1; +DROP TABLE t2; +DROP TABLE result; diff --git a/mysql-test/t/insert_debug-master.opt b/mysql-test/t/insert_debug-master.opt new file mode 100644 index 000000000000..824f656cbd5c --- /dev/null +++ b/mysql-test/t/insert_debug-master.opt @@ -0,0 +1 @@ +--innodb_autoinc_lock_mode=2 diff --git a/mysql-test/t/insert_debug.test b/mysql-test/t/insert_debug.test new file mode 100644 index 000000000000..b2b2925b405b --- /dev/null +++ b/mysql-test/t/insert_debug.test @@ -0,0 +1,52 @@ +source include/have_debug.inc; +source include/have_debug_sync.inc; + +SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED; + +connect (con1, localhost, root,,); +SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED; + +connection default; + +let $conn0_id= `SELECT CONNECTION_ID()`; + +CREATE TABLE t1(c1 VARCHAR(10) NOT NULL, c2 VARCHAR(10) NOT NULL, c3 VARCHAR(10) NOT NULL); +INSERT INTO t1(c1, c2, c3) VALUES('A1','B1','IT1'), ('A2','B2','IT1'), ('A3','B3','IT1'), ('A4','B4','IT1'), ('A5','B5','IT1'), ('A6','B6','IT1'), ('A7','B7','IT1'); + +CREATE TABLE t2(c1 VARCHAR(10) NOT NULL, c2 VARCHAR(10) NOT NULL, c3 VARCHAR(10) NOT NULL); +INSERT INTO t2(c1, c2, c3) VALUES ('A3','B3','IT2'), ('A2','B2','IT2'), ('A4','B4','IT2'), ('A5','B5','II2'); + +CREATE TABLE result(id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, c1 VARCHAR(10) NOT NULL, c2 VARCHAR(10), +c3 VARCHAR(10), update_count INT DEFAULT 0, UNIQUE KEY uniq_idx (c1,c2), PRIMARY KEY (id)) ENGINE = innodb; + +# Insert one row from 't1' into the 'result' table and wait on a debug sync +# point. The next insert statement from an session 2 inserts values that would +# lead to unique key clash, when this insert resumes. +# The subsequent inserts of this statement(after resume) will fail because of a +# clash with the unique index, and are expected to update the row which clashes +# with the unique key. +# Without the fix for bug#30194841 a stale auto increment value, would cause a +# collision with existing auto increment column value and ends up updating that +# colliding row, instead of the row colliding with the unique index. +SET DEBUG_SYNC = "ha_write_row_end WAIT_FOR flushed EXECUTE 1"; +send INSERT INTO result(c1, c2, c3) SELECT * FROM t1 ON DUPLICATE KEY UPDATE c2=t1.c2, c3='UT1', update_count=update_count+1; + +# While session 1 is waiting (after one insert), insert rows that will cause a clash +# with the inserts of session 1 on the unique key. +connection con1; + +# Wait for the session 1 to hit the debug sync point. +let $wait_condition=SELECT 1 FROM information_schema.processlist WHERE id = $conn0_id AND state LIKE '%ha_write_row_end%'; +--source include/wait_condition.inc + +INSERT INTO result(c1, c2, c3) SELECT * FROM t2 ON DUPLICATE KEY UPDATE c2=t2.c2, c3='UT2', update_count=update_count+1; + +# Signal to resume the insert statement in session 1 +SET DEBUG_SYNC = "now SIGNAL flushed"; +connection default; +reap; +SELECT * FROM result; + +DROP TABLE t1; +DROP TABLE t2; +DROP TABLE result; diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index ca3612e1580f..37c622657c7e 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -1,5 +1,5 @@ /* - Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. + Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, @@ -1765,6 +1765,12 @@ int write_record(THD *thd, TABLE *table, COPY_INFO *info, COPY_INFO *update) an error is returned */ DBUG_ASSERT(table->insert_values != NULL); + /* + The insert has failed, store the insert_id generated for + this row to be re-used for the next insert. + */ + if (insert_id_for_cur_row > 0) prev_insert_id = insert_id_for_cur_row; + store_record(table,insert_values); restore_record(table,record[1]); DBUG_ASSERT(update->get_changed_columns()->elements == From 8199ed9ceb9e1112f71056beda536cb4d4195a1c Mon Sep 17 00:00:00 2001 From: Venkatesh Venugopal Date: Tue, 19 Nov 2019 20:18:25 +0530 Subject: [PATCH 12/17] Bug#29769293: ERROR 1236 "MASTER HAS PURGED BINARY LOGS CONTAINING GTIDS": GTID NOT LOGGED Stabilize the test rpl_gtid_deleted_binlog_fail_to_connect.test on Windows. Reviewed by: Pedro Gomes --- .../rpl/r/rpl_gtid_deleted_binlog_fail_to_connect.result | 2 -- .../suite/rpl/t/rpl_gtid_deleted_binlog_fail_to_connect.test | 2 ++ sql/binlog.cc | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mysql-test/suite/rpl/r/rpl_gtid_deleted_binlog_fail_to_connect.result b/mysql-test/suite/rpl/r/rpl_gtid_deleted_binlog_fail_to_connect.result index b17fd65fdc55..305a169aab5a 100644 --- a/mysql-test/suite/rpl/r/rpl_gtid_deleted_binlog_fail_to_connect.result +++ b/mysql-test/suite/rpl/r/rpl_gtid_deleted_binlog_fail_to_connect.result @@ -59,8 +59,6 @@ RESET MASTER; RESET SLAVE; [connection master] RESET MASTER; -Warnings: -Warning 1612 Being purged log ./master-bin.000001 was not found [connection slave] include/start_slave.inc [connection master] diff --git a/mysql-test/suite/rpl/t/rpl_gtid_deleted_binlog_fail_to_connect.test b/mysql-test/suite/rpl/t/rpl_gtid_deleted_binlog_fail_to_connect.test index 6fc791d7a183..6c5467156bda 100644 --- a/mysql-test/suite/rpl/t/rpl_gtid_deleted_binlog_fail_to_connect.test +++ b/mysql-test/suite/rpl/t/rpl_gtid_deleted_binlog_fail_to_connect.test @@ -132,6 +132,7 @@ CALL mtr.add_suppression("Got fatal error 1236 from master.*Replicate the missin --echo # --echo # 7) Cleanup. --echo # +--disable_warnings RESET MASTER; RESET SLAVE; --source include/rpl_connection_master.inc @@ -141,4 +142,5 @@ RESET MASTER; --source include/rpl_connection_master.inc DROP TABLE t1; --source include/sync_slave_sql_with_master.inc +--enable_warnings --source include/rpl_end.inc diff --git a/sql/binlog.cc b/sql/binlog.cc index b58d92ae0fa5..fa5f8073aa9e 100644 --- a/sql/binlog.cc +++ b/sql/binlog.cc @@ -7795,7 +7795,7 @@ void MYSQL_BIN_LOG::report_missing_purged_gtids(const Gtid_set* slave_executed_g /* Buffer for formatting the message about the missing GTIDs. */ static char buff[MYSQL_ERRMSG_SIZE]; - snprintf(buff, MYSQL_ERRMSG_SIZE, *errmsg, gtid_info.str().c_str()); + my_snprintf(buff, MYSQL_ERRMSG_SIZE, *errmsg, gtid_info.str().c_str()); *errmsg= const_cast(buff); my_free(missing_gtids); @@ -7869,7 +7869,7 @@ void MYSQL_BIN_LOG::report_missing_gtids(const Gtid_set* previous_gtid_set, " GTID_SUBTRACT"); /* Buffer for formatting the message about the missing GTIDs. */ static char buff[MYSQL_ERRMSG_SIZE]; - snprintf(buff, MYSQL_ERRMSG_SIZE, *errmsg, gtid_info.str().c_str()); + my_snprintf(buff, MYSQL_ERRMSG_SIZE, *errmsg, gtid_info.str().c_str()); *errmsg= const_cast(buff); my_free(missing_gtids); From 788028aa8c381885dd601ffefd19af2744f215ac Mon Sep 17 00:00:00 2001 From: Balasubramanian Kandasamy Date: Fri, 22 Nov 2019 05:59:10 +0100 Subject: [PATCH 13/17] Updated copyright year in user visible text Approved-by: Bjorn Munch --- README | 2 +- include/welcome_copyright_notice.h | 4 ++-- packaging/WiX/custom_ui.wxs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README b/README index 897ea237b0fe..3d8c55eb7fd9 100644 --- a/README +++ b/README @@ -5,7 +5,7 @@ For the avoidance of doubt, this particular copy of the software is released under the version 2 of the GNU General Public License. MySQL is brought to you by Oracle. -Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. +Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. License information can be found in the COPYING file. diff --git a/include/welcome_copyright_notice.h b/include/welcome_copyright_notice.h index 5b21fd7e7bef..ce9d13911ea1 100644 --- a/include/welcome_copyright_notice.h +++ b/include/welcome_copyright_notice.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. +/* Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved. 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 @@ -16,7 +16,7 @@ #ifndef _welcome_copyright_notice_h_ #define _welcome_copyright_notice_h_ -#define COPYRIGHT_NOTICE_CURRENT_YEAR "2019" +#define COPYRIGHT_NOTICE_CURRENT_YEAR "2020" /* This define specifies copyright notice which is displayed by every MySQL diff --git a/packaging/WiX/custom_ui.wxs b/packaging/WiX/custom_ui.wxs index 25265d7d3ecb..02cccbf3dbc6 100644 --- a/packaging/WiX/custom_ui.wxs +++ b/packaging/WiX/custom_ui.wxs @@ -2,7 +2,7 @@ xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">