mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
ncurses: Simplify evading from mawk
Since it's overridable with the command line, just override it instead of using a sed.
This commit is contained in:
parent
39dca771d7
commit
e4b4449d11
@ -43,16 +43,12 @@
|
|||||||
<sect2 role="installation">
|
<sect2 role="installation">
|
||||||
<title>Installation of Ncurses</title>
|
<title>Installation of Ncurses</title>
|
||||||
|
|
||||||
<para>First, ensure that <command>gawk</command> is found first during configuration:</para>
|
<para>First, run the following commands to build the <quote>tic</quote>
|
||||||
|
|
||||||
<screen><userinput remap="pre">sed -i s/mawk// configure</userinput></screen>
|
|
||||||
|
|
||||||
<para>Then, run the following commands to build the <quote>tic</quote>
|
|
||||||
program on the build host:</para>
|
program on the build host:</para>
|
||||||
|
|
||||||
<screen><userinput remap="pre">mkdir build
|
<screen><userinput remap="pre">mkdir build
|
||||||
pushd build
|
pushd build
|
||||||
../configure
|
../configure AWK=gawk
|
||||||
make -C include
|
make -C include
|
||||||
make -C progs tic
|
make -C progs tic
|
||||||
popd</userinput></screen>
|
popd</userinput></screen>
|
||||||
@ -69,7 +65,8 @@ popd</userinput></screen>
|
|||||||
--with-cxx-shared \
|
--with-cxx-shared \
|
||||||
--without-debug \
|
--without-debug \
|
||||||
--without-ada \
|
--without-ada \
|
||||||
--disable-stripping</userinput></screen>
|
--disable-stripping \
|
||||||
|
AWK=gawk</userinput></screen>
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<title>The meaning of the new configure options:</title>
|
<title>The meaning of the new configure options:</title>
|
||||||
@ -131,21 +128,17 @@ popd</userinput></screen>
|
|||||||
Using host tools on cross-compiled programs can cause failure.</para>
|
Using host tools on cross-compiled programs can cause failure.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
<!-- this is the default >= 6.5
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><parameter>- -enable-widec</parameter></term>
|
<term><parameter>AWK=gawk</parameter></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>This switch causes wide-character libraries (e.g., <filename
|
<para>This switch prevents the building system from using the
|
||||||
class="libraryfile">libncursesw.so.&ncurses-version;</filename>)
|
<command>mawk</command> program from the host.
|
||||||
to be built instead of normal ones (e.g., <filename
|
Some<!-- FIXME vauge --> versions of <command>mawk</command> can
|
||||||
class="libraryfile">libncurses.so.&ncurses-version;</filename>).
|
cause this package fail to build. <!-- It seems happened in 2015,
|
||||||
These wide-character libraries are usable in both multibyte and
|
is there any updated into? --></para>
|
||||||
traditional 8-bit locales, while normal libraries work properly
|
|
||||||
only in 8-bit locales. Wide-character and normal libraries are
|
|
||||||
source-compatible, but not binary-compatible.</para>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
-->
|
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
|
||||||
<para>Compile the package:</para>
|
<para>Compile the package:</para>
|
||||||
|
Loading…
Reference in New Issue
Block a user