Changeset 3349a3a in clfs-sysroot for BOOK/final-system/common
- Timestamp:
- May 27, 2006, 9:02:20 PM (19 years ago)
- Branches:
- master
- Children:
- d9bec84
- Parents:
- f6c417f
- Location:
- BOOK/final-system/common
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
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>
Note:
See TracChangeset
for help on using the changeset viewer.