]> git.pld-linux.org Git - packages/mysql-workbench.git/commitdiff
- merge changes from DEVEL
authorarvenil <arvenil@pld-linux.org>
Fri, 2 Jul 2010 08:02:14 +0000 (08:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mysql-workbench-python_libs.patch -> 1.2
    mysql-workbench-replace_gnome_url_show_by_xdg-open.patch -> 1.2

mysql-workbench-python_libs.patch [new file with mode: 0644]
mysql-workbench-replace_gnome_url_show_by_xdg-open.patch [new file with mode: 0644]

diff --git a/mysql-workbench-python_libs.patch b/mysql-workbench-python_libs.patch
new file mode 100644 (file)
index 0000000..47895c3
--- /dev/null
@@ -0,0 +1,22 @@
+Patch from Gentoo
+Use a simpler check for Python's libs that return an actual linker
+invocation (e.g. -lpython2.6) instead of the .so file. This fixes the
+case with forced as-needed where the .so gets re-ordered to the front
+during link.
+http://git.overlays.gentoo.org/gitweb/?p=user/wish.git;a=blob;f=dev-db/mysql-workbench/files/mysql-workbench-5.2.17-python-libs.patch;h=8fb6b71e91b0c5e14bb542e05f2bab1da4dbc60d;hb=6c2a287fc8cd60b3806ec3d5b058a513c4b417b5
+--- mysql-workbench-oss-5.2.22/configure.in    2010-04-02 03:26:27.000000000 +0200
++++ mysql-workbench-oss-5.2.22/configure.in    2010-04-09 16:06:10.271092660 +0200
+@@ -303,12 +303,7 @@
+ dnl   enable_python=$enableval, enable_python=no)
+ AC_MSG_CHECKING(for Python)
+-PYTHON_LIBS=[$(python -c "from distutils import sysconfig
+-import os 
+-cfg=sysconfig.get_config_vars()
+-lib = os.path.join(cfg['LIBDIR'], cfg['LDLIBRARY'])
+-if os.path.exists(lib):
+-    print lib")]
++PYTHON_LIBS=[$(python -c 'import sys; print("-lpython%s.%s" % sys.version_info[:2])')]
+ PYTHON_CFLAGS=[$(python -c "from distutils import sysconfig
+ print sysconfig.get_python_inc()")]
+ PYTHON_CFLAGS="-I$PYTHON_CFLAGS"
diff --git a/mysql-workbench-replace_gnome_url_show_by_xdg-open.patch b/mysql-workbench-replace_gnome_url_show_by_xdg-open.patch
new file mode 100644 (file)
index 0000000..f321094
--- /dev/null
@@ -0,0 +1,22 @@
+--- mysql-workbench-ce-5.2.24/frontend/linux/linux_utilities/gtk_helpers.cpp   2010-06-19 02:40:15.000000000 +0000
++++ mysql-workbench-ce-5.2.24/frontend/linux/linux_utilities/gtk_helpers.cpp   2010-06-26 14:07:16.000000000 +0000
+@@ -44,11 +44,14 @@
+ //------------------------------------------------------------------------------
+ void open_url(const std::string &url)
+ {
+-#ifdef HAVE_LIBGNOME
+-  gnome_url_show(url.c_str(), NULL);
+-#else
+-  g_message("Open URL %s (no url handler)", url.c_str());
+-#endif
++  if (g_find_program_in_path ("xdg-open")) {
++    char *argv[] = {(char*)"xdg-open", (char*)url.c_str(), NULL, NULL};
++    if (!g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL)) {
++      g_warning("Open URL %s with xdg-open failed", url.c_str());
++    }
++  } else {
++    g_warning("Open URL %s (no url handler)", url.c_str());
++  }                                        
+ }
+ //------------------------------------------------------------------------------
This page took 0.042865 seconds and 4 git commands to generate.