1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-tools-libxcrypt" role="wrap">
|
---|
9 | <?dbhtml filename="libxcrypt.html"?>
|
---|
10 |
|
---|
11 | <sect1info condition="script">
|
---|
12 | <productname>libxcrypt</productname>
|
---|
13 | <productnumber>&libxcrypt-version;</productnumber>
|
---|
14 | <address>&libxcrypt-url;</address>
|
---|
15 | </sect1info>
|
---|
16 |
|
---|
17 | <title>Libxcrypt-&libxcrypt-version;</title>
|
---|
18 |
|
---|
19 | <indexterm zone="ch-tools-libxcrypt">
|
---|
20 | <primary sortas="a-Libxcrypt">Libxcrypt</primary>
|
---|
21 | </indexterm>
|
---|
22 |
|
---|
23 | <sect2 role="package">
|
---|
24 | <title/>
|
---|
25 |
|
---|
26 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
27 | href="../chapter08/libxcrypt.xml"
|
---|
28 | xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
---|
29 |
|
---|
30 | <segmentedlist>
|
---|
31 | <segtitle>&buildtime;</segtitle>
|
---|
32 | <segtitle>&diskspace;</segtitle>
|
---|
33 |
|
---|
34 | <seglistitem>
|
---|
35 | <seg>&libxcrypt-fin-sbu;</seg>
|
---|
36 | <seg>&libxcrypt-fin-du;</seg>
|
---|
37 | </seglistitem>
|
---|
38 | </segmentedlist>
|
---|
39 |
|
---|
40 | </sect2>
|
---|
41 |
|
---|
42 | <sect2 role="installation">
|
---|
43 | <title>Installation of Libxcrypt</title>
|
---|
44 |
|
---|
45 | <para>Prepare Libxcrypt for compilation:</para>
|
---|
46 |
|
---|
47 | <screen><userinput remap="configure">./configure --target=$LFS_TGT \
|
---|
48 | --prefix=/usr \
|
---|
49 | --enable-hashes=strong,glibc \
|
---|
50 | --enable-obsolete-api=no \
|
---|
51 | --disable-static \
|
---|
52 | --disable-failure-tokens</userinput></screen>
|
---|
53 |
|
---|
54 | <variablelist>
|
---|
55 | <title>The meaning of the new configure options:</title>
|
---|
56 |
|
---|
57 | <varlistentry>
|
---|
58 | <term><parameter>--enable-hashes=strong,glibc</parameter></term>
|
---|
59 | <listitem>
|
---|
60 | <para>Build strong hash algorithms recommended for security use
|
---|
61 | cases, and the hash algorithms provided by traditional Glibc
|
---|
62 | <systemitem class='library'>libcrypt</systemitem> for
|
---|
63 | compatibility.</para>
|
---|
64 | </listitem>
|
---|
65 | </varlistentry>
|
---|
66 |
|
---|
67 | <varlistentry>
|
---|
68 | <term><parameter>--enable-obsolete-api=no</parameter></term>
|
---|
69 | <listitem>
|
---|
70 | <para>Disable obsolete API functions. They are not needed for
|
---|
71 | a modern Linux system built from source.</para>
|
---|
72 | </listitem>
|
---|
73 | </varlistentry>
|
---|
74 |
|
---|
75 | <varlistentry>
|
---|
76 | <term><parameter>--disable-failure-tokens</parameter></term>
|
---|
77 | <listitem>
|
---|
78 | <para>Disable failure token feature. It's needed for
|
---|
79 | compatibility with the traditional hash libraries of some
|
---|
80 | platforms, but a Linux system based on Glibc does not need
|
---|
81 | it.</para>
|
---|
82 | </listitem>
|
---|
83 | </varlistentry>
|
---|
84 | </variablelist>
|
---|
85 |
|
---|
86 | <para>Compile the package:</para>
|
---|
87 |
|
---|
88 | <screen><userinput remap="make">make</userinput></screen>
|
---|
89 |
|
---|
90 | <para>To test the results, issue:</para>
|
---|
91 |
|
---|
92 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
93 |
|
---|
94 | <para>Install the package:</para>
|
---|
95 |
|
---|
96 | <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
|
---|
97 |
|
---|
98 | </sect2>
|
---|
99 |
|
---|
100 | <!-- - - - - - - - - - -->
|
---|
101 | <!-- Multilib - 32bit -->
|
---|
102 | <!-- - - - - - - - - - -->
|
---|
103 | <sect2 arch="ml_32,ml_all" role="installation">
|
---|
104 | <title>Installation of Libxcrypt - 32bit</title>
|
---|
105 |
|
---|
106 | <para>Clean previous build:</para>
|
---|
107 |
|
---|
108 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
109 |
|
---|
110 | <para>Prepare File for compilation:</para>
|
---|
111 |
|
---|
112 | <screen><userinput remap="configure">CC="gcc -m32" \
|
---|
113 | ./configure --target=$LFS_TGT32 \
|
---|
114 | --prefix=/usr \
|
---|
115 | --host=i686-pc-linux-gnu \
|
---|
116 | --libdir=/usr/lib32 \
|
---|
117 | --enable-hashes=strong,glibc \
|
---|
118 | --enable-obsolete-api=glibc \
|
---|
119 | --disable-static \
|
---|
120 | --disable-failure-tokens</userinput></screen>
|
---|
121 |
|
---|
122 | <para>Compile the package:</para>
|
---|
123 |
|
---|
124 | <screen><userinput remap="make">make</userinput></screen>
|
---|
125 |
|
---|
126 | <para>Install the package:</para>
|
---|
127 |
|
---|
128 | <screen><userinput remap="install">cp -av .libs/libcrypt.so* $LFS/usr/lib32/ &&
|
---|
129 | make DESTDIR=$LFS install-pkgconfigDATA &&
|
---|
130 | ln -svf libxcrypt.pc $LFS/usr/lib32/pkgconfig/libcrypt.pc</userinput></screen>
|
---|
131 |
|
---|
132 | </sect2><!-- m32 -->
|
---|
133 |
|
---|
134 | <!-- - - - - - - - - - -->
|
---|
135 | <!-- Multilib - x32bit -->
|
---|
136 | <!-- - - - - - - - - - -->
|
---|
137 | <sect2 arch="ml_x32,ml_all" role="installation">
|
---|
138 | <title>Installation of Libxcrypt - x32bit</title>
|
---|
139 |
|
---|
140 | <para>Clean previous build:</para>
|
---|
141 |
|
---|
142 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
143 |
|
---|
144 | <para>Prepare File for compilation:</para>
|
---|
145 |
|
---|
146 | <screen><userinput remap="configure">CC="gcc -mx32" \
|
---|
147 | ./configure --target=$LFS_TGT32 \
|
---|
148 | --prefix=/usr \
|
---|
149 | --host=x86_64-pc-linux-gnux32 \
|
---|
150 | --libdir=/usr/libx32 \
|
---|
151 | --enable-hashes=strong,glibc \
|
---|
152 | --enable-obsolete-api=glibc \
|
---|
153 | --disable-static \
|
---|
154 | --disable-failure-tokens</userinput></screen>
|
---|
155 |
|
---|
156 | <para>Compile the package:</para>
|
---|
157 |
|
---|
158 | <screen><userinput remap="make">make</userinput></screen>
|
---|
159 |
|
---|
160 | <para>Install the package:</para>
|
---|
161 |
|
---|
162 | <screen><userinput remap="install">cp -av .libs/libcrypt.so* $LFS/usr/libx32/ &&
|
---|
163 | make DESTDIR=$LFS install-pkgconfigDATA &&
|
---|
164 | ln -svf libxcrypt.pc $LFS/usr/libx32/pkgconfig/libcrypt.pc</userinput></screen>
|
---|
165 |
|
---|
166 | </sect2><!-- mx32 -->
|
---|
167 |
|
---|
168 | <sect2 role="content">
|
---|
169 | <title/>
|
---|
170 |
|
---|
171 | <para>Details on this package are located in
|
---|
172 | <xref linkend="contents-libxcrypt" role="."/></para>
|
---|
173 |
|
---|
174 | </sect2>
|
---|
175 | </sect1>
|
---|