Ignore:
Timestamp:
02/11/2016 07:19:50 AM (8 years ago)
Author:
DJ Lucas <dj@…>
Branches:
systemd-13485
Children:
58b6b9b2
Parents:
17fee97b
Message:

X Software section: Merge changes from trunk.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16944 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xsoft/graphweb/firefox.xml

    r17fee97b r5e94b6c3  
    55  %general-entities;
    66
    7   <!ENTITY firefox-download-http
    8            "&mozilla-http;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2">
     7  <!ENTITY firefox-download-http "&mozilla-http;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.xz">
     8<!-- 550 Permission denied.
     9  <!ENTITY firefox-download-ftp "&mozilla-ftp;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2"> -->
    910  <!ENTITY firefox-download-ftp " ">
    10 <!--   <!ENTITY firefox-download-ftp
    11            "&mozilla-ftp;/firefox/releases/&firefox-version;/source/firefox-&firefox-version;.source.tar.bz2"> -->
    12   <!ENTITY firefox-md5sum        "f9310f4aa96fd9cc74a0fdc6d14ea259">
    13   <!ENTITY firefox-size          "170 MB">
    14   <!ENTITY firefox-buildsize     "3 GB (73 MB installed)">
    15   <!ENTITY firefox-time          "35 SBU">
     11  <!ENTITY firefox-md5sum        "66d4810df0b5a6095e2276256bf17675">
     12  <!ENTITY firefox-size          "174 MB">
     13  <!ENTITY firefox-buildsize     "4.4 GB (79 MB installed)">
     14  <!ENTITY firefox-time          "10 SBU (with parallelism=4)">
    1615]>
    1716
     
    3837    </para>
    3938
    40     &lfs77_checked;
     39    &lfs78_checked;
    4140
    4241    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    7372      </listitem>
    7473    </itemizedlist>
     74
     75    <note>
     76      <para>
     77        The tarball <emphasis>firefox-&firefox-version;.source.tar.xz</emphasis>
     78        will untar to <emphasis>firefox-&firefox-version;</emphasis> directory.
     79      </para>
     80    </note>
    7581
    7682    <bridgehead renderas="sect3">Firefox Dependencies</bridgehead>
     
    7985    <para role="required">
    8086      <xref linkend="alsa-lib"/>,
    81       <xref linkend="gtk2"/>,
     87      <xref linkend="gtk2"/>
     88      (or <xref linkend="gtk3"/> if you change the mozconfig where indicated),
     89      <xref linkend="nss"/>,
    8290      <xref linkend="unzip"/>,
    83       <xref linkend="yasm"/> and
     91      <xref linkend="yasm"/>, and
    8492      <xref linkend="zip"/>
    8593    </para>
     
    8997      <xref linkend="icu"/>,
    9098      <xref linkend="libevent"/>,
    91       <xref linkend="libvpx"/>,
    92       <xref linkend="nspr"/>,
    93       <xref linkend="nss"/> and
     99      <xref linkend="libvpx"/>, and
    94100      <xref linkend="sqlite"/>
    95101    </para>
     
    105111    <note>
    106112      <para>
    107         You must have installed <application>OpenSSL</application> before
    108         <application>Python 2</application>, or the build system will quickly
     113        With <application>Firefox-31.0</application> and later versions, you
     114        must have installed <application>Openssl</application> before
     115        <application>Python 2</application> or the build system will quickly
    109116        fail with output including "ImportError: cannot import name
    110117        HTTPSHandler". If you are in any doubt about this (e.g. upgrading from
    111         an older version of SeaMonkey), check if
     118        an older version of Firefox), check if
    112119        <filename>/usr/lib/python&python2-majorver;/lib-dynload/_ssl.so</filename>
    113         exists. If it does not, reinstall <xref linkend="python2"/> (after
    114         installing <xref linkend="openssl"/>. The latest version of any
    115         <emphasis>currently maintained</emphasis> version of OpenSSL should be
     120        exists.  If it does not, reinstall <xref linkend="python2"/> (after
     121        installing <xref linkend="openssl"/>). The latest version of any
     122        <emphasis>currently maintained</emphasis> version of Openssl should be
    116123        satisfactory if already installed.
    117124      </para>
     
    123130      <xref linkend="dbus-glib"/>,
    124131      <xref linkend="doxygen"/>,
    125       <xref linkend="gst-plugins-base"/> (with
    126       <xref linkend="gst-plugins-good"/> and
    127       <xref linkend="gst-ffmpeg"/> at runtime), or
     132      <xref linkend="GConf"/>,
     133      <xref linkend="ffmpeg"/> (runtime) or
    128134      <xref linkend="gst10-plugins-base"/> (with
    129135      <xref linkend="gst10-plugins-good"/> and
    130136      <xref linkend="gst10-libav"/> at runtime),
    131       <xref linkend="libnotify"/>,
     137      <xref linkend="libwebp"/>,
    132138      <xref linkend="openjdk"/>,
    133139      <xref linkend="pulseaudio"/>,
    134140      <xref linkend="startup-notification"/>,
     141      <xref linkend="valgrind"/>,
    135142      <xref linkend="wget"/>,
    136143      <xref linkend="wireless_tools"/>,
    137       <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink> and
    138       <ulink url="https://code.google.com/p/libproxy/">libproxy</ulink>
     144      <ulink url="https://hunspell.github.io/">Hunspell</ulink>,
     145      <ulink url="http://sourceforge.net/projects/liboauth/files/">liboauth</ulink>, and
     146      <ulink url="https://github.com/libproxy/libproxy">libproxy</ulink>, and
     147      <ulink url="https://www.rust-lang.org/">Rust</ulink>
    139148    </para>
    140149
     
    148157
    149158    <para>
    150       The configuration of <application>Firefox</application> is accomplished by
    151       creating a <filename>mozconfig</filename> file containing the desired
    152       configuration options. A default <filename>mozconfig</filename> is created
    153       below. To see the entire list of available configuration options (and an
    154       abbreviated description of each one), issue <command>./configure
     159      The configuration of <application>Firefox</application> is accomplished
     160      by creating a <filename>mozconfig</filename> file containing the desired
     161      configuration options. A default <filename>mozconfig</filename> is
     162      created below. To see the entire list of available configuration options
     163      (and an abbreviated description of each one), issue <command>./configure
    155164      --help</command>. You may also wish to review the entire file and
    156       uncomment any other desired options.
    157       Create the file by issuing the following command:
     165      uncomment any other desired options.  Create the file by issuing the
     166      following command:
    158167    </para>
    159168
     
    172181ac_add_options --disable-necko-wifi
    173182
    174 # If you have installed libnotify comment out this line:
    175 ac_add_options --disable-libnotify
    176 
    177 # Comment out following option if you have PulseAudio installed
    178 ac_add_options --disable-pulseaudio
    179 
    180 # GStreamer is necessary for H.264 video playback in HTML5 Video Player.
    181 # To enable it, make sure you also set "media.gstreamer.enabled" to
    182 # "true" in about:config.
    183 
    184 # If you don't have GStreamer 0.10.x installed, uncomment this line:
    185 #ac_add_options --disable-gstreamer
    186 # or uncomment this line if you have GStreamer 1.x.y installed:
     183# GStreamer is necessary for H.264 video playback in HTML5 Video Player if
     184# FFmpeg is not found at runtime;
     185# to be enabled, also remember to set "media.gstreamer.enabled" to "true"
     186# in about:config. If you have GStreamer 1.x.y, comment out this line and
     187# uncomment the following one:
     188ac_add_options --disable-gstreamer
    187189#ac_add_options --enable-gstreamer=1.0
     190
     191# Uncomment this option if you wish to build with gtk+-3
     192#ac_add_options --enable-default-toolkit=cairo-gtk3
    188193
    189194# Uncomment these lines if you have installed optional dependencies:
    190195#ac_add_options --enable-system-hunspell
    191196#ac_add_options --enable-startup-notification
     197
     198# Comment out following option if you have PulseAudio installed
     199ac_add_options --disable-pulseaudio
     200
     201# If you have installed GConf, comment out this line
     202ac_add_options --disable-gconf
    192203
    193204# Comment out following options if you have not installed
     
    217228ac_add_options --enable-url-classifier
    218229
    219 ac_add_options --enable-system-cairo
     230# From firefox-40, using system cairo causes firefox to crash
     231# frequently when it is doing background rendering in a tab.
     232#ac_add_options --enable-system-cairo
    220233ac_add_options --enable-system-ffi
    221234ac_add_options --enable-system-pixman
     
    232245
    233246    <para>
    234       First, fix building with system freetype-2.6 or later:
    235     </para>
    236 
    237 <screen><userinput>sed -i '/^ftglyph.h/ i ftfntfmt.h' config/system-headers</userinput></screen>
    238 
    239     <para>
    240247      Compile <application>Firefox</application> by issuing the following
    241248      commands:
    242249    </para>
    243250
     251    <note><para>
     252      If you are compiling <application>Firefox</application> in chroot, make
     253      sure you have <envar>$SHELL</envar> environment variable set or prepend
     254      <envar>SHELL=/bin/sh</envar>.
     255    </para></note>
     256
    244257<screen><userinput>make -f client.mk</userinput></screen>
    245258
     
    249262
    250263    <para>
    251       Install <application>Firefox</application> by running the following
    252       commands as the <systemitem class="username">root</systemitem> user:
     264      Now, as the <systemitem class="username">root</systemitem> user:
    253265    </para>
    254266
    255267<screen role="root"><userinput>make -f client.mk install INSTALL_SDK= &amp;&amp;
    256 
    257 chown -R root:root /usr/lib/firefox-&firefox-version; &amp;&amp;
    258 
    259 mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
    260 ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userinput></screen>
    261 
    262     <para>
    263       While still as the <systemitem class="username">root</systemitem> user,
    264       install the icon files which will be used in the desktop file below:
    265     </para>
    266 
    267 <screen role="root"><userinput>for s in 16 32 48
    268 do
    269 install -v -Dm644 /usr/lib/firefox-&firefox-version;/browser/chrome/icons/default/default${s}.png \
    270                   /usr/share/icons/hicolor/${s}x${s}/apps/firefox.png
    271 done &amp;&amp;
    272 install -v -Dm644 /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
    273                   /usr/share/icons/hicolor/128x128/apps/firefox.png &amp;&amp;
    274 gtk-update-icon-cache -qf /usr/share/icons/hicolor &amp;&amp;
    275 unset s</userinput></screen>
     268chown -R 0:0 /usr/lib/firefox-&firefox-version;   &amp;&amp;
     269
     270mkdir -pv    /usr/lib/mozilla/plugins  &amp;&amp;
     271ln    -sfv   ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userinput></screen>
    276272
    277273  </sect2>
     
    288284    </para>
    289285
    290     <para>
    291       <command>ln -sfv ... /usr/lib/firefox-&firefox-version;/browser</command>:
     286     <para>
     287      <command>make -C firefox-build-dir install</command>: This runs
     288      <command>make install</command> in firefox-build-dir.
     289    </para>
     290
     291    <para>
     292      <command>ln -sfv ... /usr/bin/firefox</command>: This puts a symbolic link
     293      to the <command>firefox</command> executable in your <envar>PATH</envar>
     294      variable.
     295    </para>
     296
     297    <para>
     298      <command>mkdir -p /usr/lib/mozilla/plugins</command>: This checks
     299      that <filename class="directory">/usr/lib/mozilla/plugins</filename>
     300      exists.
     301    </para>
     302
     303    <para>
     304      <command>ln -sv ... /usr/lib/firefox-&firefox-version;/browser</command>:
    292305      This command creates a symbolic link to <filename
    293306      class="directory">/usr/lib/mozilla/plugins</filename>. It's not really
     
    303316
    304317    <para>
    305       If you use a desktop environment such as <application>GNOME</application>
    306       or <application>KDE</application>, you may want to create a desktop file
    307       in order to be able to launch <application>Firefox</application> from the
    308       desktop menus. If you didn't enable
    309       <application>Startup Notification</application> support in your mozconfig
    310       then change the StartupNotify line to false. Run the following commands
    311       as the <systemitem class="username">root</systemitem> user:
     318      If you did not add the <option>--disable-webm</option> option to your
     319      <filename>mozconfig</filename>, your <application>Firefox</application>
     320      can play most YouTube videos without the need for the flash plugin. To
     321      enable this, go to <ulink url="http://www.youtube.com/html5"/> and click
     322      on 'Join the HTML5 Trial' (needs cookies enabled).
     323    </para>
     324
     325    <para>
     326      If you use a desktop environment like <application>Gnome</application> or
     327      <application>KDE</application> you may like to create a
     328      <filename>firefox.desktop</filename> file so that
     329      <application>Firefox</application> appears in the panel's menus. If you
     330      didn't enable startup-notification in your mozconfig change the
     331      StartupNotify line to false. As the
     332      <systemitem class="username">root</systemitem> user:
    312333    </para>
    313334
    314335<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
    315 
    316 cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF"
     336mkdir -pv /usr/share/pixmaps &amp;&amp;
     337
     338cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; "EOF" &amp;&amp;
    317339<literal>[Desktop Entry]
    318340Encoding=UTF-8
     
    327349MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
    328350StartupNotify=true</literal>
    329 EOF</userinput></screen>
     351EOF
     352
     353ln -sfv /usr/lib/firefox-&firefox-version;/browser/icons/mozicon128.png \
     354        /usr/share/pixmaps/firefox.png</userinput></screen>
    330355
    331356  </sect2>
     
    337362      <segtitle>Installed Programs</segtitle>
    338363      <segtitle>Installed Libraries</segtitle>
    339       <segtitle>Installed Directories</segtitle>
     364      <segtitle>Installed Directory</segtitle>
    340365
    341366      <seglistitem>
     
    344369        </seg>
    345370        <seg>
    346           None
     371          Numerous libraries, browser components, plugins, extensions, and
     372          helper modules installed in /usr/lib/firefox-&firefox-version;
    347373        </seg>
    348374        <seg>
    349           /usr/lib/firefox-&firefox-version; and
    350           /usr/lib/mozilla/plugins
     375          /usr/lib/firefox-&firefox-version;
    351376        </seg>
    352377      </seglistitem>
Note: See TracChangeset for help on using the changeset viewer.