Changeset 3349a3a in clfs-sysroot for BOOK/final-system/common


Ignore:
Timestamp:
May 27, 2006, 9:02:20 PM (19 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
d9bec84
Parents:
f6c417f
Message:

r3669@server (orig r1667): jciccone | 2006-05-27 18:13:38 -0700
Various text and command fixes

Location:
BOOK/final-system/common
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/bash.xml

    rf6c417f r3349a3a  
    2828    install HTML documentation, issue the following commands:</para>
    2929
    30 <screen os="b"><userinput>tar -xvf ../bash-doc-&bash-doc-version;.tar.gz &amp;&amp;
    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
     31cp Makefile.in{,.orig}
     32sed "s|htmldir = @htmldir@|htmldir = /usr/share/doc/bash-&bash-version;|" \
     33    Makefile.in.orig &gt; Makefile.in</userinput></screen>
    3334
    3435    <para os="p1">The following patch contains updates from the maintainer. The
  • BOOK/final-system/common/bzip2.xml

    rf6c417f r3349a3a  
    4848
    4949<screen os="s2"><userinput>cp Makefile{,.orig}
    50 sed -e "/^all:/s/ test//" Makefile.orig %gt; Makefile</userinput></screen>
     50sed -e "/^all:/s/ test//" Makefile.orig &gt; Makefile</userinput></screen>
    5151
    5252    <para os="a">The Bzip2 package does not contain a <command>configure</command>
  • BOOK/final-system/common/gzip.xml

    rf6c417f r3349a3a  
    4242    that the new location gets placed into the script:</para>
    4343
    44 <screen os="d"><userinput>sed -i 's@"BINDIR"@/bin@g' gzexe.in</userinput></screen>
     44<screen os="d"><userinput>cp gzexec.in{,.orig}
     45sed 's@"BINDIR"@/bin@g' gzexe.in.orig &gt; gzexec.in</userinput></screen>
    4546
    4647    <para os="e">Compile the package:</para>
  • BOOK/final-system/common/inetutils.xml

    rf6c417f r3349a3a  
    3535
    3636<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 &gt; ${dir}/Makefile.in
     43done</userinput></screen>
    3744
    3845    <para os="a">Prepare Inetutils for compilation:</para>
  • BOOK/final-system/common/iproute2.xml

    rf6c417f r3349a3a  
    2626    <title>Installation of IPRoute2</title>
    2727
    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 &gt; ${dir}/Makefile
     33done</userinput></screen>
     34
     35    <para os="s3">The <command>arpd</command> binary included in this package is
    2936    dependent on Berkeley DB.  Because <command>arpd</command> is not a
    3037    very common requirement on a base Linux system, remove the dependency
     
    3441    url="&blfs-root;view/svn/server/databases.html#db"/>.</para>
    3542
    36 <screen os="s2"><userinput>sed -i '/^TARGETS/s@arpd@@g' misc/Makefile</userinput></screen>
     43<screen os="s4"><userinput>cp misc/Makefile{,.orig}
     44sed '/^TARGETS/s@arpd@@g' misc/Makefile.orig &gt; misc/Makefile</userinput></screen>
    3745
    3846    <para os="a">Compile the package:</para>
  • BOOK/final-system/common/less.xml

    rf6c417f r3349a3a  
    4949    <para os="f">Install the package:</para>
    5050
    51 <screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     51<screen os="g"><userinput>make prefixR=${LFS}/usr install</userinput></screen>
    5252
    5353    <para os="h">Move less to /bin:</para>
  • BOOK/final-system/common/man.xml

    rf6c417f r3349a3a  
    3333    properly handled by Less:</para>
    3434
    35 <screen os="c"><userinput>sed -i 's@-is@&amp;R@g' configure</userinput></screen>
     35<screen os="c"><userinput>cp configure{,.orig}
     36sed 's@-is@&amp;R@g' configure.orig &gt; configure</userinput></screen>
    3637
    3738    <para os="d">Another <command>sed</command> substitution comments out the
     
    4041    <command>whatis</command>:</para>
    4142
    42 <screen os="e"><userinput>sed -i 's@MANPATH./usr/man@#&amp;@g' src/man.conf.in</userinput></screen>
     43<screen os="e"><userinput>cp src/man.conf.in{,.orig}
     44sed 's@MANPATH./usr/man@#&amp;@g' src/man.conf.in.orig &gt; src/man.conf.in</userinput></screen>
    4345
    4446    <para os="f">Finally, correct a syntax error in the
    4547    <command>makewhatis</command> script:</para>
    4648
    47 <screen os="g"><userinput>sed -i 's@)) |@) |@' src/makewhatis.sh</userinput></screen>
     49<screen os="g"><userinput>cp src/makewhatis.sh{,.orig}
     50sed 's@)) |@) |@' src/makewhatis.sh.orig &gt; src/makewhatis.sh</userinput></screen>
    4851
    4952    <para os="h">Prepare Man for compilation:</para>
  • BOOK/final-system/common/mktemp.xml

    rf6c417f r3349a3a  
    3535    will try to strip the installed files:</para>
    3636
    37 <screen os="s2"><userinput>cp Makefile{,.orig}
    38 sed -e 's/-s $(PROG)/$(PROG)/' Makefile.orig &gt; Makefile</userinput></screen>
     37<screen os="s2"><userinput>cp Makefile.in{,.orig}
     38sed -e 's/-s $(PROG)/$(PROG)/' Makefile.in.orig &gt; Makefile.in</userinput></screen>
    3939
    4040    <para os="c">Prepare Mktemp for compilation:</para>
  • BOOK/final-system/common/perl.xml

    rf6c417f r3349a3a  
    2626    <title>Installation of Perl</title>
    2727
    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>
    2929
    3030    <para os="a00">Before starting to configure, create a basic
  • BOOK/final-system/common/psmisc.xml

    rf6c417f r3349a3a  
    5151    <para os="f">Install the package:</para>
    5252
    53 <screen os="g"><userinput>make install</userinput></screen>
     53<screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
    5454
    5555    <para os="h">There is no reason for the <command>pstree</command> and
  • BOOK/final-system/common/shadow.xml

    rf6c417f r3349a3a  
    7373    program and its man pages, as Coreutils provides a better version:</para>
    7474
    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}
     76sed 's/groups$(EXEEXT) //' src/Makefile.orig &gt; src/Makefile
     77cp man/Makefile{,.orig}
     78sed '/groups/d' man/Makefile.orig &gt; man/Makefile</userinput></screen>
    7779
    7880    <para os="j">Compile the package:</para>
     
    121123      dictionary:</para>
    122124
    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
     126sed 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' login.defs.orig &gt; ${LFS}/etc/login.defs</userinput></screen>
    124127    </note>
    125128
  • BOOK/final-system/common/stripping.xml

    rf6c417f r3349a3a  
    2323  backup of the current situation.</para>
    2424
    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>
    4427
    4528    <para os="i">A large number of files will be reported as having their file
  • BOOK/final-system/common/sysklogd.xml

    rf6c417f r3349a3a  
    4343    <para os="f">Install the package:</para>
    4444
    45 <screen os="g"><userinput>make DESTDIR=${LFS} install</userinput></screen>
     45<screen os="g"><userinput>make prefix=${LFS} install</userinput></screen>
    4646
    4747  </sect2>
  • BOOK/final-system/common/sysvinit.xml

    rf6c417f r3349a3a  
    3636    instead:</para>
    3737
    38 <screen os="b"><userinput>sed -i 's@Sending processes@&amp; started by init@g' \
    39     src/init.c</userinput></screen>
     38<screen os="b"><userinput>cp src/init.c{,.orig}
     39sed 's@Sending processes@&amp; started by init@g' \
     40    src/init.c.orig &gt; src/init.c</userinput></screen>
    4041
    4142    <para os="s1">The following sed makes changes in the Makefile required for cross-compiling</para>
     
    4546    -e "s@/dev/initctl@${LFS}&amp;@g" \
    4647    -e 's@\(mknod \)-m \([0-9]* \)\(.* \)p@\1\3p; chmod \2\3@g' \
     48    -e "s@/usr/lib@${LFS}&amp;@" \
    4749    src/Makefile.orig &gt; src/Makefile</userinput></screen>
    4850
     
    5456    <para os="e">Install the package:</para>
    5557
    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>
    5759
    5860  </sect2>
  • BOOK/final-system/common/util-linux.xml

    rf6c417f r3349a3a  
    3434    <command>hwclock</command> program FHS-compliant, run the following:</para>
    3535
    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}
     37sed 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
     38    hwclock/hwclock.c.orig &gt; hwclock/hwclock.c
    3839mkdir -pv /var/lib/hwclock</userinput></screen>
    3940
  • BOOK/final-system/common/vim.xml

    rf6c417f r3349a3a  
    3434    <title>Installation of Vim</title>
    3535
    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>
    3737
    3838    <para os="a">First, unpack both <filename>vim-&vim-version;.tar.bz2</filename>
  • BOOK/final-system/common/zlib.xml

    rf6c417f r3349a3a  
    3434
    3535<screen os="s2"><userinput>cp Makefile.in{,.orig}
    36 sed 's/$(AR) $@/$(AR) r $@/' Makefile.in &gt; Makefile.in</userinput></screen>
     36sed 's/$(AR) $@/$(AR) r $@/' Makefile.in.orig &gt; Makefile.in</userinput></screen>
    3737
    3838    <para os="a">Prepare Zlib for compilation:</para>
     
    5959    <para os="i">Now we fix the permissions on the static library:</para>
    6060
    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>
    6262
    6363  </sect2>
Note: See TracChangeset for help on using the changeset viewer.