Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jan 2006 18:10:06 GMT
From:      Arjan van Leeuwen <avleeuwen@piwebs.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/92226: Make sure Opera finds FreeBSD 4 compat libraries
Message-ID:  <200601251810.k0PIA6IQ028540@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/92226; it has been noted by GNATS.

From: Arjan van Leeuwen <avleeuwen@piwebs.com>
To: bug-followup@freebsd.org,
 avleeuwen@piwebs.com,
 anray@freebsd.org
Cc:  
Subject: Re: ports/92226: Make sure Opera finds FreeBSD 4 compat libraries
Date: Wed, 25 Jan 2006 19:03:22 +0100

 --Boundary-00=_q171DnZTUTZ4qy4
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
  Andrey Slusar (anray at freebsd dt org) noticed that compat libraries don't 
 have to be in /usr/local: use ${LOCALBASE} instead. New patch is attached. 
 Thanks Andrey!
 
 --Boundary-00=_q171DnZTUTZ4qy4
 Content-Type: text/x-diff;
   charset="us-ascii";
   name="opera.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="opera.diff"
 
 diff -urN /usr/ports/www/opera/files/patch-install.sh opera/files/patch-install.sh
 --- /usr/ports/www/opera/files/patch-install.sh	Tue Nov 22 22:58:50 2005
 +++ opera/files/patch-install.sh	Wed Jan 25 18:59:26 2006
 @@ -1,5 +1,5 @@
  --- install.sh.orig	Mon Nov 14 14:51:18 2005
 -+++ install.sh	Tue Nov 22 21:53:58 2005
 ++++ install.sh	Wed Jan 25 18:59:13 2006
  @@ -381,7 +381,7 @@
   	    mvv=''    # SunOS mv (no -v verbose option)
   	;;
 @@ -18,7 +18,7 @@
   	    wrapper_ibmjava="
   	    IBMJava2-142/jre \\
   	    IBMJava2-141/jre \\
 -@@ -796,6 +796,12 @@
 +@@ -796,10 +796,19 @@
   
       wrapper_contain="#!/bin/sh
   
 @@ -31,7 +31,14 @@
   # Location of the Opera binaries
   OPERA_BINARYDIR=${str_localdirexec}
   export OPERA_BINARYDIR
 -@@ -844,6 +850,9 @@
 + 
 ++# Make sure the compat libraries are found
 ++test -d %%LOCALBASE%%/lib/compat/ && LD_LIBRARY_PATH=\"\${LD_LIBRARY_PATH}:%%LOCALBASE%%/lib/compat/\"
 ++
 + # Parse commandline parameters
 + toset=
 + for arg
 +@@ -844,6 +853,9 @@
   OPERA_LD_PRELOAD=\"\${LD_PRELOAD}\"
   export OPERA_LD_PRELOAD
   
 @@ -41,7 +48,7 @@
   # Native Java enviroment
   if test -f \"\${OPERA_PERSONALDIR}/javapath.txt\"; then
       INIJAVA=\`cat \${OPERA_PERSONALDIR}/javapath.txt\`
 -@@ -867,65 +876,12 @@
 +@@ -867,65 +879,12 @@
   
   if test ! \"\${OPERA_JAVA_DIR}\"; then
   
 @@ -110,7 +117,7 @@
   	; do
   	for PREFIX in \${PREFIXES}; do
   	    if test -f \"\${PREFIX}/\${SUNJAVA}/lib/${wrapper_sunjava_machine}/libjava.so\"; then OPERA_JAVA_DIR=\"\${PREFIX}/\${SUNJAVA}/lib/${wrapper_sunjava_machine}\" && break; fi
 -@@ -976,11 +932,8 @@
 +@@ -976,11 +935,8 @@
   
   # Acrobat Reader
   for BINDIR in \\
 @@ -124,7 +131,7 @@
       ; do
       if test -d \${BINDIR} ; then PATH=\${PATH}:\${BINDIR}; fi
   done
 -@@ -991,12 +944,13 @@
 +@@ -991,12 +947,13 @@
   LD_LIBRARY_PATH=\"\${OPERA_BINARYDIR}\${LD_LIBRARY_PATH:+:}\${LD_LIBRARY_PATH}\"
   export LD_LIBRARY_PATH
   
 @@ -140,7 +147,7 @@
           LD_LIBRARY_PATH=\"\${LD_LIBRARY_PATH}:\${LIBASPELL_DIR}\"
       fi
   done
 -@@ -1086,7 +1040,7 @@
 +@@ -1086,7 +1043,7 @@
       chop "${OPERADESTDIR}" "str_localdirshare"
       chop "${OPERADESTDIR}" "str_localdirplugin"
   
 @@ -149,7 +156,7 @@
   
       # Executable
       debug_msg 1 "Executable"
 -@@ -1300,49 +1254,13 @@
 +@@ -1300,49 +1257,13 @@
   
       if test -z "${OPERADESTDIR}"
       then
 @@ -199,7 +206,7 @@
   	fi
   
       fi # OPERADESTDIR
 -@@ -1487,48 +1405,43 @@
 +@@ -1487,48 +1408,43 @@
       # This function searches for common gnome icon paths.
       debug_msg 1 "in gnome()"
   
 @@ -271,7 +278,7 @@
   
       elif test -d /usr/share/gnome/
       then
 -@@ -1576,9 +1489,9 @@
 +@@ -1576,9 +1492,9 @@
       # This function searches for common kde2 and kde 3 icon paths.
       debug_msg 1 "in kde()"
   
 @@ -283,7 +290,7 @@
   	if test -d "$DIR_HI" -a -w "$DIR_HI"
   	then
   	    if test -d "$DIR_HI"/48x48/apps -a -w "$DIR_HI"/48x48/apps
 -@@ -1592,7 +1505,7 @@
 +@@ -1592,7 +1508,7 @@
   	    fi
   	fi
   
 @@ -292,7 +299,7 @@
   	if test -d $DIR_LO -a -w $DIR_LO
   	then
   	    if test -d $DIR_LO/32x32/apps -a -w $DIR_LO/32x32/apps
 -@@ -1606,15 +1519,15 @@
 +@@ -1606,15 +1522,15 @@
   	    fi
   	fi
   
 diff -urN /usr/ports/www/opera/pkg-message opera/pkg-message
 --- /usr/ports/www/opera/pkg-message	Sun Aug 29 00:50:43 2004
 +++ opera/pkg-message	Mon Jan 23 23:06:53 2006
 @@ -1,12 +1,5 @@
 -If you are running FreeBSD 5.x and are experiencing a core dump when starting
 -Opera, try updating the compat4x port.
 +If you are running FreeBSD 5.x or 6.x and are experiencing a core dump when 
 +starting Opera, try updating the compat4x port.
  
 -*** IMPORTANT: users with custom search.ini ***
 +Plugins do not work in FreeBSD 5.x or higher - please disable them.
  
 -If you have a custom search.ini and you've used opera 7.51 or an earlier
 -version before this upgrade, edit ~/.opera/search.ini _before_ running the
 -upgraded Opera for the first time, and change the file version to 4. It should
 -look like this:
 -
 -[Version]
 -File Version=4
 
 --Boundary-00=_q171DnZTUTZ4qy4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601251810.k0PIA6IQ028540>