[RFE, Patch, Multi-lib] 32bit support /usr/bin/firefox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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"
-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux