- Timestamp:
- May 27, 2006, 9:02:20 PM (19 years ago)
- Branches:
- master
- Children:
- d9bec84
- Parents:
- f6c417f
- Location:
- BOOK
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/bootable/arm/kernel.xml
rf6c417f r3349a3a 54 54 url="&blfs-root;view/svn/longindex.html#kernel-config-index"/>:</para> 55 55 56 <screen os="i"><userinput>make menuconfig</userinput></screen>56 <screen os="i"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}- menuconfig</userinput></screen> 57 57 58 58 <para os="j">Alternatively, <command>make oldconfig</command> may be more … … 69 69 <para os="m">Compile the kernel image and modules:</para> 70 70 71 <screen os="n"><userinput>make </userinput></screen>71 <screen os="n"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}-</userinput></screen> 72 72 73 73 <para os="o">If using kernel modules, an … … 97 97 them:</para> 98 98 99 <screen os="t"><userinput>make modules_install</userinput></screen> 99 <screen os="t"><userinput>make ARCH=arm CROSS_COMPILE=${LFS_TARGET}- \ 100 INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen> 100 101 101 102 <para os="u">After kernel compilation is complete, additional steps are 102 103 required to complete the installation. Some files need to be copied to 103 the <filename class="directory"> /boot</filename> directory.</para>104 the <filename class="directory">${LFS}/boot</filename> directory.</para> 104 105 105 106 <para os="v">Issue the following command to install the kernel:</para> 106 107 107 <screen><userinput>cp arch/i386/boot/bzImage /boot/lfskernel-&linux-version;</userinput></screen>108 <screen><userinput>cp arch/i386/boot/bzImage ${LFS}/boot/lfskernel-&linux-version;</userinput></screen> 108 109 109 110 <para os="w"><filename>System.map</filename> is a symbol file for the kernel. … … 112 113 kernel. Issue the following command to install the map file:</para> 113 114 114 <screen os="w1"><userinput>cp System.map /boot/System.map-&linux-version;</userinput></screen>115 <screen os="w1"><userinput>cp System.map ${LFS}/boot/System.map-&linux-version;</userinput></screen> 115 116 116 117 <para os="x">The kernel configuration file <filename>.config</filename> … … 119 120 It is a good idea to keep this file for future reference:</para> 120 121 121 <screen os="x1"><userinput>cp .config /boot/config-&linux-version;</userinput></screen> 122 123 <para os="y">It is important to note that the files in the kernel source 124 directory are not owned by <systemitem class="username">root</systemitem>. 125 Whenever a package is unpacked as user <systemitem 126 class="username">root</systemitem> (like we did 127 inside chroot), the files have the user and group IDs of whatever 128 they were on the packager's computer. This is usually not a problem 129 for any other package to be installed because the source tree is 130 removed after the installation. However, the Linux source tree is 131 often retained for a long time. Because of this, there is a chance 132 that whatever user ID the packager used will be assigned to somebody 133 on the machine. That person would then have write access to the kernel 134 source.</para> 135 136 <para os="y1">If the kernel source tree is going to retained, run 137 <command>chown -R 0:0</command> on the <filename 138 class="directory">linux-&linux-version;</filename> directory to 139 ensure all files are owned by user <systemitem 140 class="username">root</systemitem>.</para> 122 <screen os="x1"><userinput>cp .config ${LFS}/boot/config-&linux-version;</userinput></screen> 141 123 142 124 <warning os="z"> -
BOOK/cross-tools/common/file.xml
rf6c417f r3349a3a 14 14 <title>Installation of File</title> 15 15 16 <note> You only need to install <package>file</package> if your host has17 a version other then file-&file-version; installed.</ note>16 <note><para>You only need to install <package>file</package> if your host has 17 a version other then file-&file-version; installed.</para></note> 18 18 19 19 <para>Prepare File for compilation:</para> … … 31 31 </sect2> 32 32 33 <sect2 role="content"> 34 <title/> 35 36 <para>Details on this package are located in <xref 37 linkend="contents-file" role="."/></para> 38 39 </sect2> 40 33 41 </sect1> -
BOOK/cross-tools/common/glibc.xml
rf6c417f r3349a3a 370 370 <para>Can be used to create a stack trace when a program 371 371 terminates with a segmentation fault</para> 372 <indexterm zone="ch- system-glibc catchsegv">372 <indexterm zone="ch-cross-tools-glibc catchsegv"> 373 373 <primary sortas="b-catchsegv">catchsegv</primary> 374 374 </indexterm> … … 380 380 <listitem> 381 381 <para>Generates message catalogues</para> 382 <indexterm zone="ch- system-glibc gencat">382 <indexterm zone="ch-cross-tools-glibc gencat"> 383 383 <primary sortas="b-gencat">gencat</primary> 384 384 </indexterm> … … 391 391 <para>Displays the system configuration values for file system specific 392 392 variables</para> 393 <indexterm zone="ch- system-glibc getconf">393 <indexterm zone="ch-cross-tools-glibc getconf"> 394 394 <primary sortas="b-getconf">getconf</primary> 395 395 </indexterm> … … 401 401 <listitem> 402 402 <para>Gets entries from an administrative database</para> 403 <indexterm zone="ch- system-glibc getent">403 <indexterm zone="ch-cross-tools-glibc getent"> 404 404 <primary sortas="b-getent">getent</primary> 405 405 </indexterm> … … 411 411 <listitem> 412 412 <para>Performs character set conversion</para> 413 <indexterm zone="ch- system-glibc iconv">413 <indexterm zone="ch-cross-tools-glibc iconv"> 414 414 <primary sortas="b-iconv">iconv</primary> 415 415 </indexterm> … … 422 422 <para>Creates fastloading <command>iconv</command> module configuration 423 423 files</para> 424 <indexterm zone="ch- system-glibc iconvconfig">424 <indexterm zone="ch-cross-tools-glibc iconvconfig"> 425 425 <primary sortas="b-iconvconfig">iconvconfig</primary> 426 426 </indexterm> … … 432 432 <listitem> 433 433 <para>Configures the dynamic linker runtime bindings</para> 434 <indexterm zone="ch- system-glibc ldconfig">434 <indexterm zone="ch-cross-tools-glibc ldconfig"> 435 435 <primary sortas="b-ldconfig">ldconfig</primary> 436 436 </indexterm> … … 443 443 <para>Reports which shared libraries are required 444 444 by each given program or shared library</para> 445 <indexterm zone="ch- system-glibc ldd">445 <indexterm zone="ch-cross-tools-glibc ldd"> 446 446 <primary sortas="b-ldd">ldd</primary> 447 447 </indexterm> … … 453 453 <listitem> 454 454 <para>Assists <command>ldd</command> with object files</para> 455 <indexterm zone="ch- system-glibc lddlibc4">455 <indexterm zone="ch-cross-tools-glibc lddlibc4"> 456 456 <primary sortas="b-lddlibc4">lddlibc4</primary> 457 457 </indexterm> … … 464 464 <para>Tells the compiler to enable or disable the use of POSIX locales 465 465 for built-in operations</para> 466 <indexterm zone="ch- system-glibc locale">466 <indexterm zone="ch-cross-tools-glibc locale"> 467 467 <primary sortas="b-locale">locale</primary> 468 468 </indexterm> … … 474 474 <listitem> 475 475 <para>Compiles locale specifications</para> 476 <indexterm zone="ch- system-glibc localedef">476 <indexterm zone="ch-cross-tools-glibc localedef"> 477 477 <primary sortas="b-localedef">localedef</primary> 478 478 </indexterm> … … 485 485 <para>Reads and interprets a memory trace file and 486 486 displays a summary in human-readable format</para> 487 <indexterm zone="ch- system-glibc mtrace">487 <indexterm zone="ch-cross-tools-glibc mtrace"> 488 488 <primary sortas="b-mtrace">mtrace</primary> 489 489 </indexterm> … … 496 496 <para>A daemon that provides a cache for the most common name 497 497 service requests</para> 498 <indexterm zone="ch- system-glibc nscd">498 <indexterm zone="ch-cross-tools-glibc nscd"> 499 499 <primary sortas="b-nscd">nscd</primary> 500 500 </indexterm> … … 507 507 <para>Checks whether or not secure mode is necessary for NIS+ 508 508 lookup</para> 509 <indexterm zone="ch- system-glibc nscd_nischeck">509 <indexterm zone="ch-cross-tools-glibc nscd_nischeck"> 510 510 <primary sortas="b-nscd_nischeck">nscd_nischeck</primary> 511 511 </indexterm> … … 517 517 <listitem> 518 518 <para>Dumps information generated by PC profiling</para> 519 <indexterm zone="ch- system-glibc pcprofiledump">519 <indexterm zone="ch-cross-tools-glibc pcprofiledump"> 520 520 <primary sortas="b-pcprofiledump">pcprofiledump</primary> 521 521 </indexterm> … … 528 528 <para>A helper program for <command>grantpt</command> to set the owner, 529 529 group and access permissions of a slave pseudo terminal</para> 530 <indexterm zone="ch- system-glibc pt_chown">530 <indexterm zone="ch-cross-tools-glibc pt_chown"> 531 531 <primary sortas="b-pt_chown">pt_chown</primary> 532 532 </indexterm> … … 539 539 <para>Generates C code to implement the Remote Procecure Call (RPC) 540 540 protocol</para> 541 <indexterm zone="ch- system-glibc rpcgen">541 <indexterm zone="ch-cross-tools-glibc rpcgen"> 542 542 <primary sortas="b-rpcgen">rpcgen</primary> 543 543 </indexterm> … … 549 549 <listitem> 550 550 <para>Makes an RPC call to an RPC server</para> 551 <indexterm zone="ch- system-glibc rpcinfo">551 <indexterm zone="ch-cross-tools-glibc rpcinfo"> 552 552 <primary sortas="b-rpcinfo">rpcinfo</primary> 553 553 </indexterm> … … 559 559 <listitem> 560 560 <para>A statically linked <command>ln</command> program</para> 561 <indexterm zone="ch- system-glibc sln">561 <indexterm zone="ch-cross-tools-glibc sln"> 562 562 <primary sortas="b-sln">sln</primary> 563 563 </indexterm> … … 569 569 <listitem> 570 570 <para>Reads and displays shared object profiling data</para> 571 <indexterm zone="ch- system-glibc sprof">571 <indexterm zone="ch-cross-tools-glibc sprof"> 572 572 <primary sortas="b-sprof">sprof</primary> 573 573 </indexterm> … … 580 580 <para>Asks the user about the location of the 581 581 system and reports the corresponding time zone description</para> 582 <indexterm zone="ch- system-glibc tzselect">582 <indexterm zone="ch-cross-tools-glibc tzselect"> 583 583 <primary sortas="b-tzselect">tzselect</primary> 584 584 </indexterm> … … 591 591 <para>Traces the execution of a program by 592 592 printing the currently executed function</para> 593 <indexterm zone="ch- system-glibc xtrace">593 <indexterm zone="ch-cross-tools-glibc xtrace"> 594 594 <primary sortas="b-xtrace">xtrace</primary> 595 595 </indexterm> … … 601 601 <listitem> 602 602 <para>The time zone dumper</para> 603 <indexterm zone="ch- system-glibc zdump">603 <indexterm zone="ch-cross-tools-glibc zdump"> 604 604 <primary sortas="b-zdump">zdump</primary> 605 605 </indexterm> … … 611 611 <listitem> 612 612 <para>The time zone compiler</para> 613 <indexterm zone="ch- system-glibc zic">613 <indexterm zone="ch-cross-tools-glibc zic"> 614 614 <primary sortas="b-zic">zic</primary> 615 615 </indexterm> … … 621 621 <listitem> 622 622 <para>The helper program for shared library executables</para> 623 <indexterm zone="ch- system-glibc ld.so">623 <indexterm zone="ch-cross-tools-glibc ld.so"> 624 624 <primary sortas="c-ld.so">ld.so</primary> 625 625 </indexterm> … … 631 631 <listitem> 632 632 <para>Used by programs, such as Mozilla, to solve broken locales</para> 633 <indexterm zone="ch- system-glibc libBrokenLocale">633 <indexterm zone="ch-cross-tools-glibc libBrokenLocale"> 634 634 <primary sortas="c-libBrokenLocale">libBrokenLocale</primary> 635 635 </indexterm> … … 641 641 <listitem> 642 642 <para>The segmentation fault signal handler</para> 643 <indexterm zone="ch- system-glibc libSegFault">643 <indexterm zone="ch-cross-tools-glibc libSegFault"> 644 644 <primary sortas="c-libSegFault">libSegFault</primary> 645 645 </indexterm> … … 651 651 <listitem> 652 652 <para>An asynchronous name lookup library</para> 653 <indexterm zone="ch- system-glibc libanl">653 <indexterm zone="ch-cross-tools-glibc libanl"> 654 654 <primary sortas="c-libanl">libanl</primary> 655 655 </indexterm> … … 663 663 in order to run certain Berkey Software Distribution (BSD) programs 664 664 under Linux</para> 665 <indexterm zone="ch- system-glibc libbsd-compat">665 <indexterm zone="ch-cross-tools-glibc libbsd-compat"> 666 666 <primary sortas="c-libbsd-compat">libbsd-compat</primary> 667 667 </indexterm> … … 673 673 <listitem> 674 674 <para>The main C library</para> 675 <indexterm zone="ch- system-glibc libc">675 <indexterm zone="ch-cross-tools-glibc libc"> 676 676 <primary sortas="c-libc">libc</primary> 677 677 </indexterm> … … 683 683 <listitem> 684 684 <para>The cryptography library</para> 685 <indexterm zone="ch- system-glibc libcrypt">685 <indexterm zone="ch-cross-tools-glibc libcrypt"> 686 686 <primary sortas="c-libcrypt">libcrypt</primary> 687 687 </indexterm> … … 693 693 <listitem> 694 694 <para>The dynamic linking interface library</para> 695 <indexterm zone="ch- system-glibc libdl">695 <indexterm zone="ch-cross-tools-glibc libdl"> 696 696 <primary sortas="c-libdl">libdl</primary> 697 697 </indexterm> … … 703 703 <listitem> 704 704 <para>A runtime library for <command>g++</command></para> 705 <indexterm zone="ch- system-glibc libg">705 <indexterm zone="ch-cross-tools-glibc libg"> 706 706 <primary sortas="c-libg">libg</primary> 707 707 </indexterm> … … 714 714 <para>The Institute of Electrical and Electronic Engineers (IEEE) 715 715 floating point library</para> 716 <indexterm zone="ch- system-glibc libieee">716 <indexterm zone="ch-cross-tools-glibc libieee"> 717 717 <primary sortas="c-libieee">libieee</primary> 718 718 </indexterm> … … 724 724 <listitem> 725 725 <para>The mathematical library</para> 726 <indexterm zone="ch- system-glibc libm">726 <indexterm zone="ch-cross-tools-glibc libm"> 727 727 <primary sortas="c-libm">libm</primary> 728 728 </indexterm> … … 734 734 <listitem> 735 735 <para>Contains code run at boot</para> 736 <indexterm zone="ch- system-glibc libmcheck">736 <indexterm zone="ch-cross-tools-glibc libmcheck"> 737 737 <primary sortas="c-libmcheck">libmcheck</primary> 738 738 </indexterm> … … 745 745 <para>Used by <command>memusage</command> to help collect 746 746 information about the memory usage of a program</para> 747 <indexterm zone="ch- system-glibc libmemusage">747 <indexterm zone="ch-cross-tools-glibc libmemusage"> 748 748 <primary sortas="c-libmemusage">libmemusage</primary> 749 749 </indexterm> … … 755 755 <listitem> 756 756 <para>The network services library</para> 757 <indexterm zone="ch- system-glibc libnsl">757 <indexterm zone="ch-cross-tools-glibc libnsl"> 758 758 <primary sortas="c-libnsl">libnsl</primary> 759 759 </indexterm> … … 767 767 resolving host names, user names, group names, aliases, services, 768 768 protocols, etc.</para> 769 <indexterm zone="ch- system-glibc libnss">769 <indexterm zone="ch-cross-tools-glibc libnss"> 770 770 <primary sortas="c-libnss">libnss</primary> 771 771 </indexterm> … … 778 778 <para>Contains profiling functions used to track the amount of CPU 779 779 time spent in specific source code lines</para> 780 <indexterm zone="ch- system-glibc libpcprofile">780 <indexterm zone="ch-cross-tools-glibc libpcprofile"> 781 781 <primary sortas="c-libpcprofile">libpcprofile</primary> 782 782 </indexterm> … … 788 788 <listitem> 789 789 <para>The POSIX threads library</para> 790 <indexterm zone="ch- system-glibc libpthread">790 <indexterm zone="ch-cross-tools-glibc libpthread"> 791 791 <primary sortas="c-libpthread">libpthread</primary> 792 792 </indexterm> … … 799 799 <para>Contains functions for creating, sending, and interpreting 800 800 packets to the Internet domain name servers</para> 801 <indexterm zone="ch- system-glibc libresolv">801 <indexterm zone="ch-cross-tools-glibc libresolv"> 802 802 <primary sortas="c-libresolv">libresolv</primary> 803 803 </indexterm> … … 809 809 <listitem> 810 810 <para>Contains functions providing miscellaneous RPC services</para> 811 <indexterm zone="ch- system-glibc librpcsvc">811 <indexterm zone="ch-cross-tools-glibc librpcsvc"> 812 812 <primary sortas="c-librpcsvc">librpcsvc</primary> 813 813 </indexterm> … … 820 820 <para>Contains functions providing most of the interfaces specified by 821 821 the POSIX.1b Realtime Extension</para> 822 <indexterm zone="ch- system-glibc librt">822 <indexterm zone="ch-cross-tools-glibc librt"> 823 823 <primary sortas="c-librt">librt</primary> 824 824 </indexterm> … … 831 831 <para>Contains functions useful for 832 832 building debuggers for multi-threaded programs</para> 833 <indexterm zone="ch- system-glibc libthread_db">833 <indexterm zone="ch-cross-tools-glibc libthread_db"> 834 834 <primary sortas="c-libthread_db">libthread_db</primary> 835 835 </indexterm> … … 842 842 <para>Contains code for <quote>standard</quote> functions used in 843 843 many different Unix utilities</para> 844 <indexterm zone="ch- system-glibc libutil">844 <indexterm zone="ch-cross-tools-glibc libutil"> 845 845 <primary sortas="c-libutil">libutil</primary> 846 846 </indexterm> -
BOOK/final-preps/creatingfiles.xml
rf6c417f r3349a3a 9 9 <?dbhtml filename="creatingfiles.html"?> 10 10 11 <title>Creating Essential Files</title> 11 <title>Creating the passwd, group, and log Files</title> 12 13 <indexterm zone="ch-final-preps-creatingfiles"> 14 <primary sortas="e-/etc/passwd">/etc/passwd</primary> 15 </indexterm> 16 17 <indexterm zone="ch-final-preps-creatingfiles"> 18 <primary sortas="e-/etc/group">/etc/group</primary> 19 </indexterm> 20 21 <indexterm zone="ch-final-preps-creatingfiles"> 22 <primary sortas="e-/var/run/utmp">/var/run/utmp</primary> 23 </indexterm> 24 25 <indexterm zone="ch-final-preps-creatingfiles"> 26 <primary sortas="e-${LFS}/var/log/btmp">/var/log/btmp</primary> 27 </indexterm> 28 29 <indexterm zone="ch-final-preps-creatingfiles"> 30 <primary sortas="e-/var/log/lastlog">/var/log/lastlog</primary> 31 </indexterm> 32 33 <indexterm zone="ch-final-preps-creatingfiles"> 34 <primary sortas="e-/var/log/wtmp">/var/log/wtmp</primary> 35 </indexterm> 12 36 13 37 <para>A proper Linux system maintains a list of the mounted file systems in -
BOOK/final-system/common/bash.xml
rf6c417f r3349a3a 28 28 install HTML documentation, issue the following commands:</para> 29 29 30 <screen os="b"><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz && 31 sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \ 32 Makefile.in</userinput></screen> 30 <screen os="b"><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz 31 cp Makefile.in{,.orig} 32 sed "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \ 33 Makefile.in.orig > Makefile.in</userinput></screen> 33 34 34 35 <para os="p1">The following patch contains updates from the maintainer. The -
BOOK/final-system/common/bzip2.xml
rf6c417f r3349a3a 48 48 49 49 <screen os="s2"><userinput>cp Makefile{,.orig} 50 sed -e "/^all:/s/ test//" Makefile.orig %gt; Makefile</userinput></screen>50 sed -e "/^all:/s/ test//" Makefile.orig > Makefile</userinput></screen> 51 51 52 52 <para os="a">The Bzip2 package does not contain a <command>configure</command> -
BOOK/final-system/common/gzip.xml
rf6c417f r3349a3a 42 42 that the new location gets placed into the script:</para> 43 43 44 <screen os="d"><userinput>sed -i 's@"BINDIR"@/bin@g' gzexe.in</userinput></screen> 44 <screen os="d"><userinput>cp gzexec.in{,.orig} 45 sed 's@"BINDIR"@/bin@g' gzexe.in.orig > gzexec.in</userinput></screen> 45 46 46 47 <para os="e">Compile the package:</para> -
BOOK/final-system/common/inetutils.xml
rf6c417f r3349a3a 35 35 36 36 <screen os="p4"><userinput>patch -Np1 -i ../&inetutils-gcc4_fixes-patch;</userinput></screen> 37 38 <para os="s1">The following set of seds prevent binaries from being installed as root</para> 39 40 <screen os="s2"><userinput>for dir in ping rcp rlogin rsh; do 41 cp ${dir}/Makefile.in{,.orig} 42 sed '/^SUIDMODE =/s/-o root//' ${dir}/Makefile.in.orig > ${dir}/Makefile.in 43 done</userinput></screen> 37 44 38 45 <para os="a">Prepare Inetutils for compilation:</para> -
BOOK/final-system/common/iproute2.xml
rf6c417f r3349a3a 26 26 <title>Installation of IPRoute2</title> 27 27 28 <para os="s1">The <command>arpd</command> binary included in this package is 28 <para os="s1">The following command prevents install trying to strip the binaries</para> 29 30 <screen os="s2"><userinput>for dir in ip misc tc; do 31 cp ${dir}/Makefile{,.orig} 32 sed 's/0755 -s/0755/' ${dir}/Makefile.orig > ${dir}/Makefile 33 done</userinput></screen> 34 35 <para os="s3">The <command>arpd</command> binary included in this package is 29 36 dependent on Berkeley DB. Because <command>arpd</command> is not a 30 37 very common requirement on a base Linux system, remove the dependency … … 34 41 url="&blfs-root;view/svn/server/databases.html#db"/>.</para> 35 42 36 <screen os="s2"><userinput>sed -i '/^TARGETS/s@arpd@@g' misc/Makefile</userinput></screen> 43 <screen os="s4"><userinput>cp misc/Makefile{,.orig} 44 sed '/^TARGETS/s@arpd@@g' misc/Makefile.orig > misc/Makefile</userinput></screen> 37 45 38 46 <para os="a">Compile the package:</para> -
BOOK/final-system/common/less.xml
rf6c417f r3349a3a 49 49 <para os="f">Install the package:</para> 50 50 51 <screen os="g"><userinput>make DESTDIR=${LFS}install</userinput></screen>51 <screen os="g"><userinput>make prefixR=${LFS}/usr install</userinput></screen> 52 52 53 53 <para os="h">Move less to /bin:</para> -
BOOK/final-system/common/man.xml
rf6c417f r3349a3a 33 33 properly handled by Less:</para> 34 34 35 <screen os="c"><userinput>sed -i 's@-is@&R@g' configure</userinput></screen> 35 <screen os="c"><userinput>cp configure{,.orig} 36 sed 's@-is@&R@g' configure.orig > configure</userinput></screen> 36 37 37 38 <para os="d">Another <command>sed</command> substitution comments out the … … 40 41 <command>whatis</command>:</para> 41 42 42 <screen os="e"><userinput>sed -i 's@MANPATH./usr/man@#&@g' src/man.conf.in</userinput></screen> 43 <screen os="e"><userinput>cp src/man.conf.in{,.orig} 44 sed 's@MANPATH./usr/man@#&@g' src/man.conf.in.orig > src/man.conf.in</userinput></screen> 43 45 44 46 <para os="f">Finally, correct a syntax error in the 45 47 <command>makewhatis</command> script:</para> 46 48 47 <screen os="g"><userinput>sed -i 's@)) |@) |@' src/makewhatis.sh</userinput></screen> 49 <screen os="g"><userinput>cp src/makewhatis.sh{,.orig} 50 sed 's@)) |@) |@' src/makewhatis.sh.orig > src/makewhatis.sh</userinput></screen> 48 51 49 52 <para os="h">Prepare Man for compilation:</para> -
BOOK/final-system/common/mktemp.xml
rf6c417f r3349a3a 35 35 will try to strip the installed files:</para> 36 36 37 <screen os="s2"><userinput>cp Makefile {,.orig}38 sed -e 's/-s $(PROG)/$(PROG)/' Makefile. orig > Makefile</userinput></screen>37 <screen os="s2"><userinput>cp Makefile.in{,.orig} 38 sed -e 's/-s $(PROG)/$(PROG)/' Makefile.in.orig > Makefile.in</userinput></screen> 39 39 40 40 <para os="c">Prepare Mktemp for compilation:</para> -
BOOK/final-system/common/perl.xml
rf6c417f r3349a3a 26 26 <title>Installation of Perl</title> 27 27 28 < para os="w1"><important>Information on cross-compiling perl has not been added yet.</important></para>28 <important os="w1"><para>Information on cross-compiling perl has not been added yet.</para></important> 29 29 30 30 <para os="a00">Before starting to configure, create a basic -
BOOK/final-system/common/psmisc.xml
rf6c417f r3349a3a 51 51 <para os="f">Install the package:</para> 52 52 53 <screen os="g"><userinput>make install</userinput></screen>53 <screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen> 54 54 55 55 <para os="h">There is no reason for the <command>pstree</command> and -
BOOK/final-system/common/shadow.xml
rf6c417f r3349a3a 73 73 program and its man pages, as Coreutils provides a better version:</para> 74 74 75 <screen os="i"><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile 76 sed -i '/groups/d' man/Makefile</userinput></screen> 75 <screen os="i"><userinput>cp src/Makefile{,.orig} 76 sed 's/groups$(EXEEXT) //' src/Makefile.orig > src/Makefile 77 cp man/Makefile{,.orig} 78 sed '/groups/d' man/Makefile.orig > man/Makefile</userinput></screen> 77 79 78 80 <para os="j">Compile the package:</para> … … 121 123 dictionary:</para> 122 124 123 <screen><userinput>sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' ${LFS}/etc/login.defs</userinput></screen> 125 <screen><userinput>cp {LFS}/etc/login.defs login.defs.orig 126 sed 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' login.defs.orig > ${LFS}/etc/login.defs</userinput></screen> 124 127 </note> 125 128 -
BOOK/final-system/common/stripping.xml
rf6c417f r3349a3a 23 23 backup of the current situation.</para> 24 24 25 <para os="c">Before performing the stripping, take special care to ensure that 26 none of the binaries that are about to be stripped are running. If 27 unsure whether the user entered chroot with the command given in 28 <!-- <xref linkend="chapter-chroot" role=","/> --> first exit from 29 chroot:</para> 30 31 <screen os="d" role="nodump"><userinput>logout</userinput></screen> 32 33 <para os="e">Then reenter it with:</para> 34 35 <screen os="f" role="nodump"><userinput>chroot $LFS /tools/bin/env -i \ 36 HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ 37 PATH=/bin:/usr/bin:/sbin:/usr/sbin \ 38 /tools/bin/bash --login</userinput></screen> 39 40 <para os="g">Now the binaries and libraries can be safely stripped:</para> 41 42 <screen os="h"><userinput>/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \ 43 -exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen> 25 <screen os="c"><userinput>find ${LFS}/{,usr/}{bin,lib,sbin} -type f \ 26 -exec ${LFS_TARGET}-strip --strip-debug '{}' ';'</userinput></screen> 44 27 45 28 <para os="i">A large number of files will be reported as having their file -
BOOK/final-system/common/sysklogd.xml
rf6c417f r3349a3a 43 43 <para os="f">Install the package:</para> 44 44 45 <screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>45 <screen os="g"><userinput>make prefix=${LFS} install</userinput></screen> 46 46 47 47 </sect2> -
BOOK/final-system/common/sysvinit.xml
rf6c417f r3349a3a 36 36 instead:</para> 37 37 38 <screen os="b"><userinput>sed -i 's@Sending processes@& started by init@g' \ 39 src/init.c</userinput></screen> 38 <screen os="b"><userinput>cp src/init.c{,.orig} 39 sed 's@Sending processes@& started by init@g' \ 40 src/init.c.orig > src/init.c</userinput></screen> 40 41 41 42 <para os="s1">The following sed makes changes in the Makefile required for cross-compiling</para> … … 45 46 -e "s@/dev/initctl@${LFS}&@g" \ 46 47 -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3@g' \ 48 -e "s@/usr/lib@${LFS}&@" \ 47 49 src/Makefile.orig > src/Makefile</userinput></screen> 48 50 … … 54 56 <para os="e">Install the package:</para> 55 57 56 <screen os="f"><userinput>make -C src install</userinput></screen>58 <screen os="f"><userinput>make -C src ROOT=${LFS} INSTALL="install" install</userinput></screen> 57 59 58 60 </sect2> -
BOOK/final-system/common/util-linux.xml
rf6c417f r3349a3a 34 34 <command>hwclock</command> program FHS-compliant, run the following:</para> 35 35 36 <screen><userinput>sed -i 's@etc/adjtime@var/lib/hwclock/adjtime@g' \ 37 hwclock/hwclock.c 36 <screen><userinput>cp hwclock/hwclock.c{,.orig} 37 sed 's@etc/adjtime@var/lib/hwclock/adjtime@g' \ 38 hwclock/hwclock.c.orig > hwclock/hwclock.c 38 39 mkdir -pv /var/lib/hwclock</userinput></screen> 39 40 -
BOOK/final-system/common/vim.xml
rf6c417f r3349a3a 34 34 <title>Installation of Vim</title> 35 35 36 <important >The cross-compilation of vim is currently a mystery. Help would be greatly apreciated</important>36 <important os="w1"><para>The cross-compilation of vim is currently a mystery. Help would be greatly apreciated</para></important> 37 37 38 38 <para os="a">First, unpack both <filename>vim-&vim-version;.tar.bz2</filename> -
BOOK/final-system/common/zlib.xml
rf6c417f r3349a3a 34 34 35 35 <screen os="s2"><userinput>cp Makefile.in{,.orig} 36 sed 's/$(AR) $@/$(AR) r $@/' Makefile.in > Makefile.in</userinput></screen>36 sed 's/$(AR) $@/$(AR) r $@/' Makefile.in.orig > Makefile.in</userinput></screen> 37 37 38 38 <para os="a">Prepare Zlib for compilation:</para> … … 59 59 <para os="i">Now we fix the permissions on the static library:</para> 60 60 61 <screen os="j"><userinput>chmod -v 644 /usr/lib/libz.a</userinput></screen>61 <screen os="j"><userinput>chmod -v 644 ${LFS}/usr/lib/libz.a</userinput></screen> 62 62 63 63 </sect2> -
BOOK/general.ent
rf6c417f r3349a3a 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 2 3 <!ENTITY version "SVN-2006052 5">3 <!ENTITY version "SVN-20060527"> 4 4 <!ENTITY version-ARM "&version;-ARM"> 5 5 6 <!ENTITY releasedate "May 2 5, 2006">6 <!ENTITY releasedate "May 27, 2006"> 7 7 <!ENTITY milestone "0.2"> 8 8 <!ENTITY generic-version "svn"> <!-- Use "svn", "testing", or "x.y[-pre{x}]" --> -
BOOK/the-end/theend.xml
rf6c417f r3349a3a 24 24 Create this file by running:</para> 25 25 26 <screen><userinput>echo &version; > /etc/clfs-release</userinput></screen>26 <screen><userinput>echo &version; > ${LFS}/etc/clfs-release</userinput></screen> 27 27 28 28 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.