Ignore:
Timestamp:
10/28/2021 10:59:23 AM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
2dffe71
Parents:
45befbb
Message:

Updates

lsof-4.94.0
jansson-2.14
glibmm-2.66.2
pidgin-2.14.8
py3c-1.4 (python module)
valgrind-3.18.1
graphviz-2.49.3
asciidoc-10.0.0 (and move to ptyhon modules)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/genutils/lsof.xml

    r45befbb r141ee0a5  
    55  %general-entities;
    66
    7 <!-- <!ENTITY lsof-download-http "https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_&lsof-version;.tar.bz2">
    8 <!ENTITY lsof-download-ftp " "> -->
    97
    10 <!-- URL is for a mirror.  Change back to below if/when main site comes back. -->
    11 
    12 <!ENTITY lsof-download-http  "https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_&lsof-version;.tar.gz">
     8<!ENTITY lsof-download-http  "https://github.com/lsof-org/lsof/releases/download/&lsof-version;/lsof_&lsof-version;.linux.tar.bz2">
    139<!ENTITY lsof-download-ftp  " ">
    14 <!ENTITY lsof-md5sum        "10e1353aa4bf2fd5bbed65db9ef6fd47">
    15 <!ENTITY lsof-size          "1.1 MB">
    16 <!ENTITY lsof-buildsize     "9.6 MB">
    17 <!ENTITY lsof-time          "less than 0.1 SBU">
     10<!ENTITY lsof-md5sum        "2a007f86fb0207fbce3e9d7542e1041c">
     11<!ENTITY lsof-size          "493 KB">
     12<!ENTITY lsof-buildsize     "3.7 MB (add 600 KB for tests)">
     13<!ENTITY lsof-time          "less than 0.1 SBU (add 0.4 SBU for tests)">
    1814]>
    1915
     
    8278    </para>
    8379
     80    <bridgehead renderas="sect4">Optional</bridgehead>
     81    <para role="optional">
     82      <xref linkend="nmap"/> (with a symbolic link <command>nc</command>
     83      pointing to <command>ncat</command> in <filename class="directory">
     84      /usr/bin</filename>; used in tests)
     85    </para>
     86
    8487    <para condition="html" role="usernotes">User Notes:
    8588    <ulink url="&blfs-wiki;/lsof"/></para>
     89
     90  </sect2>
     91
     92  <sect2 role="kernel" id="lsof-kernel">
     93    <title>Kernel Configuration</title>
     94
     95    <para>
     96      To run the tests, the following option  should be enabled in the kernel
     97      configuration:
     98    </para>
     99
     100<screen><literal>General setup  ---&gt;
     101  [*] POSIX Message Queues    [CONFIG_POSIX_MQUEUE]</literal></screen>
    86102
    87103  </sect2>
     
    91107
    92108    <para>
    93       The contents of the <application>lsof</application> tarball
    94       include another tarball with the source code, which needs, in turn,
    95       to be unpacked. Install <application>lsof</application> by running the
     109      Install <application>lsof</application> by running the
    96110      following commands:
    97111    </para>
    98112
    99 <screen><userinput>tar -xf lsof_&lsof-version;_src.tar  &amp;&amp;
    100 cd lsof_&lsof-version;_src           &amp;&amp;
    101 ./Configure -n linux       &amp;&amp;
    102 make CFGL="-L./lib -ltirpc"</userinput></screen>
     113<screen><userinput>./Configure -n linux &amp;&amp;
     114make</userinput></screen>
    103115
    104116    <para>
    105       This package does not come with a working test suite.
     117      The tests should be run as the <systemitem
     118      class="username">root</systemitem> user. They require that the
     119      POSIX message queues are enabled in the kernel, and that <xref
     120      linkend="nmap"/> be installed with a symbolic link
     121      <filename>/usr/bin/nc</filename> pointing to <command>ncat</command>.
     122    </para>
     123
     124<screen role="root"
     125        remap="test"><userinput>make check</userinput></screen>
     126
     127    <para>
     128      Two tests fail if the tests are run from a script instead of an
     129      interactive session.
    106130    </para>
    107131
     
    110134    </para>
    111135
    112 <screen role="root"><userinput>install -v -m0755 -o root -g root lsof /usr/bin &amp;&amp;
     136<screen role="root"><userinput>install -v -m4755 -o root -g root lsof /usr/bin &amp;&amp;
    113137install -v lsof.8 /usr/share/man/man8</userinput></screen>
    114138
     
    124148
    125149    <para>
    126       <command>make CFGL="-L./lib -ltirpc"</command>: Add the libtirpc
    127       libraries location to the <command>make</command> command.
     150      <command>install -m4755 ...</command>: <command>lsof</command> should
     151      be suid root to allwo users to list all files. This may be a security
     152      threat on some systems. In that case change to <option>-m755</option>
     153      and use <command>sudo</command> to run the program.
    128154    </para>
    129155
Note: See TracChangeset for help on using the changeset viewer.