Skip to content

Commit 67a6c08

Browse files
committed
Updated the LICENSE files
Use the same compiler settings as server for RPM builds
1 parent 8d2143c commit 67a6c08

File tree

2 files changed

+47
-139
lines changed

2 files changed

+47
-139
lines changed

LICENSE.txt

Lines changed: 32 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Introduction
1010
third-party software which may be included in this distribution of
1111
MySQL Connector/C++ 8.0.
1212

13-
Last updated: September 2020
13+
Last updated: January 2021
1414

1515
Licensing Information
1616

@@ -33,7 +33,7 @@ Licensing Information
3333
a copy of which is reproduced below and can also be found along with
3434
its FAQ at http://oss.oracle.com/licenses/universal-foss-exception.
3535

36-
Copyright (c) 2008, 2020, Oracle and/or its affiliates.
36+
Copyright (c) 2008, 2021, Oracle and/or its affiliates.
3737

3838
Election of GPLv2
3939

@@ -474,84 +474,40 @@ Licenses for Third-Party Components
474474
may be included with this product. We are thankful to all individuals
475475
that have created these.
476476

477-
Boost Library
478-
479-
Boost C++ Libraries
480-
481-
Use of any of this software is governed by the terms of the license
482-
below:
483-
Boost Software License - Version 1.0 - August 17th, 2003
484-
485-
Permission is hereby granted, free of charge, to any person or
486-
organization obtaining a copy of the software and accompanying
487-
documentation covered by this license (the "Software") to use,
488-
reproduce, display, distribute, execute, and transmit the Software,
489-
and to prepare derivative works of the Software, and to permit
490-
third-parties to whom the Software is furnished to do so, all
491-
subject to the following:
492-
493-
The copyright notices in the Software and this entire statement,
494-
including the above license grant, this restriction and the
495-
following disclaimer, must be included in all copies of the
496-
Software, in whole or in part, and all derivative works of the
497-
Software, unless such copies or derivative works are solely in the
498-
form of machine-executable object code generated by a source
499-
language processor.
500-
501-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
502-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
503-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
504-
NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE
505-
DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER
506-
LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT
507-
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
508-
IN THE SOFTWARE.
509-
510-
======================================================================
511-
======================================================================
512-
513477
Google Protocol Buffers
514478

515-
Protocol Buffers (aka Google protobuf)
516-
517-
Google Protocol Buffers - protobuf
518-
Copyright 2008, Google Inc.
519-
All rights reserved.
479+
Copyright 2008 Google Inc. All rights reserved.
520480

521-
Redistribution and use in source and binary forms,
522-
with or without modification, are permitted provided
523-
that the following conditions are met:
524-
525-
* Redistributions of source code must retain the above
526-
copyright notice, this list of conditions and the
527-
following disclaimer.
528-
* Redistributions in binary form must reproduce the
529-
above copyright notice, this list of conditions and
530-
the following disclaimer in the documentation and/or
531-
other materials provided with the distribution.
532-
* Neither the name of Google Inc. nor the names of its
533-
contributors may be used to endorse or promote products
534-
derived from this software without specific prior written
535-
permission.
536-
537-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
538-
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
539-
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
540-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
541-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
542-
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
543-
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
544-
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
545-
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
546-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
547-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
548-
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
481+
Redistribution and use in source and binary forms, with or without
482+
modification, are permitted provided that the following conditions are
483+
met:
549484

550-
Code generated by the Protocol Buffer compiler is owned by
551-
the owner of the input file used when generating it. This
552-
code is not standalone and requires a support library to be
553-
linked with it. This support library is itself covered by
554-
the above license.
485+
* Redistributions of source code must retain the above copyright
486+
notice, this list of conditions and the following disclaimer.
487+
* Redistributions in binary form must reproduce the above
488+
copyright notice, this list of conditions and the following disclaimer
489+
in the documentation and/or other materials provided with the
490+
distribution.
491+
* Neither the name of Google Inc. nor the names of its
492+
contributors may be used to endorse or promote products derived from
493+
this software without specific prior written permission.
494+
495+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
496+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
497+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
498+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
499+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
500+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
501+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
502+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
503+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
504+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
505+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
506+
507+
Code generated by the Protocol Buffer compiler is owned by the owner
508+
of the input file used when generating it. This code is not
509+
standalone and requires a support library to be linked with it. This
510+
support library is itself covered by the above license.
555511

556512
======================================================================
557513
======================================================================
@@ -831,46 +787,6 @@ SOFTWARE.
831787
======================================================================
832788
======================================================================
833789

834-
zlib
835-
836-
zlib
837-
838-
Oracle gratefully acknowledges the contributions of Jean-loup Gailly
839-
and Mark Adler in creating the zlib general purpose compression library
840-
which is used in this product.
841-
(C) 1995-2017 Jean-loup Gailly and Mark Adler
842-
843-
This software is provided 'as-is', without any express or implied
844-
warranty. In no event will the authors be held liable for any damages
845-
arising from the use of this software.
846-
847-
Permission is granted to anyone to use this software for any purpose,
848-
including commercial applications, and to alter it and redistribute it
849-
freely, subject to the following restrictions:
850-
851-
1. The origin of this software must not be misrepresented; you must not
852-
claim that you wrote the original software. If you use this software
853-
in a product, an acknowledgment in the product documentation would be
854-
appreciated but is not required.
855-
2. Altered source versions must be plainly marked as such, and must not be
856-
misrepresented as being the original software.
857-
3. This notice may not be removed or altered from any source distribution.
858-
859-
Jean-loup Gailly Mark Adler
860-
861-
862-
If you use the zlib library in a product, we would appreciate *not* receiving
863-
lengthy legal documents to sign. The sources are provided for free but without
864-
warranty of any kind. The library has been entirely written by Jean-loup
865-
Gailly and Mark Adler; it does not include third-party code.
866-
867-
If you redistribute modified sources, we would appreciate that you include in
868-
the file ChangeLog history information documenting your changes. Please read
869-
the FAQ for more information on the distribution of modified source versions.
870-
871-
======================================================================
872-
======================================================================
873-
874790
ZSTD
875791

876792
Zstandard

packaging/mysql-connector-c++.spec.in

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2018, 2020, Oracle and/or its affiliates.
2+
# Copyright (c) 2018, 2021, Oracle and/or its affiliates.
33
#
44
# This program is free software; you can redistribute it and/or modify
55
# it under the terms of the GNU General Public License, version 2.0, as
@@ -36,6 +36,13 @@
3636
%{?commercial: %global product_suffix -commercial}
3737
%{!?commercial: %global product_suffix %{nil}}
3838
%{?el6:%global __strip /opt/rh/devtoolset-8/root/usr/bin/strip}
39+
%{?el6:%global gcc_toolset devtoolset-8}
40+
%ifarch %{arm} aarch64 arm64
41+
%{?el7:%global gcc_toolset devtoolset-9}
42+
%else
43+
%{?el7:%global gcc_toolset devtoolset-10}
44+
%endif
45+
%{?el8:%global gcc_toolset gcc-toolset-10}
3946
%if 0%{?suse_version} == 1315
4047
%global dist .sles12
4148
%endif
@@ -61,12 +68,8 @@ BuildRequires: cmake
6168
BuildRequires: gcc
6269
BuildRequires: gcc-c++
6370
%endif
64-
%{?el6:BuildRequires: devtoolset-8-gcc}
65-
%{?el6:BuildRequires: devtoolset-8-gcc-c++}
66-
%{?el7:BuildRequires: devtoolset-9-gcc}
67-
%{?el7:BuildRequires: devtoolset-9-gcc-c++}
68-
%{?el8:BuildRequires: gcc-toolset-9-gcc}
69-
%{?el8:BuildRequires: gcc-toolset-9-gcc-c++}
71+
BuildRequires: %{gcc_toolset}-gcc
72+
BuildRequires: %{gcc_toolset}-gcc-c++
7073
%{!?mysql_dir:BuildRequires: mysql-devel}
7174
BuildRequires: openssl-devel
7275
%{?commercial:Obsoletes: mysql-connector-c++ < %{version}-%{release}}
@@ -118,18 +121,7 @@ test suite for MySQL Connector/C++
118121

119122
%build
120123

121-
%{?el6:. /opt/rh/devtoolset-8/enable}
122-
%{?el6:export CC=/opt/rh/devtoolset-8/root/usr/bin/gcc}
123-
%{?el6:export CXX=/opt/rh/devtoolset-8/root/usr/bin/g++}
124-
125-
%{?el7:. /opt/rh/devtoolset-9/enable}
126-
%{?el7:export LD_LIBRARY_PATH=/opt/rh/devtoolset-9/root/usr/lib64:$LD_LIBRARY_PATH}
127-
%{?el7:export CC=/opt/rh/devtoolset-9/root/usr/bin/gcc}
128-
%{?el7:export CXX=/opt/rh/devtoolset-9/root/usr/bin/g++}
129-
130-
%{?el8:. /opt/rh/gcc-toolset-9/enable}
131-
%{?el8:export CC=/opt/rh/gcc-toolset-9/root/usr/bin/gcc}
132-
%{?el8:export CXX=/opt/rh/gcc-toolset-9/root/usr/bin/g++}
124+
source /opt/rh/%{gcc_toolset}/enable
133125

134126
%if 0%{?with_tests:1} && 0%{?with_gtest:1}
135127
%global __cmake_test_opts -DWITH_TESTS=1 -DWITH_GTEST=%{with_gtest}
@@ -154,10 +146,7 @@ make %{?_smp_mflags} VERBOSE=1
154146
popd
155147

156148
%install
157-
%{?el6:. /opt/rh/devtoolset-8/enable}
158-
%{?el7:export LD_LIBRARY_PATH=/opt/rh/devtoolset-9/root/usr/lib64:$LD_LIBRARY_PATH}
159-
%{?el7:. /opt/rh/devtoolset-9/enable}
160-
%{?el8:. /opt/rh/gcc-toolset-9/enable}
149+
source /opt/rh/%{gcc_toolset}/enable
161150

162151
pushd build-dynamic
163152
make DESTDIR=%{buildroot} install
@@ -229,6 +218,9 @@ rm %{buildroot}/usr/{INFO_SRC,INFO_BIN}
229218
%endif
230219

231220
%changelog
221+
* Fri Feb 05 2021 Kent Boortz <[email protected]> - 8.0.24-1
222+
- Aligned compiler settings with server
223+
232224
* Thu Nov 12 2020 Balasubramanian Kandasamy <[email protected]> - 8.0.23-1
233225
- Remove dependency on the mysql-client-plugins package for smooth upgrade
234226

0 commit comments

Comments
 (0)