Ignore:
Timestamp:
10/15/2017 11:33:16 AM (4 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 8.2, 8.2-rc1, 8.3, 8.3-rc1, 8.3-rc2, 8.4, 8.4-rc1, 9.0, 9.0-rc1, 9.1, 9.1-rc1, cross-chap5, ml-11.0, multilib, old-trunk, trunk, xry111/git-transition, xry111/glibc-2.34, xry111/tester-nohack, xry111/usr-move
Children:
9220470
Parents:
dd637ac
Message:

Add optional patch to ninja.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11311 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/ninja.xml

    rdd637ac r4476fba  
    4141    <title>Installation of Ninja</title>
    4242
    43     <para>Prepare Ninja for compilation:</para>
     43    <para>When run, ninja normally runs a maximum number of processes
     44    in parallel.  By default this is the number of cores on the system
     45    plus two.  In some cases this can overheat a CPU or run a system out
     46    of memory.  If run from the command line, passing a -jN parameter
     47    will limit the number of parallel processes, but some packages
     48    embed the execution of ninja and do not pass a -j parameter.</para>
     49
     50    <para>Using the <emphasis>optional</emphasis> patch below allows a user to
     51    limit the number of parallel processes via an environment variable,
     52    NINJAJOBS.  <command>For example</command> setting:
     53
     54     <!-- Using <command> here to make the output bold.  We really don't want
     55     users setting this now and experience shows that many users blindly
     56     copy/paste anything in a box. -->
     57
     58    <screen>export NINJAJOBS=4</screen>
     59
     60    will limit ninja to four parallel processes.</para>
     61
     62    <para>If desired, install the patch by running:</para>
     63
     64<screen><userinput remap="pre">patch -Np1 -i ../ninja-1.8.2-add_NINJAJOBS_var-1.patch</userinput></screen>
     65
     66    <para>Build Ninja with:</para>
    4467
    4568<screen><userinput remap="configure">python3 configure.py --bootstrap</userinput></screen>
    4669
    4770    <variablelist>
    48       <title>The meaning of the configure options:</title>
     71      <title>The meaning of the build option:</title>
    4972
    5073      <varlistentry>
     
    6790
    6891<screen><userinput remap="install">install -vm755 ninja /usr/bin/
    69 install -vDm644 misc/ninja.vim \
    70                 /usr/share/vim/vim&vim-majmin;/syntax/ninja.vim
    71 install -vDm644 misc/bash-completion \
    72                 /usr/share/bash-completion/completions/ninja
    73 install -vDm644 misc/zsh-completion \
    74                 /usr/share/zsh/site-functions/_ninja</userinput></screen>
     92install -vDm644 misc/ninja.vim       /usr/share/vim/vim&vim-majmin;/syntax/ninja.vim
     93install -vDm644 misc/bash-completion /usr/share/bash-completion/completions/ninja
     94install -vDm644 misc/zsh-completion  /usr/share/zsh/site-functions/_ninja</userinput></screen>
    7595
    7696  </sect2>
Note: See TracChangeset for help on using the changeset viewer.