From owner-freebsd-ports@FreeBSD.ORG Sat Jun 24 21:46:35 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59ACB16A494 for ; Sat, 24 Jun 2006 21:46:35 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from centrmmtao05.cox.net (centrmmtao05.cox.net [70.168.83.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84B9E43D45 for ; Sat, 24 Jun 2006 21:46:34 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by centrmmtao05.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060624214633.NYZM8328.centrmmtao05.cox.net@mezz.mezzweb.com>; Sat, 24 Jun 2006 17:46:33 -0400 Date: Sat, 24 Jun 2006 16:46:30 -0500 To: "Boris Samorodov" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <449A67AD.8000204@icyb.net.ua> <51090743@srv.sem.ipt.ru> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <51090743@srv.sem.ipt.ru> User-Agent: Opera Mail/9.00 (Linux) Cc: Andriy Gapon , freebsd-ports@freebsd.org Subject: Re: linux-opera start script X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 21:46:35 -0000 Hey Andriy, please add my email in CC in the next time. I am maintaining= = this port and I near have miss this thread. On Thu, 22 Jun 2006 08:24:24 -0500, Boris Samorodov wrote:= > On Thu, 22 Jun 2006 12:49:33 +0300 Andriy Gapon wrote: > >> I am getting the following message, probably completely harmless, wh= en >> I start linux-opera: > >> $ linux-opera >> sh: error while loading shared libraries: >> /usr/local/lib/compat/libtermcap.so.2: ELF file ABI version invalid > >> I see the following lines in linux-opera script: >> # Make sure the compat libraries are found >> test -d /usr/local/lib/compat/ && >> LD_LIBRARY_PATH=3D"${LD_LIBRARY_PATH}:/usr/local/lib/compat/" > >> I am not sure why linux-opera would need /usr/local/lib/compat/, but >> this is how LD_LIBRARY_PATH gets spammed. > > Seems I understand what is going on. > > It is a side effect of installing linux programms with FreeBSD > environment. Install.sh script of linux-opera port has function > guess_os() with: > ----- > os=3D`uname -s` || error 'uname' > case $os in > FreeBSD|NetBSD) os=3DAnyBSD;; > SunOS*) os=3DSunOS;; > esac > ----- > > Sure it's the FreeBSD. And later at this script has: > ----- > case "${os}" in > AnyBSD|OpenBSD) > wrapper_contain=3D"${wrapper_contain} > > # Make sure the compat libraries are found > test -d /usr/local/lib/compat/ && = > LD_LIBRARY_PATH=3D\"\${LD_LIBRARY_PATH}:/usr/loc > al/lib/compat/\" > " > ;; > ----- > > All is OK when Opera is installed as a native package/port. But not > while installing it as a linux port. Upstream developers shouldn't be > bothered by determining the TARGET_OS. ;-) Thanks for check and report, I will create and commit a fix in linux-ope= ra. Cheers, Mezz > WBR -- = mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org