[blfs-book] r9043 - trunk/BOOK/xsoft/graphweb

andy at linuxfromscratch.org andy at linuxfromscratch.org
Wed Nov 30 14:23:53 PST 2011


Author: andy
Date: 2011-11-30 15:23:49 -0700 (Wed, 30 Nov 2011)
New Revision: 9043

Modified:
   trunk/BOOK/xsoft/graphweb/firefox.xml
Log:
untar Firefox into a versioned directory

Modified: trunk/BOOK/xsoft/graphweb/firefox.xml
===================================================================
--- trunk/BOOK/xsoft/graphweb/firefox.xml	2011-11-30 19:32:34 UTC (rev 9042)
+++ trunk/BOOK/xsoft/graphweb/firefox.xml	2011-11-30 22:23:49 UTC (rev 9043)
@@ -178,11 +178,12 @@
     <systemitem class="username">root</systemitem> user, install the
     package:</para>
 
-<screen role="root"><userinput>tar -xfv firefox-build-dir/dist/firefox-*.tar.bz2 -C /usr/lib &&
-ln -sfv ../lib/firefox/firefox /usr/bin/firefox &&
+<screen role="root"><userinput>mkdir /usr/lib/firefox-&firefox-version; &&
+tar -xfv firefox-build-dir/dist/firefox-*.tar.bz2 -C /usr/lib/firefox-&firefox-version; --strip-components=1 &&
+ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin/firefox &&
 mkdir -p /usr/lib/mozilla/plugins &&
-ln -sv ../mozilla/plugins /usr/lib/firefox &&
-chown -R -v root:root /usr/lib/firefox</userinput></screen>
+ln -sv ../mozilla/plugins /usr/lib/firefox-&firefox-version; &&
+chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
 
     <para>If you have installed <application>Firefox</application> linked
     against an already installed <application>Xulrunner</application>, as the
@@ -214,10 +215,12 @@
     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. 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
+    <application>Firefox</application> in /usr/lib. The
+    <option>--strip-components=1</option> option removes the leading
+    'firefox' directory from the filenames, allowing us to untar it
+    into a versioned directory. 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
@@ -247,10 +250,8 @@
         <seg>firefox</seg>
         <seg>Numerous libraries, browser components, plugins, extensions, and
         helper modules installed in <filename
-        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>
+        class='directory'>/usr/lib/firefox-&firefox-version;</filename>.</seg>
+        <seg>/usr/lib/firefox-&firefox-version;</seg>
       </seglistitem>
     </segmentedlist>
 




More information about the blfs-book mailing list