From b08f4096533577934b885fa9df41d3881d141612 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Thu, 15 Feb 2001 15:26:52 +0000 Subject: Initial XML commit git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@174 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/bash-exp.xml | 54 ++++++++++++++++++++++++++++++++++ chapter05/bash-inst.xml | 42 ++++++++++++++++++++++++++ chapter05/bash-static-exp.sgml | 54 ---------------------------------- chapter05/bash-static-inst.sgml | 42 -------------------------- chapter05/bash-static.sgml | 9 ------ chapter05/bash.xml | 9 ++++++ chapter05/binutils-exp.xml | 28 ++++++++++++++++++ chapter05/binutils-inst.xml | 19 ++++++++++++ chapter05/binutils-static-exp.sgml | 28 ------------------ chapter05/binutils-static-inst.sgml | 19 ------------ chapter05/binutils-static.sgml | 9 ------ chapter05/binutils.xml | 9 ++++++ chapter05/bzip2-exp.xml | 33 +++++++++++++++++++++ chapter05/bzip2-inst.xml | 22 ++++++++++++++ chapter05/bzip2-static-exp.sgml | 33 --------------------- chapter05/bzip2-static-inst.sgml | 22 -------------- chapter05/bzip2-static.sgml | 9 ------ chapter05/bzip2.xml | 9 ++++++ chapter05/chapter05.xml | 28 ++++++++++++++++++ chapter05/chapter5.sgml | 28 ------------------ chapter05/diffutils-exp.xml | 16 ++++++++++ chapter05/diffutils-inst.xml | 21 +++++++++++++ chapter05/diffutils-static-exp.sgml | 16 ---------- chapter05/diffutils-static-inst.sgml | 21 ------------- chapter05/diffutils-static.sgml | 9 ------ chapter05/diffutils.xml | 9 ++++++ chapter05/fileutils-exp.xml | 12 ++++++++ chapter05/fileutils-inst.xml | 23 +++++++++++++++ chapter05/fileutils-static-exp.sgml | 12 -------- chapter05/fileutils-static-inst.sgml | 23 --------------- chapter05/fileutils-static.sgml | 9 ------ chapter05/fileutils.xml | 9 ++++++ chapter05/gcc-exp.xml | 24 +++++++++++++++ chapter05/gcc-inst.xml | 36 +++++++++++++++++++++++ chapter05/gcc-static-exp.sgml | 24 --------------- chapter05/gcc-static-inst.sgml | 36 ----------------------- chapter05/gcc-static.sgml | 9 ------ chapter05/gcc.xml | 9 ++++++ chapter05/gettext-inst.xml | 22 ++++++++++++++ chapter05/gettext-static-inst.sgml | 22 -------------- chapter05/gettext-static.sgml | 8 ----- chapter05/gettext.xml | 8 +++++ chapter05/grep-inst.xml | 21 +++++++++++++ chapter05/grep-static-inst.sgml | 21 ------------- chapter05/grep-static.sgml | 8 ----- chapter05/grep.xml | 8 +++++ chapter05/gzip-inst.xml | 22 ++++++++++++++ chapter05/gzip-static-inst.sgml | 22 -------------- chapter05/gzip-static.sgml | 8 ----- chapter05/gzip.xml | 8 +++++ chapter05/introduction.sgml | 55 ----------------------------------- chapter05/introduction.xml | 55 +++++++++++++++++++++++++++++++++++ chapter05/kernel-exp.sgml | 35 ---------------------- chapter05/kernel-exp.xml | 35 ++++++++++++++++++++++ chapter05/kernel-inst.sgml | 49 ------------------------------- chapter05/kernel-inst.xml | 49 +++++++++++++++++++++++++++++++ chapter05/kernel.sgml | 9 ------ chapter05/kernel.xml | 9 ++++++ chapter05/make-inst.xml | 18 ++++++++++++ chapter05/make-static-inst.sgml | 18 ------------ chapter05/make-static.sgml | 8 ----- chapter05/make.xml | 8 +++++ chapter05/makedev-exp.sgml | 18 ------------ chapter05/makedev-exp.xml | 18 ++++++++++++ chapter05/makedev-inst.sgml | 27 ----------------- chapter05/makedev-inst.xml | 27 +++++++++++++++++ chapter05/makedev.sgml | 9 ------ chapter05/makedev.xml | 9 ++++++ chapter05/mawk-inst.xml | 19 ++++++++++++ chapter05/mawk-static-inst.sgml | 19 ------------ chapter05/mawk-static.sgml | 8 ----- chapter05/mawk.xml | 8 +++++ chapter05/proc.sgml | 23 --------------- chapter05/proc.xml | 23 +++++++++++++++ chapter05/pwdgroup.sgml | 53 --------------------------------- chapter05/pwdgroup.xml | 53 +++++++++++++++++++++++++++++++++ chapter05/sed-inst.xml | 21 +++++++++++++ chapter05/sed-static-inst.sgml | 21 ------------- chapter05/sed-static.sgml | 8 ----- chapter05/sed.xml | 8 +++++ chapter05/shellutils-inst.xml | 21 +++++++++++++ chapter05/shellutils-static-inst.sgml | 21 ------------- chapter05/shellutils-static.sgml | 8 ----- chapter05/shellutils.xml | 8 +++++ chapter05/tar-inst.xml | 40 +++++++++++++++++++++++++ chapter05/tar-static-inst.sgml | 40 ------------------------- chapter05/tar-static.sgml | 8 ----- chapter05/tar.xml | 8 +++++ chapter05/texinfo-inst.xml | 18 ++++++++++++ chapter05/texinfo-static-inst.sgml | 18 ------------ chapter05/texinfo-static.sgml | 8 ----- chapter05/texinfo.xml | 8 +++++ chapter05/textutils-inst.xml | 19 ++++++++++++ chapter05/textutils-static-inst.sgml | 19 ------------ chapter05/textutils-static.sgml | 8 ----- chapter05/textutils.xml | 8 +++++ 96 files changed, 991 insertions(+), 991 deletions(-) create mode 100644 chapter05/bash-exp.xml create mode 100644 chapter05/bash-inst.xml delete mode 100644 chapter05/bash-static-exp.sgml delete mode 100644 chapter05/bash-static-inst.sgml delete mode 100644 chapter05/bash-static.sgml create mode 100644 chapter05/bash.xml create mode 100644 chapter05/binutils-exp.xml create mode 100644 chapter05/binutils-inst.xml delete mode 100644 chapter05/binutils-static-exp.sgml delete mode 100644 chapter05/binutils-static-inst.sgml delete mode 100644 chapter05/binutils-static.sgml create mode 100644 chapter05/binutils.xml create mode 100644 chapter05/bzip2-exp.xml create mode 100644 chapter05/bzip2-inst.xml delete mode 100644 chapter05/bzip2-static-exp.sgml delete mode 100644 chapter05/bzip2-static-inst.sgml delete mode 100644 chapter05/bzip2-static.sgml create mode 100644 chapter05/bzip2.xml create mode 100644 chapter05/chapter05.xml delete mode 100644 chapter05/chapter5.sgml create mode 100644 chapter05/diffutils-exp.xml create mode 100644 chapter05/diffutils-inst.xml delete mode 100644 chapter05/diffutils-static-exp.sgml delete mode 100644 chapter05/diffutils-static-inst.sgml delete mode 100644 chapter05/diffutils-static.sgml create mode 100644 chapter05/diffutils.xml create mode 100644 chapter05/fileutils-exp.xml create mode 100644 chapter05/fileutils-inst.xml delete mode 100644 chapter05/fileutils-static-exp.sgml delete mode 100644 chapter05/fileutils-static-inst.sgml delete mode 100644 chapter05/fileutils-static.sgml create mode 100644 chapter05/fileutils.xml create mode 100644 chapter05/gcc-exp.xml create mode 100644 chapter05/gcc-inst.xml delete mode 100644 chapter05/gcc-static-exp.sgml delete mode 100644 chapter05/gcc-static-inst.sgml delete mode 100644 chapter05/gcc-static.sgml create mode 100644 chapter05/gcc.xml create mode 100644 chapter05/gettext-inst.xml delete mode 100644 chapter05/gettext-static-inst.sgml delete mode 100644 chapter05/gettext-static.sgml create mode 100644 chapter05/gettext.xml create mode 100644 chapter05/grep-inst.xml delete mode 100644 chapter05/grep-static-inst.sgml delete mode 100644 chapter05/grep-static.sgml create mode 100644 chapter05/grep.xml create mode 100644 chapter05/gzip-inst.xml delete mode 100644 chapter05/gzip-static-inst.sgml delete mode 100644 chapter05/gzip-static.sgml create mode 100644 chapter05/gzip.xml delete mode 100644 chapter05/introduction.sgml create mode 100644 chapter05/introduction.xml delete mode 100644 chapter05/kernel-exp.sgml create mode 100644 chapter05/kernel-exp.xml delete mode 100644 chapter05/kernel-inst.sgml create mode 100644 chapter05/kernel-inst.xml delete mode 100644 chapter05/kernel.sgml create mode 100644 chapter05/kernel.xml create mode 100644 chapter05/make-inst.xml delete mode 100644 chapter05/make-static-inst.sgml delete mode 100644 chapter05/make-static.sgml create mode 100644 chapter05/make.xml delete mode 100644 chapter05/makedev-exp.sgml create mode 100644 chapter05/makedev-exp.xml delete mode 100644 chapter05/makedev-inst.sgml create mode 100644 chapter05/makedev-inst.xml delete mode 100644 chapter05/makedev.sgml create mode 100644 chapter05/makedev.xml create mode 100644 chapter05/mawk-inst.xml delete mode 100644 chapter05/mawk-static-inst.sgml delete mode 100644 chapter05/mawk-static.sgml create mode 100644 chapter05/mawk.xml delete mode 100644 chapter05/proc.sgml create mode 100644 chapter05/proc.xml delete mode 100644 chapter05/pwdgroup.sgml create mode 100644 chapter05/pwdgroup.xml create mode 100644 chapter05/sed-inst.xml delete mode 100644 chapter05/sed-static-inst.sgml delete mode 100644 chapter05/sed-static.sgml create mode 100644 chapter05/sed.xml create mode 100644 chapter05/shellutils-inst.xml delete mode 100644 chapter05/shellutils-static-inst.sgml delete mode 100644 chapter05/shellutils-static.sgml create mode 100644 chapter05/shellutils.xml create mode 100644 chapter05/tar-inst.xml delete mode 100644 chapter05/tar-static-inst.sgml delete mode 100644 chapter05/tar-static.sgml create mode 100644 chapter05/tar.xml create mode 100644 chapter05/texinfo-inst.xml delete mode 100644 chapter05/texinfo-static-inst.sgml delete mode 100644 chapter05/texinfo-static.sgml create mode 100644 chapter05/texinfo.xml create mode 100644 chapter05/textutils-inst.xml delete mode 100644 chapter05/textutils-static-inst.sgml delete mode 100644 chapter05/textutils-static.sgml create mode 100644 chapter05/textutils.xml (limited to 'chapter05') diff --git a/chapter05/bash-exp.xml b/chapter05/bash-exp.xml new file mode 100644 index 000000000..57c22ea1e --- /dev/null +++ b/chapter05/bash-exp.xml @@ -0,0 +1,54 @@ + +Command explanations + + +--enable-static-link: This configure +option causes Bash to be linked statically + + + +--prefix=$LFS/usr: This configure option installs +all of Bash's files under the $LFS/usr directory, which becomes the /usr +directory after you chroot into $LFS or when you reboot the system into LFS. + + + +--bindir=$LFS/bin: This installs the executable +files in $LFS/bin. We do this because we want bash to be in /bin, not in +/usr/bin. One reason being: your /usr partition might be on a seperate +partition which has to be mounted at some point. Before that partition is +mounted you need and will want to have bash available (it will be hard to +execute the boot scripts without a shell for instance). + + + +--disable-nls: This disables the build of NLS +(National Language Support). It's only a waste of time for now as Bash +will be reinstalled in the next chapter. + + + +--with-curses: This causes Bash to be linked +against the curses library instead of the default termcap library which +is becoming obsolete. + + + +ln -s bash sh: This command creates the sh +symlink that points to bash. Most scripts run themselves via 'sh' +(invoked by the #!/bin/sh as the first line in the scripts) which +invokes a special bash mode. Bash will then behave (as closely as +possible) as the original Bourne shell. + + + +The &&'s at the end of every line cause +the next command only to be executed when the previous command exists +with a return value of 0 indicating success. In case you copy&paste +all of these commands on the shell you want to be ensured that if +./configure fails, make isn't being executed and likewise if make fails +that make install isn't being executed, and so forth. + + + + diff --git a/chapter05/bash-inst.xml b/chapter05/bash-inst.xml new file mode 100644 index 000000000..8c9115709 --- /dev/null +++ b/chapter05/bash-inst.xml @@ -0,0 +1,42 @@ + +Installation of Bash + + +Install Bash by running the following commands: + + +
+ + ./configure --enable-static-link --prefix=$LFS/usr \ +    --bindir=$LFS/bin --disable-nls + --with-curses && + make && + make install && + cd $LFS/bin && + ln -s bash sh + +
+ + +If you get errors when compiling bash that tell you about not being able to +find -lcurses run these two commands to create the +missing symlink (so far we have not enountered one distribution that has +this libncurses symlink setup properly, except for LFS systems where it +is setup properly): + + +
+ + cd /usr/lib && + ln -s libncurses.a libcurses.a + +
+ + +Note: Normally the libncurses.a file resides in the /usr/lib directory +but it might reside in /lib (like it does on LFS systems). So check to +make sure whether you should run the ln command in /usr/lib or in /lib + + +
+ diff --git a/chapter05/bash-static-exp.sgml b/chapter05/bash-static-exp.sgml deleted file mode 100644 index 57c22ea1e..000000000 --- a/chapter05/bash-static-exp.sgml +++ /dev/null @@ -1,54 +0,0 @@ - -Command explanations - - ---enable-static-link: This configure -option causes Bash to be linked statically - - - ---prefix=$LFS/usr: This configure option installs -all of Bash's files under the $LFS/usr directory, which becomes the /usr -directory after you chroot into $LFS or when you reboot the system into LFS. - - - ---bindir=$LFS/bin: This installs the executable -files in $LFS/bin. We do this because we want bash to be in /bin, not in -/usr/bin. One reason being: your /usr partition might be on a seperate -partition which has to be mounted at some point. Before that partition is -mounted you need and will want to have bash available (it will be hard to -execute the boot scripts without a shell for instance). - - - ---disable-nls: This disables the build of NLS -(National Language Support). It's only a waste of time for now as Bash -will be reinstalled in the next chapter. - - - ---with-curses: This causes Bash to be linked -against the curses library instead of the default termcap library which -is becoming obsolete. - - - -ln -s bash sh: This command creates the sh -symlink that points to bash. Most scripts run themselves via 'sh' -(invoked by the #!/bin/sh as the first line in the scripts) which -invokes a special bash mode. Bash will then behave (as closely as -possible) as the original Bourne shell. - - - -The &&'s at the end of every line cause -the next command only to be executed when the previous command exists -with a return value of 0 indicating success. In case you copy&paste -all of these commands on the shell you want to be ensured that if -./configure fails, make isn't being executed and likewise if make fails -that make install isn't being executed, and so forth. - - - - diff --git a/chapter05/bash-static-inst.sgml b/chapter05/bash-static-inst.sgml deleted file mode 100644 index 8c9115709..000000000 --- a/chapter05/bash-static-inst.sgml +++ /dev/null @@ -1,42 +0,0 @@ - -Installation of Bash - - -Install Bash by running the following commands: - - -
- - ./configure --enable-static-link --prefix=$LFS/usr \ -    --bindir=$LFS/bin --disable-nls - --with-curses && - make && - make install && - cd $LFS/bin && - ln -s bash sh - -
- - -If you get errors when compiling bash that tell you about not being able to -find -lcurses run these two commands to create the -missing symlink (so far we have not enountered one distribution that has -this libncurses symlink setup properly, except for LFS systems where it -is setup properly): - - -
- - cd /usr/lib && - ln -s libncurses.a libcurses.a - -
- - -Note: Normally the libncurses.a file resides in the /usr/lib directory -but it might reside in /lib (like it does on LFS systems). So check to -make sure whether you should run the ln command in /usr/lib or in /lib - - -
- diff --git a/chapter05/bash-static.sgml b/chapter05/bash-static.sgml deleted file mode 100644 index 90cbb4ea1..000000000 --- a/chapter05/bash-static.sgml +++ /dev/null @@ -1,9 +0,0 @@ - -Installing Bash - -&c5-bash-inst; -&c5-bash-exp; -&aa-bash-desc; - - - diff --git a/chapter05/bash.xml b/chapter05/bash.xml new file mode 100644 index 000000000..90cbb4ea1 --- /dev/null +++ b/chapter05/bash.xml @@ -0,0 +1,9 @@ + +Installing Bash + +&c5-bash-inst; +&c5-bash-exp; +&aa-bash-desc; + + + diff --git a/chapter05/binutils-exp.xml b/chapter05/binutils-exp.xml new file mode 100644 index 000000000..71370de2a --- /dev/null +++ b/chapter05/binutils-exp.xml @@ -0,0 +1,28 @@ + +Command explanations + + +make -e: The -e paramater tells make that +environment variables take precedence over variables defined in the +Makefile file(s). This is needed in order to successfully link binutils +statically. + + + +LDFLAGS=-all-static: Setting the variable LDFLAGS +to the value -all-static causes binutils to be linked statically. + + + +tooldir=$LFS/usr: Normally the tooldir (the +directory where the executables from binutils end up in) is set to +$(exec_prefix)/$(target_alias) which expands into, for example, +/usr/i686-pc-linux-gnu. Since we only build for our own system we don't +need this target specific directory in $LFS/usr. You would use that +setup if you use your system to cross-compile (for example you would +compile a package on your Intel machine that generates code that can be +executed on Apple PowerPC machines). + + + + diff --git a/chapter05/binutils-inst.xml b/chapter05/binutils-inst.xml new file mode 100644 index 000000000..f08640f42 --- /dev/null +++ b/chapter05/binutils-inst.xml @@ -0,0 +1,19 @@ + +Installation of Binutils + + +Install Binutils by running the following commands: + + +
+ + ./configure --prefix=$LFS/usr --disable-nls + && + make -e LDFLAGS=-all-static tooldir=$LFS/usr + && + make -e tooldir=$LFS/usr install + +
+ +
+ diff --git a/chapter05/binutils-static-exp.sgml b/chapter05/binutils-static-exp.sgml deleted file mode 100644 index 71370de2a..000000000 --- a/chapter05/binutils-static-exp.sgml +++ /dev/null @@ -1,28 +0,0 @@ - -Command explanations - - -make -e: The -e paramater tells make that -environment variables take precedence over variables defined in the -Makefile file(s). This is needed in order to successfully link binutils -statically. - - - -LDFLAGS=-all-static: Setting the variable LDFLAGS -to the value -all-static causes binutils to be linked statically. - - - -tooldir=$LFS/usr: Normally the tooldir (the -directory where the executables from binutils end up in) is set to -$(exec_prefix)/$(target_alias) which expands into, for example, -/usr/i686-pc-linux-gnu. Since we only build for our own system we don't -need this target specific directory in $LFS/usr. You would use that -setup if you use your system to cross-compile (for example you would -compile a package on your Intel machine that generates code that can be -executed on Apple PowerPC machines). - - - - diff --git a/chapter05/binutils-static-inst.sgml b/chapter05/binutils-static-inst.sgml deleted file mode 100644 index f08640f42..000000000 --- a/chapter05/binutils-static-inst.sgml +++ /dev/null @@ -1,19 +0,0 @@ - -Installation of Binutils - - -Install Binutils by running the following commands: - - -
- - ./configure --prefix=$LFS/usr --disable-nls - && - make -e LDFLAGS=-all-static tooldir=$LFS/usr - && - make -e tooldir=$LFS/usr install - -
- -
- diff --git a/chapter05/binutils-static.sgml b/chapter05/binutils-static.sgml deleted file mode 100644 index 8f50dd003..000000000 --- a/chapter05/binutils-static.sgml +++ /dev/null @@ -1,9 +0,0 @@ - -Installing Binutils - -&c5-binutils-inst; -&c5-binutils-exp; -&aa-binutils-desc; - - - diff --git a/chapter05/binutils.xml b/chapter05/binutils.xml new file mode 100644 index 000000000..8f50dd003 --- /dev/null +++ b/chapter05/binutils.xml @@ -0,0 +1,9 @@ + +Installing Binutils + +&c5-binutils-inst; +&c5-binutils-exp; +&aa-binutils-desc; + + + diff --git a/chapter05/bzip2-exp.xml b/chapter05/bzip2-exp.xml new file mode 100644 index 000000000..788de4298 --- /dev/null +++ b/chapter05/bzip2-exp.xml @@ -0,0 +1,33 @@ + +Command explanations + + +sed: The sed command here searches for the +string "$(CC) $(CFLAGS) -o" and replaced it by "$(CC) $(CFLAGS) +$(LDFLAGS) -o" in the Makefile file. We make that modification so it +will be easier to link bzip2 statically. + + + +...Makefile | make -f -: Makefile +is the last parameter of the sed command which indicates the file to +search and replace in. sed normally sends the modified file to stdout +(standard output) which will be your console. With the construction we +use, sed's output will be piped to the make program. Normally when make +is started it tries to find a number of files like Makefile. But we have +modified the Makefile file so we don't want make to use it. The "-f -" +parameter tells make to read it's input from another file, or from stdin +(standard input) which the dash (-) implies. This is one way to do it. +Another way would be to have sed write the output to a different file +and tell make with the -f parameter to read that alternate file. + + + +LDFLAGS=-static: This is the second way we use to +link a package statically. This is also the most common way. As you'll +notice, the -all-static value is only used with the binutils package and +won't be used throughout the rest of this book. + + + + diff --git a/chapter05/bzip2-inst.xml b/chapter05/bzip2-inst.xml new file mode 100644 index 000000000..277ee2f5e --- /dev/null +++ b/chapter05/bzip2-inst.xml @@ -0,0 +1,22 @@ + +Installation of Bzip2 + + +Install Bzip2 by running the following commands: + + +
+ + sed \ +    s/"\$(CC) \$(CFLAGS) -o"/"\$(CC) \$(CFLAGS) + \$(LDFLAGS) -o"/ \ +    Makefile | make -f - + LDFLAGS=-static && + make PREFIX=$LFS/usr install && + cd $LFS/usr/bin && + mv bzcat bunzip2 bzip2 bzip2recover $LFS/bin + +
+ +
+ diff --git a/chapter05/bzip2-static-exp.sgml b/chapter05/bzip2-static-exp.sgml deleted file mode 100644 index 788de4298..000000000 --- a/chapter05/bzip2-static-exp.sgml +++ /dev/null @@ -1,33 +0,0 @@ - -Command explanations - - -sed: The sed command here searches for the -string "$(CC) $(CFLAGS) -o" and replaced it by "$(CC) $(CFLAGS) -$(LDFLAGS) -o" in the Makefile file. We make that modification so it -will be easier to link bzip2 statically. - - - -...Makefile | make -f -: Makefile -is the last parameter of the sed command which indicates the file to -search and replace in. sed normally sends the modified file to stdout -(standard output) which will be your console. With the construction we -use, sed's output will be piped to the make program. Normally when make -is started it tries to find a number of files like Makefile. But we have -modified the Makefile file so we don't want make to use it. The "-f -" -parameter tells make to read it's input from another file, or from stdin -(standard input) which the dash (-) implies. This is one way to do it. -Another way would be to have sed write the output to a different file -and tell make with the -f parameter to read that alternate file. - - - -LDFLAGS=-static: This is the second way we use to -link a package statically. This is also the most common way. As you'll -notice, the -all-static value is only used with the binutils package and -won't be used throughout the rest of this book. - - - - diff --git a/chapter05/bzip2-static-inst.sgml b/chapter05/bzip2-static-inst.sgml deleted file mode 100644 index 277ee2f5e..000000000 --- a/chapter05/bzip2-static-inst.sgml +++ /dev/null @@ -1,22 +0,0 @@ - -Installation of Bzip2 - - -Install Bzip2 by running the following commands: - - -
- - sed \ -    s/"\$(CC) \$(CFLAGS) -o"/"\$(CC) \$(CFLAGS) - \$(LDFLAGS) -o"/ \ -    Makefile | make -f - - LDFLAGS=-static && - make PREFIX=$LFS/usr install && - cd $LFS/usr/bin && - mv bzcat bunzip2 bzip2 bzip2recover $LFS/bin - -
- -
- diff --git a/chapter05/bzip2-static.sgml b/chapter05/bzip2-static.sgml deleted file mode 100644 index 1040c59c4..000000000 --- a/chapter05/bzip2-static.sgml +++ /dev/null @@ -1,9 +0,0 @@ - -Installing Bzip2 - -&c5-bzip2-inst; -&c5-bzip2-exp; -&aa-bzip2-desc; - - - diff --git a/chapter05/bzip2.xml b/chapter05/bzip2.xml new file mode 100644 index 000000000..1040c59c4 --- /dev/null +++ b/chapter05/bzip2.xml @@ -0,0 +1,9 @@ + +Installing Bzip2 + +&c5-bzip2-inst; +&c5-bzip2-exp; +&aa-bzip2-desc; + + + diff --git a/chapter05/chapter05.xml b/chapter05/chapter05.xml new file mode 100644 index 000000000..74af61cef --- /dev/null +++ b/chapter05/chapter05.xml @@ -0,0 +1,28 @@ + +Preparing the LFS system + +&c5-introduction; + +&c5-bash; +&c5-binutils; +&c5-bzip2; +&c5-diffutils; +&c5-fileutils; +&c5-gcc; +&c5-kernel; +&c5-grep; +&c5-gzip; +&c5-make; +&c5-sed; +&c5-shellutils; +&c5-tar; +&c5-textutils; +&c5-mawk; +&c5-texinfo; +&c5-gettext; +&c5-makedev; +&c5-pwdgroup; +&c5-proc; + + + diff --git a/chapter05/chapter5.sgml b/chapter05/chapter5.sgml deleted file mode 100644 index 74af61cef..000000000 --- a/chapter05/chapter5.sgml +++ /dev/null @@ -1,28 +0,0 @@ - -Preparing the LFS system - -&c5-introduction; - -&c5-bash; -&c5-binutils; -&c5-bzip2; -&c5-diffutils; -&c5-fileutils; -&c5-gcc; -&c5-kernel; -&c5-grep; -&c5-gzip; -&c5-make; -&c5-sed; -&c5-shellutils; -&c5-tar; -&c5-textutils; -&c5-mawk; -&c5-texinfo; -&c5-gettext; -&c5-makedev; -&c5-pwdgroup; -&c5-proc; - - - diff --git a/chapter05/diffutils-exp.xml b/chapter05/diffutils-exp.xml new file mode 100644 index 000000000..181f700da --- /dev/null +++ b/chapter05/diffutils-exp.xml @@ -0,0 +1,16 @@ + +Command explanations + + +CPPFLAGS=-Dre_max_failures=re_max_failures2: The +CPPFLAGS variable is a variable that's read by the cpp program (C +PreProcessor). The value of this variable tells the preprocessor to +replace every instance of re_max_failures it finds by re_max_failures2 +before handing the source file to the compiler itself for compilation. This +package has problems linking statically on certain platforms (depending +on the Glibc version used on that system) and this construction fixes +that problem. + + + + diff --git a/chapter05/diffutils-inst.xml b/chapter05/diffutils-inst.xml new file mode 100644 index 000000000..60874c3f9 --- /dev/null +++ b/chapter05/diffutils-inst.xml @@ -0,0 +1,21 @@ + +Installation of Diffutils + + +Install Diffutils by running the following commands: + + +
+ + export CPPFLAGS=-Dre_max_failures=re_max_failures2 + && + ./configure --prefix=$LFS/usr --disable-nls + && + unset CPPFLAGS && + make LDFLAGS=-static && + make install + +
+ +
+ diff --git a/chapter05/diffutils-static-exp.sgml b/chapter05/diffutils-static-exp.sgml deleted file mode 100644 index 181f700da..000000000 --- a/chapter05/diffutils-static-exp.sgml +++ /dev/null @@ -1,16 +0,0 @@ - -Command explanations - - -CPPFLAGS=-Dre_max_failures=re_max_failures2: The -CPPFLAGS variable is a variable that's read by the cpp program (C -PreProcessor). The value of this variable tells the preprocessor to -replace every instance of re_max_failures it finds by re_max_failures2 -before handing the source file to the compiler itself for compilation. This -package has problems linking statically on certain platforms (depending -on the Glibc version used on that system) and this construction fixes -that problem. - - - - diff --git a/chapter05/diffutils-static-inst.sgml b/chapter05/diffutils-static-inst.sgml deleted file mode 100644 index 60874c3f9..000000000 --- a/chapter05/diffutils-static-inst.sgml +++ /dev/null @@ -1,21 +0,0 @@ - -Installation of Diffutils - - -Install Diffutils by running the following commands: - - -
- - export CPPFLAGS=-Dre_max_failures=re_max_failures2 - && - ./configure --prefix=$LFS/usr --disable-nls - && - unset CPPFLAGS && - make LDFLAGS=-static && - make install - -
- -
- diff --git a/chapter05/diffutils-static.sgml b/chapter05/diffutils-static.sgml deleted file mode 100644 index 1bdabd3d9..000000000 --- a/chapter05/diffutils-static.sgml +++ /dev/null @@ -1,9 +0,0 @@ - -Installing Diffutils - -&c5-diffutils-inst; -&c5-diffutils-exp; -&aa-diffutils-desc; - - - diff --git a/chapter05/diffutils.xml b/chapter05/diffutils.xml new file mode 100644 index 000000000..1bdabd3d9 --- /dev/null +++ b/chapter05/diffutils.xml @@ -0,0 +1,9 @@ + +Installing Diffutils + +&c5-diffutils-inst; +&c5-diffutils-exp; +&aa-diffutils-desc; + + + diff --git a/chapter05/fileutils-exp.xml b/chapter05/fileutils-exp.xml new file mode 100644 index 000000000..c4cc59b1a --- /dev/null +++ b/chapter05/fileutils-exp.xml @@ -0,0 +1,12 @@ + +Command explanations + + +--libexecdir=$LFS/bin: This configure option will +set the program executable directory to $LFS/bin. This is normally set +to /usr/libexec, but nothing is placed in it. Changing it just prevents +that directory from being created. + + + + diff --git a/chapter05/fileutils-inst.xml b/chapter05/fileutils-inst.xml new file mode 100644 index 000000000..6a8be0d35 --- /dev/null +++ b/chapter05/fileutils-inst.xml @@ -0,0 +1,23 @@ + +Installation of Fileutils + + +Install Fileutils by running the following commands: + + +
+ + patch -Np1 -i ../fileutils-4.0.patch + && + ./configure --disable-nls \ + --prefix=$LFS/usr --libexecdir=$LFS/bin + --bindir=$LFS/bin && + make LDFLAGS=-static && + make install && + cd $LFS/usr/bin && + ln -s ../../bin/install install + +
+ +
+ diff --git a/chapter05/fileutils-static-exp.sgml b/chapter05/fileutils-static-exp.sgml deleted file mode 100644 index c4cc59b1a..000000000 --- a/chapter05/fileutils-static-exp.sgml +++ /dev/null @@ -1,12 +0,0 @@ - -Command explanations - - ---libexecdir=$LFS/bin: This configure option will -set the program executable directory to $LFS/bin. This is normally set -to /usr/libexec, but nothing is placed in it. Changing it just prevents -that directory from being created. - - - - diff --git a/chapter05/fileutils-static-inst.sgml b/chapter05/fileutils-static-inst.sgml deleted file mode 100644 index 6a8be0d35..000000000 --- a/chapter05/fileutils-static-inst.sgml +++ /dev/null @@ -1,23 +0,0 @@ - -Installation of Fileutils - - -Install Fileutils by running the following commands: - - -
- - patch -Np1 -i ../fileutils-4.0.patch - && - ./configure --disable-nls \ - --prefix=$LFS/usr --libexecdir=$LFS/bin - --bindir=$LFS/bin && - make LDFLAGS=-static && - make install && - cd $LFS/usr/bin && - ln -s ../../bin/install install - -
- -
- diff --git a/chapter05/fileutils-static.sgml b/chapter05/fileutils-static.sgml deleted file mode 100644 index a7d4dae0e..000000000 --- a/chapter05/fileutils-static.sgml +++ /dev/null @@ -1,9 +0,0 @@ - -Installing Fileutils - -&c5-fileutils-inst; -&c5-fileutils-exp; -&aa-fileutils-desc; - - - diff --git a/chapter05/fileutils.xml b/chapter05/fileutils.xml new file mode 100644 index 000000000..a7d4dae0e --- /dev/null +++ b/chapter05/fileutils.xml @@ -0,0 +1,9 @@ + +Installing Fileutils + +&c5-fileutils-inst; +&c5-fileutils-exp; +&aa-fileutils-desc; + + + diff --git a/chapter05/gcc-exp.xml b/chapter05/gcc-exp.xml new file mode 100644 index 000000000..0bed24ed1 --- /dev/null +++ b/chapter05/gcc-exp.xml @@ -0,0 +1,24 @@ + +Command explanations + + +--enable-languages=c,c++: This only builds the C +and C++ compilers and not the other available compilers as they are, on +the average, not often used. If you do need those other compilers don't +use the --enable-languages parameter. + + + +ln -s ../usr/lib/gcc-lib/*/2.95.2.1/cpp cpp: This +creates the $LFS/lib/cpp symlink. Some packages explicitely try to find +cpp in /lib. + + + +ln -s ../usr/lib/gcc-lib/*/2.95.2.1/cpp cpp: This +creates the $LFS/usr/lib/cpp symlink as there are packages that expect +cpp to be in /usr/lib. + + + + diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml new file mode 100644 index 000000000..551ef1dee --- /dev/null +++ b/chapter05/gcc-inst.xml @@ -0,0 +1,36 @@ + +Installation of GCC on the LFS system + + +After you unpacked the gcc-2.95.2.1 archive don't enter the newly created +gcc-2.95.2.1 directory but stay in the $LFS/usr/src directory. Install GCC by +running the following commands: + + +
+ + mkdir $LFS/usr/src/gcc-build && + cd $LFS/usr/src/gcc-build && + ../gcc-2.95.2.1/configure --prefix=/usr \ +    --with-gxx-include-dir=/usr/include/g++ + \ +    --enable-languages=c,c++ --disable-nls + && + make -e LDFLAGS=-static bootstrap && + make prefix=$LFS/usr local_prefix=$LFS/usr/local + \ +    gxx_include_dir=$LFS/usr/include/g++ + install && + cd $LFS/lib && + ln -s ../usr/lib/gcc-lib/*/2.95.2.1/cpp cpp + && + cd $LFS/usr/lib && + ln -s gcc-lib/*/2.95.2.1/cpp cpp + && + cd $LFS/usr/bin && + ln -s gcc cc + +
+ +
+ diff --git a/chapter05/gcc-static-exp.sgml b/chapter05/gcc-static-exp.sgml deleted file mode 100644 index 0bed24ed1..000000000 --- a/chapter05/gcc-static-exp.sgml +++ /dev/null @@ -1,24 +0,0 @@ - -Command explanations - - ---enable-languages=c,c++: This only builds the C -and C++ compilers and not the other available compilers as they are, on -the average, not often used. If you do need those other compilers don't -use the --enable-languages parameter. - - - -ln -s ../usr/lib/gcc-lib/*/2.95.2.1/cpp cpp: This -creates the $LFS/lib/cpp symlink. Some packages explicitely try to find -cpp in /lib. - - - -ln -s ../usr/lib/gcc-lib/*/2.95.2.1/cpp cpp: This -creates the $LFS/usr/lib/cpp symlink as there are packages that expect -cpp to be in /usr/lib. - - - - diff --git a/chapter05/gcc-static-inst.sgml b/chapter05/gcc-static-inst.sgml deleted file mode 100644 index 551ef1dee..000000000 --- a/chapter05/gcc-static-inst.sgml +++ /dev/null @@ -1,36 +0,0 @@ - -Installation of GCC on the LFS system - - -After you unpacked the gcc-2.95.2.1 archive don't enter the newly created -gcc-2.95.2.1 directory but stay in the $LFS/usr/src directory. Install GCC by -running the following commands: - - -
- - mkdir $LFS/usr/src/gcc-build && - cd $LFS/usr/src/gcc-build && - ../gcc-2.95.2.1/configure --prefix=/usr \ -    --with-gxx-include-dir=/usr/include/g++ - \ -    --enable-languages=c,c++ --disable-nls - && - make -e LDFLAGS=-static bootstrap && - make prefix=$LFS/usr local_prefix=$LFS/usr/local - \ -    gxx_include_dir=$LFS/usr/include/g++ - install && - cd $LFS/lib && - ln -s ../usr/lib/gcc-lib/*/2.95.2.1/cpp cpp - && - cd $LFS/usr/lib && - ln -s gcc-lib/*/2.95.2.1/cpp cpp - && - cd $LFS/usr/bin && - ln -s gcc cc - -
- -
- diff --git a/chapter05/gcc-static.sgml b/chapter05/gcc-static.sgml deleted file mode 100644 index 4669674c1..000000000 --- a/chapter05/gcc-static.sgml +++ /dev/null @@ -1,9 +0,0 @@ - -Installing GCC on the LFS system - -&c5-gcc-inst; -&c5-gcc-exp; -&aa-gcc-desc; - - - diff --git a/chapter05/gcc.xml b/chapter05/gcc.xml new file mode 100644 index 000000000..4669674c1 --- /dev/null +++ b/chapter05/gcc.xml @@ -0,0 +1,9 @@ + +Installing GCC on the LFS system + +&c5-gcc-inst; +&c5-gcc-exp; +&aa-gcc-desc; + + + diff --git a/chapter05/gettext-inst.xml b/chapter05/gettext-inst.xml new file mode 100644 index 000000000..598cc0a81 --- /dev/null +++ b/chapter05/gettext-inst.xml @@ -0,0 +1,22 @@ + +Installation of Gettext + + +Install Gettext by running the following commands: + + +
+ + ./configure --disable-nls && + cd lib && + make && + cd ../intl && + make && + cd ../src && + make LDFLAGS=-all-static msgfmt && + cp msgfmt $LFS/usr/bin + +
+ +
+ diff --git a/chapter05/gettext-static-inst.sgml b/chapter05/gettext-static-inst.sgml deleted file mode 100644 index 598cc0a81..000000000 --- a/chapter05/gettext-static-inst.sgml +++ /dev/null @@ -1,22 +0,0 @@ - -Installation of Gettext - - -Install Gettext by running the following commands: - - -
- - ./configure --disable-nls && - cd lib && - make && - cd ../intl && - make && - cd ../src && - make LDFLAGS=-all-static msgfmt && - cp msgfmt $LFS/usr/bin - -
- -
- diff --git a/chapter05/gettext-static.sgml b/chapter05/gettext-static.sgml deleted file mode 100644 index d45f63972..000000000 --- a/chapter05/gettext-static.sgml +++ /dev/null @@ -1,8 +0,0 @@ - -Installing Gettext - -&c5-gettext-inst; -&aa-gettext-desc; - - - diff --git a/chapter05/gettext.xml b/chapter05/gettext.xml new file mode 100644 index 000000000..d45f63972 --- /dev/null +++ b/chapter05/gettext.xml @@ -0,0 +1,8 @@ + +Installing Gettext + +&c5-gettext-inst; +&aa-gettext-desc; + + + diff --git a/chapter05/grep-inst.xml b/chapter05/grep-inst.xml new file mode 100644 index 000000000..ecf2051ee --- /dev/null +++ b/chapter05/grep-inst.xml @@ -0,0 +1,21 @@ + +Installation of Grep + + +Install Grep by running the following commands: + + +
+ + export CPPFLAGS=-Dre_max_failures=re_max_failures2 + && + ./configure --prefix=$LFS/usr --disable-nls + && + unset CPPFLAGS && + make LDFLAGS=-static && + make install + +
+ +
+ diff --git a/chapter05/grep-static-inst.sgml b/chapter05/grep-static-inst.sgml deleted file mode 100644 index ecf2051ee..000000000 --- a/chapter05/grep-static-inst.sgml +++ /dev/null @@ -1,21 +0,0 @@ - -Installation of Grep - - -Install Grep by running the following commands: - - -
- - export CPPFLAGS=-Dre_max_failures=re_max_failures2 - && - ./configure --prefix=$LFS/usr --disable-nls - && - unset CPPFLAGS && - make LDFLAGS=-static && - make install - -
- -
- diff --git a/chapter05/grep-static.sgml b/chapter05/grep-static.sgml deleted file mode 100644 index 0f5b1760b..000000000 --- a/chapter05/grep-static.sgml +++ /dev/null @@ -1,8 +0,0 @@ - -Installing Grep - -&c5-grep-inst; -&aa-grep-desc; - - - diff --git a/chapter05/grep.xml b/chapter05/grep.xml new file mode 100644 index 000000000..0f5b1760b --- /dev/null +++ b/chapter05/grep.xml @@ -0,0 +1,8 @@ + +Installing Grep + +&c5-grep-inst; +&aa-grep-desc; + + + diff --git a/chapter05/gzip-inst.xml b/chapter05/gzip-inst.xml new file mode 100644 index 000000000..0b9c58409 --- /dev/null +++ b/chapter05/gzip-inst.xml @@ -0,0 +1,22 @@ + +Installation of Gzip + + +Before you install Gzip you have to unpack the gzip patch file. + + +
+ + patch -Np1 -i ../gzip-1.2.4a.patch && + ./configure --prefix=$LFS/usr --disable-nls + && + 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/gzip-static-inst.sgml b/chapter05/gzip-static-inst.sgml deleted file mode 100644 index 0b9c58409..000000000 --- a/chapter05/gzip-static-inst.sgml +++ /dev/null @@ -1,22 +0,0 @@ - -Installation of Gzip - - -Before you install Gzip you have to unpack the gzip patch file. - - -
- - patch -Np1 -i ../gzip-1.2.4a.patch && - ./configure --prefix=$LFS/usr --disable-nls - && - 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/gzip-static.sgml b/chapter05/gzip-static.sgml deleted file mode 100644 index 2f7a4f92d..000000000 --- a/chapter05/gzip-static.sgml +++ /dev/null @@ -1,8 +0,0 @@ - -Installing Gzip - -&c5-gzip-inst; -&aa-gzip-desc; - - - diff --git a/chapter05/gzip.xml b/chapter05/gzip.xml new file mode 100644 index 000000000..2f7a4f92d --- /dev/null +++ b/chapter05/gzip.xml @@ -0,0 +1,8 @@ + +Installing Gzip + +&c5-gzip-inst; +&aa-gzip-desc; + + + diff --git a/chapter05/introduction.sgml b/chapter05/introduction.sgml deleted file mode 100644 index 881a7e9ed..000000000 --- a/chapter05/introduction.sgml +++ /dev/null @@ -1,55 +0,0 @@ - -Introduction - - -In the following chapters we will install all the software that belongs to -a basic Linux system. After you're done with this chapter you have a -fully working Linux system. The remaining chapters deal with setting up -networking, creating the boot scripts and adding an entry to lilo.conf so -that you can boot your LFS system. - - - -The software in this chapter will be linked statically. These programs -will be re-installed in the next chapter and linked dynamically. The -reason for the static version first is that there is a chance that our -normal Linux system and your LFS system aren't using the same C -Library versions. If the programs in the first part are linked against -an older C library version, those programs might not work well on the -LFS system. - - - -The key to learn what makes Linux tick is to know exactly what packages -are used for and why you or the system needs them. Descriptions -of the package content are provided after the Installation subsection of each -package and in Appendix A as well. - - - -We're about to start with installing the first set of packages. These -packages will be, as previously explained, linked statically. - - - -During the installation of various packages you will most likely see -compiler warnings scrolling by on your screen. These are normal and can -be safely ignored. They are just that, warnings (mostly about improper -use of the C or C++ syntax, but not illegal use. It's just that often C -standards changed and packages still use the old standard which is not a -problem). - - - -Before we start, make sure you have the LFS environment variable setup -if you plan on using it, by running the following command: - - -
- - echo $LFS - -
- -
- diff --git a/chapter05/introduction.xml b/chapter05/introduction.xml new file mode 100644 index 000000000..881a7e9ed --- /dev/null +++ b/chapter05/introduction.xml @@ -0,0 +1,55 @@ + +Introduction + + +In the following chapters we will install all the software that belongs to +a basic Linux system. After you're done with this chapter you have a +fully working Linux system. The remaining chapters deal with setting up +networking, creating the boot scripts and adding an entry to lilo.conf so +that you can boot your LFS system. + + + +The software in this chapter will be linked statically. These programs +will be re-installed in the next chapter and linked dynamically. The +reason for the static version first is that there is a chance that our +normal Linux system and your LFS system aren't using the same C +Library versions. If the programs in the first part are linked against +an older C library version, those programs might not work well on the +LFS system. + + + +The key to learn what makes Linux tick is to know exactly what packages +are used for and why you or the system needs them. Descriptions +of the package content are provided after the Installation subsection of each +package and in Appendix A as well. + + + +We're about to start with installing the first set of packages. These +packages will be, as previously explained, linked statically. + + + +During the installation of various packages you will most likely see +compiler warnings scrolling by on your screen. These are normal and can +be safely ignored. They are just that, warnings (mostly about improper +use of the C or C++ syntax, but not illegal use. It's just that often C +standards changed and packages still use the old standard which is not a +problem). + + + +Before we start, make sure you have the LFS environment variable setup +if you plan on using it, by running the following command: + + +
+ + echo $LFS + +
+ +
+ diff --git a/chapter05/kernel-exp.sgml b/chapter05/kernel-exp.sgml deleted file mode 100644 index 1ff6f17ee..000000000 --- a/chapter05/kernel-exp.sgml +++ /dev/null @@ -1,35 +0,0 @@ - -Command explanations - - -yes "" | make config: This runs make config and -answers "Y" to every question the config script asks the user. We're not -configuring the real kernel here, we just need to have some sort of -configure file created so that we can run make dep next that will create -a few files in $LFS/usr/src/linux/include/linux like version.h among -others that we will need to compilg Glibc and other packages later in -chroot. - - - -make dep: make dep checks dependencies and sets -up the dependencies file. We don't really care about the dependency -checks, but what we do care about is that make dep creates those -aforementioned files in $LFS/usr/src/linux/include/linux we will be -needing later on. - - - -ln -s ../src/linux/include/linux linux and -ln -s ../src/linux/include/asm asm: These -commands create the linux and asm symlinks in the $LFS/usr/include -directory that point to the proper directories in the Linux source tree. -Packages that need kernel headers include them with lines like #include -<linux/errno.h>. These paths are relative to the /usr/include -directory so the /usr/include/linux link points to the directory -containing the Linux kernel header files. The same goes for the asm -symlink. - - - - diff --git a/chapter05/kernel-exp.xml b/chapter05/kernel-exp.xml new file mode 100644 index 000000000..1ff6f17ee --- /dev/null +++ b/chapter05/kernel-exp.xml @@ -0,0 +1,35 @@ + +Command explanations + + +yes "" | make config: This runs make config and +answers "Y" to every question the config script asks the user. We're not +configuring the real kernel here, we just need to have some sort of +configure file created so that we can run make dep next that will create +a few files in $LFS/usr/src/linux/include/linux like version.h among +others that we will need to compilg Glibc and other packages later in +chroot. + + + +make dep: make dep checks dependencies and sets +up the dependencies file. We don't really care about the dependency +checks, but what we do care about is that make dep creates those +aforementioned files in $LFS/usr/src/linux/include/linux we will be +needing later on. + + + +ln -s ../src/linux/include/linux linux and +ln -s ../src/linux/include/asm asm: These +commands create the linux and asm symlinks in the $LFS/usr/include +directory that point to the proper directories in the Linux source tree. +Packages that need kernel headers include them with lines like #include +<linux/errno.h>. These paths are relative to the /usr/include +directory so the /usr/include/linux link points to the directory +containing the Linux kernel header files. The same goes for the asm +symlink. + + + + diff --git a/chapter05/kernel-inst.sgml b/chapter05/kernel-inst.sgml deleted file mode 100644 index 0d36fa1af..000000000 --- a/chapter05/kernel-inst.sgml +++ /dev/null @@ -1,49 +0,0 @@ - -Installation of Linux Kernel - - -We won't be compiling a new kernel image yet. We'll do that after we -have finished the installation of the basic system software in this -chapter. But because certain software need the kernel header files, we're -going to unpack the kernel archive now and set it up so that we can -compile package that need the kernel. - - - -Create the kernel configuration file by running the following command: - - -
- - yes "" | make config - -
- - -Ignore the warning Broken pipe you might see at the -end. Now run the following commands to set up all the dependencies correctly: - - -
- - make dep - -
- - -Now that that's done, we need to create the -$LFS/usr/include/linux and the -$LFS/usr/include/asm symlinks. Create them by running the -following commands: - - -
- - cd $LFS/usr/include && - ln -s ../src/linux/include/linux linux && - ln -s ../src/linux/include/asm asm - -
- -
- diff --git a/chapter05/kernel-inst.xml b/chapter05/kernel-inst.xml new file mode 100644 index 000000000..0d36fa1af --- /dev/null +++ b/chapter05/kernel-inst.xml @@ -0,0 +1,49 @@ + +Installation of Linux Kernel + + +We won't be compiling a new kernel image yet. We'll do that after we +have finished the installation of the basic system software in this +chapter. But because certain software need the kernel header files, we're +going to unpack the kernel archive now and set it up so that we can +compile package that need the kernel. + + + +Create the kernel configuration file by running the following command: + + +
+ + yes "" | make config + +
+ + +Ignore the warning Broken pipe you might see at the +end. Now run the following commands to set up all the dependencies correctly: + + +
+ + make dep + +
+ + +Now that that's done, we need to create the +$LFS/usr/include/linux and the +$LFS/usr/include/asm symlinks. Create them by running the +following commands: + + +
+ + cd $LFS/usr/include && + ln -s ../src/linux/include/linux linux && + ln -s ../src/linux/include/asm asm + +
+ +
+ diff --git a/chapter05/kernel.sgml b/chapter05/kernel.sgml deleted file mode 100644 index 125aeb484..000000000 --- a/chapter05/kernel.sgml +++ /dev/null @@ -1,9 +0,0 @@ - -Installing Linux Kernel - -&c5-kernel-inst; -&c5-kernel-exp; -&aa-kernel-desc; - - - diff --git a/chapter05/kernel.xml b/chapter05/kernel.xml new file mode 100644 index 000000000..125aeb484 --- /dev/null +++ b/chapter05/kernel.xml @@ -0,0 +1,9 @@ + +Installing Linux Kernel + +&c5-kernel-inst; +&c5-kernel-exp; +&aa-kernel-desc; + + + diff --git a/chapter05/make-inst.xml b/chapter05/make-inst.xml new file mode 100644 index 000000000..74fee7dea --- /dev/null +++ b/chapter05/make-inst.xml @@ -0,0 +1,18 @@ + +Installation of Make + + +Install Make by running the following commands: + + +
+ + ./configure --prefix=$LFS/usr + --disable-nls && + make LDFLAGS=-static && + make install + +
+ +
+ diff --git a/chapter05/make-static-inst.sgml b/chapter05/make-static-inst.sgml deleted file mode 100644 index 74fee7dea..000000000 --- a/chapter05/make-static-inst.sgml +++ /dev/null @@ -1,18 +0,0 @@ - -Installation of Make - - -Install Make by running the following commands: - - -
- - ./configure --prefix=$LFS/usr - --disable-nls && - make LDFLAGS=-static && - make install - -
- -
- diff --git a/chapter05/make-static.sgml b/chapter05/make-static.sgml deleted file mode 100644 index f75d727bb..000000000 --- a/chapter05/make-static.sgml +++ /dev/null @@ -1,8 +0,0 @@ - -Installing Make - -&c5-make-inst; -&aa-make-desc; - - - diff --git a/chapter05/make.xml b/chapter05/make.xml new file mode 100644 index 000000000..f75d727bb --- /dev/null +++ b/chapter05/make.xml @@ -0,0 +1,8 @@ + +Installing Make + +&c5-make-inst; +&aa-make-desc; + + + diff --git a/chapter05/makedev-exp.sgml b/chapter05/makedev-exp.sgml deleted file mode 100644 index f3d4ff980..000000000 --- a/chapter05/makedev-exp.sgml +++ /dev/null @@ -1,18 +0,0 @@ - -Command explanations - - -sed "s/# 9/9/" MAKEDEV >/dev/MAKEDEV: By -default the Makedev script only creates the hda1-hda8 and hdb1-hdb8 -devices. By replacing "# 9" by "9"'s in the MAKEDEV script, it will -create hda1-hda20, hdb1-hdb20 and possible others (like hdc and hdd) - - - -chmod 754 /dev/MAKEDEV: This sets the permissions -of the MAKEDEV script to mode 754 which makes it executable only for -owner and group and readable by everybody. - - - - diff --git a/chapter05/makedev-exp.xml b/chapter05/makedev-exp.xml new file mode 100644 index 000000000..f3d4ff980 --- /dev/null +++ b/chapter05/makedev-exp.xml @@ -0,0 +1,18 @@ + +Command explanations + + +sed "s/# 9/9/" MAKEDEV >/dev/MAKEDEV: By +default the Makedev script only creates the hda1-hda8 and hdb1-hdb8 +devices. By replacing "# 9" by "9"'s in the MAKEDEV script, it will +create hda1-hda20, hdb1-hdb20 and possible others (like hdc and hdd) + + + +chmod 754 /dev/MAKEDEV: This sets the permissions +of the MAKEDEV script to mode 754 which makes it executable only for +owner and group and readable by everybody. + + + + diff --git a/chapter05/makedev-inst.sgml b/chapter05/makedev-inst.sgml deleted file mode 100644 index 6555d3db2..000000000 --- a/chapter05/makedev-inst.sgml +++ /dev/null @@ -1,27 +0,0 @@ - -Installation of MAKEDEV - - -Install MAKEDEV by running the following commands: - - -
- - sed "s/# 9/9/" MAKEDEV >$LFS/dev/MAKEDEV - && - chmod 754 $LFS/dev/MAKEDEV && - cp $LFS/dev/MAKEDEV $LFS/dev/MAKEDEV-temp - && - cd $LFS/dev && - patch -Ni $LFS/usr/src/MAKEDEV-2.5.patch - - -
- - -The actual creation of the device files in $LFS/dev will be taken care -of in chapter 6. - - -
- diff --git a/chapter05/makedev-inst.xml b/chapter05/makedev-inst.xml new file mode 100644 index 000000000..6555d3db2 --- /dev/null +++ b/chapter05/makedev-inst.xml @@ -0,0 +1,27 @@ + +Installation of MAKEDEV + + +Install MAKEDEV by running the following commands: + + +
+ + sed "s/# 9/9/" MAKEDEV >$LFS/dev/MAKEDEV + && + chmod 754 $LFS/dev/MAKEDEV && + cp $LFS/dev/MAKEDEV $LFS/dev/MAKEDEV-temp + && + cd $LFS/dev && + patch -Ni $LFS/usr/src/MAKEDEV-2.5.patch + + +
+ + +The actual creation of the device files in $LFS/dev will be taken care +of in chapter 6. + + +
+ diff --git a/chapter05/makedev.sgml b/chapter05/makedev.sgml deleted file mode 100644 index 81e49a3b7..000000000 --- a/chapter05/makedev.sgml +++ /dev/null @@ -1,9 +0,0 @@ - -Installing Makedev - -&c5-makedev-inst; -&c5-makedev-exp; -&aa-makedev-desc; - - - diff --git a/chapter05/makedev.xml b/chapter05/makedev.xml new file mode 100644 index 000000000..81e49a3b7 --- /dev/null +++ b/chapter05/makedev.xml @@ -0,0 +1,9 @@ + +Installing Makedev + +&c5-makedev-inst; +&c5-makedev-exp; +&aa-makedev-desc; + + + diff --git a/chapter05/mawk-inst.xml b/chapter05/mawk-inst.xml new file mode 100644 index 000000000..64347744e --- /dev/null +++ b/chapter05/mawk-inst.xml @@ -0,0 +1,19 @@ + +Installation of Mawk + + +Install Mawk by running the following commands: + + +
+ + ./configure && + make CFLAGS=-static && + make BINDIR=$LFS/usr/bin \ +    MANDIR=$LFS/usr/share/man/man1 + install + +
+ +
+ diff --git a/chapter05/mawk-static-inst.sgml b/chapter05/mawk-static-inst.sgml deleted file mode 100644 index 64347744e..000000000 --- a/chapter05/mawk-static-inst.sgml +++ /dev/null @@ -1,19 +0,0 @@ - -Installation of Mawk - - -Install Mawk by running the following commands: - - -
- - ./configure && - make CFLAGS=-static && - make BINDIR=$LFS/usr/bin \ -    MANDIR=$LFS/usr/share/man/man1 - install - -
- -
- diff --git a/chapter05/mawk-static.sgml b/chapter05/mawk-static.sgml deleted file mode 100644 index d4d787566..000000000 --- a/chapter05/mawk-static.sgml +++ /dev/null @@ -1,8 +0,0 @@ - -Installing Mawk - -&c5-mawk-inst; -&aa-mawk-desc; - - - diff --git a/chapter05/mawk.xml b/chapter05/mawk.xml new file mode 100644 index 000000000..d4d787566 --- /dev/null +++ b/chapter05/mawk.xml @@ -0,0 +1,8 @@ + +Installing Mawk + +&c5-mawk-inst; +&aa-mawk-desc; + + + diff --git a/chapter05/proc.sgml b/chapter05/proc.sgml deleted file mode 100644 index 044ccd6c6..000000000 --- a/chapter05/proc.sgml +++ /dev/null @@ -1,23 +0,0 @@ - -Mounting $LFS/proc file system - - -In order for certain programs to function properly the proc file system -must be mounted and available from within the chroot'ed environment as -well. It's not a problem to mount the proc file system twice -or even more than that, since it's a virtual file system maintained by -the kernel itself. - - - -Mount the proc file system under $LFS/proc by running the following command: - - -
- - mount proc $LFS/proc -t proc - -
- -
- diff --git a/chapter05/proc.xml b/chapter05/proc.xml new file mode 100644 index 000000000..044ccd6c6 --- /dev/null +++ b/chapter05/proc.xml @@ -0,0 +1,23 @@ + +Mounting $LFS/proc file system + + +In order for certain programs to function properly the proc file system +must be mounted and available from within the chroot'ed environment as +well. It's not a problem to mount the proc file system twice +or even more than that, since it's a virtual file system maintained by +the kernel itself. + + + +Mount the proc file system under $LFS/proc by running the following command: + + +
+ + mount proc $LFS/proc -t proc + +
+ +
+ diff --git a/chapter05/pwdgroup.sgml b/chapter05/pwdgroup.sgml deleted file mode 100644 index db7343aa6..000000000 --- a/chapter05/pwdgroup.sgml +++ /dev/null @@ -1,53 +0,0 @@ - -Creating passwd and group files - - -In order for user and group root to be recognized and to be able to logon -it needs an entry in the /etc/passwd and /etc/group file. Besides the -group root a couple of other groups are recommended and needed by -packages. The groups with their GID's below aren't part of any standard. -The LSB only recommends besides a group root a group bin to be present -with GID 1. Other group names and GID's can be chosen by yourself. Well -written packages don't depend on GID numbers but just use the group -name, it doesn't matter all that much what GID a group has. Since there -aren't any standards for groups I won't follow any conventions used by -Debian, RedHat and others. The groups added here are the groups the -MAKEDEV script (the script that creates the device files in the /dev -directory) mentions. - - - -Create a new file $LFS/etc/passwd by running the -following command: - - -
- - echo "root:x:0:0:root:/root:/bin/bash" > - $LFS/etc/passwd - -
- - -Create a new file $LFS/etc/group by running the -following: - - - - -cat > $LFS/etc/group << "EOF" - root:x:0: - bin:x:1: - sys:x:2: - kmem:x:3: - tty:x:4: - uucp:x:5: - daemon:x:6: - floppy:x:7: - disk:x:8: -EOF - - - -
- diff --git a/chapter05/pwdgroup.xml b/chapter05/pwdgroup.xml new file mode 100644 index 000000000..db7343aa6 --- /dev/null +++ b/chapter05/pwdgroup.xml @@ -0,0 +1,53 @@ + +Creating passwd and group files + + +In order for user and group root to be recognized and to be able to logon +it needs an entry in the /etc/passwd and /etc/group file. Besides the +group root a couple of other groups are recommended and needed by +packages. The groups with their GID's below aren't part of any standard. +The LSB only recommends besides a group root a group bin to be present +with GID 1. Other group names and GID's can be chosen by yourself. Well +written packages don't depend on GID numbers but just use the group +name, it doesn't matter all that much what GID a group has. Since there +aren't any standards for groups I won't follow any conventions used by +Debian, RedHat and others. The groups added here are the groups the +MAKEDEV script (the script that creates the device files in the /dev +directory) mentions. + + + +Create a new file $LFS/etc/passwd by running the +following command: + + +
+ + echo "root:x:0:0:root:/root:/bin/bash" > + $LFS/etc/passwd + +
+ + +Create a new file $LFS/etc/group by running the +following: + + + + +cat > $LFS/etc/group << "EOF" + root:x:0: + bin:x:1: + sys:x:2: + kmem:x:3: + tty:x:4: + uucp:x:5: + daemon:x:6: + floppy:x:7: + disk:x:8: +EOF + + + +
+ diff --git a/chapter05/sed-inst.xml b/chapter05/sed-inst.xml new file mode 100644 index 000000000..701fbcf1b --- /dev/null +++ b/chapter05/sed-inst.xml @@ -0,0 +1,21 @@ + +Installation of Sed + + +Install Sed by running the following commands: + + +
+ + export CPPFLAGS=-Dre_max_failures=re_max_failures2 + && + ./configure --prefix=$LFS/usr + --disable-nls --bindir=$LFS/bin && + unset CPPFLAGS && + make LDFLAGS=-static && + make install + +
+ +
+ diff --git a/chapter05/sed-static-inst.sgml b/chapter05/sed-static-inst.sgml deleted file mode 100644 index 701fbcf1b..000000000 --- a/chapter05/sed-static-inst.sgml +++ /dev/null @@ -1,21 +0,0 @@ - -Installation of Sed - - -Install Sed by running the following commands: - - -
- - export CPPFLAGS=-Dre_max_failures=re_max_failures2 - && - ./configure --prefix=$LFS/usr - --disable-nls --bindir=$LFS/bin && - unset CPPFLAGS && - make LDFLAGS=-static && - make install - -
- -
- diff --git a/chapter05/sed-static.sgml b/chapter05/sed-static.sgml deleted file mode 100644 index e95f3bff2..000000000 --- a/chapter05/sed-static.sgml +++ /dev/null @@ -1,8 +0,0 @@ - -Installing Sed - -&c5-sed-inst; -&aa-sed-desc; - - - diff --git a/chapter05/sed.xml b/chapter05/sed.xml new file mode 100644 index 000000000..e95f3bff2 --- /dev/null +++ b/chapter05/sed.xml @@ -0,0 +1,8 @@ + +Installing Sed + +&c5-sed-inst; +&aa-sed-desc; + + + diff --git a/chapter05/shellutils-inst.xml b/chapter05/shellutils-inst.xml new file mode 100644 index 000000000..5c65eefc7 --- /dev/null +++ b/chapter05/shellutils-inst.xml @@ -0,0 +1,21 @@ + +Installation of Sh-utils + + +Install Shellutils 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 + +
+ +
+ diff --git a/chapter05/shellutils-static-inst.sgml b/chapter05/shellutils-static-inst.sgml deleted file mode 100644 index 5c65eefc7..000000000 --- a/chapter05/shellutils-static-inst.sgml +++ /dev/null @@ -1,21 +0,0 @@ - -Installation of Sh-utils - - -Install Shellutils 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 - -
- -
- diff --git a/chapter05/shellutils-static.sgml b/chapter05/shellutils-static.sgml deleted file mode 100644 index e63d944b4..000000000 --- a/chapter05/shellutils-static.sgml +++ /dev/null @@ -1,8 +0,0 @@ - -Installing Shellutils - -&c5-shellutils-inst; -&aa-shellutils-desc; - - - diff --git a/chapter05/shellutils.xml b/chapter05/shellutils.xml new file mode 100644 index 000000000..e63d944b4 --- /dev/null +++ b/chapter05/shellutils.xml @@ -0,0 +1,8 @@ + +Installing Shellutils + +&c5-shellutils-inst; +&aa-shellutils-desc; + + + diff --git a/chapter05/tar-inst.xml b/chapter05/tar-inst.xml new file mode 100644 index 000000000..4a811c8cf --- /dev/null +++ b/chapter05/tar-inst.xml @@ -0,0 +1,40 @@ + +Installation of Tar + + +If you want to be able to directly use bzip2 files with tar, use the tar +patch avaiable from the LFS FTP site. This patch will add the -y option +to tar which works the same as the -z option to tar (which you can use +for gzip files). + + + +Apply the patch by running the following command: + + +
+ + cd src && + patch -i ../../gnutarpatch.txt && + cd .. + +
+ + +Install Tar by running the following commands: + + +
+ + ./configure --prefix=$LFS/usr + --disable-nls \ +    --libexecdir=$LFS/usr/bin && + + make LDFLAGS=-static && + make prefix=$LFS/usr install && + mv $LFS/usr/bin/tar $LFS/bin + +
+ +
+ diff --git a/chapter05/tar-static-inst.sgml b/chapter05/tar-static-inst.sgml deleted file mode 100644 index 4a811c8cf..000000000 --- a/chapter05/tar-static-inst.sgml +++ /dev/null @@ -1,40 +0,0 @@ - -Installation of Tar - - -If you want to be able to directly use bzip2 files with tar, use the tar -patch avaiable from the LFS FTP site. This patch will add the -y option -to tar which works the same as the -z option to tar (which you can use -for gzip files). - - - -Apply the patch by running the following command: - - -
- - cd src && - patch -i ../../gnutarpatch.txt && - cd .. - -
- - -Install Tar by running the following commands: - - -
- - ./configure --prefix=$LFS/usr - --disable-nls \ -    --libexecdir=$LFS/usr/bin && - - make LDFLAGS=-static && - make prefix=$LFS/usr install && - mv $LFS/usr/bin/tar $LFS/bin - -
- -
- diff --git a/chapter05/tar-static.sgml b/chapter05/tar-static.sgml deleted file mode 100644 index 171a1de95..000000000 --- a/chapter05/tar-static.sgml +++ /dev/null @@ -1,8 +0,0 @@ - -Installing Tar - -&c5-tar-inst; -&aa-tar-desc; - - - diff --git a/chapter05/tar.xml b/chapter05/tar.xml new file mode 100644 index 000000000..171a1de95 --- /dev/null +++ b/chapter05/tar.xml @@ -0,0 +1,8 @@ + +Installing Tar + +&c5-tar-inst; +&aa-tar-desc; + + + diff --git a/chapter05/texinfo-inst.xml b/chapter05/texinfo-inst.xml new file mode 100644 index 000000000..34633361a --- /dev/null +++ b/chapter05/texinfo-inst.xml @@ -0,0 +1,18 @@ + +Installation of Texinfo + + +Install Texinfo by running the following commands: + + +
+ + ./configure --prefix=$LFS/usr + --disable-nls && + make LDFLAGS=-static && + make install + +
+ +
+ diff --git a/chapter05/texinfo-static-inst.sgml b/chapter05/texinfo-static-inst.sgml deleted file mode 100644 index 34633361a..000000000 --- a/chapter05/texinfo-static-inst.sgml +++ /dev/null @@ -1,18 +0,0 @@ - -Installation of Texinfo - - -Install Texinfo by running the following commands: - - -
- - ./configure --prefix=$LFS/usr - --disable-nls && - make LDFLAGS=-static && - make install - -
- -
- diff --git a/chapter05/texinfo-static.sgml b/chapter05/texinfo-static.sgml deleted file mode 100644 index 1e47c21ee..000000000 --- a/chapter05/texinfo-static.sgml +++ /dev/null @@ -1,8 +0,0 @@ - -Installing Texinfo - -&c5-texinfo-inst; -&aa-texinfo-desc; - - - diff --git a/chapter05/texinfo.xml b/chapter05/texinfo.xml new file mode 100644 index 000000000..1e47c21ee --- /dev/null +++ b/chapter05/texinfo.xml @@ -0,0 +1,8 @@ + +Installing Texinfo + +&c5-texinfo-inst; +&aa-texinfo-desc; + + + diff --git a/chapter05/textutils-inst.xml b/chapter05/textutils-inst.xml new file mode 100644 index 000000000..2fe91620c --- /dev/null +++ b/chapter05/textutils-inst.xml @@ -0,0 +1,19 @@ + +Installation of Textutils + + +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 + +
+ +
+ diff --git a/chapter05/textutils-static-inst.sgml b/chapter05/textutils-static-inst.sgml deleted file mode 100644 index 2fe91620c..000000000 --- a/chapter05/textutils-static-inst.sgml +++ /dev/null @@ -1,19 +0,0 @@ - -Installation of Textutils - - -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 - -
- -
- diff --git a/chapter05/textutils-static.sgml b/chapter05/textutils-static.sgml deleted file mode 100644 index bad69bcb7..000000000 --- a/chapter05/textutils-static.sgml +++ /dev/null @@ -1,8 +0,0 @@ - -Installing Textutils - -&c5-textutils-inst; -&aa-textutils-desc; - - - diff --git a/chapter05/textutils.xml b/chapter05/textutils.xml new file mode 100644 index 000000000..bad69bcb7 --- /dev/null +++ b/chapter05/textutils.xml @@ -0,0 +1,8 @@ + +Installing Textutils + +&c5-textutils-inst; +&aa-textutils-desc; + + + -- cgit v1.2.3-54-g00ecf