I run a (make, make check,) when ever possable all scripts compleate sucessfully.
Here is a kinda log that i use to know what issues i have.
Also i have to exacute coreutils twice in chapter 6.
Chapter 5
------------------
1. Prep
2. Bashprep1
3. Bashprep2
4. Bashprep3
5. Binutils-2.16-Pass1
6. GCC-3.4.4-Pass1
7. Linux-Libc-Headers-2.6.11.2
8. Glibc-2.3.5
9. Adjusting1
10. Adjusting2
11. Adjusting3
12. Sanity-Check
13. Tcl-8.4.9
14. Expect-5.43.0
15. DejaGNU-1.4.4
16. GCC-3.4.4-Pass2
17. Sanity-Check
18. Binutils-2.16-Pass2
19. Gawk-3.1.4
20. Coreutils-5.2.1
21. Bzip2-1.0.3
22. Gzip-1.3.5
23. Diffutils-2.8.1
24. Findutils-4.2.20
25. Make-3.80
26. Grep-2.5.1a
27. Sed-4.1.4
28. Gettext-0.14.4
29. Ncurses-5.4
30. Patch-2.5
31. Tar-1.15.1
32. Texinfo-4.8
33. Bash-3.0
34. M4-1.4.3
35. Util-linux-2.12q
36. Perl-5.8.6
37. Stripping
Chapter 6
--------------------
38. Mount-Vr-Kernel
39. Chroot
<--------------Note copy scripts over to /mnt/lfs and exacute scripts useing sh first untill script 42 is exacuted.
40. Ownership
41. Make-Dirs
42. Sym-Links
<--------------Note scripts can be ran normaly now.
43. Passwd
44. Group
45. Prompt
46. Logs
47. Mkdev
48. Linux-Libc-Headers-2.6.11.2
49. Man-pages-2.02
50. Glibc-2.3.5
51. Nsswitch
52. Time-Zone-Info
<--------------Note replace [xxx] in script 53 with script 52 output.
53. Localtime
54. Ld.so.conf
55. Adjusting4
56. Specs
57. Sanity-Check
58. Ptys
59. Binutils-2.16
60. Gcc-3.4.4
61. Sanity-Check
<-------------Note if script 62 fails at the end run it again.
62. Coreutils-5.2.1
63. Zlib-1.2.2
64. Mktemp-1.5
65. Iana-etc-1.04
66. Findutils-4.2
67. Gawk-3.1.4
68. Ncurses-5.4
69. Readline-5.0
70. Vim-6.3
71. Vim-Config
72. M4-1.4.3
73. Bison-2.0
74. Less-382
75. Groff-1.19.1
76. Sed-4.1.4
77. Flex-2.5.31
78. Flex-To-Lex
79. Gettext-0.14.4
80. Inetutils-1.4.2
81. IPRoute2-2.6.11-050330
82. Perl-5.8.7
83. Texinfo-4.8
84. Autoconf-2.59
85. Automake-1.9.5
<-------------Note if bash doesnt return to the Build-script dir after compleating last command cd there.
86. Bash-3.0
87. File-4.13
88. Libtool-1.5.18
89. Bzip2-1.0.3
90. Diffutils-2.8.1
91. Kbd-1.12
92. E2fsprogs-1.37
93. Grep-2.5.1a
94. Grub-0.97
95. Gzip-1.3.5
<-------------Note Network devices are not yet supported by lfs boot scripts (rebuild and replace with bsd scripts).
96. Hotplug-2004_09_23
97. Man-1.5p
98. Make-3.80
99. Module-Init-Tools-3.1
100. Patch-2.5.4
101. Procps-3.2.5
102. Psmisc-21.6
103. Shadow-4.0.7
104. Sysklogd-1.4.1
105. Sysklogd-Conf
106. Sysvinit-2.86
107. Sysvinit-Conf
108. Tar-1.15.1
<--------------Note udev may give an error at the end of the script but it is ignored.
109. Udev-058
110. Util-linux-2.12q
111. Stripping2
112. Kernel Build
113. Grub Setup
Done
As you can see coreutils is the only script that has a problem it dosnt fail it just doesnt mv everything over the first time stateing that such and such allready exists.
Here is the script.
-------------------------------------------------------------------
#!/bin/bash
cd /sources
tar -xvzf coreutils-5.2.1.tar.gz
cd /sources/coreutils-5.2.1
patch -Np1 -i ../coreutils-5.2.1-uname-2.patch
patch -Np1 -i ../coreutils-5.2.1-suppress_uptime_kill_su-1.patch
DEFAULT_POSIX2_VERSION=199209 ./configure --prefix=/usr
make
echo "dummy1:x:1000:" >> /etc/group
echo "dummy2:x:1001:dummy" >> /etc/group
echo "dummy:x:1000:1000:::/bin/bash" >> /etc/passwd
make NON_ROOT_USERNAME=dummy check-root
src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"
sed -i '/dummy/d' /etc/passwd /etc/group
make install
mv /usr/bin/{[,basename,cat,chgrp,chmod,chown,cp,dd,df} /bin
mv /usr/bin/{date,echo,false,head,hostname,install,ln} /bin
mv /usr/bin/{ls,mkdir,mknod,mv,pwd,rm,rmdir,sync} /bin
mv /usr/bin/{sleep,stty,test,touch,true,uname} /bin
mv /usr/bin/chroot /usr/sbin
ln -s ../../bin/install /usr/bin
Everything after make install fails the first time i exacute the corutils script in chapter 6 so i just run it again and then it copys everything over ok.
Note Network devices are not yet supported by lfs boot scripts (rebuild and replace with bsd scripts). <--- I have not yet done this i was going to replace the Lfs boot script with bsd style boot scripts after i got everything working right.
Last edited by comtux; 06-23-2005 at 12:41 AM.
|