[libreoffice] Related: rhbz#1102033 mysql connector problems
Caolán McNamara
caolanm at fedoraproject.org
Fri May 30 13:30:13 UTC 2014
commit a2462c268d9b145a7a292739eec1aae3753995c0
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri May 30 14:30:13 2014 +0100
Related: rhbz#1102033 mysql connector problems
...mysql-connector-doesn-t-work-with-remote-.patch | 46 ++++++++++++++++++++
libreoffice.spec | 1 +
2 files changed, 47 insertions(+), 0 deletions(-)
---
diff --git a/0001-deb-749592-mysql-connector-doesn-t-work-with-remote-.patch b/0001-deb-749592-mysql-connector-doesn-t-work-with-remote-.patch
new file mode 100644
index 0000000..9d409d1
--- /dev/null
+++ b/0001-deb-749592-mysql-connector-doesn-t-work-with-remote-.patch
@@ -0,0 +1,46 @@
+From 6b50e21473e7d2b24b5c609d8a1c31f27644d842 Mon Sep 17 00:00:00 2001
+From: Noel Grandin <noel at peralex.com>
+Date: Fri, 30 May 2014 13:02:20 +0200
+Subject: [PATCH] deb#749592 mysql-connector doesn't work with remote
+ connections
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+and also
+fdo#77584 mysql-connector doesn't work over SSH tunnel
+
+Not sure exactly how this got broken, I suspect that the UI code
+has started unconditionally passing down the properties, just filling
+them with empty spaces for the unused ones.
+
+Anyhow, this appears to fix the problem.
+
+Change-Id: I7ac2a0d6bae610f47d2a28daa9beb3ef0e2dbb52
+Reviewed-on: https://gerrit.libreoffice.org/9565
+Reviewed-by: Caolán McNamara <caolanm at redhat.com>
+Tested-by: Caolán McNamara <caolanm at redhat.com>
+---
+ mysqlc/source/mysqlc_connection.cxx | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/mysqlc/source/mysqlc_connection.cxx b/mysqlc/source/mysqlc_connection.cxx
+index 9c0b183..f8274f4 100644
+--- a/mysqlc/source/mysqlc_connection.cxx
++++ b/mysqlc/source/mysqlc_connection.cxx
+@@ -158,10 +158,10 @@ void OConnection::construct(const OUString& url, const Sequence< PropertyValue >
+ OSL_VERIFY( pIter->Value >>= aPass );
+ } else if (pIter->Name.equalsAscii("LocalSocket")) {
+ OSL_VERIFY( pIter->Value >>= sUnixSocket );
+- unixSocketPassed = true;
++ unixSocketPassed = !sUnixSocket.isEmpty();
+ } else if (pIter->Name.equalsAscii("NamedPipe")) {
+ OSL_VERIFY( pIter->Value >>= sNamedPipe );
+- namedPipePassed = true;
++ namedPipePassed = !sNamedPipe.isEmpty();
+ } else if ( pIter->Name.equalsAscii("PublicConnectionURL")) {
+ OSL_VERIFY( pIter->Value >>= m_settings.connectionURL );
+ } else if ( pIter->Name.equalsAscii("NewURL")) { // legacy name for "PublicConnectionURL"
+--
+1.9.0
+
diff --git a/libreoffice.spec b/libreoffice.spec
index fb1e45c..16ffb3a 100644
--- a/libreoffice.spec
+++ b/libreoffice.spec
@@ -324,6 +324,7 @@ Patch39: 0015-enable-integration-test-for-libmwaw-calc-import.patch
Patch40: 0016-enable-integration-test-for-libmwaw-draw-import.patch
Patch41: 0017-these-formats-are-supported-by-libmwaw-0.3.x.patch
Patch42: 0018-fix-copypasta.patch
+Patch43: 0001-deb-749592-mysql-connector-doesn-t-work-with-remote-.patch
%define instdir %{_libdir}
%define baseinstdir %{instdir}/libreoffice
More information about the scm-commits
mailing list