DragonFly BSD
DragonFly users List (threaded) for 2004-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: linuxpluginwrapper, how to install?


From: YONETANI Tomokazu <qhwt+dfly@xxxxxxxxxx>
Date: Mon, 20 Dec 2004 00:07:53 +0900

Hi.
On Sun, Dec 19, 2004 at 03:22:37PM +0000, Lukasz Byczynski wrote:
> i have problems when installing this port.
> 
> 4-stable user:
> 	You can get a following patch.
> 	http://people.FreeBSD.org/~nork/libmap_4stable.diff
>    Please apply on /usr/src and make install on /usr/src/libexec/rtld-elf:
>    # cd /usr/src ; patch -p0 < /tmp/libmap_4stable.diff
>    # cd libexec/rtld-elf ; make clean all install
> 5.1-RELEASE user:
> 	Please see /usr/src/libexec/rtld-elf/Makefile.
> *** Error code 1
> 
> Stop in /usr/ports/www/linuxpluginwrapper.

If you don't mind messing with rtld-elf and installing libmap, please
follow the instruction for 4-stable user. I was using it last year, but
I'm not sure if the patch(or the patched binary) still works.
A simple LD_LIBRARY_PATH seems to work most of time for me. Here's a
WORKAROUND I'm using:

1. edit the Makefile to ignore the message:
# cd /usr/ports/www/linuxpluginwrapper
# sed -i.bak '/FALSE/d' Makefile

2. install the port and the rest of the things.

3. create a directory and a few symlinks inside it:
$ mkdir -p ~/.mozilla/lib
$ cd ~/.mozilla/lib
$ ln -s /usr/local/lib/pluginwrapper/flash6.so flash.so
$ ln -s flash.so libc.so.6
$ ln -s flash.so libdl.so.2
$ ln -s flash.so libpthread.so.0
$ ln -s /usr/lib/libm.so.2 libm.so.6
$ ln -s /usr/lib/gcc2/libstdc++.so.3 libstdc++-libc6.2-2.so.3
$ ln -s /usr/lib/libz.so.2 libz.so.1

4. create a wrapper script like this:
#!/bin/sh
LD_LIBRARY_PATH=$HOME/.mozilla/lib exec /usr/X11R6/bin/firefox

and put it somewhere in the command search paths.

By the way, www/linuxpluginwrapper installs linux-flashplugin6 by default
as RUN_DEPENDS, so you end up using flashplugin6. To use flashplugin7,

5. edit Makefile and pkg-plist so that it depends on linux-flashplugin7:
# cd /usr/ports/www/linuxpluginwrapper
# sed -i.bak '/^RUN_DEPENDS.*flash/s/6/7/g' Makefile
# sed -i.bak '/plugin/s/6/7/' pkg-plist
# make FORCE_PKG_REGISTER=YES reinstall

and make sure there are symlinks in /usr/X11R6/lib/browser_plugins pointing
to files in /usr/local/lib/linux-flashplugin7 .

6. replace one of symlinks created above to point to flash7.so:
$ cd ~/.mozilla/lib
$ ln -fs /usr/local/lib/pluginwrapper/flash7.so flash.so



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]