Added sed's for gawk install to change datadir and libexecdir definitions

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1715 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Gerard Beekmans 2002-03-16 22:48:08 +00:00
parent 116838838f
commit 1858558e82
4 changed files with 25 additions and 5 deletions

View File

@ -33,6 +33,11 @@
</para></listitem> </para></listitem>
<listitem><para>March 16th, 2002 [gerard]: Chapter 05+06 - Gawk: Added
commands to sed the <filename>awklib/Makefile.in</filename> file to change
the <emphasis>datadir</emphasis> and <emphasis>libexecdir</emphasis>
definitions</para></listitem>
<listitem><para>March 15th, 2002 [gerard]: Chapter 01 - Mailing lists: <listitem><para>March 15th, 2002 [gerard]: Chapter 01 - Mailing lists:
Added lfs-chat description</para></listitem> Added lfs-chat description</para></listitem>

View File

@ -7,7 +7,12 @@ following commands can be used in this case. Note that these commands
can also be used for other glibc versions so if you aren't sure, then can also be used for other glibc versions so if you aren't sure, then
use the first version.</para> use the first version.</para>
<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &amp;&amp; <para><screen><userinput>cd awklib &amp;&amp;
cp Makefile.in Makefile.in.backup &amp;&amp;
sed -e '/^datadir/s/awk/gawk/' \
-e '/^libexecdir/s%/awk%%' Makefile.in.backup &gt; Makefile.in &amp;&amp;
cd .. &amp;&amp;
export CPPFLAGS=-Dre_max_failures=re_max_failures2 &amp;&amp;
./configure --prefix=$LFS/usr --disable-nls &amp;&amp; ./configure --prefix=$LFS/usr --disable-nls &amp;&amp;
unset CPPFLAGS &amp;&amp; unset CPPFLAGS &amp;&amp;
make LDFLAGS=-static &amp;&amp; make LDFLAGS=-static &amp;&amp;
@ -16,7 +21,12 @@ make install</userinput></screen></para>
<para>If you are using a newer glibc version (2.2.x), you can use the <para>If you are using a newer glibc version (2.2.x), you can use the
following commands to install Gawk:</para> following commands to install Gawk:</para>
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &amp;&amp; <para><screen><userinput>cd awklib &amp;&amp;
cp Makefile.in Makefile.in.backup &amp;&amp;
sed -e '/^datadir/s/awk/gawk/' \
-e '/^libexecdir/s%/awk%%' Makefile.in.backup &gt; Makefile.in &amp;&amp;
cd .. &amp;&amp;
./configure --prefix=$LFS/usr --disable-nls &amp;&amp;
make LDFLAGS=-static &amp;&amp; make LDFLAGS=-static &amp;&amp;
make install</userinput></screen></para> make install</userinput></screen></para>

View File

@ -3,7 +3,12 @@
<para>Install Gawk by running the following commands:</para> <para>Install Gawk by running the following commands:</para>
<para><screen><userinput>./configure --prefix=/usr &amp;&amp; <para><screen><userinput>cd awklib &amp;&amp;
cp Makefile.in Makefile.in.backup &amp;&amp;
sed -e '/^datadir/s/awk/gawk/' \
-e '/^libexecdir/s%/awk%%' Makefile.in.backup &gt; Makefile.in &amp;&amp;
cd .. &amp;&amp;
./configure --prefix=/usr &amp;&amp;
make &amp;&amp; make &amp;&amp;
make install</userinput></screen></para> make install</userinput></screen></para>

View File

@ -4,8 +4,8 @@
<!ENTITY book SYSTEM "book/book.xml"> <!ENTITY book SYSTEM "book/book.xml">
<!ENTITY version "20020315"> <!ENTITY version "20020316">
<!ENTITY releasedate "March 15th, 2002"> <!ENTITY releasedate "March 16th, 2002">
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org"> <!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
<!ENTITY http-root "http://ftp.linuxfromscratch.org"> <!ENTITY http-root "http://ftp.linuxfromscratch.org">