Ignore:
Timestamp:
01/20/2013 05:26:45 PM (11 years ago)
Author:
Krejzi <krejzi@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
9301a07
Parents:
595cda07
Message:

Firefox, Xulrunner and Thunderbird updates.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10955 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xsoft/graphweb/firefox.xml

    r595cda07 r0e37869  
    55  %general-entities;
    66
    7   <!ENTITY firefox-download-http " ">
     7  <!ENTITY firefox-download-http
     8           "http://releases.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
    89  <!ENTITY firefox-download-ftp
    9     "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
    10   <!ENTITY firefox-md5sum        "78e641c67dc4a40cb3f48fce3e782d41">
    11   <!ENTITY firefox-size          "85 MB">
    12   <!ENTITY firefox-buildsize     "994 MB (34 MB installed) (or 647 MB and 4.1 MB if using xulrunner)">
    13   <!ENTITY firefox-time          "27 SBU (0.4 SBU if using xulrunner)">
     10           "ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
     11  <!ENTITY firefox-md5sum        "8b400555fc7063163e3b99472d0c92a1">
     12  <!ENTITY firefox-size          "93 MB">
     13  <!ENTITY firefox-buildsize     "3.5 GB (41 MB installed) (or 695 MB and 4.2 MB if using Xulrunner)">
     14  <!ENTITY firefox-time          "29 SBU (0.4 SBU if using Xulrunner)">
    1415]>
    1516
     
    7980      <xref linkend="gtk2"/>,
    8081      <xref linkend="zip"/>, and
    81       <xref linkend="unzip"/>.
     82      <xref linkend="unzip"/>
    8283    </para>
    8384
    8485    <bridgehead renderas="sect4">Recommended</bridgehead>
    8586    <para role="recommended">
    86       <xref linkend="yasm"/> or <xref linkend="libvpx"/>
    87       (to allow <application>Firefox</application> to play webm videos).
    88     </para>
     87      <xref linkend="libevent"/>,
     88      <xref linkend="libvpx"/>,
     89      <xref linkend="nspr"/>,
     90      <xref linkend="nss"/>,
     91      <xref linkend="sqlite"/> and
     92      <xref linkend="yasm"/>
     93    </para>
     94
     95    <note>
     96      <para>
     97        If you don't install recommended dependencies,
     98        then internal copies of those packages will
     99        be used. They might be tested to work, but
     100        they can be out of date or contain security
     101        holes.
     102      </para>
     103    </note>
    89104
    90105    <bridgehead renderas="sect4">Optional</bridgehead>
    91106    <para role="optional">
    92107      <xref linkend="dbus-glib"/>,
     108      <xref linkend="doxygen"/>,
     109      <xref linkend="gnome-vfs"/> and <xref linkend="libgnomeui"/>
     110      (for integration with the old version of <application>GNOME</application>),
     111      <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
     112      <xref linkend="libnotify"/>,
    93113      <xref linkend="startup-notification"/>,
    94       <xref linkend="sqlite"/>,
    95       <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
    96       <xref linkend="libevent"/>,
    97       <xref linkend="doxygen"/>,
    98       <xref linkend="gnome-vfs"/> and
    99       <xref linkend="libgnomeui"/> (for integration with the old version of
    100       <application>Gnome</application>),
    101       <xref linkend="libnotify"/>,
    102       <xref linkend="nspr"/>, <xref linkend="nss"/>,
    103       <xref linkend="wireless_tools"/>,
    104       <ulink url="http://www.valgrind.org/">Valgrind</ulink> (only for testing
    105       the jemalloc code),
    106       <xref linkend="wget"/>, and
     114      <xref linkend="wget"/>,
     115      <xref linkend="wireless_tools"/> and
    107116      <xref linkend="xulrunner"/>
    108117    </para>
     
    142151    </para>
    143152
    144 <screen><userinput>cat &gt; mozconfig &lt;&lt; EOF
     153<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
    145154# If you have a multicore machine you can speed up the build by running
    146 # several jobs at once, but if you have a single core, delete this line:
    147 mk_add_options MOZ_MAKE_FLAGS="-j4"
    148 
    149 # If you have not installed Yasm, uncomment this option:
    150 # ac_add_options --disable-webm
    151 
    152 # If you have installed DBus-Glib delete this option:
     155# several jobs at once by uncommenting the following line and setting the
     156# value to number of CPU cores:
     157#mk_add_options MOZ_MAKE_FLAGS="-j4"
     158
     159# If you have installed DBus-Glib comment out this line:
    153160ac_add_options --disable-dbus
    154161
    155 # If you have installed wireless-tools delete this option:
     162# If you have installed wireless-tools comment out this line:
    156163ac_add_options --disable-necko-wifi
    157164
    158 # If you have installed libnotify delete this option:
     165# If you have installed libnotify comment out this line:
    159166ac_add_options --disable-libnotify
    160167
    161 # If you have installed xulrunner uncomment these two lines:
    162 # ac_add_options --with-system-libxul
    163 # ac_add_options --with-libxul-sdk=\$(pkg-config --variable=sdkdir libxul)
    164 
    165 # Note: The backslash above is to facilitate a paste operation.  It
    166 # should not appear in the mozconfig file.
    167 
    168 # Uncomment these if you have installed them:
    169 # ac_add_options --enable-startup-notification
    170 # ac_add_options --enable-system-hunspell
    171 # ac_add_options --enable-system-sqlite
    172 # ac_add_options --with-system-libevent
    173 # ac_add_options --with-system-libvpx
    174 # ac_add_options --with-system-nspr
    175 # ac_add_options --with-system-nss
    176 
    177 mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
     168# Uncomment these lines if you have installed optional dependencies:
     169#ac_add_options --enable-system-hunspell
     170#ac_add_options --enable-startup-notification
     171
     172# If you have not installed Yasm then uncomment this line:
     173#ac_add_options --disable-webm
     174
     175# If you have installed xulrunner uncomment following two lines:
     176#ac_add_options --with-system-libxul
     177#ac_add_options --with-libxul-sdk=\$(pkg-config --variable=sdkdir libxul)
     178
     179# Comment out following options if you have not installed
     180# recommended dependencies:
     181ac_add_options --enable-system-sqlite
     182ac_add_options --with-system-libevent
     183ac_add_options --with-system-libvpx
     184ac_add_options --with-system-nspr
     185ac_add_options --with-system-nss
     186
     187# It is recommended not to touch anything below this line
     188ac_add_options --prefix=/usr
     189ac_add_options --enable-application=browser
     190
     191ac_add_options --disable-crashreporter
     192ac_add_options --disable-installer
     193ac_add_options --disable-updater
     194ac_add_options --disable-debug
     195ac_add_options --disable-tests
     196
     197ac_add_options --enable-optimize
     198ac_add_options --enable-strip
     199ac_add_options --enable-install-strip
     200
     201ac_add_options --enable-gio
    178202ac_add_options --enable-official-branding
    179 ac_add_options --prefix=/usr
    180 
    181 # The rest of these options have no effect if you're
    182 # building against an already installed xulrunner:
    183 ac_add_options --disable-crashreporter
    184 ac_add_options --disable-debug
    185 ac_add_options --disable-installer
    186 ac_add_options --disable-static
    187 ac_add_options --disable-tests
    188 ac_add_options --disable-updater
    189 ac_add_options --enable-shared
     203ac_add_options --enable-safe-browsing
     204ac_add_options --enable-url-classifier
     205
    190206ac_add_options --enable-system-ffi
     207ac_add_options --enable-system-pixman
     208
    191209ac_add_options --with-pthreads
     210
     211ac_add_options --with-system-bz2
    192212ac_add_options --with-system-jpeg
    193213ac_add_options --with-system-png
    194214ac_add_options --with-system-zlib
     215
     216mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox-build-dir
    195217EOF</userinput></screen>
    196 
    197     <para>
    198       If you are building a stand-alone <application>firefox</application> with
    199       system versions of <application>nspr</application>,
    200       <application>nss</application>, or <application>sqlite</application>
    201       issue the following command:
    202     </para>
    203 
    204 <screen><userinput>sed -i 's/\(MOZ_PKG_FATAL_WARNINGS =\).*/\1 0/' \
    205   browser/installer/Makefile.in &amp;&amp;</userinput></screen>
    206218
    207219    <para>
     
    213225make -f client.mk</userinput></screen>
    214226
    215     <para>This package does not come with a test suite.</para>
     227    <para>
     228      This package does not come with a test suite.
     229    </para>
    216230
    217231    <para>
     
    234248
    235249tar -xvf firefox-build-dir/dist/firefox-&firefox-version;.en-US.linux-$(uname -m).tar.bz2 \
    236     -C /usr/lib/firefox-&firefox-version; --strip-components=1  &amp;&amp;
    237 
    238 ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin       &amp;&amp;
    239 mkdir -pv /usr/lib/mozilla/plugins             &amp;&amp;
    240 ln -sfv ../mozilla/plugins /usr/lib/firefox-&firefox-version;   &amp;&amp;
    241 chown -R -v root:root /usr/lib/firefox-&firefox-version;</userinput></screen>
     250    -C /usr/lib/firefox-&firefox-version; --strip-components=1 &amp;&amp;
     251chown -R -v root:root /usr/lib/firefox-&firefox-version; &amp;&amp;
     252chmod -v 755 /usr/lib/firefox-&firefox-version;/libxpcom.so &amp;&amp;
     253
     254ln -sfv ../lib/firefox-&firefox-version;/firefox /usr/bin &amp;&amp;
     255
     256mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
     257ln -sfv ../mozilla/plugins /usr/lib/firefox-&firefox-version;</userinput></screen>
    242258
    243259    <para>
     
    248264
    249265<screen role="root"><userinput>make -C firefox-build-dir install &amp;&amp;
    250 rm /usr/bin/firefox &amp;&amp;
    251 
    252 cat &gt; /usr/bin/firefox &lt;&lt; "HERE_DOC" &amp;&amp;
     266rm -v /usr/bin/firefox &amp;&amp;
     267
     268cat &gt; /usr/bin/firefox &lt;&lt; "EOF" &amp;&amp;
    253269#!/bin/bash
    254270/usr/lib/xulrunner-&xulrunner-version;/xulrunner /usr/lib/firefox-&firefox-version;/application.ini "${@}"
    255 HERE_DOC
    256 
    257 chmod 755 /usr/bin/firefox        &amp;&amp;
     271EOF
     272
     273chmod -v 755 /usr/bin/firefox &amp;&amp;
    258274mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
    259 ln -sfv   ../mozilla/plugins /usr/lib/firefox-&firefox-version;</userinput></screen>
     275ln -sfv ../mozilla/plugins /usr/lib/firefox-&firefox-version;</userinput></screen>
    260276
    261277    <bridgehead renderas="sect3" id="npapi-firefox" xreflabel="Firefox">
    262278      NPAPI Headers
    263279    </bridgehead>
     280
    264281    <para>
    265282      The above instructions just install the parts you need to run
     
    270287    </para>
    271288
    272 <screen role="root"><userinput>rm -rf   /usr/include/npapi &amp;&amp;
     289<screen role="root"><userinput>rm -rf /usr/include/npapi &amp;&amp;
    273290mkdir -v /usr/include/npapi &amp;&amp;
    274291cp -v dom/plugins/base/*.h /usr/include/npapi</userinput></screen>
     292
     293    <note>
     294      <para>
     295        You don't need to install the headers if you have built
     296        <application>Firefox</application> against
     297        <application>Xulrunner</application>.
     298      </para>
     299    </note>
     300
    275301  </sect2>
    276302
     
    329355    <para>
    330356      <command>ln -sv ... /usr/lib/firefox-&firefox-version;</command>: This
    331       makes a symbolic link to
     357      command creates a symbolic link to
    332358      <filename class="directory">/usr/lib/mozilla/plugins</filename>. It's not
    333359      really needed, as <application>Firefox</application> checks
     
    360386
    361387<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
     388mkdir -pv /usr/share/pixmaps &amp;&amp;
    362389
    363390cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
    364391[Desktop Entry]
    365392Encoding=UTF-8
     393Name=Firefox Web Browser
     394Comment=Browse the World Wide Web
     395GenericName=Web Browser
     396Exec=firefox %u
     397Terminal=false
    366398Type=Application
    367 Name=Firefox
    368 Comment=Browse The Web
    369399Icon=firefox
    370 Exec=firefox
    371 Categories=Network;GTK;Application;Browser;WebBrowser;
     400Categories=GNOME;GTK;Network;WebBrowser;
     401MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
    372402StartupNotify=true
    373 Terminal=false
    374403EOF
    375404
    376 ln -sfv /usr/lib/firefox-&firefox-version;/icons/mozicon128.png /usr/share/pixmaps/firefox.png</userinput></screen>
     405ln -sfv /usr/lib/firefox-&firefox-version;/icons/mozicon128.png \
     406        /usr/share/pixmaps/firefox.png</userinput></screen>
     407
    377408  </sect2>
    378409
     
    386417
    387418      <seglistitem>
    388         <seg>firefox</seg>
     419        <seg>
     420          firefox
     421        </seg>
    389422        <seg>
    390423          Numerous libraries, browser components, plugins, extensions, and
    391424          helper modules installed in
    392           <filename class="directory">/usr/lib/firefox-&firefox-version;</filename>.
     425          <filename class="directory">/usr/lib/firefox-&firefox-version;</filename>
    393426        </seg>
    394427        <seg>
    395428          /usr/include/npapi and
    396           /usr/lib/firefox-&firefox-version;.
     429          /usr/lib/firefox-&firefox-version;
    397430        </seg>
    398431      </seglistitem>
     
    408441        <listitem>
    409442          <para>
    410             is a <application>Gtk 2</application> internet browser that uses the
     443            is a <application>GTK+ 2</application> internet browser that uses the
    411444            Mozilla Gecko rendering engine.
    412445          </para>
     
    416449        </listitem>
    417450      </varlistentry>
     451
    418452    </variablelist>
     453
    419454  </sect2>
     455
    420456</sect1>
Note: See TracChangeset for help on using the changeset viewer.