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

Re: StarOffice 5 and Potato - Solution



That's pretty close to the system i came up with, i was just waiting to
hear back if it worked for anyone else before i claimed i solved the
problem ;)

Let's see... diffs. psetup works for me without patching, did you try
that? Also, if you put the glibc 2.0 libs into ${StarOffice}/lib you don't
have to change the packages scripts at all. The extra '/lib/ld-2.0.7.so.2'
in the very last line to exec the soffice.bin is unnecessary once the
binary itself is patched to call the correct lib loader, and that fixes
the system() call to /bin/sh and the error on startup that it can't find
the file $sd_inst/bin/$sd_binary.

i think i will write that mini-HOWTO, although it might be a few days
[weeks] before i can get anything done on it...

The directions i have currently are attached. Given your post, i think
they work for at least 2 people. Out of the alpha stage now. Bug reports
to this address.

On Mon, 26 Apr 1999, Bernard de Rubinat wrote:

> I got into the same trouble as many people who tried to get staroffice
> 5.0(1?) to work with glibc2.1. I also did try many things I have seen, and I
> also had many failures to make it work with most recepes,
> BUT I FINALLY GOT IT TO WORK.
> 
> Here is a recipe I made out of my various attemps. I made a simplified
> version of all my attemps, so I may be wrong somewhere, but hopefuly it is
> correct.
> 
>  1/ mkdir /tmp
>  2/ get libc6_2.0.7.*.deb from a debian ftp mirror (slink).
>  3/ ar -x libc6_2.0.7.19981211-6.deb
>  4/ tar xvzf data.tar.gz
>  5/ mkdir /usr/local/glibc2.0
>  6/ cp -a lib/* /usr/local/glibc2.0
>  7/ ln -s /usr/local/glibc2.0/ld-linux.so.2 /lib/ld-2.0.7.so.2
>  8/ cd /full/path/to/Office/lib
>  9a/ mv soffice.bin soffice.bin.orig
>  9b/ mv setup.bin setup.bin.orig
>  9c/ mv psetup.bin psetup.bin.orig
>  10a/ cat soffice.bin.orig |sed -e 's#/lib/ld-linux.so.2#/lib/ld-2.0.7.so.2#g' \
>       > soffice.bin	# this is a single line or use '\'
>  10b/ cat setup.bin.orig |sed -e 's#/lib/ld-linux.so.2#/lib/ld-2.0.7.so.2#g' \
>       > setup.bin	# this is a single line or use '\'
>  10c/ cat psetup.bin.orig |sed -e 's#/lib/ld-linux.so.2#/lib/ld-2.0.7.so.2#g' \
>       > psetup.bin	# this is a single line or use '\'
>  11/ update the /full/path/to/Office/bin/soffice script
>     change :
>       LD_LIBRARY_PATH=$sd_inst/lib:$LD_LIBRARY_PATH
>     into :
>       LD_LIBRARY_PATH=/usr/local/glibc20/:$sd_inst/lib:$LD_LIBRARY_PATH
>     and change :
>       exec $sd_inst/bin/$sd_binary "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"
>     into :
>       /lib/ld-2.0.7.so.2 $sd_inst/bin/$sd_binary "$1" "$2" "$3" "$4" "$5"
> "$6" "$7" "$8" "$9"
> 
> Hope this helps. If this helps, does anyone feel to write a mini-HOWTO?
> 
> Best regards,
> 
> 
> Bernard
> 
>  --- here is a post not beloging to this list ---
> 
> Subject: Star Office with Glibc 2.1 (howto doit and what is broken)
> Date: Wed, 07 Apr 1999 07:27:27 GMT
> From: jole@jole.fi
> Newsgroups: stardivision.com.support.misc
> 
> 
> The instructions have already been posted to this group, but here they are
> again (with more details).
> 
> You can get already installed soffice to work by doing the following:
> 
> 1) cd /full/path/to/Office/lib
> 2) tar xfz glibc2.tar.gz
> 3) mv glib*/* . ; rmdir glib*
> 4) cd ../bin
> 5) emacs *.bin
> 6) using overwrite mode change /lib/ld-linux.so.2 to /lib/ld-2.0.7.so.2 in
>    all binaries
> 7) ln -s /full/path/to/Office/lib/ld-linux.so.2 /lib/ld-2.0.7.so.2
> 
> After this soffice starts and works as it should.
> 
> Unfortunately soffice uses system() call, which execvp /bin/sh, when
> printing (even to file) and thus the printing does not work. I tried to
> patch the libc itself (changed /bin/sh in the library to /old/sh, copied sh,
> cat and lpr to /old and patched them as well. Also soffice starting script
> must be edited.  After this printing to file does not give errors, but
> results to empty file.  Normal printing still tries to exec /usr/bin/lpr for
> some reason).
> 
>  ---
> 
> 
> On Fri, Apr 23, 1999 at 08:35 -0400, Christian Lavoie wrote:
> > > On Wed, 21 Apr 1999, Brad wrote:
> > >
> > > >By putting together ideas from a few posts here and in linux-kernel, i've
> > > >managed to get StarOffice 5.01 working on my Potato box. Now, i have two
> > > >problems:
> > > > 1) i know it works on my box. But what about anyone else's?
> > > > 2) If it does work, what do i do to let people know how to do it? Just
> > > >    letting it sit on my hard drive unused by anyone else doesn't sound
> > > >    too appealing...
> > 
> > 2) How about writing a 'SO5 and glic2.1 Mini- HOWTO'?
> > 
> > Christian Lavoie
> > clavoie@enter-net.com
> > UIN: 947212
Thanks to Dave Cinege from linux-kernel and Tor Slettnes from debian-user
for giving me the idea on how to do this.
----

First, install StarOffice with the /net option as
described by Tor:

> - Create a directory named /usr/local/slink, and get and untar the
>   following file in there:
>   ftp://ftp.debian.org/debian/dists/slink/main/disks-i386/current/base2_1.tgz
>
> - Get and untar 'so501_01.tar' into /usr/local/slink/tmp
>      # cd /usr/local/slink/tmp
>      # tar xvf /path/to/so501_01.tar
>
> - Enter a 'chroot' environment inside this new base, after copying
>   some needed files from your real environment:
>      # cd /usr/local/slink
>      # cp /etc/{hostname,hosts,resolv.conf} etc/
>      # chroot .
>
> - Get the 'xfree86-common' and 'xlib6g' packages
>      # apt-get update
>      # apt-get install xfree86-common xlib6g
>     
> - Setup a few other preliminaries:
>      # mount -t proc proc /proc
>      # export DISPLAY=localhost:0
> 
> - Install StarOffice inside the chroot environment:
>      # cd /tmp/so501/so501_inst/
>      # ./setup /net
> 
> - Install to the same directory that you would in your real
>   environment (e.g. "/usr/local/staroffice").
> 
> - Exit the chroot environment:
>      # umount /proc
>      # exit
> 
> - Move neccessary files from this slink directory out to the "real world":
>      # mkdir /usr/local/glibc20
>      # mv /usr/local/slink/lib/* /usr/local/glibc20
>      # mv /usr/local/slink/usr/local/staroffice /usr/local/
> 
> - Clean up:
>      # cd ~
>      # rm -r /usr/local/slink
> 
> - Copy the StarOffice script to a location in your search path:
>      # cp /usr/local/staroffice/bin/soffice /usr/local/bin/

- Copy the glibc 2.0 libraries into your ${StarOffice}/lib
  directory. They're more useful there.
     # cp /usr/local/glibc20/* /usr/local/staroffice/lib

- The dynamic library loader needs to go in /lib, but it can be renamed. 
     # cd /usr/local/staroffice/lib
     # cp ld-linux.so.2 /lib/ld-linux-star

- Now, as Dave suggested, we patch the relavent files:
     # cd ../bin
     # cp setup.bin setup.bin.foo
     # sed s/ld-linux.so.2/ld-linux-star/g setup.bin.foo > setup.bin
     # cp soffice.bin soffice.bin.foo
     # sed s/ld-linux.so.2/ld-linux-star/g soffice.bin.foo > soffice.bin
     # rm *.foo
     
- Normally, you'd need to add the StarOffice lib directory to
  LD_LIBRARY_PATH, but the scripts provided do that for us. So, you
  should be able to run the setup script from your normal login and
  to set up, then run the soffice script to start StarOffice!

Reply to: