summaryrefslogtreecommitdiff
path: root/editors/openoffice.org-3-RC/files/patch-i87583
blob: 750935a3030b077be1b5fbb7789d3697b0b30681 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- desktop/scripts/soffice.sh.orig	2008-06-09 08:57:10.000000000 -0400
+++ desktop/scripts/soffice.sh	2008-06-27 16:12:58.000000000 -0400
@@ -75,6 +75,15 @@
 
 # extend the ld_library_path for java: javaldx checks the sofficerc for us
 if [ -x "$sd_prog/../basis-link/ure-link/bin/javaldx" ] ; then
+    # this is a temporary hack until we can live with the default search paths
+    case "`uname -s`" in
+    FreeBSD)
+	sd_prog1="$sd_prog/../basis-link/program"
+	sd_prog2="$sd_prog/../basis-link/ure-link/lib"
+	LD_LIBRARY_PATH=$sd_prog1:$sd_prog2${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}
+	export LD_LIBRARY_PATH
+	;;
+    esac
     my_path=`"$sd_prog/../basis-link/ure-link/bin/javaldx" $BOOTSTRAPVARS \
         "-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"`
     if [ -n "$my_path" ] ; then
--- padmin/source/spadmin.sh.orig	2008-06-27 01:18:09.000000000 -0400
+++ padmin/source/spadmin.sh	2008-06-27 13:31:09.000000000 -0400
@@ -58,6 +58,15 @@
 
 # extend the ld_library_path for java: javaldx checks the sofficerc for us
 if [ -x "$sd_prog/../basis-link/ure-link/bin/javaldx" ] ; then
+    # this is a temporary hack until we can live with the default search paths
+    case "`uname -s`" in
+    FreeBSD)
+	sd_prog1="$sd_prog/../basis-link/program"
+	sd_prog2="$sd_prog/../basis-link/ure-link/lib"
+	LD_LIBRARY_PATH=$sd_prog1:$sd_prog2${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}
+	export LD_LIBRARY_PATH
+	;;
+    esac
     my_path=`"$sd_prog/../basis-link/ure-link/bin/javaldx" $BOOTSTRAPVARS \
         "-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc"`
     if [ -n "$my_path" ] ; then