Author: krejzi
Date: Fri Feb 15 05:56:39 2013
New Revision: 10150
Log:
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.
Modified:
branches/systemd/BOOK/chapter01/whatsnew.xml
branches/systemd/BOOK/chapter03/packages.xml
branches/systemd/BOOK/chapter06/attr.xml
branches/systemd/BOOK/chapter06/coreutils.xml
branches/systemd/BOOK/chapter06/libcap.xml
branches/systemd/BOOK/prologue/why.xml
Modified: branches/systemd/BOOK/chapter01/whatsnew.xml
==============================================================================
--- branches/systemd/BOOK/chapter01/whatsnew.xml Fri Feb 15 04:52:31
2013 (r10149)
+++ branches/systemd/BOOK/chapter01/whatsnew.xml Fri Feb 15 05:56:39
2013 (r10150)
@@ -269,7 +269,7 @@
</listitem>
<listitem>
- <para>Libcap2-&libcap-version;</para>
+ <para>Libcap-&libcap-version;</para>
</listitem>
<listitem>
Modified: branches/systemd/BOOK/chapter03/packages.xml
==============================================================================
--- branches/systemd/BOOK/chapter03/packages.xml Fri Feb 15 04:52:31
2013 (r10149)
+++ branches/systemd/BOOK/chapter03/packages.xml Fri Feb 15 05:56:39
2013 (r10150)
@@ -357,7 +357,7 @@
</varlistentry>
<varlistentry>
- <term>Libcap2 (&libcap-version;) - <token>&libcap-size;</token>:</term>
+ <term>Libcap (&libcap-version;) - <token>&libcap-size;</token>:</term>
<listitem>
<para>Home page: <ulink url="&libcap-home;"/></para>
<para>Download: <ulink url="&libcap-url;"/></para>
Modified: branches/systemd/BOOK/chapter06/attr.xml
==============================================================================
--- branches/systemd/BOOK/chapter06/attr.xml Fri Feb 15 04:52:31 2013
(r10149)
+++ branches/systemd/BOOK/chapter06/attr.xml Fri Feb 15 05:56:39 2013
(r10150)
@@ -57,11 +57,25 @@
<para>The attr tests need to be run on a filesystem that supports extended
attributes. To test the results, issue:</para>
-<screen><userinput remap="test">make tests root-tests
ext-tests</userinput></screen>
+<!-- ext-tests fail for some reason -->
+<screen><userinput remap="test">make tests root-tests</userinput></screen>
<para>Install the package:</para>
-<screen><userinput remap="install">make install install-dev
install-lib</userinput></screen>
+<screen><userinput remap="install">make install install-dev install-lib
&&
+chmod -v 0755 /lib/libattr.so.1.1.0</userinput></screen>
+
+ <para>Remove static library and libtool archive from
+ <filename class="directory">/lib</filename>, they exist in
+ <filename class="directory">/usr/lib</filename>:</para>
+
+<screen><userinput remap="install">rm -v
/lib/libattr.{a,la,so}</userinput></screen>
+
+ <para>Change default location for the libtool archive and recreate
+ symlink to shared library since it points to removed file:</para>
+
+<screen><userinput remap="install">sed -i 's@/lib@/usr/lib@'
/usr/lib/libattr.la &&
+ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so</userinput></screen>
</sect2>
@@ -76,7 +90,7 @@
<seglistitem>
<seg>attr, getfattr, and setattr</seg>
<seg>libattr.{so,a}</seg>
- <seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
+ <seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
</seglistitem>
</segmentedlist>
Modified: branches/systemd/BOOK/chapter06/coreutils.xml
==============================================================================
--- branches/systemd/BOOK/chapter06/coreutils.xml Fri Feb 15 04:52:31
2013 (r10149)
+++ branches/systemd/BOOK/chapter06/coreutils.xml Fri Feb 15 05:56:39
2013 (r10150)
@@ -120,19 +120,11 @@
<screen><userinput remap="install">mv -v
/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin
-mv -v /usr/bin/{rmdir,stty,sync,true,uname,test,[} /bin
+mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
mv -v /usr/bin/chroot /usr/sbin
mv -v /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8
sed -i s/\"1\"/\"8\"/1 /usr/share/man/man8/chroot.8</userinput></screen>
- <para>Some of the scripts in the LFS-Bootscripts package depend on
- <command>head</command>, <command>sleep</command>, and
- <command>nice</command>. As <filename class="directory">/usr</filename>
- may not be available during the early stages of booting, those binaries
- need to be on the root partition:</para>
-
-<screen><userinput remap="install">mv -v /usr/bin/{head,sleep,nice}
/bin</userinput></screen>
-
</sect2>
Modified: branches/systemd/BOOK/chapter06/libcap.xml
==============================================================================
--- branches/systemd/BOOK/chapter06/libcap.xml Fri Feb 15 04:52:31 2013
(r10149)
+++ branches/systemd/BOOK/chapter06/libcap.xml Fri Feb 15 05:56:39 2013
(r10150)
@@ -14,7 +14,7 @@
<address>&libcap-url;</address>
</sect1info>
- <title>Libcap2-&libcap-version;</title>
+ <title>Libcap-&libcap-version;</title>
<indexterm zone="ch-system-libcap">
<primary sortas="a-Libcap">Libcap</primary>
@@ -51,7 +51,16 @@
<para>Install the package:</para>
-<screen><userinput remap="install">make RAISE_SETFCAP=no
install</userinput></screen>
+<screen><userinput remap="install">make RAISE_SETFCAP=no prefix=/usr install
&&
+chmod -v 0755 /usr/lib/libcap.so.2.22</userinput></screen>
+
+ <para>The shared library needs to be moved to
+ <filename class="directory">/lib</filename>, and as a result the
+ <filename class="extension">.so</filename> file in
+ <filename class="directory">/usr/lib</filename> will need to be
recreated:</para>
+
+<screen><userinput remap="install">mv -v /usr/lib/libcap.so.* /lib &&
+ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so</userinput></screen>
</sect2>
Modified: branches/systemd/BOOK/prologue/why.xml
==============================================================================
--- branches/systemd/BOOK/prologue/why.xml Fri Feb 15 04:52:31 2013
(r10149)
+++ branches/systemd/BOOK/prologue/why.xml Fri Feb 15 05:56:39 2013
(r10150)
@@ -294,7 +294,7 @@
</listitem>
<listitem>
- <para>Libcap2</para>
+ <para>Libcap</para>
<para>This package contains functions that enable root privileges to be
partitioned into a set of distinct privileges. It is required by
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page