Bug 91900 - ports/www/opera should advise on libmap.conf entries
Summary: ports/www/opera should advise on libmap.conf entries
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: Sam Lawrance
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-17 06:10 UTC by Helge Oldach
Modified: 2006-05-03 13:40 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helge Oldach 2006-01-17 06:10:03 UTC
Current Opera (8.51) is still compiled against 4.x libraries. The
distributed Motif plugin wrappers in /usr/X11R6/share/opera/plugins
contain references to libXThrStub.so.6 which is no longer built by
xorg-libraries for ${OSVERSION} >= 500043. For that reason Opera
complains on start-up:

| Opera encountered a problem during plug-in setup.
| Plug-ins will not work properly.
| Check your installation.
|
| Could not start plug-in executable 'operamotifwrapper'.
| /usr/X11R6/lib/RealPlayer/plugins/operamotifwrapper-3
| Please install Motif.

Note that the error message itself is misleading. It occurs
even if open-motif is installed. The true reason is the lack of
libXThrStub.so.6:

| # ldd operamotifwrapper-3
| operamotifwrapper-3:
|         libXm.so.3 => /usr/X11R6/lib/libXm.so.3 (0x28097000)
|         libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x2829d000)
|         libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x282e6000)
|         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x282f3000)
|         libm.so.2 => /usr/local/lib/compat/libm.so.2 (0x283b2000)
|         libc.so.4 => /usr/local/lib/compat/libc.so.4 (0x283cd000)
|         libXThrStub.so.6 => not found (0x0)
|         libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x28466000)
|         libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x2846e000)
|         libXp.so.6 => /usr/X11R6/lib/libXp.so.6 (0x28485000)
| # 

While we're there, also fix refrences for the other operamotifwrapper's.

Fix: 

Add a note to pkg-message advising the user to add the following to
/etc/libmap.conf:

# Opera - Motif
[/usr/X11R6/share/opera/plugins/operamotifwrapper-1] 
libXm.so.1	libXm.so.3
libXThrStub.so.6	libXtst.so.6
[/usr/X11R6/share/opera/plugins/operamotifwrapper-2] 
libXm.so.2	libXm.so.3 
libXThrStub.so.6	libXtst.so.6
[/usr/X11R6/share/opera/plugins/operamotifwrapper-3]
libXThrStub.so.6	libXtst.so.6

(or update /etc/libmap.conf automagically :-))
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-01-17 08:56:52 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Marcus Alves Grando freebsd_committer freebsd_triage 2006-02-19 02:47:47 UTC
State Changed
From-To: feedback->open

Feedback timeout. 32 days. No patch available.
Comment 3 Helge Oldach 2006-02-19 06:06:40 UTC
I suggests to patch as follows:

--- www/opera/pkg-message~	Sat Jan 28 00:01:58 2006
+++ www/opera/pkg-message	Sun Feb 19 07:03:08 2006
@@ -1,5 +1,15 @@
 If you are running FreeBSD 5.x or 6.x and are experiencing a core dump when 
 starting Opera, try updating the compat4x port.
 
-Plugins do not work in FreeBSD 5.x or higher - please disable them.
+To enable the built-in plug-ins you need to add this to /etc/libmap.conf:
+
+# Opera - Motif
+[/usr/X11R6/share/opera/plugins/operamotifwrapper-1] 
+libXm.so.1	libXm.so.3
+libXThrStub.so.6	libXtst.so.6
+[/usr/X11R6/share/opera/plugins/operamotifwrapper-2] 
+libXm.so.2	libXm.so.3 
+libXThrStub.so.6	libXtst.so.6
+[/usr/X11R6/share/opera/plugins/operamotifwrapper-3]
+libXThrStub.so.6	libXtst.so.6
Comment 4 Sam Lawrance freebsd_committer freebsd_triage 2006-04-30 00:26:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lawrance

Grab
Comment 5 Sam Lawrance freebsd_committer freebsd_triage 2006-05-03 13:40:01 UTC
State Changed
From-To: open->closed

Committed, thanks!