mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 11:49:20 +01:00
Removed glibc-2.0 workarounds, removed export...unset constructs and replaced with var=varu ./configure constructs
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1862 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
689a79b113
commit
46e606f940
@ -2,10 +2,5 @@
|
|||||||
<title>Official Download Location</title>
|
<title>Official Download Location</title>
|
||||||
|
|
||||||
<para><literallayout>Gzip (&gzip-version;):
|
<para><literallayout>Gzip (&gzip-version;):
|
||||||
<ulink url="ftp://ftp.gnu.org/gnu/gzip/">ftp://ftp.gnu.org/gnu/gzip/</ulink>
|
<ulink url="ftp://ftp.gnu.org/gnu/gzip/">ftp://ftp.gnu.org/gnu/gzip/</ulink></literallayout></para>
|
||||||
|
|
||||||
Gzip Patch (&gzip-version;):
|
|
||||||
<ulink url="&ftp;/">&ftp;/</ulink>
|
|
||||||
<ulink url="&http;/">&http;/</ulink></literallayout></para>
|
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
@ -2,9 +2,5 @@
|
|||||||
<title>Official Download Location</title>
|
<title>Official Download Location</title>
|
||||||
|
|
||||||
<para><literallayout>Sh-utils (&sh-utils-version;):
|
<para><literallayout>Sh-utils (&sh-utils-version;):
|
||||||
<ulink url="ftp://ftp.gnu.org/gnu/sh-utils/">ftp://ftp.gnu.org/gnu/sh-utils/</ulink>
|
<ulink url="ftp://ftp.gnu.org/gnu/sh-utils/">ftp://ftp.gnu.org/gnu/sh-utils/</ulink></literallayout></para>
|
||||||
|
|
||||||
Sh-utils Patch (&sh-utils-version;):
|
|
||||||
<ulink url="&ftp;/">&ftp;/</ulink>
|
|
||||||
<ulink url="&http;/">&http;/</ulink></literallayout></para>
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
@ -18,6 +18,21 @@
|
|||||||
|
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>Removed:
|
||||||
|
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem><para>gzip-1.2.4a-patch</para></listitem>
|
||||||
|
<listitem><para>sh-utils-2.0-patch</para></listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
|
||||||
|
</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>May 1st, 2002 [gerard]: Removed all Glibc-2.0 workarounds -
|
||||||
|
gzip patch, sh-utils patch, copying of libnss files. Also removed the
|
||||||
|
<userinput>export VAR=VALUE...unset VAR</userinput> constructions and
|
||||||
|
changed them to <userinput>VAR=VALUE ./configure</userinput>
|
||||||
|
constructions.</para></listitem>
|
||||||
|
|
||||||
<listitem><para>April 26th, 2002 [marcheerdink]: Chapter 06 Findutils: added
|
<listitem><para>April 26th, 2002 [marcheerdink]: Chapter 06 Findutils: added
|
||||||
libexecdir=/usr/bin to the make command to fix a wrong libexecdir path in
|
libexecdir=/usr/bin to the make command to fix a wrong libexecdir path in
|
||||||
updatedb.</para></listitem>
|
updatedb.</para></listitem>
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
Gzip Patch (&gzip-version;) - &gzip-patch-size;:
|
|
||||||
<ulink url="&ftp;/gzip-&gzip-version;.patch.bz2">&ftp;/gzip-&gzip-version;.patch.bz2</ulink>
|
|
||||||
<ulink url="&http;/gzip-&gzip-version;.patch.bz2">&http;/gzip-&gzip-version;.patch.bz2</ulink>
|
|
||||||
|
|
@ -15,11 +15,9 @@
|
|||||||
&c3-kernel;
|
&c3-kernel;
|
||||||
&c3-grep;
|
&c3-grep;
|
||||||
&c3-gzip;
|
&c3-gzip;
|
||||||
&c3-gzip-patch;
|
|
||||||
&c3-make;
|
&c3-make;
|
||||||
&c3-sed;
|
&c3-sed;
|
||||||
&c3-shellutils;
|
&c3-shellutils;
|
||||||
&c3-shellutils-patch;
|
|
||||||
&c3-tar;
|
&c3-tar;
|
||||||
&c3-tar-patch;
|
&c3-tar-patch;
|
||||||
&c3-textutils;
|
&c3-textutils;
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
Sh-utils Patch (&sh-utils-version;) - &sh-utils-patch-size;:
|
|
||||||
<ulink url="&ftp;/sh-utils-&sh-utils-version;.patch.bz2">&ftp;/sh-utils-&sh-utils-version;.patch.bz2</ulink>
|
|
||||||
<ulink url="&http;/sh-utils-&sh-utils-version;.patch.bz2">&http;/sh-utils-&sh-utils-version;.patch.bz2</ulink>
|
|
||||||
|
|
@ -24,7 +24,6 @@
|
|||||||
&c5-texinfo;
|
&c5-texinfo;
|
||||||
&c5-textutils;
|
&c5-textutils;
|
||||||
&c5-pwdgroup;
|
&c5-pwdgroup;
|
||||||
&c5-oldnsslib;
|
|
||||||
&c5-proc;
|
&c5-proc;
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
@ -1,22 +1,10 @@
|
|||||||
<sect2>
|
<sect2>
|
||||||
<title>Installation of Diffutils</title>
|
<title>Installation of Diffutils</title>
|
||||||
|
|
||||||
<para>When installing Diffutils using glibc-2.1.x on your base system, it may
|
<para>Install Diffutils by running the following commands:</para>
|
||||||
be necessary to use a fix to prevent a variable name conflict. The
|
|
||||||
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
|
|
||||||
use the first version.</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &&
|
<para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \
|
||||||
./configure --prefix=$LFS/usr --disable-nls &&
|
./configure --prefix=$LFS/usr --disable-nls &&
|
||||||
unset CPPFLAGS &&
|
|
||||||
make LDFLAGS=-static &&
|
|
||||||
make install</userinput></screen></para>
|
|
||||||
|
|
||||||
<para>If you are using a newer glibc version (2.2.x), you can use the following
|
|
||||||
commands to install Diffutils:</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&
|
|
||||||
make LDFLAGS=-static &&
|
make LDFLAGS=-static &&
|
||||||
make install</userinput></screen></para>
|
make install</userinput></screen></para>
|
||||||
|
|
||||||
|
@ -11,30 +11,13 @@ class="directory">libexec</filename> directory to <filename
|
|||||||
class="directory">/usr/bin</filename> it'll run <userinput>rm -rf
|
class="directory">/usr/bin</filename> it'll run <userinput>rm -rf
|
||||||
/usr/bin/*</userinput></para>
|
/usr/bin/*</userinput></para>
|
||||||
|
|
||||||
<para>When installing Gawk using glibc-2.1.x on your base system,
|
<para>Install Gawk by running the following commands:</para>
|
||||||
it may be necessary to use a fix to prevent a variable name conflict. The
|
|
||||||
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
|
|
||||||
use the first version.</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>cp awklib/Makefile.in awklib/Makefile.in.backup &&
|
|
||||||
sed -e '/^datadir/s/awk/gawk/' \
|
|
||||||
-e '/^libexecdir/s%/awk%%' awklib/Makefile.in.backup \
|
|
||||||
> awklib/Makefile.in &&
|
|
||||||
export CPPFLAGS=-Dre_max_failures=re_max_failures2 &&
|
|
||||||
./configure --prefix=$LFS/usr --disable-nls \
|
|
||||||
--libexecdir=$LFS/usr/bin &&
|
|
||||||
unset CPPFLAGS &&
|
|
||||||
make LDFLAGS=-static &&
|
|
||||||
make install</userinput></screen></para>
|
|
||||||
|
|
||||||
<para>If you are using a newer glibc version (2.2.x), you can use the
|
|
||||||
following commands to install Gawk:</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>cp awklib/Makefile.in awklib/Makefile.in.backup &&
|
<para><screen><userinput>cp awklib/Makefile.in awklib/Makefile.in.backup &&
|
||||||
sed -e '/^datadir/s/awk/gawk/' \
|
sed -e '/^datadir/s/awk/gawk/' \
|
||||||
-e '/^libexecdir/s%/awk%%' awklib/Makefile.in.backup \
|
-e '/^libexecdir/s%/awk%%' awklib/Makefile.in.backup \
|
||||||
> awklib/Makefile.in &&
|
> awklib/Makefile.in &&
|
||||||
|
CPPFLAGS=-Dre_max_failures=re_max_failures2 \
|
||||||
./configure --prefix=$LFS/usr --disable-nls \
|
./configure --prefix=$LFS/usr --disable-nls \
|
||||||
--libexecdir=$LFS/usr/bin &&
|
--libexecdir=$LFS/usr/bin &&
|
||||||
make LDFLAGS=-static &&
|
make LDFLAGS=-static &&
|
||||||
|
@ -1,24 +1,11 @@
|
|||||||
<sect2>
|
<sect2>
|
||||||
<title>Installation of Grep</title>
|
<title>Installation of Grep</title>
|
||||||
|
|
||||||
<para>When installing Grep using glibc-2.1.x on your base system,
|
<para>Install Grep by running the following commands:</para>
|
||||||
it may be necessary to use a fix to prevent a variable name conflict. The
|
|
||||||
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
|
|
||||||
use the first version.</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &&
|
<para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \
|
||||||
./configure --prefix=$LFS/usr --bindir=$LFS/bin \
|
./configure --prefix=$LFS/usr --bindir=$LFS/bin \
|
||||||
--disable-nls --disable-perl-regexp &&
|
--disable-nls --disable-perl-regexp &&
|
||||||
unset CPPFLAGS &&
|
|
||||||
make LDFLAGS=-static &&
|
|
||||||
make install</userinput></screen></para>
|
|
||||||
|
|
||||||
<para>If you are using a newer glibc version (2.2.x), you can use the
|
|
||||||
following commands to install Grep:</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>./configure --prefix=$LFS/usr --bindir=$LFS/bin \
|
|
||||||
--disable-nls --disable-perl-regexp &&
|
|
||||||
make LDFLAGS=-static &&
|
make LDFLAGS=-static &&
|
||||||
make install</userinput></screen></para>
|
make install</userinput></screen></para>
|
||||||
|
|
||||||
|
@ -1,17 +1,6 @@
|
|||||||
<sect2>
|
<sect2>
|
||||||
<title>Installation of Gzip</title>
|
<title>Installation of Gzip</title>
|
||||||
|
|
||||||
<para>Before Gzip is installed, the patch file may need to be applied. This
|
|
||||||
patch file is necessary to avoid a conflict of variable names
|
|
||||||
with Glibc-2.0 systems when compiling and linking statically and so is
|
|
||||||
only required if your base system runs Glibc-2.0. It is however
|
|
||||||
safe to apply the patch even if you are running a different glibc
|
|
||||||
version, so if you aren't sure, it's best to apply it.</para>
|
|
||||||
|
|
||||||
<para>Apply the patch by running the following command:</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>patch -Np1 -i ../gzip-&gzip-version;.patch</userinput></screen></para>
|
|
||||||
|
|
||||||
<para>Install Gzip by running the following commands:</para>
|
<para>Install Gzip by running the following commands:</para>
|
||||||
|
|
||||||
<para><screen><userinput>./configure --prefix=$LFS/usr &&
|
<para><screen><userinput>./configure --prefix=$LFS/usr &&
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
<sect1 id="ch05-oldnsslib">
|
|
||||||
<title>Copying old NSS library files</title>
|
|
||||||
<?dbhtml filename="oldnsslib.html" dir="chapter05"?>
|
|
||||||
|
|
||||||
<para>If your normal Linux system runs Glibc-2.0, you need to copy the NSS
|
|
||||||
library files to the LFS partition. Certain statically linked programs still
|
|
||||||
depend on the NSS library, especially programs that need to lookup
|
|
||||||
usernames, userid's and groupid's. You can check which C library version your
|
|
||||||
normal Linux system uses by simply executing the library, like this:</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>/lib/libc.so.6</userinput></screen></para>
|
|
||||||
|
|
||||||
<para>The first line will give you the release version. Following lines contain
|
|
||||||
interesting information. If you have Glibc-2.0.x installed on your starting
|
|
||||||
distribution, copy the NSS library files by running:</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>cp -av /lib/libnss* $LFS/lib</userinput></screen></para>
|
|
||||||
|
|
||||||
</sect1>
|
|
||||||
|
|
@ -3,9 +3,8 @@
|
|||||||
|
|
||||||
<para>Install Patch by running the following commands:</para>
|
<para>Install Patch by running the following commands:</para>
|
||||||
|
|
||||||
<para><screen><userinput>export CPPFLAGS=-D_GNU_SOURCE &&
|
<para><screen><userinput>CPPFLAGS=-D_GNU_SOURCE \
|
||||||
./configure --prefix=$LFS/usr &&
|
./configure --prefix=$LFS/usr &&
|
||||||
unset CPPFLAGS &&
|
|
||||||
make LDFLAGS=-static &&
|
make LDFLAGS=-static &&
|
||||||
make install</userinput></screen></para>
|
make install</userinput></screen></para>
|
||||||
|
|
||||||
|
@ -1,22 +1,10 @@
|
|||||||
<sect2>
|
<sect2>
|
||||||
<title>Installation of Sed</title>
|
<title>Installation of Sed</title>
|
||||||
|
|
||||||
<para>When installing Sed using glibc-2.1.x on your base system,
|
<para>Install Sed by running the following commands:</para>
|
||||||
it may be necessary to use a fix to prevent a variable name conflict. The
|
|
||||||
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
|
|
||||||
use the first version.</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &&
|
<para><screen><userinput>CPPFLAGS=-Dre_max_failures=re_max_failures2 \
|
||||||
./configure --prefix=$LFS/usr --bindir=$LFS/bin &&
|
./configure --prefix=$LFS/usr --bindir=$LFS/bin &&
|
||||||
unset CPPFLAGS &&
|
|
||||||
make LDFLAGS=-static &&
|
|
||||||
make install</userinput></screen></para>
|
|
||||||
|
|
||||||
<para>If you are using a newer glibc version (2.2.x), you can use the
|
|
||||||
following commands to install Sed:</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>./configure --prefix=$LFS/usr --bindir=$LFS/bin &&
|
|
||||||
make LDFLAGS=-static &&
|
make LDFLAGS=-static &&
|
||||||
make install</userinput></screen></para>
|
make install</userinput></screen></para>
|
||||||
|
|
||||||
|
@ -1,17 +1,6 @@
|
|||||||
<sect2>
|
<sect2>
|
||||||
<title>Installation of Sh-utils</title>
|
<title>Installation of Sh-utils</title>
|
||||||
|
|
||||||
<para>Before Sh-utils is installed, the sh-utils patch file may need to
|
|
||||||
be applied. This patch is needed to avoid a conflict of variable names
|
|
||||||
with certain Glibc versions (usually glibc-2.1.x) when compiling sh-utils
|
|
||||||
statically. It is however safe to apply the patch even if you are
|
|
||||||
running a different glibc version, so if you aren't sure, it's
|
|
||||||
best to apply it.</para>
|
|
||||||
|
|
||||||
<para>Apply the patch by running the following command:</para>
|
|
||||||
|
|
||||||
<para><screen><userinput>patch -Np1 -i ../sh-utils-&sh-utils-version;.patch</userinput></screen></para>
|
|
||||||
|
|
||||||
<para>Install Sh-utils by running the following commands:</para>
|
<para>Install Sh-utils by running the following commands:</para>
|
||||||
|
|
||||||
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&
|
<para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &&
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
|
|
||||||
<para>Install Patch by running the following commands:</para>
|
<para>Install Patch by running the following commands:</para>
|
||||||
|
|
||||||
<para><screen><userinput>export CPPFLAGS=-D_GNU_SOURCE &&
|
<para><screen><userinput>CPPFLAGS=-D_GNU_SOURCE \
|
||||||
./configure --prefix=/usr &&
|
./configure --prefix=/usr &&
|
||||||
unset CPPFLAGS &&
|
|
||||||
make &&
|
make &&
|
||||||
make install</userinput></screen></para>
|
make install</userinput></screen></para>
|
||||||
|
|
||||||
|
@ -4,5 +4,4 @@
|
|||||||
<!ENTITY c5-installasuser SYSTEM "../chapter05/installasuser.xml">
|
<!ENTITY c5-installasuser SYSTEM "../chapter05/installasuser.xml">
|
||||||
<!ENTITY c5-creatingdirs SYSTEM "../chapter05/creatingdirs.xml">
|
<!ENTITY c5-creatingdirs SYSTEM "../chapter05/creatingdirs.xml">
|
||||||
<!ENTITY c5-pwdgroup SYSTEM "../chapter05/pwdgroup.xml">
|
<!ENTITY c5-pwdgroup SYSTEM "../chapter05/pwdgroup.xml">
|
||||||
<!ENTITY c5-oldnsslib SYSTEM "../chapter05/oldnsslib.xml">
|
|
||||||
<!ENTITY c5-proc SYSTEM "../chapter05/proc.xml">
|
<!ENTITY c5-proc SYSTEM "../chapter05/proc.xml">
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<!ENTITY c3-gzip SYSTEM "../chapter03/gzip.xml">
|
<!ENTITY c3-gzip SYSTEM "../chapter03/gzip.xml">
|
||||||
<!ENTITY c3-gzip-patch SYSTEM "../chapter03/gzip-patch.xml">
|
|
||||||
|
|
||||||
<!ENTITY c5-gzip SYSTEM "../chapter05/gzip.xml">
|
<!ENTITY c5-gzip SYSTEM "../chapter05/gzip.xml">
|
||||||
<!ENTITY c5-gzip-inst SYSTEM "../chapter05/gzip-inst.xml">
|
<!ENTITY c5-gzip-inst SYSTEM "../chapter05/gzip-inst.xml">
|
||||||
@ -17,7 +16,6 @@
|
|||||||
<!ENTITY gzip-depversion "1.2.4a">
|
<!ENTITY gzip-depversion "1.2.4a">
|
||||||
<!ENTITY gzip-contversion "1.2.4a">
|
<!ENTITY gzip-contversion "1.2.4a">
|
||||||
<!ENTITY gzip-size "178 KB">
|
<!ENTITY gzip-size "178 KB">
|
||||||
<!ENTITY gzip-patch-size "1 KB">
|
|
||||||
<!ENTITY gzip-package "gzip-&gzip-version;.tar.bz2">
|
<!ENTITY gzip-package "gzip-&gzip-version;.tar.bz2">
|
||||||
<!ENTITY gzip-dir "gzip-&gzip-version;">
|
<!ENTITY gzip-dir "gzip-&gzip-version;">
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<!ENTITY c3-shellutils SYSTEM "../chapter03/shellutils.xml">
|
<!ENTITY c3-shellutils SYSTEM "../chapter03/shellutils.xml">
|
||||||
<!ENTITY c3-shellutils-patch SYSTEM "../chapter03/shellutils-patch.xml">
|
|
||||||
|
|
||||||
<!ENTITY c5-shellutils SYSTEM "../chapter05/shellutils.xml">
|
<!ENTITY c5-shellutils SYSTEM "../chapter05/shellutils.xml">
|
||||||
<!ENTITY c5-shellutils-inst SYSTEM "../chapter05/shellutils-inst.xml">
|
<!ENTITY c5-shellutils-inst SYSTEM "../chapter05/shellutils-inst.xml">
|
||||||
@ -16,7 +15,6 @@
|
|||||||
<!ENTITY sh-utils-depversion "2.0">
|
<!ENTITY sh-utils-depversion "2.0">
|
||||||
<!ENTITY sh-utils-contversion "2.0">
|
<!ENTITY sh-utils-contversion "2.0">
|
||||||
<!ENTITY sh-utils-size "824 KB">
|
<!ENTITY sh-utils-size "824 KB">
|
||||||
<!ENTITY sh-utils-patch-size "1 KB">
|
|
||||||
<!ENTITY sh-utils-package "sh-utils-&sh-utils-version;.tar.bz2">
|
<!ENTITY sh-utils-package "sh-utils-&sh-utils-version;.tar.bz2">
|
||||||
<!ENTITY sh-utils-dir "sh-utils-&sh-utils-version;">
|
<!ENTITY sh-utils-dir "sh-utils-&sh-utils-version;">
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<!ENTITY http "http://ftp.linuxfromscratch.org/lfs-packages/cvs">
|
<!ENTITY http "http://ftp.linuxfromscratch.org/lfs-packages/cvs">
|
||||||
<!ENTITY hints-root "http://hints.linuxfromscratch.org/hints/">
|
<!ENTITY hints-root "http://hints.linuxfromscratch.org/hints/">
|
||||||
|
|
||||||
<!ENTITY all-version "cvs-20020421-0715">
|
<!ENTITY all-version "cvs-20020501-1159">
|
||||||
<!ENTITY all-size-kb "87,320 KB">
|
<!ENTITY all-size-kb "87,320 KB">
|
||||||
<!ENTITY all-size-mb "85.27 MB">
|
<!ENTITY all-size-mb "85.27 MB">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user