Author: andy Date: 2011-11-29 09:24:22 -0700 (Tue, 29 Nov 2011) New Revision: 9034
Modified: trunk/BOOK/xsoft/graphweb/firefox.xml Log: Instructions for installing Firefox both with and without Xulrunner Modified: trunk/BOOK/xsoft/graphweb/firefox.xml =================================================================== --- trunk/BOOK/xsoft/graphweb/firefox.xml 2011-11-29 14:51:04 UTC (rev 9033) +++ trunk/BOOK/xsoft/graphweb/firefox.xml 2011-11-29 16:24:22 UTC (rev 9034) @@ -8,8 +8,10 @@ <!ENTITY firefox-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2"> <!ENTITY firefox-md5sum "b7d09b082e88a74860a51a8e04e29333"> <!ENTITY firefox-size "67 MB"> - <!ENTITY firefox-buildsize "3 GB"> - <!ENTITY firefox-time "24 SBU"> + <!ENTITY firefox-buildsize "3 GB (or 495 MB if you're building against an + installed Xulrunner)"> + <!ENTITY firefox-time "24 SBU (or 0.3 SBU if you're building against + an installed Xulrunner)"> ]> <sect1 id="firefox" xreflabel="Firefox-&firefox-version;"> @@ -115,7 +117,7 @@ # If you have installed wireless-tools you can delete this option: ac_add_options --disable-necko-wifi -# If you have installed nss uncomment these two lines: +# If you have installed nss and nspr uncomment these two lines: # ac_add_options --with-system-nspr # ac_add_options --with-system-nss @@ -153,18 +155,41 @@ <screen><userinput>make -f client.mk</userinput></screen> + <para>If you have <emphasis>not</emphasis> linked + <application>Firefox</application> against an installed + <application>Xulrunner</application>:</para> + +<screen><userinput>make -C firefox-build-dir/browser/installer</userinput></screen> + <para>This package does not come with a test suite.</para> - <para>Now, as the <systemitem class="username">root</systemitem> user, - install the package:</para> + <para>Now, if you have <emphasis>not</emphasis> linked + <application>Firefox</application> against an installed + <application>Xulrunner</application>, as the + <systemitem class="username">root</systemitem> user, install the + package:</para> -<screen role="root"><userinput>make -C firefox-build-dir/browser/installer && -tar -xfv firefox-build-dir/dist/firefox-*.tar.bz2 -C /usr/lib && +<screen role="root"><userinput>tar -xfv firefox-build-dir/dist/firefox-*.tar.bz2 -C /usr/lib && ln -sfv ../lib/firefox/firefox /usr/bin/firefox && mkdir -p /usr/lib/mozilla/plugins && ln -sv ../mozilla/plugins /usr/lib/firefox && -chown -R -v root:root /usr/{include,lib,share/idl}/firefox-*</userinput></screen> +chown -R -v root:root /usr/lib/firefox</userinput></screen> + <para>If you have installed <application>Firefox</application> linked + against an already installed <application>Xulrunner</application>, as the + <systemitem class="username">root</systemitem> user:</para> + +<screen role="root"><userinput>make -C firefox-build-dir install && +rm /usr/bin/firefox && +cat > /usr/bin/firefox << "EOF" && +#!/bin/bash +/usr/lib/xulrunner-&xulrunner-version;/xulrunner /usr/lib/firefox-&firefox-version;/application.ini "${@}" +EOF +chmod 755 /usr/bin/firefox && +mkdir -p /usr/lib/mozilla/plugins && +ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; && +chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen> + </sect2> <sect2 role="commands"> @@ -180,8 +205,15 @@ this creates a <application>Firefox</application> tarball.</para> <para><command>tar -xfv firefox-build-dir/dist ...</command>: This untars - <application>Firefox</application> in /usr/lib.</para> + <application>Firefox</application> in /usr/lib. Untaring it (instead of + running make install) prevents it installing + /usr/lib/firefox-devel-&firefox-version; which contains about 430 MB of + files. If you need any of those files, they're in + <xref linkend="xulrunner"/></para> + <para><command>make -C firefox-build-dir install</command>: This runs + <command>make install</command> in firefox-build-dir.</para> + <para><command>ln -sfv ... /usr/bin/firefox</command>: this puts a symbolic link to the <command>firefox</command> executable in your ${PATH}.</para> @@ -206,7 +238,9 @@ <seg>firefox</seg> <seg>Numerous libraries, browser components, plugins, extensions, and helper modules installed in <filename - class='directory'>/usr/lib/firefox</filename></seg> + class='directory'>/usr/lib/firefox</filename> or <filename + class='directory'>/usr/lib/firefox-&firefox-version;</filename> + (depending whether you untared it or ran make install)</seg> <seg>/usr/lib/firefox</seg> </seglistitem> </segmentedlist> -- http://linuxfromscratch.org/mailman/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
