From owner-freebsd-openoffice@FreeBSD.ORG Tue Oct 3 06:56:49 2006 Return-Path: X-Original-To: openoffice@freebsd.org Delivered-To: freebsd-openoffice@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28D9E16A403; Tue, 3 Oct 2006 06:56:49 +0000 (UTC) (envelope-from mihnea_capraru@fastmail.fm) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id C340E43D49; Tue, 3 Oct 2006 06:56:47 +0000 (GMT) (envelope-from mihnea_capraru@fastmail.fm) Received: from frontend3.internal (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 611F1DAF116; Tue, 3 Oct 2006 02:56:46 -0400 (EDT) Received: from heartbeat2.internal ([10.202.2.161]) by frontend3.internal (MEProxy); Tue, 03 Oct 2006 02:56:48 -0400 X-Sasl-enc: SC7iIouR+swhZ5TQY8mo1cTbrn58g8j6Yfq7tC9uYNTJ 1159858608 Received: from [192.168.0.66] (unknown [86.34.235.150]) by mail.messagingengine.com (Postfix) with ESMTP id 1CD083101; Tue, 3 Oct 2006 02:56:48 -0400 (EDT) From: Mihnea Capraru To: NAKATA Maho Date: Tue, 3 Oct 2006 06:55:48 +0000 User-Agent: KMail/1.9.4 References: <200610021051.k92ApQTL099708@freefall.freebsd.org> <20061003.094837.118629176.chat95@mac.com> In-Reply-To: <20061003.094837.118629176.chat95@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610030655.48573.mihnea_capraru@fastmail.fm> Cc: freebsd-ports-bugs@freebsd.org, openoffice@freebsd.org Subject: Re: ports/103896: OO.o port should add /program to LD_LIBRARY_PATH X-BeenThere: freebsd-openoffice@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting OpenOffice to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 06:56:49 -0000 On Tuesday 03 October 2006 00:48, NAKATA Maho wrote: > Hello, Mihnea, thanks for your report. > > However, I cannot figure out what is the problem here. Please explain with > reproduceable way. For example > we already have LD_LIBRARY_PATH in soprogram/soffice and I belive that > LD_LIBRARY_PATH is also set with SDK environment. > > *) > # this is a temporary hack until we can live with the default search > paths if [ $LD_LIBRARY_PATH ]; then > SYSTEM_LD_LIBRARY_PATH=$LD_LIBRARY_PATH > export SYSTEM_LD_LIBRARY_PATH > LD_LIBRARY_PATH="$sd_prog$add_moz_lib":$LD_LIBRARY_PATH > else > LD_LIBRARY_PATH="$sd_prog$add_moz_lib" > fi > export LD_LIBRARY_PATH > ;; > esac > thanks, > -- NAKATA, Maho (maho@FreeBSD.org) Right. What I meant is that LD_LIBRARY_PATH is not set automatically when running a UNO application written in Java that needs to bootstrap OpenOffice.org. Since soffice would only be run at this point (at bootstrap), the JVM will never even be able to find soffice in /usr/local/openoffice-***/program, because this entry would only be added to LD_LIBRARY_PATH by soffice itself (and this is circular). This is why I was suggesting to update system-wide LD_LIBRARY_PATH. But if this is considered too intrusive, then perhaps install a symlink to soffice in /usr/local/lib (libexec?). -- Mihnea Capraru