[packages/mysql-workbench] up to 6.2.5
glen
glen at pld-linux.org
Wed May 13 13:55:19 CEST 2015
commit b5901d20e564c57f3cd254eef0910bfa3829f482
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue May 12 11:17:20 2015 +0300
up to 6.2.5
bashism.patch | 61 ++++++++++-------------------------------
mysql-workbench-bug-74147.patch | 37 -------------------------
mysql-workbench.spec | 9 +++---
3 files changed, 19 insertions(+), 88 deletions(-)
---
diff --git a/mysql-workbench.spec b/mysql-workbench.spec
index 9acb5a4..3f58eb3 100644
--- a/mysql-workbench.spec
+++ b/mysql-workbench.spec
@@ -13,14 +13,14 @@
Summary: Extensible modeling tool for MySQL
Summary(pl.UTF-8): Narzędzie do modelowania baz danych dla MySQL-a
Name: mysql-workbench
-Version: 6.2.3
-Release: 2
+Version: 6.2.5
+Release: 1
License: GPL v2
Group: Applications/Databases
+# Source0Download: http://dev.mysql.com/downloads/workbench/
Source0: http://cdn.mysql.com/Downloads/MySQLGUITools/%{name}-community-%{version}-src.tar.gz
-# Source0-md5: d58ac1beeb3bdaaba65b48e2a24df79b
+# Source0-md5: 31f8bd081993854f76d0bc73df08c3ad
Source1: PLD_Linux_(MySQL_Package).xml
-Patch1: mysql-workbench-bug-74147.patch
Patch5: pld-profile.patch
Patch7: log_slow_queries.patch
Patch8: bashism.patch
@@ -93,7 +93,6 @@ skomplikowanych migracji do MySQL-a.
%prep
%setup -q -n %{name}-community-%{version}-src
-%patch1 -p0
%patch5 -p1
%patch7 -p1
%patch8 -p1
diff --git a/bashism.patch b/bashism.patch
index 48f9560..770e741 100644
--- a/bashism.patch
+++ b/bashism.patch
@@ -6,10 +6,14 @@
# Uncomment the following line if you're having trouble with gnome-keyring lockups.
# This will cause passwords to be stored only temporarily for the session.
---- mysql-workbench-community-6.1.4-nodocs-src/./plugins/wb.admin/backend/wb_server_management.py~ 2014-05-04 00:23:57.000000000 +0300
-+++ mysql-workbench-community-6.1.4-nodocs-src/./plugins/wb.admin/backend/wb_server_management.py 2014-05-04 00:28:47.674146927 +0300
-@@ -82,7 +82,7 @@
- if '/bin/sh' in sudo_prefix or '/bin/bash' in sudo_prefix:
+--- mysql-workbench-community-6.2.5-src/plugins/wb.admin/backend/wb_server_management.py 2015-05-12 11:40:29.032525721 +0300
++++ mysql-workbench-community-6.2.5-src/plugins/wb.admin/backend/wb_server_management.py 2015-05-12 11:42:48.473107723 +0300
+@@ -88,10 +88,10 @@
+ if as_user != Users.ADMIN:
+ sudo_user = "sudo -u %s" % as_user
+ sudo_prefix = sudo_prefix.replace('sudo', sudo_user)
+- if '/bin/sh' in sudo_prefix or '/bin/bash' in sudo_prefix:
++ if '/bin/sh' in sudo_prefix or '/bin/sh' in sudo_prefix:
command = sudo_prefix + " \"" + command.replace('\\', '\\\\').replace('"', r'\"').replace('$','\\$') + "\""
else:
- command = sudo_prefix + " /bin/bash -c \"" + command.replace('\\', '\\\\').replace('"', r'\"').replace('$','\\$') + "\""
@@ -17,46 +21,11 @@
return command
-@@ -206,7 +206,7 @@
- return data
-
- # script should already have sudo
-- child = subprocess.Popen(["/bin/bash", "-c", script], bufsize=0,
-+ child = subprocess.Popen(["/bin/sh", "-c", script], bufsize=0,
- stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
- close_fds=True)
-
---- mysql-workbench-community-6.1.4-nodocs-src/./backend/wbprivate/workbench/wb_module.cpp~ 2014-03-26 17:47:23.000000000 +0200
-+++ mysql-workbench-community-6.1.4-nodocs-src/./backend/wbprivate/workbench/wb_module.cpp 2014-05-04 00:30:43.365950180 +0300
-@@ -1807,7 +1807,7 @@
- char *ster = NULL;
- int rc=0;
- GError *err = NULL;
-- if (g_spawn_command_line_sync("/bin/bash -c \"ps -ec | grep \\\"mysqld\\b\\\" | awk '{ print $1 }' | xargs ps -fp | awk 'NR > 1 {for(i=1;i<=7;i++)$i=\\\"\\\"; print $0}'\"", &stdo, &ster, &rc, &err) && stdo)
-+ if (g_spawn_command_line_sync("/bin/sh -c \"ps -ec | grep \\\"mysqld\\b\\\" | awk '{ print $1 }' | xargs ps -fp | awk 'NR > 1 {for(i=1;i<=7;i++)$i=\\\"\\\"; print $0}'\"", &stdo, &ster, &rc, &err) && stdo)
- {
- std::string processes(stdo);
-
---- mysql-workbench-community-6.1.4-nodocs-src/./modules/wb.utils/wb_utils_grt.py~ 2014-03-26 17:47:23.000000000 +0200
-+++ mysql-workbench-community-6.1.4-nodocs-src/./modules/wb.utils/wb_utils_grt.py 2014-05-04 00:31:19.540890016 +0300
-@@ -433,7 +433,7 @@
- if not bundled_client_path:
- bundled_client_path = "mysql"
- command = """\\"%s\\" \\"-u%s\\" \\"-h%s\\" -P%i %s -p %s""" % (bundled_client_path, user, host, port, socket, schema)
-- subprocess.call(["/bin/bash", "-c", "%s -e \"%s\" &" % (get_linux_terminal_program(), command)])
-+ subprocess.call(["/bin/sh", "-c", "%s -e \"%s\" &" % (get_linux_terminal_program(), command)])
-
-
- if sys.platform == "linux2":
-@@ -524,9 +524,9 @@
- os.chmod(setup_script, 0700)
-
- if 'konsole' in term:
-- subprocess.call([term, "-e", "/bin/bash", setup_script])
-+ subprocess.call([term, "-e", "/bin/sh", setup_script])
- else:
-- subprocess.call(["/bin/bash", "-c", "%s -e %s &" % (term, setup_script)])
-+ subprocess.call(["/bin/sh", "-c", "%s -e %s &" % (term, setup_script)])
- else:
- raise RuntimeError("Terminal program could not be found")
+--- mysql-workbench-community-6.2.5-src/./plugins/migration/wbcopytables.in~ 2015-02-25 10:08:47.000000000 +0200
++++ mysql-workbench-community-6.2.5-src/./plugins/migration/wbcopytables.in 2015-05-12 11:45:07.170317749 +0300
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/bin/sh
+ # Set the destdir=<some_dir> when ever you install using DESTDIR=<some_dir>.
+ destdir="$WB_DEST_DIR"
diff --git a/mysql-workbench-bug-74147.patch b/mysql-workbench-bug-74147.patch
deleted file mode 100644
index d150d93..0000000
--- a/mysql-workbench-bug-74147.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-=== modified file frontend/linux/linux_utilities/listmodel_wrapper.cpp
---- frontend/linux/linux_utilities/listmodel_wrapper.cpp 2014-03-17 16:42:25 +0000
-+++ frontend/linux/linux_utilities/listmodel_wrapper.cpp 2014-10-16 10:33:12 +0000
-@@ -528,7 +528,6 @@
- ListModelWrapper::ListModelWrapper(bec::ListModel* tm, Gtk::TreeView *treeview, const std::string& name)
- : Glib::ObjectBase(typeid(ListModelWrapper))
- , Glib::Object()
-- , Gtk::TreeModel()
- , _treeview(treeview)
- , _iconview(0)
- , _context_menu(0)
-
-=== modified file frontend/linux/linux_utilities/listmodel_wrapper.h
---- frontend/linux/linux_utilities/listmodel_wrapper.h 2013-12-05 13:10:03 +0000
-+++ frontend/linux/linux_utilities/listmodel_wrapper.h 2014-10-16 10:33:12 +0000
-@@ -232,9 +232,16 @@
-
- //==============================================================================
-
--class ListModelWrapper : public Glib::Object, public Gtk::TreeModel,
-- public Gtk::TreeDragDest, public Gtk::TreeDragSource,
-- public base::trackable
-+#if GLIB_CHECK_VERSION(2, 42, 0)
-+class ListModelWrapper : public Gtk::TreeModel, public Glib::Object,
-+ public Gtk::TreeDragDest, public Gtk::TreeDragSource,
-+ public base::trackable
-+#else
-+class ListModelWrapper : public Glib::Object, public Gtk::TreeModel,
-+ public Gtk::TreeDragDest, public Gtk::TreeDragSource,
-+ public base::trackable
-+
-+#endif
- {
- friend class ColumnsModel;
- protected:
-
-
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mysql-workbench.git/commitdiff/65a5edd4357ed406902b289a4bb7776fa4c30d1b
More information about the pld-cvs-commit
mailing list