File: projloc.patch

package info (click to toggle)
mysql-workbench 6.3.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 113,932 kB
  • ctags: 87,814
  • sloc: ansic: 955,521; cpp: 427,465; python: 59,728; yacc: 59,129; xml: 54,204; sql: 7,091; objc: 965; makefile: 638; sh: 613; java: 237; perl: 30; ruby: 6; php: 1
file content (28 lines) | stat: -rw-r--r-- 816 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Last-Update: 2016-11-19
Forwarded: no
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: improve/fix search for "libproj.so".

--- a/frontend/linux/workbench/mysql-workbench.in
+++ b/frontend/linux/workbench/mysql-workbench.in
@@ -17,19 +17,9 @@
 wblibdir="$destdir@WB_INSTALL_LIB_DIR@"
 
 
 # Set the PROJSO env variable so gdal can find proj cause it's using dlopen instead ld 
-PROJLOC=""
-for lib in libproj.so.0 libproj.so.9
-do
-  for loc in /usr/lib /usr/lib64 /usr/lib/x86_64-linux-gnu
-  do
-    if test -f "$loc/$lib"; then
-       PROJLOC="$loc/$lib"
-       break 2
-    fi
-  done
-done
+PROJLOC="$(ldd /usr/lib/mysql-workbench/mysql-workbench-bin | awk '/libproj.so/{print $3}')"
 
 if [ -z "$PROJLOC" ]; then
   echo "Workbench can't find libproj.so, some options may be unavailable."
 else