[Bug 275205] New: /usr/bin/firefox script incorrectly sets LIB to lib64 on ia64
https://bugzilla.novell.com/show_bug.cgi?id=275205 Summary: /usr/bin/firefox script incorrectly sets LIB to lib64 on ia64 Product: openSUSE 10.3 Version: Alpha 4 Platform: IA64 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Firefox AssignedTo: bnc-team-mozilla@forge.provo.novell.com ReportedBy: edwardsg@sgi.com QAContact: qa@suse.de CC: tee@sgi.com /usr/bin/firefox does the following, which is incorrect on ia64: 58 MOZ_DIST_LIB="/usr/lib/firefox" 59 MOZ_APPNAME="firefox" 60 MOZ_PROFILE=".mozilla/firefox" 61 MOZ_PROGRAM="$MOZ_DIST_LIB/$MOZ_APPNAME-bin" 62 63 mozilla_lib=`file $MOZ_PROGRAM | awk '{ print $3 }'` 64 case $mozilla_lib in 65 64-bit) 66 LIB=lib64 67 ;; 68 *) 69 LIB=lib 70 ;; 71 esac 72 LIB=lib 73 BROWSER_PLUGIN_DIR=/usr/$LIB/browser-plugins On ia64, 64-bit libs are under /usr/lib. The 32-bit compat libraries are under /emul/ia32-linux. This results in firefox on ia64 not finding any plugins, since it is looking for them under /usr/lib64/browser-plugins, when in fact they live at /usr/lib/browser-plugins. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275205 ------- Comment #1 from edwardsg@sgi.com 2007-05-16 08:59 MST ------- Oops, ignore line 72 above, I just put that in there as part of debugging this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275205 wolfgang@rosenauer.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wolfgang@rosenauer.org Status|NEW |NEEDINFO Info Provider| |edwardsg@sgi.com ------- Comment #2 from wolfgang@rosenauer.org 2007-05-17 06:07 MST ------- I would like like to fix it but I don't have access to any IA64 machine so could you propose a change or supply the output of "file $MOZ_PROGRAM" on IA64? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275205 edwardsg@sgi.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|edwardsg@sgi.com | ------- Comment #3 from edwardsg@sgi.com 2007-05-17 07:15 MST ------- Sure, sorry I didn't include that before. edwardsg@railbeef:~ $ uname -a Linux railbeef 2.6.21-8-default #1 SMP Fri May 11 11:31:08 UTC 2007 ia64 ia64 ia64 GNU/Linux edwardsg@railbeef:~ $ file /usr/lib/firefox/firefox-bin /usr/lib/firefox/firefox-bin: ELF 64-bit LSB executable, IA-64 (Intel 64 bit architecture), version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), stripped edwardsg@railbeef:~ $ file /usr/lib/firefox/firefox-bin | awk '{ print $3 }' 64-bit -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275205 ------- Comment #4 from edwardsg@sgi.com 2007-05-17 07:20 MST ------- You can glean this information from rpm. That might be a bigger hammer than you were looking for, though. edwardsg@railbeef:~ $ rpm --eval "%_lib" lib edwardsg@railbeef:~ $ rpm --eval "%_libdir" /usr/lib This should return the correct value on the various arches. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275205 wolfgang@rosenauer.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |fixed_bs ------- Comment #5 from wolfgang@rosenauer.org 2007-05-20 05:06 MST ------- Using the rpm definition of %_lib would be wrong since that wouldn't tell the correct one if you run an i386 version under x86-64. For now I'm using: mozilla_lib=`file $MOZ_PROGRAM` LIB=lib echo $mozilla_lib | grep -q -E 'x86-64|s390x|ppc64' && LIB=lib64 (I don't have access to s390x and ppc64 machines to ensure that's correct but IIRC it is.) (Fixed in buildservice) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=275205#c6
Wolfgang Rosenauer
participants (1)
-
bugzilla_noreply@novell.com