[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[RFE, Patch, Multi-lib] 32bit support /usr/bin/firefox
- From: Gilboa Davara <gilboad gmail com>
- To: Devel Fedora <fedora-devel-list redhat com>
- Subject: [RFE, Patch, Multi-lib] 32bit support /usr/bin/firefox
- Date: Fri, 10 Nov 2006 16:17:06 +0200
Hello all,
The attached patch (which should cover all 64bit arches) enable you to
start the 32bit version of firefox (if it's installed) by starting
firefox with the "--32" command line option.
Before I submit this to bugzilla, I have two questions:
- Do we rather have a single firefox script that executes both 32bit and
64bit or do we want to break the it to dedicated firefox[64] and
firefox32 scripts.
- Where should I submit this patch? Mozilla or redhat?
- Gilboa
--- firefox.old 2006-11-10 15:16:47.000000000 +0200
+++ firefox 2006-11-10 16:15:16.000000000 +0200
@@ -36,12 +36,35 @@
##
## Variables
##
-MOZ_LIB_DIR="/usr/lib"
-if [ -x "/usr/lib64/firefox-1.5.0.8/firefox-bin" ]
-then
- MOZ_LIB_DIR="/usr/lib64"
+MOZ_VERSION=1.5.0.8
+
+##
+## 10/11/2006. Gilboa Davara <gilboad at gmail dot com>
+## This patch adds multilib support for x86_64/PPC64/s390/IA64.
+##
+if [ "$1" == "--32" ] || [ "$1" == "--64" ] ; then
+ MOZ_OPTION=$1
+ shift
fi
-MOZ_DIST_BIN="$MOZ_LIB_DIR/firefox-1.5.0.8"
+
+MOZ_ARCH=$(uname -m)
+case $MOZ_ARCH in
+ ppc64 | x86_64 | ia64 | s390 )
+ MOZ_LIB_DIR="/usr/lib"
+ MOZ_DISPLAY_ARCH="32bit"
+ if [ "$MOZ_OPTION" != "--32" ] && [ -x "/usr/lib64/firefox-$MOZ_VERSION/firefox-bin" ] ; then
+ MOZ_LIB_DIR="/usr/lib64"
+ MOZ_DISPLAY_ARCH="64bit"
+ fi
+ echo "Starting the $MOZ_DISPLAY_ARCH version of firefox..."
+ ;;
+
+ * )
+ MOZ_LIB_DIR="/usr/lib"
+ ;;
+esac
+
+MOZ_DIST_BIN="$MOZ_LIB_DIR/firefox-$MOZ_VERSION"
MOZ_PROGRAM="$MOZ_DIST_BIN/firefox"
MOZ_CLIENT_PROGRAM="$MOZ_DIST_BIN/mozilla-xremote-client"
MOZ_CLIENT_PROGRAM_PARAM="-a firefox"
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]