Bug 70318 - Hardcoded library path problems with mono, gtk-sharp
Summary: Hardcoded library path problems with mono, gtk-sharp
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-11 19:10 UTC by Christopher Nehren
Modified: 2004-08-29 02:21 UTC (History)
0 users

See Also:


Attachments
gtk-sharp_dll-mapping.diff (14.08 KB, patch)
2004-08-15 18:00 UTC, Christopher Nehren
no flags Details | Diff
patch-configure.patch (244 bytes, patch)
2004-08-15 18:00 UTC, Christopher Nehren
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Nehren 2004-08-11 19:10:27 UTC
lang/mono and x11-toolkits/gtk-sharp assume that libraries exist in certain
places, when in fact they most often don't. 

One of these is that libintl is a part of libc.so as it is on Linux, which of 
course is *NOT* the case on FreeBSD (or NetBSD for that matter; see
http://bugzilla.ximian.com/show_bug.cgi?id=60785 ). 

gtk-sharp installs a DLL config file into the GAC which assumes that 
libgtkhtml-3.1.so.7 exists, when it does not on at least my 
experimental GNOME desktop.

Fix: 

Change lang/mono/files/patch-configure to map INTL to libintl.so instead of
libc.so , change the relevant GAC DLL config file (gtkhtml-sharp.dll.config)
to not reference a .so file with a version. It would also be wise to check
other DLL config files.
How-To-Repeat: Install mono & gtk-sharp, and then try to build and run something
like BLAM!: http://www.gnomefiles.org/app.php?soft_id=328 .
Note the failures.
Comment 1 Christopher Nehren 2004-08-15 18:00:03 UTC
Here's patches for each issue. Note that Tom McLaughlin provided the
gtk-sharp DLL mapping patch (i.e., he did most of the work :-).

-- 
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated".  -- Ken Thompson
-
Unix is user friendly. However, it isn't idiot friendly.
Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2004-08-15 19:52:10 UTC
Dear maintainer of FreeBSD port x11-toolkits/gtk-sharp, please take a
look at patches at

http://www.freebsd.org/cgi/query-pr.cgi?q=70318

Do you approve?

-- 
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

Adding horrible bugs to the source is a venal sin.
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2004-08-15 19:52:27 UTC
State Changed
From-To: open->feedback

Forced submitter to send patches and asked maintainer for approval. 


Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2004-08-15 19:52:27 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

My soup.
Comment 5 Pav Lucistnik freebsd_committer freebsd_triage 2004-08-29 02:21:49 UTC
State Changed
From-To: feedback->closed

Committed, thanks!