Package: mysql++
Version: 3.2.2+pristine-1
Severity: normal
Tags: patch pending

Dear maintainer,

I've prepared an NMU for mysql++ (versioned as 3.2.2+pristine-1.1)
and uploaded it to DELAYED/5. Please feel free to tell me if I
should delay it longer.

regards,
-mika-
diff -Nru mysql++-3.2.2+pristine/debian/changelog mysql++-3.2.2+pristine/debian/changelog
--- mysql++-3.2.2+pristine/debian/changelog	2015-10-14 07:47:08.000000000 +0200
+++ mysql++-3.2.2+pristine/debian/changelog	2016-11-23 14:27:41.000000000 +0100
@@ -1,3 +1,12 @@
+mysql++ (3.2.2+pristine-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Avoid linking against libmysqlclient_r and link directly against
+    libmysqlclient instead. Thanks Robie Basak <[email protected]>
+    for the patch.
+
+ -- Michael Prokop <[email protected]>  Wed, 23 Nov 2016 14:23:39 +0100
+
 mysql++ (3.2.2+pristine-1) unstable; urgency=low
 
   * New upstream release (Closes: #798389)
diff -Nru mysql++-3.2.2+pristine/debian/patches/do_not_link_against_libmysqlclient_r.patch mysql++-3.2.2+pristine/debian/patches/do_not_link_against_libmysqlclient_r.patch
--- mysql++-3.2.2+pristine/debian/patches/do_not_link_against_libmysqlclient_r.patch	1970-01-01 01:00:00.000000000 +0100
+++ mysql++-3.2.2+pristine/debian/patches/do_not_link_against_libmysqlclient_r.patch	2016-11-23 14:26:45.000000000 +0100
@@ -0,0 +1,43 @@
+Description: stop linking against libmysqlclient_r and link directly against libmysqlclient instead
+ Quoting from Debian's bugreport #825086:
+ .
+  Your package currently links against libmysqlclient_r. libmysqlclient_r
+ was the thread-safe version of libmysqlclient in previous MySQL
+ releases. However, libmysqlclient has been itself been made thread-safe
+ since before the current libmysqlclient18. Thus libmysqlclient_r is
+ currently deprecated and provided as a compatibility symlink only, and
+ will disappear in MySQL 5.7. This change can be made now, in advance of
+ a possible future transition to libmysqlclient20, which does not provide
+ the _r variant.
+ .
+ In Ubuntu, we have done this with the attached quilt patch, which I
+ believe is also applicable to Debian.
+Author:  Robie Basak <[email protected]>
+
+---
+Bug-Debian: https://bugs.debian.org/825086
+Forwarded: not-needed
+Last-Update: 2016-11-23
+
+--- mysql++-3.2.2+pristine.orig/config/mysql_loc.m4
++++ mysql++-3.2.2+pristine/config/mysql_loc.m4
+@@ -35,7 +35,7 @@ AC_DEFUN([MYSQL_C_API_LOCATION],
+ 	#
+ 	if test "x$acx_pthread_ok" = xyes
+ 	then
+-		MYSQL_C_LIB_NAME=mysqlclient_r
++		MYSQL_C_LIB_NAME=mysqlclient
+ 	else
+ 		MYSQL_C_LIB_NAME=mysqlclient
+ 	fi
+--- mysql++-3.2.2+pristine.orig/configure
++++ mysql++-3.2.2+pristine/configure
+@@ -12195,7 +12195,7 @@ fi
+ 	#
+ 	if test "x$acx_pthread_ok" = xyes
+ 	then
+-		MYSQL_C_LIB_NAME=mysqlclient_r
++		MYSQL_C_LIB_NAME=mysqlclient
+ 	else
+ 		MYSQL_C_LIB_NAME=mysqlclient
+ 	fi
diff -Nru mysql++-3.2.2+pristine/debian/patches/series mysql++-3.2.2+pristine/debian/patches/series
--- mysql++-3.2.2+pristine/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ mysql++-3.2.2+pristine/debian/patches/series	2016-11-23 14:24:44.000000000 +0100
@@ -0,0 +1 @@
+do_not_link_against_libmysqlclient_r.patch

Attachment: signature.asc
Description: Digital signature

Reply via email to