diff --git a/appendixa/gcc-down.xml b/appendixa/gcc-down.xml index 6867ef504..345a7d929 100644 --- a/appendixa/gcc-down.xml +++ b/appendixa/gcc-down.xml @@ -2,5 +2,9 @@ Official Download Location GCC (&gcc-version;): - + + +GCC Patch (&gcc-patch-version;): + + diff --git a/appendixa/perl-down.xml b/appendixa/perl-down.xml index 6c1e4976a..ede165d48 100644 --- a/appendixa/perl-down.xml +++ b/appendixa/perl-down.xml @@ -2,9 +2,5 @@ Official Download Location Perl (&perl-version;): - - -Perl Patch (&perl-version;): - - + diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 06027cf98..c1d4b0db8 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -8,25 +8,27 @@ Updated to: -automake-1.6.2 +automake-1.6.3 bin86-0.16.3 binutils-2.13 bison-1.35 diffutils-2.8.1 file-3.39 gawk-3.1.1 -gcc-3.1 +gcc-3.2 gettext-0.11.5 +groff-1.18 linux-2.4.19 -MAKEDEV-1.5 +MAKEDEV-1.7 man-1.5k man-pages-1.52 modutils-2.4.19 ncurses-5.2-2.patch +perl-5.8.0 psmisc-21 texinfo-4.2 textutils-2.1 -util-linux-2.11t +util-linux-2.11u @@ -35,9 +37,9 @@ ed-0.2.patch fileutils-4.1.patch gawk-3.1.1.patch -glibc-2.2.5.patch +gcc-3.2.patch +glibc-2.2.5-2.patch ncurses-5.2.patch -perl-5.6.1.patch vim-6.1.patch zlib-1.1.4 @@ -50,6 +52,13 @@ +August 26th, 2002 [gerard]: Added a new Glibc patch and +introducted a GCC patch. + +August 26th, 2002 [gerard]: Updated to automake-1.6.3, +gcc-3.2, groff-1.18, makedev-1.7, perl-5.8.0, +util-linux-2.11u + August 22nd, 2002 [timothy]: Appendix: Added missing URLs to patches. diff --git a/chapter04/gcc-patch.xml b/chapter04/gcc-patch.xml new file mode 100644 index 000000000..f93b6248e --- /dev/null +++ b/chapter04/gcc-patch.xml @@ -0,0 +1,3 @@ +GCC Patch (&gcc-patch-version;) - &gcc-patch-size;: + + diff --git a/chapter04/glibc-patch.xml b/chapter04/glibc-patch.xml index 5ce5d649b..62028d316 100644 --- a/chapter04/glibc-patch.xml +++ b/chapter04/glibc-patch.xml @@ -1,3 +1,3 @@ -Glibc Patch (&glibc-version;) - &glibc-patch-size;: - - +Glibc Patch (&glibc-patch-version;) - &glibc-patch-size;: + + diff --git a/chapter04/packages.xml b/chapter04/packages.xml index f271dbc94..5cb8a69e5 100644 --- a/chapter04/packages.xml +++ b/chapter04/packages.xml @@ -12,6 +12,7 @@ &c3-fileutils; &c3-fileutils-patch; &c3-gcc; +&c3-gcc-patch; &c3-kernel; &c3-grep; &c3-gzip; @@ -45,7 +46,6 @@ &c3-groff; &c3-man; &c3-perl; -&c3-perl-patch; &c3-m4; &c3-autoconf; &c3-automake; diff --git a/chapter04/perl-patch.xml b/chapter04/perl-patch.xml deleted file mode 100644 index 451eed9ce..000000000 --- a/chapter04/perl-patch.xml +++ /dev/null @@ -1,3 +0,0 @@ -Perl Patch (&perl-version;) - &perl-patch-size;: - - diff --git a/chapter05/gcc-exp.xml b/chapter05/gcc-exp.xml index 254e713ff..271a30663 100644 --- a/chapter05/gcc-exp.xml +++ b/chapter05/gcc-exp.xml @@ -1,9 +1,10 @@ Command explanations -make BOOT_LDFLAGS=-static: -This is the equivalent to make LDFLAGS=-static as we use with other -packages to compile them statically. +patch -Np1 -i ../gcc-&gcc-patch-version;.patch: +This patch fixes a few bug fixes. See + for +more details. --prefix=/static: This is NOT a typo. GCC hard codes some paths while compiling and so we need to pass /static as the @@ -18,9 +19,13 @@ the --enable-languages parameter may be omitted. --enable-threads=posix: This enables C++ exception handling for multithreaded code. -echo "#define HAVE_GAS_HIDDEN 1": -This defines the .hidden assembler directive so that we don't build -a faulty Glibc later on. +--enable-__cxa-atexit: This option will result +in C++ shared libraries and C++ programs that are interoperable with other +linux distributions. + +make BOOT_LDFLAGS=-static: +This is the equivalent to make LDFLAGS=-static as we use with other +packages to compile them statically. ln -s gcc $LFS/static/bin/cc: This creates the $LFS/static/bin/gcc symlink which some packages need. diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml index c0a9c97ef..021dd9b03 100644 --- a/chapter05/gcc-inst.xml +++ b/chapter05/gcc-inst.xml @@ -10,11 +10,12 @@ been warned. Install GCC by running the following commands: -mkdir ../gcc-build && +patch -Np1 -i ../gcc-&gcc-patch-version;.patch && +mkdir ../gcc-build && cd ../gcc-build && ../gcc-&gcc-version;/configure --prefix=/static --enable-languages=c \ -   --disable-nls --disable-shared --enable-threads=posix && -echo "#define HAVE_GAS_HIDDEN 1" >> gcc/auto-host.h && +   --disable-nls --disable-shared --enable-threads=posix \ +   --enable-__cxa-atexit && make BOOT_LDFLAGS=-static bootstrap && make prefix=$LFS/static install && ln -s gcc $LFS/static/bin/cc diff --git a/chapter06/gcc-inst.xml b/chapter06/gcc-inst.xml index ae56e55c7..60a486886 100644 --- a/chapter06/gcc-inst.xml +++ b/chapter06/gcc-inst.xml @@ -18,11 +18,12 @@ are available. Note: the build of other compilers is not tested by the people who actively work on LFS. -mkdir ../gcc-build && +patch -Np1 -i ../gcc-&gcc-patch-version;.patch && +mkdir ../gcc-build && cd ../gcc-build && ../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \     --enable-languages=c,c++ --enable-threads=posix \ -    --with-slibdir=/lib && +    --with-slibdir=/lib --enable-_cxa-atexit && make bootstrap && make install && ln -s ../usr/bin/cpp /lib && diff --git a/chapter06/glibc-exp.xml b/chapter06/glibc-exp.xml index 0ff5dd789..3eb7b17b0 100644 --- a/chapter06/glibc-exp.xml +++ b/chapter06/glibc-exp.xml @@ -13,6 +13,10 @@ username to userid resolving isn't working yet, so a chown root file will fail, however it'll work fine if you use straight IDs. +The patch also contains a few bug fixes and security fixes. More +details can be found on + + touch /etc/ld.so.conf: One of the final steps of the Glibc installation is running ldconfig to update the dynamic loader cache. If this file doesn't exist, the installation will abort with an error diff --git a/chapter06/groff-exp.xml b/chapter06/groff-exp.xml index 99a7c8281..2db6716bc 100644 --- a/chapter06/groff-exp.xml +++ b/chapter06/groff-exp.xml @@ -1,6 +1,10 @@ Command explanations +make PROCESSEDEXAMPLEFILES="": Groff has a few +extra dependencies that we don't install with LFS. This option disable the +need for those tools. + ln -s ...: These symlinks are needed for some xman and other groff/man document programs to work properly. diff --git a/chapter06/groff-inst.xml b/chapter06/groff-inst.xml index bb995fa75..562f20090 100644 --- a/chapter06/groff-inst.xml +++ b/chapter06/groff-inst.xml @@ -4,8 +4,8 @@ Install Groff by running the following commands: ./configure --prefix=/usr && -make && -make install && +make PROCESSEDEXAMPLEFILES="" && +make PROCESSEDEXAMPLEFILES="" install && ln -s soelim /usr/bin/zsoelim && ln -s eqn /usr/bin/geqn && ln -s tbl /usr/bin/gtbl diff --git a/chapter06/makedev-inst.xml b/chapter06/makedev-inst.xml index ccc148595..a4d56ff7b 100644 --- a/chapter06/makedev-inst.xml +++ b/chapter06/makedev-inst.xml @@ -6,9 +6,11 @@ won't create a directory for you to cd into. Create the device files by running the following commands: -cp MAKEDEV-&makedev-version; /dev/MAKEDEV && +ln -s /static/bin/bash /bin/bash && +cp MAKEDEV-&makedev-version; /dev/MAKEDEV && cd /dev && -chmod 754 MAKEDEV +chmod 754 MAKEDEV && +rm /bin/bash Now, depending on whether you are going to use devpts or not, you can run one of two commands: diff --git a/chapter06/perl-exp.xml b/chapter06/perl-exp.xml deleted file mode 100644 index c41ccb921..000000000 --- a/chapter06/perl-exp.xml +++ /dev/null @@ -1,8 +0,0 @@ - -Command explanations - -patch -Np1 -i ../perl-&perl-patch-version;.patch: This -patch fixes a compile problem with GCC-3.1. - - - diff --git a/chapter06/perl-inst.xml b/chapter06/perl-inst.xml index bac124b7c..ef3fa7bbe 100644 --- a/chapter06/perl-inst.xml +++ b/chapter06/perl-inst.xml @@ -7,8 +7,7 @@ commands. Install Perl by running the following commands: -patch -Np1 -i ../perl-&perl-patch-version;.patch && -./configure.gnu --prefix=/usr && +./configure.gnu --prefix=/usr && make && make install diff --git a/chapter06/perl.xml b/chapter06/perl.xml index 33b87163a..5a56590ef 100644 --- a/chapter06/perl.xml +++ b/chapter06/perl.xml @@ -6,7 +6,6 @@ Estimated required disk space: &perl-compsize; &c6-perl-inst; -&c6-perl-exp; &aa-perl-desc; &aa-perl-dep; diff --git a/entities/automake.ent b/entities/automake.ent index 771f6f72d..6bcd409ed 100644 --- a/entities/automake.ent +++ b/entities/automake.ent @@ -8,10 +8,10 @@ - + - + diff --git a/entities/gcc.ent b/entities/gcc.ent index 4cb59ae07..31f92a3ac 100644 --- a/entities/gcc.ent +++ b/entities/gcc.ent @@ -13,10 +13,12 @@ - + - + + + diff --git a/entities/glibc.ent b/entities/glibc.ent index 0b15eb6ce..e725d6dd2 100644 --- a/entities/glibc.ent +++ b/entities/glibc.ent @@ -17,8 +17,8 @@ - - + + diff --git a/entities/groff.ent b/entities/groff.ent index 6f552d8c1..6e7826afb 100644 --- a/entities/groff.ent +++ b/entities/groff.ent @@ -9,10 +9,10 @@ - + - + diff --git a/entities/makedev.ent b/entities/makedev.ent index ece3cee6d..414f999bd 100644 --- a/entities/makedev.ent +++ b/entities/makedev.ent @@ -9,7 +9,7 @@ - + diff --git a/entities/perl.ent b/entities/perl.ent index ac1e633e0..88fb97420 100644 --- a/entities/perl.ent +++ b/entities/perl.ent @@ -3,19 +3,16 @@ - - + - - - + diff --git a/entities/utillinux.ent b/entities/utillinux.ent index 5349fa323..aabb75df0 100644 --- a/entities/utillinux.ent +++ b/entities/utillinux.ent @@ -12,10 +12,10 @@ - + - + diff --git a/index.xml b/index.xml index 9e8396fbe..c5cf6a045 100644 --- a/index.xml +++ b/index.xml @@ -15,9 +15,9 @@ - - - + + +