Changeset c97d81d for chapter06


Ignore:
Timestamp:
02/15/2013 01:56:39 PM (11 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
Children:
6eb029d
Parents:
2acccb9
Message:

Fixes to Attr and libcap pages. Don't move coreutils' utils in /bin which are not specified by FHS to be there - they aren't necesary for systemd.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10150 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
chapter06
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chapter06/attr.xml

    r2acccb9 rc97d81d  
    5858    attributes.  To test the results, issue:</para>
    5959
    60 <screen><userinput remap="test">make tests root-tests ext-tests</userinput></screen>
     60<!-- ext-tests fail for some reason -->
     61<screen><userinput remap="test">make tests root-tests</userinput></screen>
    6162
    6263    <para>Install the package:</para>
    6364
    64 <screen><userinput remap="install">make install install-dev install-lib</userinput></screen>
     65<screen><userinput remap="install">make install install-dev install-lib &amp;&amp;
     66chmod -v 0755 /lib/libattr.so.1.1.0</userinput></screen>
     67
     68    <para>Remove static library and libtool archive from
     69    <filename class="directory">/lib</filename>, they exist in
     70    <filename class="directory">/usr/lib</filename>:</para>
     71
     72<screen><userinput remap="install">rm -v /lib/libattr.{a,la,so}</userinput></screen>
     73
     74    <para>Change default location for the libtool archive and recreate
     75    symlink to shared library since it points to removed file:</para>
     76
     77<screen><userinput remap="install">sed -i 's@/lib@/usr/lib@' /usr/lib/libattr.la &amp;&amp;
     78ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so</userinput></screen>
    6579
    6680  </sect2>
     
    7791        <seg>attr, getfattr, and setattr</seg>
    7892        <seg>libattr.{so,a}</seg>
    79         <seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
     93        <seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
    8094      </seglistitem>
    8195    </segmentedlist>
  • chapter06/coreutils.xml

    r2acccb9 rc97d81d  
    121121<screen><userinput remap="install">mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
    122122mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin
    123 mv -v /usr/bin/{rmdir,stty,sync,true,uname,test,[} /bin
     123mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
    124124mv -v /usr/bin/chroot /usr/sbin
    125125mv -v /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8
    126126sed -i s/\"1\"/\"8\"/1 /usr/share/man/man8/chroot.8</userinput></screen>
    127 
    128     <para>Some of the scripts in the LFS-Bootscripts package depend on
    129     <command>head</command>, <command>sleep</command>, and
    130     <command>nice</command>.  As <filename class="directory">/usr</filename>
    131     may not be available during the early stages of booting, those binaries
    132     need to be on the root partition:</para>
    133 
    134 <screen><userinput remap="install">mv -v /usr/bin/{head,sleep,nice} /bin</userinput></screen>
    135127
    136128  </sect2>
  • chapter06/libcap.xml

    r2acccb9 rc97d81d  
    1515  </sect1info>
    1616
    17   <title>Libcap2-&libcap-version;</title>
     17  <title>Libcap-&libcap-version;</title>
    1818
    1919  <indexterm zone="ch-system-libcap">
     
    5252    <para>Install the package:</para>
    5353
    54 <screen><userinput remap="install">make RAISE_SETFCAP=no install</userinput></screen>
     54<screen><userinput remap="install">make RAISE_SETFCAP=no prefix=/usr install &amp;&amp;
     55chmod -v 0755 /usr/lib/libcap.so.2.22</userinput></screen>
     56
     57    <para>The shared library needs to be moved to
     58    <filename class="directory">/lib</filename>, and as a result the
     59    <filename class="extension">.so</filename> file in
     60    <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
     61
     62<screen><userinput remap="install">mv -v /usr/lib/libcap.so.* /lib &amp;&amp;
     63ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so</userinput></screen>
    5564
    5665  </sect2>
Note: See TracChangeset for help on using the changeset viewer.