mirror of
https://github.com/LCTT/LFS-BOOK-7.7-systemd.git
synced 2026-01-14 00:49:09 +00:00
245 lines
7.9 KiB
HTML
245 lines
7.9 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content=
|
|
"application/xhtml+xml; charset=utf-8" />
|
|
<title>
|
|
6.21. Attr-2.4.47
|
|
</title>
|
|
<link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
|
|
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
|
|
<link rel="stylesheet" href="stylesheets/lfs-print.css" type="text/css"
|
|
media="print" />
|
|
</head>
|
|
<body class="lfs" id="lfs-7.7-systemd">
|
|
<div class="navheader">
|
|
<h4>
|
|
Linux From Scratch - Version 7.7-systemd
|
|
</h4>
|
|
<h3>
|
|
Chapter 6. Installing Basic System Software
|
|
</h3>
|
|
<ul>
|
|
<li class="prev">
|
|
<a accesskey="p" href="ncurses.html" title="Ncurses-5.9">Prev</a>
|
|
<p>
|
|
Ncurses-5.9
|
|
</p>
|
|
</li>
|
|
<li class="next">
|
|
<a accesskey="n" href="acl.html" title="Acl-2.2.52">Next</a>
|
|
<p>
|
|
Acl-2.2.52
|
|
</p>
|
|
</li>
|
|
<li class="up">
|
|
<a accesskey="u" href="chapter06.html" title=
|
|
"Chapter 6. Installing Basic System Software">Up</a>
|
|
</li>
|
|
<li class="home">
|
|
<a accesskey="h" href="../index.html" title=
|
|
"Linux From Scratch - Version 7.7-systemd">Home</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="wrap" lang="en" xml:lang="en">
|
|
<h1 class="sect1">
|
|
<a id="ch-system-attr" name="ch-system-attr"></a>6.21. Attr-2.4.47
|
|
</h1>
|
|
<div class="package" lang="en" xml:lang="en">
|
|
<p>
|
|
The attr package contains utilities to administer the extended
|
|
attributes on filesystem objects.
|
|
</p>
|
|
<div class="segmentedlist">
|
|
<div class="seglistitem">
|
|
<div class="seg">
|
|
<strong class="segtitle">Approximate build time:</strong>
|
|
<span class="segbody">less than 0.1 SBU</span>
|
|
</div>
|
|
<div class="seg">
|
|
<strong class="segtitle">Required disk space:</strong>
|
|
<span class="segbody">4.2 MB</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="installation" lang="en" xml:lang="en">
|
|
<h2 class="sect2">
|
|
6.21.1. Installation of Attr
|
|
</h2>
|
|
<p>
|
|
Modify the documentation directory so that it is a versioned
|
|
directory:
|
|
</p>
|
|
<pre class="userinput">
|
|
<kbd class=
|
|
"command">sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in</kbd>
|
|
</pre>
|
|
<p>
|
|
Prevent installation of manual pages that were already installed by
|
|
Man-Pages package:
|
|
</p>
|
|
<pre class="userinput">
|
|
<kbd class="command">sed -i -e "/SUBDIRS/s|man2||" man/Makefile</kbd>
|
|
</pre>
|
|
<p>
|
|
Prepare Attr for compilation:
|
|
</p>
|
|
<pre class="userinput">
|
|
<kbd class="command">./configure --prefix=/usr</kbd>
|
|
</pre>
|
|
<p>
|
|
Compile the package:
|
|
</p>
|
|
<pre class="userinput">
|
|
<kbd class="command">make</kbd>
|
|
</pre>
|
|
<p>
|
|
The tests need to be run on a filesystem that supports extended
|
|
attributes such as the ext2, ext3, or ext4 filesystems. The tests
|
|
are also known to fail if running multiple simultaneous tests (-j
|
|
option greater than 1). To test the results, issue:
|
|
</p>
|
|
<pre class="userinput">
|
|
<kbd class="command">make -j1 tests root-tests</kbd>
|
|
</pre>
|
|
<p>
|
|
Install the package:
|
|
</p>
|
|
<pre class="userinput">
|
|
<kbd class="command">make install install-dev install-lib
|
|
chmod -v 755 /usr/lib/libattr.so</kbd>
|
|
</pre>
|
|
<p>
|
|
The shared library needs to be moved to <code class=
|
|
"filename">/lib</code>, and as a result the <code class=
|
|
"filename">.so</code> file in <code class=
|
|
"filename">/usr/lib</code> will need to be recreated:
|
|
</p>
|
|
<pre class="userinput">
|
|
<kbd class="command">mv -v /usr/lib/libattr.so.* /lib
|
|
ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</kbd>
|
|
</pre>
|
|
</div>
|
|
<div class="content" lang="en" xml:lang="en">
|
|
<h2 class="sect2">
|
|
<a id="contents-attr" name="contents-attr"></a>6.21.2. Contents of
|
|
Attr
|
|
</h2>
|
|
<div class="segmentedlist">
|
|
<div class="seglistitem">
|
|
<div class="seg">
|
|
<strong class="segtitle">Installed programs:</strong>
|
|
<span class="segbody">attr, getfattr, and setattr</span>
|
|
</div>
|
|
<div class="seg">
|
|
<strong class="segtitle">Installed library:</strong>
|
|
<span class="segbody">libattr.{a,so}</span>
|
|
</div>
|
|
<div class="seg">
|
|
<strong class="segtitle">Installed directories:</strong>
|
|
<span class="segbody">/usr/include/attr and
|
|
/usr/share/doc/attr-2.4.47</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="variablelist">
|
|
<h3>
|
|
Short Descriptions
|
|
</h3>
|
|
<table border="0" class="variablelist">
|
|
<colgroup>
|
|
<col align="left" valign="top" />
|
|
<col />
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a id="attr" name="attr"></a><span class=
|
|
"term"><span class=
|
|
"command"><strong>attr</strong></span></span>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Extends attributes on filesystem objects
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a id="getfattr" name="getfattr"></a><span class=
|
|
"term"><span class=
|
|
"command"><strong>getfattr</strong></span></span>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Gets the extended attributes of filesystem objects
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a id="setattr" name="setattr"></a><span class=
|
|
"term"><span class=
|
|
"command"><strong>setattr</strong></span></span>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Sets the extended attributes of filesystem objects
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<p>
|
|
<a id="libattr" name="libattr"></a><span class=
|
|
"term"><code class="filename">libattr</code></span>
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<p>
|
|
Contains the libbrary functions for manipulating extended
|
|
attributes
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="navfooter">
|
|
<ul>
|
|
<li class="prev">
|
|
<a accesskey="p" href="ncurses.html" title="Ncurses-5.9">Prev</a>
|
|
<p>
|
|
Ncurses-5.9
|
|
</p>
|
|
</li>
|
|
<li class="next">
|
|
<a accesskey="n" href="acl.html" title="Acl-2.2.52">Next</a>
|
|
<p>
|
|
Acl-2.2.52
|
|
</p>
|
|
</li>
|
|
<li class="up">
|
|
<a accesskey="u" href="chapter06.html" title=
|
|
"Chapter 6. Installing Basic System Software">Up</a>
|
|
</li>
|
|
<li class="home">
|
|
<a accesskey="h" href="../index.html" title=
|
|
"Linux From Scratch - Version 7.7-systemd">Home</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|