Bug 489109 - Python scripts don't work with fontforge
Summary: Python scripts don't work with fontforge
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: fontforge
Version: rawhide
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-07 18:01 UTC by Felix Schwarz
Modified: 2009-04-05 12:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-04-05 12:51:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Felix Schwarz 2009-03-07 18:01:45 UTC
Description of problem:
Python bindings for fontforge don't work, importing the fontforge module fails on a 32 bit F11 rawhide system.

Version-Release number of selected component (if applicable):
fontforge-20090224-1.fc11.i586

Steps to Reproduce:
python -c 'import fontforge'
  
Actual results:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
SystemError: Missing library: libgunicode

Expected results:
No output (=> fontforge library could be imported and is ready to use in Python)

Additional info:
/usr/lib/libgunicode.so.3[.0.1] is present but there is no symlink from /usr/lib/libgunicode.so. The same holds true for libgutils.so and libfontforge.so.

Comment 1 Kevin Fenzi 2009-03-09 01:02:52 UTC
Looks like debian is shipping a patch for this issue. Upstream is trying to dlopen the .so file it wants manually. 

Unfortunately the debian solution needs more work to work for us, as they hardcode lib in there and we need lib or lib64. ;( 

I will try and come up with a patch soon. ;(

Comment 2 Felix Schwarz 2009-03-09 17:04:38 UTC
I thought that maybe just supplying a symling from /usr/lib/libgunicode.so to /usr/lib/libgunicode.so.3 would be sufficient - at least this did the trick for me.

Comment 3 Kevin Fenzi 2009-04-02 06:32:30 UTC
Well, the link would be enough to get 32bit installs working, but would break on any 64bit one. (It hard codes /usr/lib/ instead of /usr/lib64). 

Anyhow, sorry for the delay here. 
I have checked in a patch that I think fixes this bug. 

It should be available in tomorrow's rawhide. Can you test and confirm it's fixed?
You can also find the build at: http://koji.fedoraproject.org/koji/taskinfo?taskID=1272152

Comment 4 Felix Schwarz 2009-04-05 12:51:06 UTC
Verified fixed with fontforge-20090224-2.fc11.i586 (on 32 bit platform).


Note You need to log in before you can comment on or make changes to this bug.