mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 14:32:13 +08:00
Added Steam chapter and two dependencies
This commit is contained in:
parent
0e01e1b689
commit
8c48c9d2ee
@ -16,6 +16,7 @@ $Date$
|
||||
<!-- Parts -->
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="introduction/introduction.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="multilib/multilib.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="steam/steamchapter.xml"/>
|
||||
|
||||
<!-- Appendices -->
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="appendices/creat-comm.xml"/>
|
||||
|
11
steam/deps/dps/dummy.xml
Normal file
11
steam/deps/dps/dummy.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
|
||||
|
||||
<sect1 role="dummy">
|
||||
|
||||
|
||||
<title>Packages for UEFI Boot</title>
|
||||
<para/>
|
||||
</sect1>
|
||||
|
251
steam/deps/net/nspr.xml
Normal file
251
steam/deps/net/nspr.xml
Normal file
@ -0,0 +1,251 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||
<!ENTITY % general-entities SYSTEM "../../../general.ent">
|
||||
%general-entities;
|
||||
|
||||
<!ENTITY nspr-download-http "&mozilla-http;/nspr/releases/v&nspr-version;/src/nspr-&nspr-version;.tar.gz">
|
||||
<!ENTITY nspr-download-ftp " ">
|
||||
<!ENTITY nspr-md5sum "5e0acf9fbdde85181bddd510f4624841">
|
||||
<!ENTITY nspr-size "1.0 MB">
|
||||
<!ENTITY nspr-buildsize "9.6 MB">
|
||||
<!ENTITY nspr-time "less than 0.1 SBU">
|
||||
]>
|
||||
|
||||
<sect1 id="nspr" xreflabel="NSPR-&nspr-version;">
|
||||
<?dbhtml filename="nspr.html"?>
|
||||
|
||||
|
||||
<title>NSPR-&nspr-version;</title>
|
||||
|
||||
<indexterm zone="nspr">
|
||||
<primary sortas="a-NSPR">NSPR</primary>
|
||||
</indexterm>
|
||||
|
||||
<sect2 role="package">
|
||||
<title>Introduction to NSPR</title>
|
||||
|
||||
<para>
|
||||
<application>Netscape Portable Runtime</application> (NSPR) provides a
|
||||
platform-neutral API for system level and libc like functions.
|
||||
</para>
|
||||
|
||||
&lfs121_checked;
|
||||
|
||||
<bridgehead renderas="sect3">Package Information</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>
|
||||
Download (HTTP): <ulink url="&nspr-download-http;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download (FTP): <ulink url="&nspr-download-ftp;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download MD5 sum: &nspr-md5sum;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download size: &nspr-size;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Estimated disk space required: &nspr-buildsize;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Estimated build time: &nspr-time;
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="installation">
|
||||
<title>Installation of NSPR</title>
|
||||
|
||||
<para>
|
||||
Install <application>NSPR</application> by running the following commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>cd nspr &&
|
||||
|
||||
sed -i '/^RELEASE/s|^|#|' pr/src/misc/Makefile.in &&
|
||||
sed -i 's|$(LIBRARY) ||' config/rules.mk &&
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--with-mozilla \
|
||||
--with-pthreads \
|
||||
$([ $(uname -m) = x86_64 ] && echo --enable-64bit) &&
|
||||
make</userinput></screen>
|
||||
|
||||
<para>
|
||||
The test suite is designed for testing changes to nss or nspr and is
|
||||
not particularly useful for checking a released version (e.g. it needs
|
||||
to be run on a non-optimized build with both nss and nspr directories
|
||||
existing alongside each other).
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>make install</userinput></screen>
|
||||
</sect2>
|
||||
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para>
|
||||
<command>sed -ri '/^RELEASE/s/^/#/' pr/src/misc/Makefile.in</command>:
|
||||
This sed disables installing two unneeded scripts.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<command>sed -i 's#$(LIBRARY) ##' config/rules.mk</command>: This sed disables
|
||||
installing the static libraries.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<parameter>--with-mozilla</parameter>: This parameter adds Mozilla support
|
||||
to the libraries (required if you want to build any other Mozilla
|
||||
products and link them to these libraries).
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<parameter>--with-pthreads</parameter>: This parameter forces use of the
|
||||
system pthread library.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<parameter>--enable-64bit</parameter>: The --enable-64bit parameter is
|
||||
<emphasis>required</emphasis> on an x86_64 system to prevent
|
||||
<command>configure</command> failing with a claim that this is a system
|
||||
without pthread support. The [ $(uname -m) = x86_64 ] test ensures it has
|
||||
no effect on a 32 bit system. Keep the line if intending to do multilib,
|
||||
and the lib32 instructions will be down below.
|
||||
</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="installation">
|
||||
<title>32-bit Installation of NSPR</title>
|
||||
|
||||
<para>
|
||||
Install <application>lib32-NSPR</application> by running the following commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>cd nspr &&
|
||||
|
||||
CC="gcc -m32" CXX="g++ -m32" \
|
||||
PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
|
||||
./configure --prefix=/usr \
|
||||
--libdir=/usr/lib32 \
|
||||
--host=i686-pc-linux-gnu \
|
||||
--with-mozilla \
|
||||
--with-pthreads \
|
||||
--disable-64bit &&
|
||||
make</userinput></screen>
|
||||
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>make DESTDIR=$PWD/DESTDIR install
|
||||
cp -vr DESTDIR/usr/lib32/* /usr/lib32
|
||||
rm -rf DESTDIR
|
||||
ldconfig</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="content">
|
||||
<title>Contents</title>
|
||||
|
||||
<segmentedlist>
|
||||
<segtitle>Installed Programs</segtitle>
|
||||
<segtitle>Installed Libraries</segtitle>
|
||||
<segtitle>Installed Directories</segtitle>
|
||||
|
||||
<seglistitem>
|
||||
<seg>
|
||||
nspr-config
|
||||
</seg>
|
||||
<seg>
|
||||
libnspr4.so, libplc4.so, and libplds4.so
|
||||
</seg>
|
||||
<seg>
|
||||
/usr/include/nspr
|
||||
</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
|
||||
<variablelist>
|
||||
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
||||
<?dbfo list-presentation="list"?>
|
||||
<?dbhtml list-presentation="table"?>
|
||||
|
||||
<varlistentry id="nspr-config">
|
||||
<term><command>nspr-config</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
provides compiler and linker options to other packages that use
|
||||
<application>NSPR</application>
|
||||
</para>
|
||||
<indexterm zone="nspr nspr-config">
|
||||
<primary sortas="b-nspr-config">nspr-config</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="libnspr4">
|
||||
<term><filename class="libraryfile">libnspr4.so</filename></term>
|
||||
<listitem>
|
||||
<para>
|
||||
contains functions that provide platform independence for non-GUI
|
||||
operating system facilities such as threads, thread synchronization,
|
||||
normal file and network I/O, interval timing and calendar time,
|
||||
basic memory management and shared library linking
|
||||
</para>
|
||||
<indexterm zone="nspr libnspr4">
|
||||
<primary sortas="c-libnspr4">libnspr4.so</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="libplc4">
|
||||
<term><filename class="libraryfile">libplc4.so</filename></term>
|
||||
<listitem>
|
||||
<para>
|
||||
contains functions that implement many of the features offered by
|
||||
libnspr4
|
||||
</para>
|
||||
<indexterm zone="nspr libplc4">
|
||||
<primary sortas="c-libplc4">libplc4.so</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="libplds4">
|
||||
<term><filename class="libraryfile">libplds4.so</filename></term>
|
||||
<listitem>
|
||||
<para>
|
||||
contains functions that provide data structures
|
||||
</para>
|
||||
<indexterm zone="nspr libplds4">
|
||||
<primary sortas="c-libplds4">libplds4.so</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
487
steam/deps/net/nss.xml
Normal file
487
steam/deps/net/nss.xml
Normal file
@ -0,0 +1,487 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||
<!ENTITY % general-entities SYSTEM "../../../general.ent">
|
||||
%general-entities;
|
||||
|
||||
<!-- for when .0 is not part of the new tarball name, but always referenced -->
|
||||
<!ENTITY nss-url "archive.mozilla.org/pub/security/nss/releases">
|
||||
|
||||
<!-- micro versions-->
|
||||
<!--<!ENTITY nss-download-http "https://&nss-url;/NSS_3_&nss-minor-version;_&nss-micro-version;_RTM/src/nss-&nss-version;.tar.gz">-->
|
||||
|
||||
<!-- no micro versions -->
|
||||
<!ENTITY nss-download-http "https://&nss-url;/NSS_&nss-dir;_RTM/src/nss-&nss-version;.tar.gz">
|
||||
<!ENTITY nss-download-ftp " ">
|
||||
<!ENTITY nss-md5sum "a9e62202ca3d6b542b9318bb05bb7027">
|
||||
<!ENTITY nss-size "73 MB">
|
||||
<!ENTITY nss-buildsize "304 MB (add 268 MB for tests)">
|
||||
<!ENTITY nss-time "1.1 SBU (with parallelism=4, add 16 SBU for tests on AMD Ryzens or at least 30 SBU on Intel machines)">
|
||||
<!-- On my system, I got 64.2 SBU, but Bruce gets 18 SBU. -renodr -->
|
||||
<!-- On my system, I got 63 SBU, but Xi gets ~18 SBU. -pierre (for 3.78) -->
|
||||
<!-- On my 3400G for 3.79 I got 16 SBU -ken -->
|
||||
<!-- Still 17 SBU for 3.81 - bdubbs -->
|
||||
<!-- 73 SBU but I'm on Intel. -renodr -->
|
||||
<!-- 3.86 amended the figures -ken
|
||||
3400G 14 SBU with 6.0.12, but the remeasured SBU has become very slow
|
||||
and maybe other people would see a ster SBU on a fresh build;
|
||||
i7-4790 35 SBU with 6.0.12, no failures
|
||||
Bruce's 3900X 19.3 SBU, his i7-12700K about 30 SBU, 12 failures
|
||||
|
||||
3.93:
|
||||
Passed: 69982
|
||||
Failed: 0
|
||||
Failed with core: 0
|
||||
ASan failures: 0
|
||||
Unknown status: 2
|
||||
TinderboxPrint:Unknown: 2
|
||||
|
||||
Test Results 3.95: (Intel i9-10900k) I got close to 70 SBU [rahul]
|
||||
|
||||
Passed: 69982
|
||||
Failed: 0
|
||||
Failed with core: 0
|
||||
ASan failures: 0
|
||||
Unknown status: 2
|
||||
TinderboxPrint:Unknown: 2
|
||||
|
||||
Test Results 3.96: (AMD Ryzen 9 3900X) about 14 SBU [bdubbs]
|
||||
Passed: 70289
|
||||
Failed: 0
|
||||
Failed with core: 0
|
||||
ASan failures: 0
|
||||
Unknown status: 2
|
||||
TinderboxPrint:Unknown: 2
|
||||
|
||||
Test Results 3.97: (AMD Ryzen 7 1700) about 16 SBU [rahul]
|
||||
Passed: 69809
|
||||
Failed: 0
|
||||
Failed with core: 0
|
||||
ASan failures: 0
|
||||
Unknown status: 2
|
||||
TinderboxPrint:Unknown: 2
|
||||
|
||||
Test results 3.98: (Intel Xeon E5-1650v3) 25 SBU [renodr]
|
||||
Tests summary:
|
||||
Passed: 69919
|
||||
Failed: 0
|
||||
Failed with core: 0
|
||||
ASan failures: 0
|
||||
Unknown status: 2
|
||||
TinderboxPrint:Unknown: 2
|
||||
|
||||
Test results 3.99: (AMD Ryzen 9 3900X) 14 SBU [bdubbs]
|
||||
Tests summary:
|
||||
Passed: 69953
|
||||
Failed: 0
|
||||
Failed with core: 0
|
||||
ASan failures: 0
|
||||
Unknown status: 2
|
||||
TinderboxPrint:Unknown: 2
|
||||
-->
|
||||
]>
|
||||
|
||||
<sect1 id="nss" xreflabel="nss-&nss-version;">
|
||||
<?dbhtml filename="nss.html"?>
|
||||
|
||||
<title>NSS-&nss-version;</title>
|
||||
|
||||
<indexterm zone="nss">
|
||||
<primary sortas="a-NSS">NSS</primary>
|
||||
</indexterm>
|
||||
|
||||
<sect2 role="package">
|
||||
<title>Introduction to NSS</title>
|
||||
|
||||
<para>
|
||||
The Network Security Services (<application>NSS</application>) package is
|
||||
a set of libraries designed to support cross-platform development of
|
||||
security-enabled client and server applications. Applications built with
|
||||
NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12,
|
||||
S/MIME, X.509 v3 certificates, and other security standards. This is
|
||||
useful for implementing SSL and S/MIME or other Internet security
|
||||
standards into an application.
|
||||
</para>
|
||||
|
||||
&lfs121_checked;
|
||||
|
||||
<bridgehead renderas="sect3">Package Information</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>
|
||||
Download (HTTP): <ulink url="&nss-download-http;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download (FTP): <ulink url="&nss-download-ftp;"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download MD5 sum: &nss-md5sum;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Download size: &nss-size;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Estimated disk space required: &nss-buildsize;
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Estimated build time: &nss-time;
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>
|
||||
Required patch:
|
||||
<ulink url="&patch-root;/nss-&nss-version;-standalone-1.patch"/>
|
||||
</para>
|
||||
</listitem>
|
||||
<!--
|
||||
<listitem>
|
||||
<para>
|
||||
Required patch for processors lacking the <quote>adx</quote>
|
||||
instruction set:
|
||||
<ulink url="&patch-root;/nss-&nss-version;-illegal_instruction-1.patch"/>
|
||||
</para>
|
||||
</listitem>
|
||||
-->
|
||||
</itemizedlist>
|
||||
|
||||
<bridgehead renderas="sect3">NSS Dependencies</bridgehead>
|
||||
|
||||
<bridgehead renderas="sect4">Required</bridgehead>
|
||||
<para role="required">
|
||||
<xref linkend="nspr"/>
|
||||
</para>
|
||||
|
||||
<bridgehead renderas="sect4">Recommended</bridgehead>
|
||||
<para role="recommended">
|
||||
<!-- xref linkend="sqlite"/ --> and
|
||||
<!-- xref role="runtime" linkend="p11-kit" /--> (runtime)
|
||||
</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="installation">
|
||||
<title>Installation of NSS</title>
|
||||
|
||||
<!--
|
||||
<note>
|
||||
<para>
|
||||
Some old generations processors lack an assembler instruction that
|
||||
is generated unconditionally by NSS-3.90. It leads to an
|
||||
"illegal instruction" fault when running firefox. The availability
|
||||
of this instruction is asserted by the <quote>adx</quote> flag
|
||||
in <filename>/proc/cpuinfo</filename>. If this flag is not set,
|
||||
apply the following patch:
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<screen><userinput>grep -q adx /proc/cpuinfo || \
|
||||
patch -Np1 -i ../nss-&nss-version;-illegal_instruction-1.patch</userinput></screen>
|
||||
|
||||
-->
|
||||
<para>
|
||||
Install <application>NSS</application> by running the following commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>patch -Np1 -i ../nss-&nss-version;-standalone-1.patch &&
|
||||
|
||||
cd nss &&
|
||||
|
||||
make BUILD_OPT=1 \
|
||||
NSPR_INCLUDE_DIR=/usr/include/nspr \
|
||||
USE_SYSTEM_ZLIB=1 \
|
||||
ZLIB_LIBS=-lz \
|
||||
NSS_ENABLE_WERROR=0 \
|
||||
$([ $(uname -m) = x86_64 ] && echo USE_64=1) \
|
||||
$([ -f /usr/include/sqlite3.h ] && echo NSS_USE_SYSTEM_SQLITE=1)</userinput></screen>
|
||||
|
||||
<para>
|
||||
<!-- the unittest files get compiled automatically since nss-3.31.0 -->
|
||||
To run the tests, execute the following commands<!--(1 test is known to fail)-->:
|
||||
</para>
|
||||
|
||||
<screen remap="test"><userinput>cd tests &&
|
||||
HOST=localhost DOMSUF=localdomain ./all.sh
|
||||
cd ../</userinput></screen>
|
||||
|
||||
<note>
|
||||
<para>Some information about the tests:</para>
|
||||
<itemizedlist spacing="compact">
|
||||
<listitem>
|
||||
<para>
|
||||
HOST=localhost and DOMSUF=localdomain are required.
|
||||
Without these variables, a FQDN is
|
||||
required to be specified and this generic way should work for
|
||||
everyone, provided <systemitem>localhost.localdomain</systemitem>
|
||||
is defined
|
||||
<phrase revision='sysv'>
|
||||
in <filename>/etc/hosts</filename>, as done in
|
||||
<ulink url="&lfs-root;/chapter09/network.html#ch-config-hosts">
|
||||
the LFS book</ulink>.
|
||||
</phrase>
|
||||
<phrase revision='systemd'>
|
||||
by the <systemitem class='library'>myhostname</systemitem>
|
||||
Name Service Switch module, as specified in
|
||||
<ulink url="&lfs-root;/chapter08/glibc.html#conf-glibc">
|
||||
the LFS book</ulink>.
|
||||
</phrase>
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
The tests take a long time to run. If desired there is
|
||||
information in the all.sh script about running subsets of the
|
||||
total test suite.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
When interrupting the tests, the test suite
|
||||
fails to spin down test servers that are run. This leads to an
|
||||
infinite loop in the tests where the test suite tries to kill a server
|
||||
that doesn't exist anymore because it pulls the wrong PID.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Test suite results (in HTML format!) can be found at
|
||||
../../test_results/security/localhost.1/results.html
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
A few tests might fail on some Intel machines for unknown reasons.
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</note>
|
||||
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>cd ../dist &&
|
||||
|
||||
install -v -m755 Linux*/lib/*.so /usr/lib &&
|
||||
install -v -m644 Linux*/lib/{*.chk,libcrmf.a} /usr/lib &&
|
||||
|
||||
install -v -m755 -d /usr/include/nss &&
|
||||
cp -v -RL {public,private}/nss/* /usr/include/nss &&
|
||||
|
||||
install -v -m755 Linux*/bin/{certutil,nss-config,pk12util} /usr/bin &&
|
||||
|
||||
install -v -m644 Linux*/lib/pkgconfig/nss.pc /usr/lib/pkgconfig</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para>
|
||||
<parameter>BUILD_OPT=1</parameter>: This option is passed to
|
||||
<command>make</command> so that the build is performed with no debugging
|
||||
symbols built into the binaries and the default compiler optimizations are
|
||||
used.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<parameter>NSPR_INCLUDE_DIR=/usr/include/nspr</parameter>: This option
|
||||
sets the location of the nspr headers.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<parameter>USE_SYSTEM_ZLIB=1</parameter>: This option is passed to
|
||||
<command>make</command> to ensure that the
|
||||
<filename class="libraryfile">libssl3.so</filename> library is linked to
|
||||
the system installed <application>zlib</application> instead of the
|
||||
in-tree version.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<parameter>ZLIB_LIBS=-lz</parameter>: This option provides the
|
||||
linker flags needed to link to the system <application>zlib</application>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<command>$([ $(uname -m) = x86_64 ] && echo USE_64=1)</command>:
|
||||
The <parameter>USE_64=1</parameter> option is <emphasis>required on
|
||||
x86_64</emphasis>, otherwise <command>make</command> will try (and fail)
|
||||
to create 32-bit objects. The [ $(uname -m) = x86_64 ] test ensures it
|
||||
has no effect on a 32 bit system.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<command>([ -f /usr/include/sqlite3.h ] && echo
|
||||
NSS_USE_SYSTEM_SQLITE=1)</command>: This tests if
|
||||
<application>sqlite</application> is installed and if so it
|
||||
<command>echo</command>s the option NSS_USE_SYSTEM_SQLITE=1 to
|
||||
<command>make</command> so that
|
||||
<filename class="libraryfile">libsoftokn3.so</filename> will link against
|
||||
the system version of sqlite.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<option>NSS_DISABLE_GTESTS=1</option>: If you don't need to run
|
||||
NSS test suite, append this option to <command>make</command> command,
|
||||
to prevent the compilation of tests and save some build time.
|
||||
</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="installation">
|
||||
<title>32-bit Installation of NSS</title>
|
||||
|
||||
<para>
|
||||
Install <application>lib32-NSS</application> by running the following commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>cd nss &&
|
||||
|
||||
CC="gcc -m32" CXX="g++ -m32" \
|
||||
make BUILD_OPT=1 \
|
||||
NSPR_INCLUDE_DIR=/usr/include/nspr \
|
||||
USE_SYSTEM_ZLIB=1 \
|
||||
ZLIB_LIBS=-lz \
|
||||
NSS_ENABLE_WERROR=0 \
|
||||
$([ -f /usr/lib32/libsqlite3.so ] && echo NSS_USE_SYSTEM_SQLITE=1)</userinput></screen>
|
||||
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>cd ../dist &&
|
||||
|
||||
install -v -m755 Linux*/lib/*.so /usr/lib32 &&
|
||||
install -v -m644 Linux*/lib/{*.chk,libcrmf.a} /usr/lib32 &&
|
||||
sed -i 's/lib/lib32/g' Linux*/lib/pkgconfig/nss.pc &&
|
||||
install -v -m644 Linux*/lib/pkgconfig/nss.pc /usr/lib32/pkgconfig</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="configuration">
|
||||
<title>Configuring NSS</title>
|
||||
|
||||
<para>
|
||||
If <!-- xref linkend="p11-kit"/ --> is installed, the
|
||||
<application>p11-kit</application> trust module
|
||||
(<filename>/usr/lib/pkcs11/p11-kit-trust.so</filename>) can be used as a
|
||||
drop-in replacement for <filename>/usr/lib/libnssckbi.so</filename> to
|
||||
transparently make the system CAs available to
|
||||
<application>NSS</application> aware applications, rather than the static
|
||||
library provided by <filename>/usr/lib/libnssckbi.so</filename>. As the
|
||||
<systemitem class="username">root</systemitem> user, execute the following
|
||||
command:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>ln -sfv ./pkcs11/p11-kit-trust.so /usr/lib/libnssckbi.so</userinput></screen>
|
||||
|
||||
<para>
|
||||
For <application>lib32-NSS</application>, execute the following
|
||||
command as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
<screen role="root"><userinput>ln -sfv ./pkcs11/p11-kit-trust.so /usr/lib32/libnssckbi.so</userinput></screen>
|
||||
|
||||
<para>
|
||||
Additionally, for dependent applications that do not use the internal
|
||||
database (<filename>/usr/lib/libnssckbi.so</filename>), the
|
||||
<filename>/usr/sbin/make-ca</filename> script included on the
|
||||
<!-- xref linkend="make-ca"/ --> page can generate a system wide NSS DB with the
|
||||
<parameter>-n</parameter> switch, or by modifying the
|
||||
<filename>/etc/make-ca/make-ca.conf</filename> file.
|
||||
</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="content">
|
||||
<title>Contents</title>
|
||||
|
||||
<segmentedlist>
|
||||
<segtitle>Installed Programs</segtitle>
|
||||
<segtitle>Installed Libraries</segtitle>
|
||||
<segtitle>Installed Directories</segtitle>
|
||||
|
||||
<seglistitem>
|
||||
<seg>
|
||||
certutil, nss-config, and pk12util
|
||||
</seg>
|
||||
<seg>
|
||||
libcrmf.a, libfreebl3.so, libfreeblpriv3.so,
|
||||
libnss3.so, libnssckbi.so, libnssckbi-testlib.so,
|
||||
libnssdbm3.so, libnsssysinit.so, libnssutil3.so,
|
||||
libpkcs11testmodule.so, libsmime3.so, libsoftokn3.so,
|
||||
and libssl3.so
|
||||
</seg>
|
||||
<seg>
|
||||
/usr/include/nss
|
||||
</seg>
|
||||
</seglistitem>
|
||||
</segmentedlist>
|
||||
|
||||
<variablelist>
|
||||
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
||||
<?dbfo list-presentation="list"?>
|
||||
<?dbhtml list-presentation="table"?>
|
||||
|
||||
<varlistentry id="certutil">
|
||||
<term><command>certutil</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
is the Mozilla Certificate Database Tool. It is a command-line
|
||||
utility that can create and modify the Netscape Communicator
|
||||
cert8.db and key3.db database files. It can also list, generate,
|
||||
modify, or delete certificates within the cert8.db file and create
|
||||
or change the password, generate new public and private key pairs,
|
||||
display the contents of the key database, or delete key pairs within
|
||||
the key3.db file
|
||||
</para>
|
||||
<indexterm zone="nss certutil">
|
||||
<primary sortas="b-certutil">certutil</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="nss-config">
|
||||
<term><command>nss-config</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
is used to determine the NSS library settings of the installed NSS
|
||||
libraries
|
||||
</para>
|
||||
<indexterm zone="nss nss-config">
|
||||
<primary sortas="b-nss-config">nss-config</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="pk12util">
|
||||
<term><command>pk12util</command></term>
|
||||
<listitem>
|
||||
<para>
|
||||
is a tool for importing certificates and keys from pkcs #12 files
|
||||
into NSS or exporting them. It can also list certificates and keys
|
||||
in such files
|
||||
</para>
|
||||
<indexterm zone="nss pk12util">
|
||||
<primary sortas="b-pk12util">pk12util</primary>
|
||||
</indexterm>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
@ -5,11 +5,11 @@
|
||||
%general-entities;
|
||||
]>
|
||||
|
||||
<part id="introduction" xreflabel="Introduction">
|
||||
<?dbhtml filename="introduction.html" dir="introduction"?>
|
||||
<part id="steamchapter" xreflabel="Steam">
|
||||
<?dbhtml filename="steamchapter.html" dir="steam"?>
|
||||
|
||||
<title>Introduction</title>
|
||||
<title>Steam</title>
|
||||
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="welcome/welcome.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="steamintro.xml"/>
|
||||
|
||||
</part>
|
23
steam/steamintro.xml
Normal file
23
steam/steamintro.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||||
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
||||
<!ENTITY % general-entities SYSTEM "../general.ent">
|
||||
%general-entities;
|
||||
]>
|
||||
|
||||
<chapter id="Steam">
|
||||
<?dbhtml filename="steamintro.html"?>
|
||||
|
||||
<title>Steam</title>
|
||||
|
||||
<para>
|
||||
This chapter is dedicated to covering all the dependencies
|
||||
(both 64-bit and 32-bit compilation instructions),
|
||||
configuration of those dependencies, and troubleshooting
|
||||
that is required to get Steam working on a LFS platform.
|
||||
</para>
|
||||
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="deps/net/nspr.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="deps/net/nss.xml"/>
|
||||
|
||||
</chapter>
|
0
steam/steamtrblshoot.xml
Normal file
0
steam/steamtrblshoot.xml
Normal file
Loading…
Reference in New Issue
Block a user