Add connection timeout patch for dev-db/mysql-workbench.
[overlay.git] / dev-db / mysql-workbench / files / mysql-workbench-5.2.17-python-libs.patch
1 Use a simpler check for Python's libs that return an actual linker
2 invocation (e.g. -lpython2.6) instead of the .so file. This fixes the
3 case with forced as-needed where the .so gets re-ordered to the front
4 during link.
5
6 --- configure.in.~1~    2010-04-02 03:26:27.000000000 +0200
7 +++ configure.in        2010-04-09 16:06:10.271092660 +0200
8 @@ -303,12 +303,7 @@
9  dnl    enable_python=$enableval, enable_python=no)
10  
11  AC_MSG_CHECKING(for Python)
12 -PYTHON_LIBS=[$(python -c "from distutils import sysconfig
13 -import os 
14 -cfg=sysconfig.get_config_vars()
15 -lib = os.path.join(cfg['LIBDIR'], cfg['LDLIBRARY'])
16 -if os.path.exists(lib):
17 -    print lib")]
18 +PYTHON_LIBS=[$(python -c 'import sys; print("-lpython%s.%s" % sys.version_info[:2])')]
19  PYTHON_CFLAGS=[$(python -c "from distutils import sysconfig
20  print sysconfig.get_python_inc()")]
21  PYTHON_CFLAGS="-I$PYTHON_CFLAGS"