Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mariadb-connector-c.16016 for 
openSUSE:Leap:15.2:Update checked in at 2021-04-03 20:04:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2:Update/mariadb-connector-c.16016 (Old)
 and      
/work/SRC/openSUSE:Leap:15.2:Update/.mariadb-connector-c.16016.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mariadb-connector-c.16016"

Sat Apr  3 20:04:31 2021 rev:1 rq:882416 version:3.1.12

Changes:
--------
New Changes file:

--- /dev/null   2021-03-11 01:47:46.020784395 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2:Update/.mariadb-connector-c.16016.new.2401/mariadb-connector-c.changes
 2021-04-03 20:04:35.985903733 +0200
@@ -0,0 +1,393 @@
+-------------------------------------------------------------------
+Wed Mar  3 23:49:31 UTC 2021 - Kristyna Streitova <[email protected]>
+
+- Update to release 3.1.12 [bsc#1182739]:
+  * MDEV-24577: Fix warnings generated during compilation of
+    plugin/auth_pam/testing/pam_mariadb_mtr.c on FreeBSD
+  * CONC-521: Fixed warning on MacOS when including ucontext.h
+  * CONC-518: Check if mysql->options.extension was allocated before
+    checking async_context
+  * CONC-517: C/C looks for plugins in wrong location on Windows
+
+-------------------------------------------------------------------
+Thu Nov 12 15:41:20 UTC 2020 - Kristyna Streitova <[email protected]>
+
+- Update to release 3.1.11: [bsc#1177472] and [bsc#1178428]
+  * CONC-513: MSAN use-of-uninitialized-value in strstr()
+  * CONC-512: truncation check for float values fails on i386 due
+  * to Intel FPU optimization bug in gcc
+  * CONC-510: Fix crash when loading plugins in mysql_server_init()
+  * CONC-508: Added support for passwords > 255 characters
+  * CONC-507: Fixed race condition in ma_net_init
+  * CONC-501: Added support for TLS v1.3 cipher suites
+  * MDEV-21612: Removed unused command COM_MULTI
+
+- changes in release 3.1.10:
+  * CONC-500: Fixed error when loading intermediate chained certificates
+  * MDEV-18818: Fixed wrong zlib in mariadb_config when building
+    inside server package
+  * CONC-498: MYSQL_UNIX_ADDR and MYSQL_PORT are now defined
+  * Added new build option WIITH_ICONV=ON/OFF. When set to OFF (default)
+    API function mariadb_convert_string will always return -1 and
+    sets errorcode to ENOTSUP.
+  * mariadb_config now tries to determine the path of execution or
+    uses MARIADB_CONFIG environment variable before falling back and
+    using CMAKE_INSTALL_PREFIX for location of libraries and include files
+  * added --variables option for mariadb_config.
+    Supported values are pkgincludedir, pkglibdir and pkgplugindir.
+
+- add %{_includedir}/mariadb -> %{_includedir}/mysql symlink
+- absolute_path_fix.patch, private_library.patch: refreshed
+ 
+-------------------------------------------------------------------
+Tue Aug 25 12:44:08 UTC 2020 - Kristyna Streitova <[email protected]>
+
+- Update to release 3.1.9 [bsc#1175596]
+  * CONC-469: Use servers preferred authentication method unless
+    another plugin was specified.
+  * Added support for kFreeBSD builds
+  * Fixed memory leak in GnuTLS if connection couldn't be established.
+- refresh private_library.patch
+
+-------------------------------------------------------------------
+Fri May 22 15:25:14 UTC 2020 - Kristyna Streitova <[email protected]>
+
+- Update to release 3.1.8 [bsc#1171550]
+  * CONC-304: Rename the static library to libmariadb.a and other
+    libmariadb files in a consistent manner
+  * CONC-441: Default user name for C/C is wrong if login user
+    is different from effective user
+  * CONC-449: Check $MARIADB_HOME/my.cnf in addition to
+    $MYSQL_HOME/my.cnf
+  * CONC-457: mysql_list_processes crashes in unpack_fields
+  * CONC-458: mysql_get_timeout_value crashes when used improperly
+  * CONC-464: Fix static build for auth_gssapi_client plugin
+  * Fixes for the following security vulnerabilities:
+    CVE-2020-13249
+- refresh absolute_path_fix.patch and private_library.patch
+
+-------------------------------------------------------------------
+Tue Feb 18 17:12:05 UTC 2020 - Kristyna Streitova <[email protected]>
+
+- Update to release 3.1.7 [bsc#1162388]
+  * TLS/SSL: when the client doesn't procide a CA file and the
+    option ssl_verify_server_cert was set, the peer cerificate
+    will be validated against the system CA.
+- Update to release 3.1.6
+  * Fixed: ERROR 2026 (HY000): SSL connection error: Certificate
+    signature check failed
+  * Fixed: Provide error code and message for Schannel errors
+  * Fixed SEC_E_INVALID_TOKEN when server sends large message
+    during SSL handshake
+
+-------------------------------------------------------------------
+Thu Nov 28 16:11:14 UTC 2019 - Kristyna Streitova <[email protected]>
+
+- New upstream version 3.1.5 [bsc#1156669]
+  * MDEV-20469: Plugin dialog could not be loaded (wrong path)
+  * ODBC-440: Fixed typo in sha256_password cmake configuration
+  * CONC-418: For unknown/not handled schannel error codes
+    FormatMessage function will be used instead of returning
+    "Unknown error" message.
+  * CONC-431: Use windows crypto libraries on Windows platforms
+  * CONC-380: Fix CMake warnings
+  * CONC-345: heap-use-after-free in client_mpvio_read_packet
+  * CONC-423: Fix GnuTLS error with TLSv1.3
+  * CONC-424: Ignore SERVER_STATUS_CURSOR_EXISTS if client didn't
+    open a cursor before
+  * CONC-421: Fixed crash in GnuTLS when key and certificate are
+    in the same file
+  * CONC-429: Don't allow invalid characters in plugin names
+  * MDEV-19807: Fixed Location of PLUGINDIR if Connector/C is a
+    subproject
+- refresh absolute_path_fix.patch, private_library.patch and
+  mariadb-connector-c-2.3.1_unresolved_symbols.patch
+
+-------------------------------------------------------------------
+Wed Jul  3 15:34:16 UTC 2019 - Kristyna Streitova <[email protected]>
+
+- New upstream version 3.1.2 [bsc#1136035]
+  * CONC-383: client plugins can't be loaded due to missing prefix
+  * Fixed version setting in GnuTLS by moving "NORMAL" at the end
+    of priority string
+  * CONC-386: Added support for pem files which contain certificate
+    and private key.
+  * Replication/Binlog API: The main mechanism used in replication
+    is the binary log.
+  * CONC-395: Dashes and underscores are not interchangeable in
+    options in my.cnf
+  * CONC-384: Incorrect packet when a connection attribute name or
+    value is equal to or greater than 251
+  * CONC-388: field->def_length is always set to 0
+  * Getter should get and the setter should set
+    CLIENT_CAN_HANDLE_EXPIRED_PASSWORDS
+  * Disable LOAD DATA LOCAL INFILE suport by default and auto-enable
+    it for the duration of one query, if the query string starts with
+    the word "load". In all other cases the application should enable
+    LOAD DATA LOCAL INFILE support explicitly.
+  * Changed return code for mysql_optionv/mysql_get_optionv to 1 (was -1)
+    and added CR_NOT_IMPLEMENTED error message if a option is unknown
+    or not supported.
+  * mingw fix: use lowercase names for include files
+  * CONC-375: Fixed handshake errors when mixing TLSv1.3 cipher
+    suites with cipher suites from other TLS protocols
+  * CONC-312: Added new caching_sha2_password authentication plugin
+    for authentication with MySQL 8.0
+- refresh mariadb-connector-c-2.3.1_unresolved_symbols.patch and
+  private_library.patch
+- pack caching_sha2_password.so and client_ed25519.so
+- use DINSTALL_PCDIR for libmariadb.pc [bsc#1126088]
+
+-------------------------------------------------------------------
+Fri Mar  1 15:30:42 UTC 2019 - [email protected]
+
+- move libmariadb.pc from /usr/lib/pkgconfig to
+  /usr/lib64/pkgconfig [bsc#1126088]
+
+-------------------------------------------------------------------
+Tue Dec  4 14:44:16 UTC 2018 - [email protected]
+
+- New upstream version 3.0.7 [bsc#1116686]
+- 3.0.7
+  * Build fixes when building with ASAN/TSAN
+  * CONC-370: Fixed memory leak in configuration file parsing.
+  * CONC-371: Incorrect fractional part conversion when converting
+    datetime string to MYSQL_TIME
+  * CONC-283: Fixed pkg-config configuration
+  * CONC-364: Not all sockets created in pvio_socket_connect
+    function are closed
+  * multiple fixes in named pipe implementation
+  * CONC-349: Added new parameter STMT_ATTR_STATE to retrieve
+    statement status via api function mysql_stmt_attr_get
+- 3.0.6
+  * MDEV-15263: FIx IS_NUM() macro
+  * CONC-297: local infile parameter must be unsigned int instead
+    of my_bool
+  * CONC-329: change return value of internal socket functions
+    from my_bool to int
+  * CONC-332: my_auth doesn't read/update server ok packet
+  * CONC-344: reset internal row counter
+  * CONC-345: invalid heap use after free
+  * CONC-346: Remove old cmake policies
+  * fixed crash in mysql_select_db if NULL parameter was provided
+- 3.0.5
+  * CONC-336: Allow multiple initialization of client library
+  * Fixed string to MYSQL_TIME conversion (prepared statements)
+  * CONC-334: Copy all members of MYSQL_FIELD to internal
+    statement structure
+  * Fixed double free in dynamic column library
+  * Added checks for corrupted packets in protocol
+  * MDEV-15450: Added default connection attribute _server_host
+  * CONC-326: fixed wrong openssl thread id callback
+- 3.0.4
+  * Added option MYSQL_OPT_CAN_HANDLE_EXPIRED_PASSWORDS for
+    mysql_options()/mysql_optionsv():
+  * New plugin configuration interface: The default configuration
+    for a specific plugin can be specified via cmake parameter
+    -DCLIENT_PLUGIN_${PLUGIN}=[DYNAMIC|STATIC|OFF].
+  * Added support for linux abstract socket (MDEV-15655).
+  * CONC-320: Added asynchronous/non-blocking support for
+    OpenSSL and GnuTLS
+  * CONC-294: Access violation in mysql_close when using
+    a connection plugin.
+  * MDEV-14977: If built dynamically the old_password plugin
+    could not be located due to wrong filename (must be
+    mysql_old_password.so instead of old_password.so).
+  * CONC-315: If no default client character set was specified,
+    the utf8 character set will be used by default (instead of
++++ 196 more lines (skipped)
++++ between /dev/null
++++ and 
/work/SRC/openSUSE:Leap:15.2:Update/.mariadb-connector-c.16016.new.2401/mariadb-connector-c.changes

New:
----
  absolute_path_fix.patch
  baselibs.conf
  mariadb-connector-c-2.3.1_unresolved_symbols.patch
  mariadb-connector-c-3.1.12-src.tar.gz
  mariadb-connector-c-3.1.12-src.tar.gz.asc
  mariadb-connector-c.changes
  mariadb-connector-c.spec
  mariadb.keyring
  private_library.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mariadb-connector-c.spec ++++++
#
# spec file for package mariadb-connector-c
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%define sover 3
%define libname libmariadb
# equivalent mariadb version
%define mariadb_version 10.2.31
%if ! %{defined _rundir}
%define _rundir %{_localstatedir}/run
%endif
%bcond_with sqlite3
Name:           mariadb-connector-c
Version:        3.1.12
Release:        0
Summary:        MariaDB connector in C
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
URL:            https://github.com/MariaDB/mariadb-connector-c
Source:         
https://downloads.mariadb.com/Connectors/c/connector-c-%{version}/%{name}-%{version}-src.tar.gz
Source1:        
https://downloads.mariadb.com/Connectors/c/connector-c-%{version}/%{name}-%{version}-src.tar.gz.asc
# Imported from keyserver based on keyid @ 
https://mariadb.com/kb/en/mariadb-enterprise/mariadb-enterprise-installation-guide/
Source2:        mariadb.keyring
Source3:        baselibs.conf
Patch1:         mariadb-connector-c-2.3.1_unresolved_symbols.patch
Patch3:         absolute_path_fix.patch
Patch4:         private_library.patch
BuildRequires:  cmake
BuildRequires:  curl-devel
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(krb5)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(zlib)
%if %{with sqlite3}
BuildRequires:  pkgconfig(sqlite3)
%endif

%description
MariaDB Connector is used to connect applications developed in
C or C++ to MariaDB and MySQL databases.

%package -n %{libname}%{sover}
Summary:        MariaDB connector in C
Group:          System/Libraries

%description -n %{libname}%{sover}
MariaDB Connector is used to connect applications developed in
C or C++ to MariaDB and MySQL databases.

This package holds the runtime components.

%package -n %{libname}_plugins
Summary:        Plugins for the MariaDB C Connector
# We need "Conflicts" because we moved some plugins here:
# dialog.so was in mariadb-client package
# mysql_clear_password.so was in mariadb package
Group:          System/Libraries
Conflicts:      mariadb <= 10.1.25
Conflicts:      mariadb-client <= 10.1.25

%description -n %{libname}_plugins
MariaDB Connector is used to connect applications developed in
C or C++ to MariaDB and MySQL databases.

This package holds MariaDB library plugins.

%package -n %{libname}private
Summary:        Additional internal libraries for the MariaDB C Connector
Group:          System/Libraries

%description -n %{libname}private
MariaDB Connector is used to connect applications developed in
C or C++ to MariaDB and MySQL databases.

This package holds the runtime components with private API.

%package -n %{libname}-devel
Summary:        Development files for the MariaDB Connector C API
Group:          Development/Libraries/C and C++
Requires:       %{libname}%{sover} = %{version}
Requires:       pkgconfig(openssl)
Requires:       pkgconfig(zlib)
# mysql-devel needs to be provided as some pkgs still depend on it
Provides:       mysql-devel = %{mariadb_version}
Obsoletes:      mysql-devel < %{mariadb_version}
Provides:       libmysqlclient-devel = %{mariadb_version}
Obsoletes:      libmysqlclient-devel < %{mariadb_version}

%description -n %{libname}-devel
MariaDB Connector is used to connect applications developed in
C or C++ to MariaDB and MySQL databases.

This package holds the development files.

%prep
%setup -q -n %{name}-%{version}-src
%patch1 -p1
%patch3 -p1
%patch4 -p1

%build
# plugin types seems to require no aliasing assumptions
%define _lto_cflags %{nil}
export CFLAGS="%{optflags} -fno-strict-aliasing"

%cmake \
  %if %{with sqlite3}
  -DWITH_SQLITE:BOOL=ON \
  %endif
  -DWITH_EXTERNAL_ZLIB:BOOL=ON \
  -DMARIADB_UNIX_ADDR:STRING=%{_rundir}/mysql/mysql.sock \
  -DINSTALL_LIBDIR:STRING=%{_libdir} \
  -DINSTALL_INCLUDEDIR:STRING=%{_includedir}/mysql \
  -DINSTALL_PLUGINDIR:STRING=%{_libdir}/mysql/plugin/ \
  -DWITH_MYSQLCOMPAT=ON \
  -DWITH_SSL=OPENSSL \
  -DINSTALL_PCDIR="%{_libdir}/pkgconfig"
%make_jobs

%install
%cmake_install

# remove static linked libraries
rm %{buildroot}%{_libdir}/libmariadbclient.a
rm %{buildroot}%{_libdir}/libmysqlclient.a
rm %{buildroot}%{_libdir}/libmysqlclient_r.a

# add a compatibility symlinks
ln -s mariadb_config %{buildroot}%{_bindir}/mysql_config
ln -s mariadb_version.h %{buildroot}%{_includedir}/mysql/mysql_version.h

ln -s %{_includedir}/mysql %{buildroot}%{_includedir}/mariadb

# install some extra required header file
install -Dpm 0644 build/include/ma_config.h \
  %{buildroot}%{_includedir}/mysql/my_config.h

%post   -n %{libname}%{sover} -p /sbin/ldconfig
%post   -n %{libname}private -p /sbin/ldconfig
%postun -n %{libname}%{sover} -p /sbin/ldconfig
%postun -n %{libname}private -p /sbin/ldconfig

%files -n %{libname}%{sover}
%license COPYING.LIB
%doc README
%{_libdir}/libmariadb.so.%{sover}

%files -n %{libname}_plugins
%dir %{_libdir}/mysql/
%dir %{_libdir}/mysql/plugin/
%{_libdir}/mysql/plugin/dialog.so
%{_libdir}/mysql/plugin/mysql_clear_password.so
%{_libdir}/mysql/plugin/auth_gssapi_client.so
%{_libdir}/mysql/plugin/remote_io.so
%{_libdir}/mysql/plugin/sha256_password.so
%{_libdir}/mysql/plugin/caching_sha2_password.so
%{_libdir}/mysql/plugin/client_ed25519.so

%files -n %{libname}private
%{_libdir}/libmariadbprivate.so

%files -n %{libname}-devel
%{_bindir}/mariadb_config
%{_bindir}/mysql_config
%dir %{_includedir}/mysql
%{_includedir}/mysql/*
%{_includedir}/mariadb
%{_libdir}/pkgconfig/libmariadb.pc
%{_libdir}/libmariadb.so
%{_libdir}/libmysqlclient.so
%{_libdir}/libmysqlclient_r.so

%changelog
++++++ absolute_path_fix.patch ++++++
Author: Adam Majer <[email protected]>
Date: Fri Mar  3 15:59:09 CET 2017
Summary: Remove pure ugliness with paths

Index: mariadb-connector-c-3.1.11-src/mariadb_config/libmariadb.pc.in
===================================================================
--- mariadb-connector-c-3.1.11-src.orig/mariadb_config/libmariadb.pc.in
+++ mariadb-connector-c-3.1.11-src/mariadb_config/libmariadb.pc.in
@@ -7,8 +7,8 @@
 #
 
 prefix=@CMAKE_INSTALL_PREFIX@
-includedir=${prefix}/@INSTALL_INCLUDEDIR@/@SUFFIX_INSTALL_DIR@
-libdir=${prefix}/@INSTALL_LIBDIR@/@SUFFIX_INSTALL_DIR@
+includedir=@INSTALL_INCLUDEDIR@
+libdir=@INSTALL_LIBDIR@
 
 Name: libmariadb
 Version: @CPACK_PACKAGE_VERSION@
Index: mariadb-connector-c-3.1.11-src/mariadb_config/mariadb_config.c.in
===================================================================
--- mariadb-connector-c-3.1.11-src.orig/mariadb_config/mariadb_config.c.in
+++ mariadb-connector-c-3.1.11-src/mariadb_config/mariadb_config.c.in
@@ -210,7 +210,7 @@ end:
   }
   if (!p || !p[0])
   {
-    strncpy(installation_dir, "@CMAKE_SYSROOT@@CMAKE_INSTALL_PREFIX@", 
PATH_MAX - 1);
+    installation_dir[0] = 0;
     return;
   }
 }
++++++ baselibs.conf ++++++
libmariadb3
  provides "libmysqlclient.so.18"
  provides "libmysqlclient.so.18(libmysqlclient_18)"
++++++ mariadb-connector-c-2.3.1_unresolved_symbols.patch ++++++
Index: mariadb-connector-c-3.1.4-src/plugins/auth/CMakeLists.txt
===================================================================
--- mariadb-connector-c-3.1.4-src.orig/plugins/auth/CMakeLists.txt
+++ mariadb-connector-c-3.1.4-src/plugins/auth/CMakeLists.txt
@@ -32,7 +32,8 @@ REGISTER_PLUGIN(TARGET dialog
                 CONFIGURATIONS DYNAMIC STATIC OFF
                 DEFAULT DYNAMIC
                 SOURCES ${CC_SOURCE_DIR}/plugins/auth/dialog.c
-                        ${CC_SOURCE_DIR}/libmariadb/get_password.c)
+                        ${CC_SOURCE_DIR}/libmariadb/get_password.c
+                LIBRARIES dl)
 
 
 # Crypto plugins
++++++ private_library.patch ++++++
Author: Adam Majer <[email protected]>
Date: Thu Mar 23 11:54:11 CET 2017
Summary: Build private symbols library

Some of the private symbols have very generic names and are required
by other connectors, like the ODBC connector. Instead of using
static linking, create a private shared library that simply
exports all symbols. With the exception of exported symbols, it is
identical to the regular library.

Index: mariadb-connector-c-3.1.11-src/libmariadb/CMakeLists.txt
===================================================================
--- mariadb-connector-c-3.1.11-src.orig/libmariadb/CMakeLists.txt
+++ mariadb-connector-c-3.1.11-src/libmariadb/CMakeLists.txt
@@ -414,6 +414,12 @@ IF(CMAKE_SIZEOF_VOID_P EQUAL 8 AND MSVC)
   SET_TARGET_PROPERTIES(mariadbclient PROPERTIES STATIC_LIBRARY_FLAGS 
"/machine:x64")
 ENDIF()
 
+ADD_LIBRARY(libmariadbprivate SHARED ${libmariadb_RC} 
$<TARGET_OBJECTS:mariadb_obj> ${EMPTY_FILE} ${EXPORT_LINK})
+TARGET_LINK_LIBRARIES(libmariadbprivate ${SYSTEM_LIBS})
+IF(UNIX)
+  SET_TARGET_PROPERTIES(libmariadbprivate PROPERTIES COMPILE_FLAGS 
"${CMAKE_SHARED_LIBRARY_C_FLAGS}")
+ENDIF()
+
 IF(CMAKE_SYSTEM_NAME MATCHES "Linux" OR
    CMAKE_SYSTEM_NAME MATCHES "kFreeBSD" OR
    CMAKE_SYSTEM_NAME MATCHES "GNU")
@@ -421,11 +427,13 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Linux" OR
     TARGET_LINK_LIBRARIES (libmariadb LINK_PRIVATE "-Wl,--no-undefined")
   ENDIF()
   SET_TARGET_PROPERTIES(libmariadb PROPERTIES LINK_FLAGS 
"${CC_BINARY_DIR}/libmariadb/mariadbclient.def")
+  SET_TARGET_PROPERTIES(libmariadbprivate PROPERTIES LINK_FLAGS 
"-Wl,--no-undefined")
 ENDIF()
 
 SET_TARGET_PROPERTIES(mariadbclient PROPERTIES 
IMPORTED_INTERFACE_LINK_LIBRARIES "${SYSTEM_LIBS}")
 SET_TARGET_PROPERTIES(libmariadb PROPERTIES IMPORTED_INTERFACE_LINK_LIBRARIES 
"${SYSTEM_LIBS}")
 
+SET_TARGET_PROPERTIES(libmariadbprivate PROPERTIES PREFIX "")
 SET_TARGET_PROPERTIES(libmariadb PROPERTIES PREFIX "")
 
 #
@@ -461,7 +469,9 @@ INSTALL(TARGETS mariadbclient
 INSTALL(TARGETS libmariadb
           COMPONENT SharedLibraries
         DESTINATION ${INSTALL_LIBDIR})
-
+INSTALL(TARGETS libmariadbprivate
+          COMPONENT SharedLibraries
+          DESTINATION ${INSTALL_LIBDIR})
 
 IF(MSVC)
    # On Windows, install PDB
Index: mariadb-connector-c-3.1.11-src/mariadb_config/mariadb_config.c.in
===================================================================
--- mariadb-connector-c-3.1.11-src.orig/mariadb_config/mariadb_config.c.in
+++ mariadb-connector-c-3.1.11-src/mariadb_config/mariadb_config.c.in
@@ -30,6 +30,7 @@ static char *mariadb_progname;
 #define INCLUDE "-I%s/@INSTALL_INCLUDEDIR@ -I%s/@INSTALL_INCLUDEDIR@/mysql"
 #define LIBS    "-L%s/@INSTALL_LIBDIR@/ -lmariadb"
 #define LIBS_SYS "@extra_dynamic_LDFLAGS@"
+#define PRIVATE_LIBS "-L@INSTALL_LIBDIR@ -lmariadbprivate " LIBS_SYS
 #define CFLAGS  INCLUDE
 #define VERSION "@MARIADB_CLIENT_VERSION@"
 #define CC_VERSION "@CPACK_PACKAGE_VERSION@"
@@ -65,6 +66,7 @@ static struct option long_options[]=
   {OPT_STRING_TYPE "plugindir", no_argument, 0, 'j'},
   {OPT_STRING_TYPE "tlsinfo", no_argument, 0, 'k'},
   {OPT_STRING_TYPE "variable", 2, 0, 'm'},
+  {OPT_STRING_TYPE "privatelibs", no_argument, 0, 'z'},
   {NULL, 0, 0, 0}
 };
 
@@ -92,6 +94,7 @@ static const char *values[]=
   CC_VERSION,
   SOCKET,
   PORT,
+  PRIVATE_LIBS,
   PLUGIN_DIR,
   TLS_LIBRARY_VERSION,
   "VAR  VAR is one of:"
@@ -288,6 +291,9 @@ int main(int argc, char **argv)
       }
       break;
     }
+    case 'z':
+      puts(PRIVATE_LIBS);
+      break;
     default:
       exit((c != -1));
     }

Reply via email to