Ignore:
Timestamp:
11/09/2014 01:59:30 PM (9 years ago)
Author:
Fernando de Oliveira <fernando@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
08cc98a4
Parents:
45f401ea
Message:

Fixes to seamonkey-2.30: number of threads, optimization and dependencies.
Fixes to firefox-33.0.3: number of threads and optimization.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xsoft/graphweb/firefox.xml

    r45f401ea r566fcae  
    135135      <xref linkend="pulseaudio"/>,
    136136      <xref linkend="startup-notification"/>,
     137      <xref linkend="valgrind"/>,
    137138      <xref linkend="wget"/>,
    138139      <xref linkend="wireless_tools"/>, and
     
    160161
    161162<screen><userinput>cat &gt; mozconfig &lt;&lt; "EOF"
    162 <literal># If you have a multicore machine, firefox will now use all the cores by
    163 # default. Exceptionally, you can reduce the number of cores, e.g. to 1,
    164 # by uncommenting the next line and setting a valid number of CPU cores.
    165 #mk_add_options MOZ_MAKE_FLAGS="-j1"
    166 
    167 # If you have installed DBus-Glib comment out this line:
     163<literal># If you have installed DBus-Glib comment out this line:
    168164ac_add_options --disable-dbus
    169165
     
    234230
    235231    <para>
     232      There is a problem in i686 systems, when build with
     233      <application>gcc</application> ranging from 4.8 to 4.9.1, and using the
     234      switch <quote>--enable-optimize</quote>. You have two alternatives, best
     235      one being the upgrade of <application>gcc</application> to version 4.9.2,
     236      because that switch implies better perfomance and smaller binaries.
     237      However, if you do not wish to upgrade gcc, disable the switch with:
     238    </para>
     239
     240<screen><userinput>test $(uname -m) = "i686" &amp;&amp; sed -i 's/enable-optimize/disable-optimize/' mozconfig || true</userinput></screen>
     241
     242    <para>
    236243      Compile <application>Firefox</application> by issuing the following
    237244      commands:
     
    241248      If you are compiling <application>Firefox</application> in chroot, make
    242249      sure you have <envar>$SHELL</envar> environment variable set or prepend
    243       <envar>SHELL=/bin/sh</envar> to the first make command below.
     250      <envar>SHELL=/bin/sh</envar>.
    244251    </para></note>
    245 <!--<screen><userinput>test $(uname -m) = "i686" &amp;&amp; sed -i 's/enable-optimize/disable-optimize/' mozconfig || true &amp;&amp;-->
    246 <screen><userinput>make -f client.mk</userinput></screen>
     252
     253<screen><userinput>MOZ_MAKE_FLAGS='<replaceable>&lt;number&gt;</replaceable>' \
     254make -f client.mk</userinput></screen>
     255
     256    <para>
     257      where <replaceable>&lt;number&gt;</replaceable> is a integer between 1
     258      and the number of threads of your processor. The variable
     259      <envar>MOZ_MAKE_FLAGS</envar> governs the number of parallel processes
     260      used by <command>make</command>. If it is not defined, the compilation
     261      will use all threads of a multithread machine. If this is what you want,
     262      just delete the line with <envar>MOZ_MAKE_FLAGS</envar> in the command
     263      above.
     264    </para>
    247265
    248266    <para>
     
    254272    </para>
    255273
    256 <screen role="root"><userinput>make -f client.mk install INSTALL_SDK= &amp;&amp;
     274<screen role="root"><userinput>MOZ_MAKE_FLAGS='<replaceable>&lt;number&gt;</replaceable>' \
     275make -f client.mk install INSTALL_SDK= &amp;&amp;
    257276
    258277mkdir -pv /usr/lib/mozilla/plugins &amp;&amp;
    259278ln -sfv ../../mozilla/plugins /usr/lib/firefox-&firefox-version;/browser</userinput></screen>
    260279
     280    <para>
     281      Here, the same comments about <envar>MOZ_MAKE_FLAGS</envar>, after the
     282      compile command above, apply.
     283    </para>
     284
    261285  </sect2>
    262286
    263287  <sect2 role="commands">
    264288    <title>Command Explanations</title>
    265 <!--
     289
    266290    <para>
    267291      <command>test $(uname -m) = "i686" &amp;&amp; sed ...</command>:
    268       On this version of firefox, an old bug has reappeared in 32-bit builds.
    269       With optimization, the install fails with a Python error.  This
     292      On this version of seamonkey, an old bug has reappeared in 32-bit builds.
     293      With optimization, the install fails<!-- with a Python error-->.  This
    270294      command will fix i686 builds and preserve the optimization on x86_64.
    271     </para>-->
     295    </para>
    272296
    273297    <para>
Note: See TracChangeset for help on using the changeset viewer.