File: 020_fix_pyext_path.diff

package info (click to toggle)
fontforge 0.0.20120101%2Bgit-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 35,756 kB
  • sloc: ansic: 556,562; sh: 236; makefile: 162; xml: 11; python: 11
file content (38 lines) | stat: -rw-r--r-- 1,339 bytes parent folder | download | duplicates (7)
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
29
30
31
32
33
34
35
36
37
38
Description: Fix the path where the python modules searches fontforge libs.
 Upstream dlopen's some libraries that have the sole extension ".so", but
 we only ship the ".so" symlinks in the -dev package---therefore, we
 change the name of the libraries to include their versions. This is kludgy,
 but shall be changed in the future.
Author: Kęstutis Biliūnas.
Forwarded: not-needed
Reviewed-by: Rogério Theodoro de Brito <rbrito@ime.usp.br>
Last-Update: 2010-05-03
--- a/pyhook/loadfontforge.h
+++ b/pyhook/loadfontforge.h
@@ -11,7 +11,7 @@
 
     if ( (lib = dlopen("libgunicode" SO_EXT,RTLD_LAZY))==NULL ) {
 #ifdef PREFIX
-	lib = dlopen( PREFIX "/lib/" "libgunicode" SO_EXT,RTLD_LAZY);
+	lib = dlopen( PREFIX "/lib/" "libgunicode.so.3.0.2", RTLD_LAZY);
 #endif
     }
     if ( lib==NULL ) {
@@ -21,7 +21,7 @@
 
     if ( (lib = dlopen("libgutils" SO_EXT,RTLD_LAZY))==NULL ) {
 #ifdef PREFIX
-	lib = dlopen( PREFIX "/lib/" "libgutils" SO_EXT,RTLD_LAZY);
+	lib = dlopen( PREFIX "/lib/" "libgutils.so.1.0.3", RTLD_LAZY);
 #endif
     }
     if ( lib==NULL ) {
@@ -31,7 +31,7 @@
 
     if ( (lib = dlopen("libfontforge" SO_EXT,RTLD_LAZY))==NULL ) {
 #ifdef PREFIX
-	lib = dlopen( PREFIX "/lib/" "libfontforge" SO_EXT,RTLD_LAZY);
+	lib = dlopen( PREFIX "/lib/" "libfontforge.so.1.0.0", RTLD_LAZY);
 #endif
     }
     if ( lib==NULL ) {