Skip to content

Commit 1da4c78

Browse files
committed
Merge remote-tracking branch 'origin/release/8.0.30'
Change-Id: I72d5d5f17dca39635e37104b631662794baf16c4
2 parents 0d3cf3c + ed4a967 commit 1da4c78

File tree

6 files changed

+151
-52
lines changed

6 files changed

+151
-52
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Before reporting a new bug, please check first to see if a similar bug [exists](
99
Bug reports should be as complete as possible. Please try and include the following:
1010

1111
* complete steps to reproduce the issue
12-
* any information about platform and environment that could be specific to the bug
12+
* any information about platform and environment that could be specific to the bug
1313
* Specific version of the product you are using
1414
* Specific version of the server being used
1515
* C++ code to help reproduce the issue if possible
@@ -18,7 +18,7 @@ Bug reports should be as complete as possible. Please try and include the follo
1818

1919
Contributing to this project is easy. You just need to follow these steps.
2020

21-
* Sign the Oracle Contributor Agreement. You can find instructions for doing that at [OCA Page](https://www.oracle.com/technetwork/community/oca-486395.html)
21+
* Sign the Oracle Contributor Agreement. You can find instructions for doing that at [OCA Page](https://oca.opensource.oracle.com/)
2222
* Develop your pull request
2323
* Make sure you are aware of the requirements for the project (i.e. don't require C++17 if we are supporting C++11 and higher)
2424
* Validate your pull request by including tests that sufficiently cover the functionality

LICENSE.txt

Lines changed: 100 additions & 1 deletion
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: March 2022
13+
Last updated: April 2022
1414

1515
Licensing Information
1616

@@ -1885,6 +1885,105 @@ The following notice applies to
18851885
======================================================================
18861886
======================================================================
18871887

1888+
LibFIDO
1889+
1890+
Copyright (c) 2018-2021 Yubico AB. All rights reserved.
1891+
1892+
Redistribution and use in source and binary forms, with or without
1893+
modification, are permitted provided that the following conditions are
1894+
met:
1895+
1896+
1. Redistributions of source code must retain the above copyright
1897+
notice, this list of conditions and the following disclaimer.
1898+
2. Redistributions in binary form must reproduce the above copyright
1899+
notice, this list of conditions and the following disclaimer in
1900+
the documentation and/or other materials provided with the
1901+
distribution.
1902+
1903+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1904+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1905+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1906+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1907+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1908+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1909+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1910+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1911+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1912+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1913+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1914+
1915+
4th Party
1916+
=========
1917+
1918+
libcbor
1919+
-------
1920+
1921+
MIT License
1922+
1923+
Copyright (c) 2014-2017 Pavel Kalvoda
1924+
1925+
Permission is hereby granted, free of charge, to any person obtaining a copy
1926+
of this software and associated documentation files (the "Software"), to deal
1927+
in the Software without restriction, including without limitation the rights
1928+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1929+
copies of the Software, and to permit persons to whom the Software is
1930+
furnished to do so, subject to the following conditions:
1931+
1932+
The above copyright notice and this permission notice shall be included in
1933+
all copies or substantial portions of the Software.
1934+
1935+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1936+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1937+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1938+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1939+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1940+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1941+
SOFTWARE.
1942+
1943+
------------------------------------------------------------------------------
1944+
----
1945+
zlib
1946+
----
1947+
1948+
Copyright notice:
1949+
1950+
(C) 1995-2017 Jean-loup Gailly and Mark Adler
1951+
1952+
This software is provided 'as-is', without any express or implied
1953+
warranty. In no event will the authors be held liable for any damages
1954+
arising from the use of this software.
1955+
1956+
Permission is granted to anyone to use this software for any purpose,
1957+
including commercial applications, and to alter it and redistribute it
1958+
freely, subject to the following restrictions:
1959+
1960+
1. The origin of this software must not be misrepresented; you must not
1961+
claim that you wrote the original software. If you use this software
1962+
in a product, an acknowledgment in the product documentation would be
1963+
appreciated but is not required.
1964+
2. Altered source versions must be plainly marked as such, and must not be
1965+
misrepresented as being the original software.
1966+
3. This notice may not be removed or altered from any source distribution.
1967+
1968+
Jean-loup Gailly Mark Adler
1969+
1970+
1971+
If you use the zlib library in a product, we would appreciate *not* receiving
1972+
lengthy legal documents to sign. The sources are provided for free but
1973+
without warranty of any kind. The library has been entirely written by
1974+
Jean-loup Gailly and Mark Adler; it does not include third-party code.
1975+
1976+
If you redistribute modified sources, we would appreciate that you include in
1977+
the file ChangeLog history information documenting your changes. Please read
1978+
the FAQ for more information on the distribution of modified source versions.
1979+
1980+
------------------------------------------------------------------------------
1981+
OpenSSL (See its own license section)
1982+
------------------------------------------------------------------------------
1983+
1984+
======================================================================
1985+
======================================================================
1986+
18881987
LZ4
18891988

18901989
LZ4 Library

buildinfo.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,11 @@ FUNCTION(GENERATE_INFO_SRC)
169169
ENDIF()
170170
ENDIF()
171171

172-
CONFIGURE_FILE(INFO_SRC.in "${CMAKE_SOURCE_DIR}/INFO_SRC")
172+
CONFIGURE_FILE(INFO_SRC.in "${CMAKE_BINARY_DIR}/INFO_SRC")
173173
ENDIF()
174174

175175
install(
176-
FILES "${CMAKE_SOURCE_DIR}/INFO_SRC"
176+
FILES "${CMAKE_BINARY_DIR}/INFO_SRC"
177177
DESTINATION ${INSTALL_DOC_DIR}
178178
COMPONENT Readme
179179
)

packaging/deb-in/CMakeLists.txt

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,45 @@ IF (NOT DEFINED DEB_CODENAME)
3131
)
3232
SET (DEB_CODENAME ${DEB_CODENAME} CACHE STRING "")
3333
ENDIF()
34+
35+
# debian, ubuntu
36+
IF (NOT DEFINED DEB_ID)
37+
execute_process(
38+
COMMAND lsb_release -is
39+
OUTPUT_VARIABLE DEB_ID
40+
OUTPUT_STRIP_TRAILING_WHITESPACE
41+
)
42+
SET (DEB_ID ${DEB_ID} CACHE STRING "")
43+
ENDIF()
44+
45+
# 22.04, 11.x, etc
46+
IF (NOT DEFINED DEB_RELEASE)
47+
execute_process(
48+
COMMAND lsb_release -rs
49+
OUTPUT_VARIABLE DEB_RELEASE
50+
OUTPUT_STRIP_TRAILING_WHITESPACE
51+
)
52+
SET (DEB_RELEASE ${DEB_RELEASE} CACHE STRING "")
53+
ENDIF()
54+
55+
# Change uppercase first letter of Ubuntu/Debian
56+
string(TOLOWER "${DEB_ID}" DEB_ID)
57+
58+
# lsb_release on Debian reports the full version number, e.g. 9.9, and we just want the major version
59+
IF(DEB_ID STREQUAL "debian")
60+
string(REGEX REPLACE "\\..*" "" DEB_RELEASE "${DEB_RELEASE}")
61+
ENDIF()
62+
63+
# ubuntu22.04, debian11, etc
64+
SET (DEB_PLATFORMRELEASE "${DEB_ID}${DEB_RELEASE}")
65+
66+
IF(DEB_CODENAME STREQUAL "sid")
67+
IF (DEFINED DEB_GCC_SNAPSHOT)
68+
SET (DEB_CMAKE_EXTRAS "${DEB_CMAKE_EXTRAS} -DCMAKE_C_COMPILER=/usr/lib/gcc-snapshot/bin/gcc -DCMAKE_CXX_COMPILER=/usr/lib/gcc-snapshot/bin/g++ -DMYSQL_MAINTAINER_MODE=0 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache")
69+
ENDIF()
70+
SET (DEB_PLATFORMRELEASE "debianunstable")
71+
ENDIF()
72+
3473
# Timestamp for use in debian/changelog
3574
IF (NOT DEFINED DEB_CHANGELOG_TIMESTAMP)
3675
execute_process(
@@ -55,49 +94,10 @@ ELSE()
5594
SET (DEB_VERSION "-1")
5695
SET (DEB_SERVERPRODUCT "community")
5796
ENDIF()
58-
59-
60-
# Platform specifics. The differences are generally only distro name used in version string
61-
IF(DEB_CODENAME STREQUAL "stretch")
62-
SET (DEB_PLATFORMRELEASE "debian9")
63-
ELSEIF(DEB_CODENAME STREQUAL "buster")
64-
SET (DEB_PLATFORMRELEASE "debian10")
65-
ELSEIF(DEB_CODENAME STREQUAL "bullseye")
66-
SET (DEB_PLATFORMRELEASE "debian11")
67-
ELSEIF(DEB_CODENAME STREQUAL "sid")
68-
IF (DEFINED DEB_GCC_SNAPSHOT)
69-
SET (DEB_CMAKE_EXTRAS "${DEB_CMAKE_EXTRAS} -DCMAKE_C_COMPILER=/usr/lib/gcc-snapshot/bin/gcc -DCMAKE_CXX_COMPILER=/usr/lib/gcc-snapshot/bin/g++ -DMYSQL_MAINTAINER_MODE=0 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache")
70-
ENDIF()
71-
SET (DEB_PLATFORMRELEASE "debianunstable")
72-
ELSEIF(DEB_CODENAME STREQUAL "xenial")
73-
SET (DEB_PLATFORMRELEASE "ubuntu16.04")
74-
# Generate debug symbol packages (this is done automatically in Debian9+)
75-
SET (DEB_RULES_STRIP
76-
"
77-
override_dh_strip:
78-
dh_strip -plibmysqlcppconn9 --dbg-package=libmysqlcppconn9-dbgsym
79-
dh_strip -plibmysqlcppconn8-2 --dbg-package=libmysqlcppconn8-2-dbgsym
80-
")
81-
SET (DEB_CONTROL_DBGSYM
82-
"
83-
Package: libmysqlcppconn9-dbgsym
84-
Architecture: any
85-
Section: debug
86-
Depends: libmysqlcppconn9 (=\${binary:Version}), \${misc:Depends}
87-
Description: Debugging symbols for compat library
88-
89-
Package: libmysqlcppconn8-2-dbgsym
90-
Architecture: any
91-
Section: debug
92-
Depends: libmysqlcppconn8-2 (= \${binary:Version}), \${misc:Depends}
93-
Description: Debugging symbols for main library
94-
")
95-
ELSEIF(DEB_CODENAME STREQUAL "bionic")
96-
SET (DEB_PLATFORMRELEASE "ubuntu18.04")
97-
ELSEIF(DEB_CODENAME STREQUAL "groovy")
98-
SET (DEB_PLATFORMRELEASE "ubuntu20.10")
99-
ELSEIF(DEB_CODENAME STREQUAL "focal")
100-
SET (DEB_PLATFORMRELEASE "ubuntu20.04")
97+
ELSEIF(DEB_CODENAME STREQUAL "hirsute")
98+
SET (DEB_PLATFORMRELEASE "ubuntu21.04")
99+
ELSEIF(DEB_CODENAME STREQUAL "impish")
100+
SET (DEB_PLATFORMRELEASE "ubuntu21.10")
101101
ELSEIF(DEB_CODENAME STREQUAL "jammy")
102102
SET (DEB_PLATFORMRELEASE "ubuntu22.04")
103103
ELSE()

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,15 @@ rm %{buildroot}/usr/{INFO_SRC,INFO_BIN}
146146
%postun jdbc -p /sbin/ldconfig
147147

148148
%files
149-
%doc README.txt LICENSE.txt INFO_SRC build-dynamic/INFO_BIN
149+
%doc README.txt LICENSE.txt build-dynamic/INFO_SRC build-dynamic/INFO_BIN
150150
%{_libdir}/libmysqlcppconn8.so.@ABI_VERSION_MAJOR@*
151151

152152
%files jdbc
153-
%doc README.txt LICENSE.txt INFO_SRC build-dynamic/INFO_BIN
153+
%doc README.txt LICENSE.txt build-dynamic/INFO_SRC build-dynamic/INFO_BIN
154154
%{_libdir}/libmysqlcppconn.so.@JDBC_ABI_VERSION_MAJOR@*
155155

156156
%files devel
157-
%doc README.txt LICENSE.txt INFO_SRC build-dynamic/INFO_BIN
157+
%doc README.txt LICENSE.txt build-dynamic/INFO_SRC build-dynamic/INFO_BIN
158158
%{_libdir}/libmysqlcppconn.so
159159
%{_libdir}/libmysqlcppconn-static.a
160160
%{_libdir}/libmysqlcppconn8.so

0 commit comments

Comments
 (0)