Changeset 4c1c923
- Timestamp:
- Apr 2, 2014, 7:27:28 PM (11 years ago)
- Branches:
- clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 5c7e6a7
- Parents:
- 72d6a1b
- Location:
- BOOK/final-system
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/attr.xml
r72d6a1b r4c1c923 26 26 <title>Installation of Attr</title> 27 27 28 <para os="a">Prepare Attr for compilation:</para> 28 <para os="a">Apply a sed to install the documentation with a versioned 29 directory:</para> 29 30 30 <screen os="b"><userinput> ./configure --prefix=/usr</userinput></screen>31 <screen os="b"><userinput>sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in</userinput></screen> 31 32 32 <para os="c"> Compile the package:</para>33 <para os="c">Prepare Attr for compilation:</para> 33 34 34 <screen os="d"><userinput> make</userinput></screen>35 <screen os="d"><userinput>./configure --prefix=/usr</userinput></screen> 35 36 36 <para os="e"> This package does not come with a test suite.</para>37 <para os="e">Compile the package:</para> 37 38 38 <para os="f">Install the package:</para>39 <screen os="f"><userinput>make</userinput></screen> 39 40 40 <screen os="g"><userinput>make install install-dev install-lib</userinput></screen> 41 <para os="g">The tests need to run with a filesystem which supports extended 42 attributes. Test the results:</para> 41 43 42 <para os="h">Move the shared library to <filename class="directory">/lib</filename> 43 and recreate the symlink in <filename class="directory">/usr/lib</filename>:</para> 44 <screen os="h"><userinput remap="test">make -j1 tests root-tests</userinput></screen> 44 45 45 <screen os="i"><userinput>mv -v /usr/lib/libattr.so.* /lib 46 <para os="i">Install the package:</para> 47 48 <screen os="j"><userinput>make install install-dev install-lib</userinput></screen> 49 50 <para os="k">Move the shared library to <filename class="directory">/lib 51 </filename> and recreate the symlink in <filename class="directory">/usr/lib 52 </filename>:</para> 53 54 <screen os="l"><userinput>mv -v /usr/lib/libattr.so.* /lib 46 55 ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen> 47 56 48 <para os=" j">Set the proper permissions on the shared library:</para>57 <para os="m">Set the proper permissions on the shared library:</para> 49 58 50 <screen os=" k"><userinput>chmod 755 -v /lib/libattr.so.1.1.0</userinput></screen>59 <screen os="n"><userinput>chmod 755 -v /lib/libattr.so.1.1.0</userinput></screen> 51 60 52 61 </sect2> -
BOOK/final-system/multilib/attr-64bit.xml
r72d6a1b r4c1c923 23 23 24 24 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 25 26 25 href="../common/attr.xml" 26 xpointer="xpointer(//*[@os='a'])"/> 27 27 28 <screen os="b"><userinput>CC="gcc ${BUILD64}" ./configure \ 28 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 29 href="../common/attr.xml" 30 xpointer="xpointer(//*[@os='b'])"/> 31 32 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 33 href="../common/attr.xml" 34 xpointer="xpointer(//*[@os='c'])"/> 35 36 <screen os="d"><userinput>CC="gcc ${BUILD64}" ./configure \ 29 37 --prefix=/usr --libdir=/lib64 \ 30 38 --libexecdir=/usr/lib64</userinput></screen> 31 39 32 40 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 33 34 xpointer="xpointer(//*[@os='c'])"/>41 href="../common/attr.xml" 42 xpointer="xpointer(//*[@os='e'])"/> 35 43 36 44 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 37 38 xpointer="xpointer(//*[@os='d'])"/>45 href="../common/attr.xml" 46 xpointer="xpointer(//*[@os='f'])"/> 39 47 40 48 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 41 42 xpointer="xpointer(//*[@os='e'])"/>49 href="../common/attr.xml" 50 xpointer="xpointer(//*[@os='g'])"/> 43 51 44 52 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 45 46 xpointer="xpointer(//*[@os='f'])"/>53 href="../common/attr.xml" 54 xpointer="xpointer(//*[@os='h'])"/> 47 55 48 56 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 49 50 xpointer="xpointer(//*[@os='g'])"/>57 href="../common/attr.xml" 58 xpointer="xpointer(//*[@os='i'])"/> 51 59 52 <para os="h">Recreate the symlink in <filename class="directory">/usr/lib64</filename> and remove the shared link from <filename class="directory">/lib64</filename>:</para> 60 <para os="j">Recreate the symlink in <filename class="directory">/usr/lib64 61 </filename> and remove the shared link from <filename class="directory"> 62 /lib64</filename>:</para> 53 63 54 <screen os="i"><userinput> 64 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 65 href="../common/attr.xml" 66 xpointer="xpointer(//*[@os='k'])"/> 67 68 <screen os="l"><userinput> 55 69 ln -sfv ../../lib64/$(readlink /lib64/libattr.so) /usr/lib64/libattr.so 56 70 rm -v /lib64/libattr.so</userinput></screen> 57 71 58 72 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 59 60 xpointer="xpointer(//*[@os='j'])"/>73 href="../common/attr.xml" 74 xpointer="xpointer(//*[@os='m'])"/> 61 75 62 <screen os=" k"><userinput>chmod 755 -v /lib64/libattr.so.1.1.0</userinput></screen>76 <screen os="n"><userinput>chmod 755 -v /lib64/libattr.so.1.1.0</userinput></screen> 63 77 64 78 </sect2> -
BOOK/final-system/multilib/attr-n32.xml
r72d6a1b r4c1c923 24 24 25 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 26 27 26 href="../common/attr.xml" 27 xpointer="xpointer(//*[@os='a'])"/> 28 28 29 <screen os="b"><userinput>CC="gcc ${BUILDN32}" ./configure \ 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 30 href="../common/attr.xml" 31 xpointer="xpointer(//*[@os='b'])"/> 32 33 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 34 href="../common/attr.xml" 35 xpointer="xpointer(//*[@os='c'])"/> 36 37 <screen os="d"><userinput>CC="gcc ${BUILDN32}" ./configure \ 30 38 --prefix=/usr --libdir=/lib32 \ 31 39 --libexecdir=/usr/lib32</userinput></screen> 32 40 33 41 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 34 35 xpointer="xpointer(//*[@os='c'])"/>42 href="../common/attr.xml" 43 xpointer="xpointer(//*[@os='e'])"/> 36 44 37 45 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 38 39 xpointer="xpointer(//*[@os='d'])"/>46 href="../common/attr.xml" 47 xpointer="xpointer(//*[@os='f'])"/> 40 48 41 49 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 42 43 xpointer="xpointer(//*[@os='e'])"/>50 href="../common/attr.xml" 51 xpointer="xpointer(//*[@os='g'])"/> 44 52 45 53 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 46 47 xpointer="xpointer(//*[@os='f'])"/>54 href="../common/attr.xml" 55 xpointer="xpointer(//*[@os='h'])"/> 48 56 49 57 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 50 51 xpointer="xpointer(//*[@os='g'])"/>58 href="../common/attr.xml" 59 xpointer="xpointer(//*[@os='i'])"/> 52 60 53 <para os="h">Recreate the symlink in <filename class="directory">/usr/lib32</filename> and remove the shared link from <filename class="directory">/lib32</filename>:</para> 61 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 62 href="../common/attr.xml" 63 xpointer="xpointer(//*[@os='j'])"/> 54 64 55 <screen os="i"><userinput> 65 <para os="k">Recreate the symlink in <filename class="directory">/usr/lib32 66 </filename> and remove the shared link from <filename class="directory"> 67 /lib32</filename>:</para> 68 69 <screen os="l"><userinput> 56 70 ln -sfv ../../lib32/$(readlink /lib32/libattr.so) /usr/lib32/libattr.so 57 71 rm -v /lib32/libattr.so</userinput></screen> 58 72 59 73 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 60 61 xpointer="xpointer(//*[@os='j'])"/>74 href="../common/attr.xml" 75 xpointer="xpointer(//*[@os='m'])"/> 62 76 63 <screen os=" k"><userinput>chmod 755 -v /lib32/libattr.so.1.1.0</userinput></screen>77 <screen os="n"><userinput>chmod 755 -v /lib32/libattr.so.1.1.0</userinput></screen> 64 78 65 79 </sect2> -
BOOK/final-system/multilib/attr.xml
r72d6a1b r4c1c923 24 24 25 25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 26 27 26 href="../common/attr.xml" 27 xpointer="xpointer(//*[@os='a'])"/> 28 28 29 <screen os="b"><userinput>CC="gcc ${BUILD32}" ./configure \ 29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 30 href="../common/attr.xml" 31 xpointer="xpointer(//*[@os='b'])"/> 32 33 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 34 href="../common/attr.xml" 35 xpointer="xpointer(//*[@os='c'])"/> 36 37 <screen os="d"><userinput>CC="gcc ${BUILD32}" ./configure \ 30 38 --prefix=/usr --libdir=/lib \ 31 39 --libexecdir=/usr/lib</userinput></screen> 32 40 33 41 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 34 35 xpointer="xpointer(//*[@os='c'])"/>42 href="../common/attr.xml" 43 xpointer="xpointer(//*[@os='e'])"/> 36 44 37 45 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 38 39 xpointer="xpointer(//*[@os='d'])"/>46 href="../common/attr.xml" 47 xpointer="xpointer(//*[@os='f'])"/> 40 48 41 49 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 42 43 xpointer="xpointer(//*[@os='e'])"/>50 href="../common/attr.xml" 51 xpointer="xpointer(//*[@os='g'])"/> 44 52 45 53 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 46 47 xpointer="xpointer(//*[@os='f'])"/>54 href="../common/attr.xml" 55 xpointer="xpointer(//*[@os='h'])"/> 48 56 49 57 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 50 href="../common/attr.xml" 51 xpointer="xpointer(//*[@os='g'])"/> 52 53 <para os="h">Recreate the symlink in <filename class="directory">/usr/lib</filename> and remove the shared link from <filename class="directory">/lib</filename>:</para> 54 55 <screen os="i"><userinput> 56 ln -sfv ../../lib/$(readlink /lib/libattr.so) /usr/lib/libattr.so 57 rm -v /lib/libattr.so</userinput></screen> 58 href="../common/attr.xml" 59 xpointer="xpointer(//*[@os='i'])"/> 58 60 59 61 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 60 61 62 href="../common/attr.xml" 63 xpointer="xpointer(//*[@os='j'])"/> 62 64 63 65 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 64 href="../common/attr.xml" 65 xpointer="xpointer(//*[@os='k'])"/> 66 href="../common/attr.xml" 67 xpointer="xpointer(//*[@os='k'])"/> 68 69 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 70 href="../common/attr.xml" 71 xpointer="xpointer(//*[@os='l'])"/> 72 73 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 74 href="../common/attr.xml" 75 xpointer="xpointer(//*[@os='m'])"/> 76 77 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 78 href="../common/attr.xml" 79 xpointer="xpointer(//*[@os='n'])"/> 66 80 67 81 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.