Changeset e4b4449d


Ignore:
Timestamp:
09/04/2024 12:21:58 PM (2 weeks ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
trunk, xry111/mips64el
Children:
c5fbd9d
Parents:
39dca77
git-author:
Xi Ruoyao <xry111@…> (08/18/2024 12:13:59 PM)
git-committer:
Xi Ruoyao <xry111@…> (09/04/2024 12:21:58 PM)
Message:

ncurses: Simplify evading from mawk

Since it's overridable with the command line, just override it instead
of using a sed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/ncurses.xml

    r39dca77 re4b4449d  
    4444    <title>Installation of Ncurses</title>
    4545
    46     <para>First, ensure that <command>gawk</command> is found first during configuration:</para>
    47 
    48 <screen><userinput remap="pre">sed -i s/mawk// configure</userinput></screen>
    49 
    50     <para>Then, run the following commands to build the <quote>tic</quote>
     46    <para>First, run the following commands to build the <quote>tic</quote>
    5147    program on the build host:</para>
    5248
    5349<screen><userinput remap="pre">mkdir build
    5450pushd build
    55   ../configure
     51  ../configure AWK=gawk
    5652  make -C include
    5753  make -C progs tic
     
    7066            --without-debug              \
    7167            --without-ada                \
    72             --disable-stripping</userinput></screen>
     68            --disable-stripping          \
     69            AWK=gawk</userinput></screen>
    7370
    7471    <variablelist>
     
    132129        </listitem>
    133130      </varlistentry>
    134 <!-- this is the default >= 6.5
    135       <varlistentry>
    136         <term><parameter>- -enable-widec</parameter></term>
    137         <listitem>
    138           <para>This switch causes wide-character libraries (e.g., <filename
    139           class="libraryfile">libncursesw.so.&ncurses-version;</filename>)
    140           to be built instead of normal ones (e.g., <filename
    141           class="libraryfile">libncurses.so.&ncurses-version;</filename>).
    142           These wide-character libraries are usable in both multibyte and
    143           traditional 8-bit locales, while normal libraries work properly
    144           only in 8-bit locales. Wide-character and normal libraries are
    145           source-compatible, but not binary-compatible.</para>
    146         </listitem>
    147       </varlistentry>
    148 -->
     131
     132      <varlistentry>
     133        <term><parameter>AWK=gawk</parameter></term>
     134        <listitem>
     135          <para>This switch prevents the building system from using the
     136          <command>mawk</command> program from the host.
     137          Some<!-- FIXME vauge --> versions of <command>mawk</command> can
     138          cause this package fail to build.  <!-- It seems happened in 2015,
     139          is there any updated into? --></para>
     140        </listitem>
     141      </varlistentry>
    149142    </variablelist>
    150143
Note: See TracChangeset for help on using the changeset viewer.