mysqlcppconn-libmysqlclient-SONAME
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Sat, 1 Feb 2020 14:13:43 +0000 (14:13 +0000)
committerRene Engelhard <rene@debian.org>
Sat, 1 Feb 2020 14:13:43 +0000 (14:13 +0000)
Gbp-Pq: Name mysqlcppconn-libmysqlclient-SONAME.diff

external/mysql-connector-cpp/Library_mysqlcppconn.mk
external/mysql-connector-cpp/UnpackedTarball_mysql-connector-cpp.mk
external/mysql-connector-cpp/patches/mysql-connector-c++-1.1.0-SONAME.patch [new file with mode: 0644]

index 152aee8c07646a38c9dcdbfd2d32e817b2f0dfdf..8d85e4100d720640f6edd7b53a4d58d19a0e7ef4 100644 (file)
@@ -84,4 +84,8 @@ $(eval $(call gb_Library_add_generated_exception_objects,mysqlcppconn,\
        UnpackedTarball/mysql-connector-cpp/driver/nativeapi/mysql_native_statement_wrapper \
 ))
 
+$(eval $(call gb_Library_add_cflags,mysql-connector-cpp,\
+       -DLIBMYSQLCLIENT_SONAME=\"$(shell readlink -f `mysql_config --variable=pkglibdir`/libmysqlclient_r.so | sed -e s/mysqlclient/mysqlclient_r/ | sed -e "s,`mysql_config --variable=pkglibdir`/\(libmysqlclient_r.so.[0-9][0-9]\).*,\\1,")\" \
+))
+
 # vim: set noet sw=4 ts=4:
index be0e482d5315bed3d2e11cab37f486814f891c02..818730696be242736cec8757b46e81932b16366e 100644 (file)
@@ -18,6 +18,7 @@ $(eval $(call gb_UnpackedTarball_add_file,mysql-connector-cpp,driver/nativeapi/b
 
 $(eval $(call gb_UnpackedTarball_add_patches,mysql-connector-cpp,\
        external/mysql-connector-cpp/patches/mysql-connector-c++-1.1.0.patch \
+       external/mysql-connector-cpp/patches/mysql-connector-c++-1.1.0-SONAME.patch \
        external/mysql-connector-cpp/patches/warnings.patch.0 \
        external/mysql-connector-cpp/patches/enable-libmysql-proxy.patch \
        external/mysql-connector-cpp/patches/dynexcspec.patch.0 \
diff --git a/external/mysql-connector-cpp/patches/mysql-connector-c++-1.1.0-SONAME.patch b/external/mysql-connector-cpp/patches/mysql-connector-c++-1.1.0-SONAME.patch
new file mode 100644 (file)
index 0000000..5a0357b
--- /dev/null
@@ -0,0 +1,12 @@
+diff -urNad mysql-connector-c++-1.0.6~r754~/driver/nativeapi/libmysql_dynamic_proxy.cpp mysql-connector-c++-1.0.6~r754/driver/nativeapi/libmysql_dynamic_proxy.cpp
+--- misc/mysql-connector-c++-1.1.0/driver/nativeapi/libmysql_dynamic_proxy.cpp 2009-08-20 16:42:14.000000000 +0200
++++ misc/build/mysql-connector-c++-1.1.0/driver/nativeapi/libmysql_dynamic_proxy.cpp   2009-08-20 20:25:31.000000000 +0200
+@@ -26,7 +26,7 @@
+ #elif defined(__hpux) && defined(__hppa)
+ static const char * const baseName = "libmysqlclient_r.sl";
+ #else
+-static const char * const baseName = "libmysqlclient_r.so";
++static const char * const baseName = LIBMYSQLCLIENT_SONAME;
+ #endif
+ template<typename FunctionType>