Bug 427115

Summary: SIMPLE (w/ patch) MOZ_ARCH should be settable. (i want 32-bit firefox even on 64bit installs)
Product: [Fedora] Fedora Reporter: Stig Hackvan <stig-redhat-bugzilla>
Component: firefoxAssignee: Gecko Maintainer <gecko-bugs-nobody>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 8   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-01 03:57:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stig Hackvan 2007-12-31 23:05:44 UTC
Description of problem:

some 3rd party plugins for firefox (flash) ship in 32-bit versions.  Ergo, i
want to be able to tell firefox to run in 32bit mode...but the startup script
makes this really tough.  i keep having to hack /usr/bin/firefox.

ideally, the firefox startup script would respect the MOZ_ARCH variable instead
of clobberring it....and ideally 3rd-party plugins (flash) would install export
MOZ_ARCH=i386 into /etc/profile.d and the world would be grand...

please incorporate this patch...


PATCH:

--- firefox~    2007-12-13 08:21:51.000000000 -0800
+++ firefox     2007-12-28 21:47:11.000000000 -0800
@@ -36,7 +36,7 @@
 ##
 ## Variables
 ##
-MOZ_ARCH=$(uname -m)
+[ "$MOZ_ARCH" ] || MOZ_ARCH=$(uname -m)
 case $MOZ_ARCH in
        x86_64 | ia64 | s390 )
                MOZ_LIB_DIR="/usr/lib64"

Comment 1 Christopher Aillon 2008-01-01 03:57:08 UTC
From the shell:

setarch i386

(or whatever you want)

Comment 2 Christopher Aillon 2008-01-01 03:58:28 UTC
But fwiw, flash works for me using the 64bit firefox.  Make sure you have
nspluginwrapper.i386 and nspluginwrapper.x86_64 installed.  Firefox is much
faster in this mode.