Package: mozilla-browser
Version: 2:1.7.5-1
Severity: wishlist
Tags: patch
Boy, with 750+ plus bugs I hate to add to the workload, but this minor
improvement should be painless.
The script that launches moz contains a single 'perl' call:
% grep -n perl `which mozilla`
129: JVM_LINK=`perl -e 'print
readlink("/usr/lib/mozilla/plugins/libjavaplugin_oji.so")'`
But all Debians have a proper 'readlink' which is just 1/75th the size:
% ls -l `which perl readlink`
-rwxr-xr-x 1 root root 13848 Jul 16 07:37 /bin/readlink
-rwxr-xr-x 2 root root 1057324 Dec 11 18:32 /usr/bin/perl
Less hard drive seeks. The equivalent code looks like:
JVM_LINK=`readlink /usr/lib/mozilla/plugins/libjavaplugin_oji.so`
Attached are two patches for the launcher script (on my system it's
symlinked to '/usr/bin/mozilla-1.7.5'). These are:
bytes: name:
371 mozilla_five_line.diff
175 mozilla_one_line.diff
The five-liner checks for Debian, and falls back on 'perl' if it's not Debian.
It should run anywhere the present launcher does.
The one-liner assumes 'readlink' exists, which it does on Debian, since
the 'coreutils' package is required.
Hope this helps...
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages mozilla-browser depends on:
ii debconf 1.4.41 Debian configuration management sy
ii libatk1.0-0 1.8.0-4 The ATK accessibility toolkit
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libfontconfig1 2.2.3-4 generic font configuration library
ii libfreetype6 2.1.7-2.3 FreeType 2 font engine, shared lib
ii libgcc1 1:3.4.3-4 GCC support library
ii libglib2.0-0 2.4.8-1 The GLib library of C routines
ii libgtk2.0-0 2.4.14-2 The GTK+ graphical user interface
ii libnspr4 2:1.7.5-1 Netscape Portable Runtime Library
ii libpango1.0-0 1.6.0-3 Layout and rendering of internatio
ii libstdc++5 1:3.3.5-3 The GNU Standard C++ Library v3
ii libx11-6 4.3.0.dfsg.1-9 X Window System protocol client li
ii libxext6 4.3.0.dfsg.1-10 X Window System miscellaneous exte
ii libxft2 2.1.2-6 FreeType-based font drawing librar
ii libxp6 4.3.0.dfsg.1-9 X Window System printing extension
ii libxrender1 0.8.3-7 X Rendering Extension client libra
ii libxt6 4.3.0.dfsg.1-9 X Toolkit Intrinsics
ii psmisc 21.5-1 Utilities that use the proc filesy
ii xlibs 4.3.0.dfsg.1-9 X Keyboard Extension (XKB) configu
ii zlib1g 1:1.2.2-4 compression library - runtime
-- debconf information:
* mozilla/dsp: esddsp
mozilla/locale_auto: true
* mozilla/xprint:
* mozilla/prefs_note:
129c129,133
< JVM_LINK=`perl -e 'print
readlink("/usr/lib/mozilla/plugins/libjavaplugin_oji.so")'`
---
> if [ -f /etc/debian_version ] # use 'readlink' if Debian, 'perl' if not.
> JVM_LINK=`readlink /usr/lib/mozilla/plugins/libjavaplugin_oji.so`
> else
> JVM_LINK=`perl -e 'print
> readlink("/usr/lib/mozilla/plugins/libjavaplugin_oji.so")'`
> fi
129c129
< JVM_LINK=`perl -e 'print
readlink("/usr/lib/mozilla/plugins/libjavaplugin_oji.so")'`
---
> JVM_LINK=`readlink /usr/lib/mozilla/plugins/libjavaplugin_oji.so`