From 4d6fc2dabb417f72752429222a3698ecc8a3c537 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sat, 27 Oct 2001 22:21:44 +0000 Subject: [Bug 164] XML Tidy up git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1329 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/bash-inst.xml | 16 ++++++++-------- chapter05/binutils-inst.xml | 6 +++--- chapter05/bzip2-inst.xml | 8 ++++---- chapter05/diffutils-inst.xml | 16 ++++++++-------- chapter05/fileutils-exp.xml | 10 +++++----- chapter05/fileutils-inst.xml | 27 ++++++++++++++------------- chapter05/gcc-inst.xml | 26 +++++++++++++------------- chapter05/grep-inst.xml | 16 ++++++++-------- chapter05/gzip-inst.xml | 13 +++++++------ chapter05/kernel-inst.xml | 18 +++++++++--------- chapter05/make-inst.xml | 6 +++--- chapter05/mawk-inst.xml | 8 ++++---- chapter05/patch-inst.xml | 6 +++--- chapter05/sed-inst.xml | 16 ++++++++-------- chapter05/shellutils-inst.xml | 13 +++++++------ chapter05/tar-inst.xml | 8 ++++---- chapter05/texinfo-inst.xml | 6 +++--- chapter05/textutils-inst.xml | 8 ++++---- 18 files changed, 115 insertions(+), 112 deletions(-) (limited to 'chapter05') diff --git a/chapter05/bash-inst.xml b/chapter05/bash-inst.xml index 70ff6a243..82572cbc4 100644 --- a/chapter05/bash-inst.xml +++ b/chapter05/bash-inst.xml @@ -15,18 +15,18 @@ or you just installed it, check for the two files again. Often the create libcurses.a as a symlink by running the following commands: -cd /usr/lib && -ln -s libncurses.a libcurses.a +cd /usr/lib && +ln -s libncurses.a libcurses.a Now we can continue. Install Bash by running the following commands: -./configure --enable-static-link --prefix=$LFS/usr \ -   --bindir=$LFS/bin --with-curses && -make && -make install && -cd $LFS/bin && -ln -sf bash sh +./configure --enable-static-link --prefix=$LFS/usr \ +   --bindir=$LFS/bin --with-curses && +make && +make install && +cd $LFS/bin && +ln -sf bash sh If the make install phase ends with something along the lines of diff --git a/chapter05/binutils-inst.xml b/chapter05/binutils-inst.xml index 910cb6bae..ba383cdef 100644 --- a/chapter05/binutils-inst.xml +++ b/chapter05/binutils-inst.xml @@ -9,9 +9,9 @@ it comes with. Install Binutils by running the following commands: -./configure --prefix=$LFS/usr --disable-nls && -make LDFLAGS=-all-static tooldir=$LFS/usr && -make tooldir=$LFS/usr install +./configure --prefix=$LFS/usr --disable-nls && +make LDFLAGS=-all-static tooldir=$LFS/usr && +make tooldir=$LFS/usr install diff --git a/chapter05/bzip2-inst.xml b/chapter05/bzip2-inst.xml index 17ca0b59a..3dab1cf4c 100644 --- a/chapter05/bzip2-inst.xml +++ b/chapter05/bzip2-inst.xml @@ -3,10 +3,10 @@ Install Bzip2 by running the following commands: -make CC="gcc -static" && -make PREFIX=$LFS/usr install && -cd $LFS/usr/bin && -mv bzcat bunzip2 bzip2 bzip2recover $LFS/bin +make CC="gcc -static" && +make PREFIX=$LFS/usr install && +cd $LFS/usr/bin && +mv bzcat bunzip2 bzip2 bzip2recover $LFS/bin Although it's not strictly a part of a basic LFS system it's worth mentioning that a patch for Tar can be downloaded which enables the tar diff --git a/chapter05/diffutils-inst.xml b/chapter05/diffutils-inst.xml index c10da0f8d..d0266cf73 100644 --- a/chapter05/diffutils-inst.xml +++ b/chapter05/diffutils-inst.xml @@ -7,18 +7,18 @@ 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. -export CPPFLAGS=-Dre_max_failures=re_max_failures2 && -./configure --prefix=$LFS/usr && -unset CPPFLAGS && -make LDFLAGS=-static && -make install +export CPPFLAGS=-Dre_max_failures=re_max_failures2 && +./configure --prefix=$LFS/usr && +unset CPPFLAGS && +make LDFLAGS=-static && +make install If you are using a newer glibc version (2.2.x), you can use the following commands to install Diffutils: -./configure --prefix=$LFS/usr && -make LDFLAGS=-static && -make install +./configure --prefix=$LFS/usr && +make LDFLAGS=-static && +make install diff --git a/chapter05/fileutils-exp.xml b/chapter05/fileutils-exp.xml index 2a117d4e4..089e782ea 100644 --- a/chapter05/fileutils-exp.xml +++ b/chapter05/fileutils-exp.xml @@ -5,11 +5,11 @@ run this command in order to keep a backup of the file we are about to change. -cp lib/Makefile.in lib/Makefile.in.backup && -sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ -   -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ -   lib/Makefile.in > lib/Makefile.in~ && -mv lib/Makefile.in~ lib/Makefile.in: +cp lib/Makefile.in lib/Makefile.in.backup && +sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ +   -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ +   lib/Makefile.in > lib/Makefile.in~ && +mv lib/Makefile.in~ lib/Makefile.in: This is used to fix a problem with building fileutils statically on glibc 2.2.3 systems. If this isn't done, then there is the possibility of all of the fileutils programs causing segmentation faults once chroot is entered diff --git a/chapter05/fileutils-inst.xml b/chapter05/fileutils-inst.xml index 00e85a0ec..ab423617e 100644 --- a/chapter05/fileutils-inst.xml +++ b/chapter05/fileutils-inst.xml @@ -21,19 +21,20 @@ machines, run the following commands. Do not attempt this fix if you don't have Glibc-2.2.3 installed. It will more than likely result in all kinds of compile time problems. -cp lib/Makefile.in lib/Makefile.in.backup && -sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ -   -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ -   lib/Makefile.in > lib/Makefile.in~ && -mv lib/Makefile.in~ lib/Makefile.in - -Install fileutils by running the following commands: -./configure --disable-nls \ -   --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin && -make LDFLAGS=-static && -make install && -cd $LFS/usr/bin && -ln -sf ../../bin/install +cp lib/Makefile.in lib/Makefile.in.backup && +sed -e 's/\(.*\)\(fopen-safer\.c \)\\/\1\2atexit.c \\/' \ +   -e 's/\(.*\)\(idcache\$U\.\$.*\)\\/\1\2atexit$U.$(OBJEXT) \\/' \ +   lib/Makefile.in > lib/Makefile.in~ && +mv lib/Makefile.in~ lib/Makefile.in + +Install fileutils by running the following commands: + +./configure --disable-nls \ +   --prefix=$LFS/usr --libexecdir=$LFS/bin --bindir=$LFS/bin && +make LDFLAGS=-static && +make install && +cd $LFS/usr/bin && +ln -sf ../../bin/install Once you have installed fileutils, you can test whether the segmentation fault problem has been avoided by running diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml index b82a11d39..f7dffd9ad 100644 --- a/chapter05/gcc-inst.xml +++ b/chapter05/gcc-inst.xml @@ -9,19 +9,19 @@ it comes with. Install GCC by running the following commands: -patch -Np1 -i ../gcc-&gcc-patch-version;.patch && -mkdir ../gcc-build && -cd ../gcc-build && -../gcc-&gcc-version;/configure --prefix=/usr --enable-languages=c,c++ \ -   --disable-nls --disable-shared --enable-threads=posix && -make BOOT_LDFLAGS=-static bootstrap && -make prefix=$LFS/usr install && -cd $LFS/lib && -ln -sf ../usr/bin/cpp && -cd $LFS/usr/lib && -ln -sf ../bin/cpp && -cd $LFS/usr/bin && -ln -sf gcc cc +patch -Np1 -i ../gcc-&gcc-patch-version;.patch && +mkdir ../gcc-build && +cd ../gcc-build && +../gcc-&gcc-version;/configure --prefix=/usr --enable-languages=c,c++ \ +   --disable-nls --disable-shared --enable-threads=posix && +make BOOT_LDFLAGS=-static bootstrap && +make prefix=$LFS/usr install && +cd $LFS/lib && +ln -sf ../usr/bin/cpp && +cd $LFS/usr/lib && +ln -sf ../bin/cpp && +cd $LFS/usr/bin && +ln -sf gcc cc diff --git a/chapter05/grep-inst.xml b/chapter05/grep-inst.xml index 945da319d..22102fd1d 100644 --- a/chapter05/grep-inst.xml +++ b/chapter05/grep-inst.xml @@ -7,18 +7,18 @@ 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. -export CPPFLAGS=-Dre_max_failures=re_max_failures2 && -./configure --prefix=$LFS/usr --disable-nls && -unset CPPFLAGS && -make LDFLAGS=-static && -make install +export CPPFLAGS=-Dre_max_failures=re_max_failures2 && +./configure --prefix=$LFS/usr --disable-nls && +unset CPPFLAGS && +make LDFLAGS=-static && +make install If you are using a newer glibc version (2.2.x), you can use the following commands to install Grep: -./configure --prefix=$LFS/usr --disable-nls && -make LDFLAGS=-static && -make install +./configure --prefix=$LFS/usr --disable-nls && +make LDFLAGS=-static && +make install diff --git a/chapter05/gzip-inst.xml b/chapter05/gzip-inst.xml index 09e431d2d..d12031710 100644 --- a/chapter05/gzip-inst.xml +++ b/chapter05/gzip-inst.xml @@ -10,14 +10,15 @@ version, so if you aren't sure, it's best to apply it. Apply the patch by running the following command: -patch -Np1 -i ../gzip-&gzip-version;.patch +patch -Np1 -i ../gzip-&gzip-version;.patch Install Gzip by running the following commands: -./configure --prefix=$LFS/usr && -make LDFLAGS=-static && -make install && -cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin && -rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip + +./configure --prefix=$LFS/usr && +make LDFLAGS=-static && +make install && +cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin && +rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip diff --git a/chapter05/kernel-inst.xml b/chapter05/kernel-inst.xml index 3ac2f4e01..4aca35b19 100644 --- a/chapter05/kernel-inst.xml +++ b/chapter05/kernel-inst.xml @@ -10,15 +10,15 @@ compile the packages that need the kernel. The kernel configuration file is created by running the following command: -make mrproper && -yes "" | make config && -make dep && -cd $LFS/usr/include && -cp -a ../src/linux/include/linux . && -chown -R root.root $LFS/usr/include/linux && -mkdir asm && -cp -a ../src/linux/include/asm/* asm && -chown -R root.root $LFS/usr/include/asm +make mrproper && +yes "" | make config && +make dep && +cd $LFS/usr/include && +cp -a ../src/linux/include/linux . && +chown -R root.root $LFS/usr/include/linux && +mkdir asm && +cp -a ../src/linux/include/asm/* asm && +chown -R root.root $LFS/usr/include/asm diff --git a/chapter05/make-inst.xml b/chapter05/make-inst.xml index 1e358f555..6130f8106 100644 --- a/chapter05/make-inst.xml +++ b/chapter05/make-inst.xml @@ -3,9 +3,9 @@ Install Make by running the following commands: -./configure --prefix=$LFS/usr --disable-nls && -make LDFLAGS=-static && -make install +./configure --prefix=$LFS/usr --disable-nls && +make LDFLAGS=-static && +make install diff --git a/chapter05/mawk-inst.xml b/chapter05/mawk-inst.xml index cd872df6c..030c4b9fc 100644 --- a/chapter05/mawk-inst.xml +++ b/chapter05/mawk-inst.xml @@ -3,10 +3,10 @@ Install Mawk by running the following commands: -./configure && -make CC="gcc -static" && -make BINDIR=$LFS/usr/bin \ -   MANDIR=$LFS/usr/share/man/man1 install +./configure && +make CC="gcc -static" && +make BINDIR=$LFS/usr/bin \ +   MANDIR=$LFS/usr/share/man/man1 install diff --git a/chapter05/patch-inst.xml b/chapter05/patch-inst.xml index 7effdd3df..4eebac903 100644 --- a/chapter05/patch-inst.xml +++ b/chapter05/patch-inst.xml @@ -3,9 +3,9 @@ Install Patch by running the following commands: -./configure --prefix=$LFS/usr && -make LDFLAGS=-static && -make install +./configure --prefix=$LFS/usr && +make LDFLAGS=-static && +make install diff --git a/chapter05/sed-inst.xml b/chapter05/sed-inst.xml index 82b4d4978..377fd3d6a 100644 --- a/chapter05/sed-inst.xml +++ b/chapter05/sed-inst.xml @@ -7,18 +7,18 @@ 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. -export CPPFLAGS=-Dre_max_failures=re_max_failures2 && -./configure --prefix=$LFS/usr --bindir=$LFS/bin && -unset CPPFLAGS && -make LDFLAGS=-static && -make install +export CPPFLAGS=-Dre_max_failures=re_max_failures2 && +./configure --prefix=$LFS/usr --bindir=$LFS/bin && +unset CPPFLAGS && +make LDFLAGS=-static && +make install If you are using a newer glibc version (2.2.x), you can use the following commands to install Sed: -./configure --prefix=$LFS/usr --bindir=$LFS/bin && -make LDFLAGS=-static && -make install +./configure --prefix=$LFS/usr --bindir=$LFS/bin && +make LDFLAGS=-static && +make install diff --git a/chapter05/shellutils-inst.xml b/chapter05/shellutils-inst.xml index 3aeb04da3..74f8def4f 100644 --- a/chapter05/shellutils-inst.xml +++ b/chapter05/shellutils-inst.xml @@ -13,12 +13,13 @@ best to apply it. patch -Np1 -i ../sh-utils-&sh-utils-version;.patch Install Sh-utils by running the following commands: -./configure --prefix=$LFS/usr --disable-nls && -make LDFLAGS=-static && -make install && -cd $LFS/usr/bin && -mv date echo false pwd stty $LFS/bin && -mv su true uname hostname $LFS/bin + +./configure --prefix=$LFS/usr --disable-nls && +make LDFLAGS=-static && +make install && +cd $LFS/usr/bin && +mv date echo false pwd stty $LFS/bin && +mv su true uname hostname $LFS/bin diff --git a/chapter05/tar-inst.xml b/chapter05/tar-inst.xml index 55a7b3699..7b3bcc95d 100644 --- a/chapter05/tar-inst.xml +++ b/chapter05/tar-inst.xml @@ -12,10 +12,10 @@ for gzip files). Install Tar by running the following commands: -./configure --prefix=$LFS/usr --disable-nls \ -   --libexecdir=$LFS/usr/bin --bindir=$LFS/bin && -make LDFLAGS=-static && -make install +./configure --prefix=$LFS/usr --disable-nls \ +   --libexecdir=$LFS/usr/bin --bindir=$LFS/bin && +make LDFLAGS=-static && +make install diff --git a/chapter05/texinfo-inst.xml b/chapter05/texinfo-inst.xml index 84cd6d0df..02cf81fd1 100644 --- a/chapter05/texinfo-inst.xml +++ b/chapter05/texinfo-inst.xml @@ -3,9 +3,9 @@ Install Texinfo by running the following commands: -./configure --prefix=$LFS/usr --disable-nls && -make LDFLAGS=-static && -make install +./configure --prefix=$LFS/usr --disable-nls && +make LDFLAGS=-static && +make install diff --git a/chapter05/textutils-inst.xml b/chapter05/textutils-inst.xml index fc56d6f8d..d9ad8c448 100644 --- a/chapter05/textutils-inst.xml +++ b/chapter05/textutils-inst.xml @@ -3,10 +3,10 @@ Install Textutils by running the following commands: -./configure --prefix=$LFS/usr --disable-nls && -make LDFLAGS=-static && -make install && -mv $LFS/usr/bin/cat $LFS/bin +./configure --prefix=$LFS/usr --disable-nls && +make LDFLAGS=-static && +make install && +mv $LFS/usr/bin/cat $LFS/bin -- cgit v1.2.3-54-g00ecf