mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 22:17:39 +00:00
087e584f62
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2706 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
44 lines
1.3 KiB
XML
44 lines
1.3 KiB
XML
<sect2><title> </title><para> </para></sect2>
|
|
|
|
<sect2>
|
|
<title>FHS compliance notes</title>
|
|
|
|
<para>The FHS recommends that we use <filename>/var/lib/hwclock</filename>,
|
|
instead of the usual <filename>/etc</filename>, as the location for the
|
|
<filename>adjtime</filename> file. To make the <userinput>hwclock</userinput>
|
|
program FHS-compliant, run the following:</para>
|
|
|
|
<para><screen><userinput>cp hwclock/hwclock.c{,.backup}
|
|
sed 's%etc/adjtime%var/lib/hwclock/adjtime%' \
|
|
hwclock/hwclock.c.backup > hwclock/hwclock.c
|
|
mkdir -p /var/lib/hwclock</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of Util-linux</title>
|
|
|
|
<para>Prepare Util-linux for compilation:</para>
|
|
|
|
<para><screen><userinput>./configure</userinput></screen></para>
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
<para><screen><userinput>make HAVE_SLN=yes</userinput></screen></para>
|
|
|
|
<para>The meaning of the make parameter:</para>
|
|
|
|
<itemizedlist>
|
|
<listitem><para><userinput>HAVE_SLN=yes</userinput>: This prevents the
|
|
<userinput>sln</userinput> program (a statically linked
|
|
<userinput>ln</userinput>, already installed by Glibc) from being built
|
|
again.</para></listitem>
|
|
</itemizedlist>
|
|
|
|
<para>And install the package:</para>
|
|
|
|
<para><screen><userinput>make HAVE_SLN=yes install</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|