Ignore:
Timestamp:
Apr 2, 2014, 7:27:28 PM (10 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
5c7e6a7
Parents:
72d6a1b
Message:

Add test suite commands and sed for doc install with version.

File:
1 edited

Legend:

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

    r72d6a1b r4c1c923  
    2626    <title>Installation of Attr</title>
    2727
    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>
    2930
    30 <screen os="b"><userinput>./configure --prefix=/usr</userinput></screen>
     31<screen os="b"><userinput>sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' include/builddefs.in</userinput></screen>
    3132
    32     <para os="c">Compile the package:</para>
     33    <para os="c">Prepare Attr for compilation:</para>
    3334
    34 <screen os="d"><userinput>make</userinput></screen>
     35<screen os="d"><userinput>./configure --prefix=/usr</userinput></screen>
    3536
    36     <para os="e">This package does not come with a test suite.</para>
     37    <para os="e">Compile the package:</para>
    3738
    38     <para os="f">Install the package:</para>
     39<screen os="f"><userinput>make</userinput></screen>
    3940
    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>
    4143
    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>
    4445
    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
    4655ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen>
    4756
    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>
    4958
    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>
    5160
    5261  </sect2>
Note: See TracChangeset for help on using the changeset viewer.