Subject: Re: StarOffice working for NetBSD 1.5?
To: None <stripes@tigerlair.com>
From: Frederick Bruckman <fb@enteract.com>
List: port-i386
Date: 04/23/2001 20:48:33
On Mon, 23 Apr 2001 stripes@tigerlair.com wrote:

> The other problem is I can't get StarOffice 5.2 to work (even
> after copying all the necessary libraries to /emul/linux/lib). Has
> anyone had any success with this or can someone tell me where I
> can find a copy of so-5_2-ga-bin-linux_en?

I bought a Linux Mandrake CD to get StarOffice 5.2, and it works fine
for me. It would be pointless to build a package around the mandrake
rpm, though, since it can't be downloaded from anywhere, as far as I
know.

It's easy enough to install an rpm archive using a native "rpm",
compiled from pkgsrc. From memory, it's something like...

    rpm --initdb
    rpm --prefix=/emul/linux --install --ignorearch --ignoreos
--nodeps foo.rpm

You need nodeps because the rpm can't possibly know that you have the
NetBSD linux compat packages installed. You need ignorearch and
ignoreos, of course, because "rpm" is a native binary, so it knows
you're running NetBSD, but it doesn't know that NetBSD can run Linux.

For StarOffice, you choose the "network install", which simply unpacks
everything to /usr/pkg/emul/linux/opt/office52_en. From memory again,
one change was needed to program/{jvmsetup,setup,soffice} to give the
proper path to /bin/test...

# resolve installation directory
sd_platform=`uname -s`
case $sd_platform in
        SCO_SV) test=/bin/test     ;;
        NetBSD) test=/bin/test     ;;
        *)      test=/usr/bin/test ;;
esac

Also, LD_LIBRARY_PATH must be set in
program/{jvmsetup,setup,soffice,spadmin}. (I have the installation,
but I don't have the originals handy)...

# set search path for shared libraries
case $sd_platform in
...
  *)
    LD_LIBRARY_PATH=$sd_inst/program:$LD_LIBRARY_PATH
    export LD_LIBRARY_PATH
    ;;
esac

Now I have a /usr/local/bin/soffice that consists simply of

#!/bin/sh
exec /usr/pkg/emul/linux/opt/office52_en/program/soffice "$@"

When first invoked, it runs "setup" and installs a few more files to
the user's home directory, the next time it just runs StarOffice!

You can make sure you have all the proper linux compat packages
installed (for StarOffice), with the following command:

    cd /usr/pkg/emul/linux/opt/office52_en/program
    LD_LIBRARY_PATH=/opt/office52_en/program \
        /usr/pkg/emul/linux/usr/bin/ldd soffice.bin \
        | grep "not found"

You should see nothing.

I'm sure your installation will be a little different, but I hope this
at least helps you.


Frederick