[arch-commits] Commit in mysql-workbench/trunk (3 files)

2018-08-17 Thread Christian Hesse via arch-commits
Date: Friday, August 17, 2018 @ 19:38:25
  Author: eworm
Revision: 372543

upgpkg: mysql-workbench 8.0.12-4

use system libssh

Modified:
  mysql-workbench/trunk/PKGBUILD
Deleted:
  
mysql-workbench/trunk/0003-Fix-segfault-in-getIssueBanner-add-missing-wrappers.patch
  mysql-workbench/trunk/0004-libssh-fix-read-config.patch

+
 0003-Fix-segfault-in-getIssueBanner-add-missing-wrappers.patch |  146 
--
 0004-libssh-fix-read-config.patch  |   29 -
 PKGBUILD   |   53 ---
 3 files changed, 11 insertions(+), 217 deletions(-)

Deleted: 0003-Fix-segfault-in-getIssueBanner-add-missing-wrappers.patch
===
--- 0003-Fix-segfault-in-getIssueBanner-add-missing-wrappers.patch  
2018-08-17 19:37:55 UTC (rev 372542)
+++ 0003-Fix-segfault-in-getIssueBanner-add-missing-wrappers.patch  
2018-08-17 19:38:25 UTC (rev 372543)
@@ -1,146 +0,0 @@
-From 5ea81166bf885d0fd5d4bb232fc22633f5aaf3c4 Mon Sep 17 00:00:00 2001
-From: Marcin Szalowicz 
-Date: Mon, 11 Jun 2018 11:25:43 +0200
-Subject: include: Fix segfault in getIssueBanner, add missing wrappers in
- libsshpp
-
-Also make some private properties protected
-
-Signed-off-by: Marcin Szalowicz 

- include/libssh/libsshpp.hpp | 73 ++---
- 1 file changed, 62 insertions(+), 11 deletions(-)
-
-diff --git a/include/libssh/libsshpp.hpp b/include/libssh/libsshpp.hpp
-index 1ce72948..c324cead 100644
 a/include/libssh/libsshpp.hpp
-+++ b/include/libssh/libsshpp.hpp
-@@ -194,6 +194,43 @@ public:
- ssh_throw(ret);
- return ret;
-   }
-+
-+  /** @brief Authenticate through the "keyboard-interactive" method.
-+   * @param[in] The username to authenticate. You can specify NULL if 
ssh_option_set_username() has been used. You cannot try two different logins in 
a row.
-+   * @param[in] Undocumented. Set it to NULL.
-+   * @throws SshException on error
-+   * @returns SSH_AUTH_SUCCESS, SSH_AUTH_PARTIAL, SSH_AUTH_DENIED, 
SSH_AUTH_ERROR, SSH_AUTH_INFO, SSH_AUTH_AGAIN
-+   * @see ssh_userauth_kbdint
-+   */
-+  int userauthKbdint(const char* username, const char* submethods){
-+int ret=ssh_userauth_kbdint(c_session,NULL,NULL);
-+ssh_throw(ret);
-+return ret;
-+  }
-+
-+  /** @brief Get the number of prompts (questions) the server has given.
-+   * @returns The number of prompts.
-+   * @see ssh_userauth_kbdint_getnprompts
-+   */
-+  int userauthKbdintGetNPrompts(){
-+return ssh_userauth_kbdint_getnprompts(c_session);
-+  }
-+
-+  /** @brief Set the answer for a question from a message block..
-+   * @param[in] index The number of the ith prompt.
-+   * @param[in] The answer to give to the server. The answer MUST be encoded 
UTF-8. It is up to the server how to interpret the value and validate it. 
However, if you read the answer in some other encoding, you MUST convert it to 
UTF-8.
-+   * @throws SshException on error
-+   * @returns 0 on success, < 0 on error
-+   * @see ssh_userauth_kbdint_setanswer
-+   */
-+  int userauthKbdintSetAnswer(unsigned int i, const char* answer){
-+int ret=ssh_userauth_kbdint_setanswer(c_session, i, answer);
-+ssh_throw(ret);
-+return ret;
-+  }
-+
-+
-+
-   /** @brief Authenticates using the password method.
-* @param[in] password password to use for authentication
-* @throws SshException on error
-@@ -228,8 +265,7 @@ public:
- ssh_throw(ret);
- return ret;
-   }
--  int userauthPrivatekeyFile(const char *filename,
--  const char *passphrase);
-+
-   /** @brief Returns the available authentication methods from the server
-* @throws SshException on error
-* @returns Bitfield of available methods.
-@@ -281,8 +317,12 @@ public:
-*/
-   std::string getIssueBanner(){
- char *banner=ssh_get_issue_banner(c_session);
--std::string ret= std::string(banner);
--::free(banner);
-+std::string ret;
-+if (banner)
-+{
-+  ret= std::string(banner);
-+  ::free(banner);
-+}
- return ret;
-   }
-   /** @brief returns the OpenSSH version (server) if possible
-@@ -378,11 +418,14 @@ public:
- return_throwable;
-   }
- 
--private:
--  ssh_session c_session;
-   ssh_session getCSession(){
- return c_session;
-   }
-+
-+protected:
-+  ssh_session c_session;
-+
-+private:
-   /* No copy constructor, no = operator */
-   Session(const Session &);
-   Session& operator=(const Session &);
-@@ -481,12 +524,12 @@ public:
- ssh_throw(err);
- return err;
-   }
--  int read(void *dest, size_t count, bool is_stderr){
-+  int read(void *dest, size_t count){
- int err;
- /* handle int overflow */
- if(count > 0x7fff)
-   count = 0x7fff;
--err=ssh_channel_read_timeout(channel,dest,count,is_stderr,-1);
-+err=ssh_channel_read_timeout(channel,dest,count,false,-1);
- 

[arch-commits] Commit in mysql-workbench/trunk (3 files)

2015-03-18 Thread Christian Hesse
Date: Wednesday, March 18, 2015 @ 14:42:22
  Author: eworm
Revision: 129485

upgpkg: mysql-workbench 6.2.5-2

* fix when no gnome-keyring is installed
* link against X11 (this broke with cmake 3.2.1-1)

Added:
  mysql-workbench/trunk/0008-mysql-workbench-link-x11.patch
  mysql-workbench/trunk/0009-mysql-workbench-gnome-keyring.patch
Modified:
  mysql-workbench/trunk/PKGBUILD

--+
 0008-mysql-workbench-link-x11.patch  |   25 +
 0009-mysql-workbench-gnome-keyring.patch |   17 +
 PKGBUILD |   12 +++-
 3 files changed, 53 insertions(+), 1 deletion(-)

Added: 0008-mysql-workbench-link-x11.patch
===
--- 0008-mysql-workbench-link-x11.patch (rev 0)
+++ 0008-mysql-workbench-link-x11.patch 2015-03-18 13:42:22 UTC (rev 129485)
@@ -0,0 +1,25 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 76a886e..773d804 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -32,6 +32,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} 
${CMAKE_SOURCE_DIR}/build/cmake/Modu
+ 
+ find_package(PkgConfig REQUIRED)
+ 
++find_package(X11)
++
+ find_package(GTK2 2.20 REQUIRED gtk gtkmm)
+ pkg_check_modules(GTHREAD REQUIRED gthread-2.0)
+ pkg_check_modules(GMODULE REQUIRED gmodule-2.0)
+diff --git a/frontend/linux/workbench/CMakeLists.txt 
b/frontend/linux/workbench/CMakeLists.txt
+index b9c16c8..d52c34a 100644
+--- a/frontend/linux/workbench/CMakeLists.txt
 b/frontend/linux/workbench/CMakeLists.txt
+@@ -92,6 +92,7 @@ target_link_libraries(mysql-workbench-bin
+ mysqlparser
+ ${MYSQLCPPCONN_LIBRARIES}
+ ${CTEMPLATE_LIBRARIES}
++${X11_LIBRARIES}
+ ${GTK2_LIBRARIES}
+ ${SIGC++_LIBRARIES}
+ ${GRT_LIBRARIES}

Added: 0009-mysql-workbench-gnome-keyring.patch
===
--- 0009-mysql-workbench-gnome-keyring.patch(rev 0)
+++ 0009-mysql-workbench-gnome-keyring.patch2015-03-18 13:42:22 UTC (rev 
129485)
@@ -0,0 +1,17 @@
+diff --git a/frontend/linux/workbench/mysql-workbench.in 
b/frontend/linux/workbench/mysql-workbench.in
+index 02a8061..f8176f6 100755
+--- a/frontend/linux/workbench/mysql-workbench.in
 b/frontend/linux/workbench/mysql-workbench.in
+@@ -4,6 +4,12 @@
+ # This will cause passwords to be stored only temporarily for the session.
+ #WB_NO_GNOME_KEYRING=1
+ 
++# Looks like WB expects gnome-keyring to be present as soon as XDG_RUNTIME_DIR
++# environment variable is set. Do an extra check here...
++if ! type gnome-keyring-daemon /dev/null; then
++  WB_NO_GNOME_KEYRING=1
++fi
++
+ # force disable the Mac style single menu hack in Ubuntu Unity
+ export UBUNTU_MENUPROXY=0
+ 

Modified: PKGBUILD
===
--- PKGBUILD2015-03-18 12:39:56 UTC (rev 129484)
+++ PKGBUILD2015-03-18 13:42:22 UTC (rev 129485)
@@ -7,7 +7,7 @@
 
 pkgname=mysql-workbench
 pkgver=6.2.5
-pkgrel=1
+pkgrel=2
 pkgdesc='A cross-platform, visual database design tool developed by MySQL'
 arch=('i686' 'x86_64')
 url='https://www.mysql.com/products/workbench/'
@@ -28,6 +28,8 @@
'0001-mysql-workbench-no-check-for-updates.patch'
'0006-mysql-workbench-column-label.patch'
'0007-mysql-workbench-no-set-gtid-purged.patch'
+   '0008-mysql-workbench-link-x11.patch'
+   '0009-mysql-workbench-gnome-keyring.patch'
'arch_linux_profile.xml')
 sha256sums=('40a5dbf72b55441ea3e9466dce2de47611777c88da2b65b748f10b06dfa0794e'
 'SKIP'
@@ -35,6 +37,8 @@
 'b189e15c6b6f5a707357d9a9297f39ee3a33264fd28b44d5de6f537f851f82cf'
 '701c7d9f68b1b0f63e8e8ece0b61cb57c2168f29e10b113c409f7ccfd68251e0'
 'b49d4ea352d2c2013b9c5834668c44521a0a2c5f9c7e3fe746ad94ce0d2bb865'
+   'bfa0752f08d4641eb475c87373593061a0fe1c872c0d0cc1ed45ea43cf23fa05'
+   'aa98205e14ab617b3632a1efa8ef1f6b4032eb9240b57523e4c1e5aa11d6c6f0'
 '28724c4b4cec29ce19aada08279df1b086381cd788fef7ae07c1860f7d17af7e')
 
 prepare() {
@@ -50,6 +54,12 @@
# mysqldump from mariadb (currently 1.0.16) does not support 
--set-gtid-purged
patch -Np1  ${srcdir}/0007-mysql-workbench-no-set-gtid-purged.patch
 
+   # link against X11
+   patch -Np1  ${srcdir}/0008-mysql-workbench-link-x11.patch
+
+   # fix gnome-keyring
+   patch -Np1  ${srcdir}/0009-mysql-workbench-gnome-keyring.patch
+
# fix GDAL
sed -i '/#include/s|gdal/||' backend/wbpublic/grtui/geom_draw_box.h 
backend/wbpublic/grt/spatial_handler.h