Fix a problem with glibc tests and add some explanations to i

the configure options.

Add a command to touch /root/.vimrc so that the default vim 
options don't override those in /etc/vimrc.



git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11240 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Bruce Dubbs 2017-05-03 21:28:38 +00:00
parent 22c4f87286
commit 5897639a63
4 changed files with 70 additions and 10 deletions

View File

@ -42,6 +42,21 @@
<listitem revision="sysv"> or <listitem revision="systemd"> as <listitem revision="sysv"> or <listitem revision="systemd"> as
appropriate for the entry or if needed the entire day's listitem. appropriate for the entry or if needed the entire day's listitem.
--> -->
<listitem>
<para>2017-05-03</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Fix a problem with glibc tests and
add some explanations to the configure options.</para>
</listitem>
<listitem>
<para>[bdubbs] - Add a command to touch /root/.vimrc
so that the default vim options don't override those
in /etc/vimrc.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem> <listitem>
<para>2017-05-01</para> <para>2017-05-01</para>
<itemizedlist> <itemizedlist>

View File

@ -78,11 +78,51 @@ cd build</userinput></screen>
<para>Prepare Glibc for compilation:</para> <para>Prepare Glibc for compilation:</para>
<screen><userinput remap="configure">../configure --prefix=/usr \ <screen><userinput remap="configure">../configure --prefix=/usr \
--disable-werror \
--enable-kernel=&min-kernel; \ --enable-kernel=&min-kernel; \
--enable-obsolete-rpc \ --enable-obsolete-rpc \
--enable-stack-protector=strong \ --enable-stack-protector=strong \
libc_cv_slibdir=/lib</userinput></screen> libc_cv_slibdir=/lib</userinput></screen>
<variablelist>
<title>The meaning of the new configure options:</title>
<varlistentry>
<term><parameter>--disable-werror</parameter></term>
<listitem>
<para>This option disables the -Werror option passed to
GCC. This is necessary for running the test suite.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>--enable-obsolete-rpc</parameter></term>
<listitem>
<para>This option builds older RPC code for use with
network file system utilities (nfs).</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>--enable-stack-protector=strong</parameter></term>
<listitem>
<para>This option increases system security by adding a known canary
(a random integer) to the stack during a function preamble, and checks
it when the function returns. If it changed, there was a stack
overflow, and the program aborts.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>libc_cv_slibdir=/lib</parameter></term>
<listitem>
<para>This variable sets the correct library for all
systems. We do not want lib64 to be used.</para>
</listitem>
</varlistentry>
</variablelist>
<para>Compile the package:</para> <para>Compile the package:</para>
<screen><userinput remap="make">make</userinput></screen> <screen><userinput remap="make">make</userinput></screen>
@ -97,17 +137,16 @@ cd build</userinput></screen>
<screen><userinput remap="test">make check</userinput></screen> <screen><userinput remap="test">make check</userinput></screen>
<para>You will probably see some test failures. The Glibc test suite is <para>You may see some test failures. The Glibc test suite is
somewhat dependent on the host system. This is a list of the most common somewhat dependent on the host system. This is a list of the most common
issues seen for this version of LFS:</para> issues seen for some versions of LFS:</para>
<itemizedlist> <itemizedlist>
<listitem> <listitem>
<para><emphasis>posix/tst-getaddrinfo4</emphasis> will always fail due <para><emphasis>posix/tst-getaddrinfo4</emphasis> and
to not having the necessary networking applications when the tests are <emphasis>posix/tst-getaddrinfo5</emphasis>
run. <emphasis>posix/tst-getaddrinfo5</emphasis> is also known may fail on some architectures.</para>
to fail on some architectures.</para>
</listitem> </listitem>
<listitem> <listitem>

View File

@ -128,7 +128,9 @@ endif
" End /etc/vimrc</literal> " End /etc/vimrc</literal>
EOF</userinput></screen> EOF
touch ~/.vimrc</userinput></screen>
<para>The <parameter>set nocompatible</parameter> setting makes <para>The <parameter>set nocompatible</parameter> setting makes
<command>vim</command> behave in a more useful way (the default) than the <command>vim</command> behave in a more useful way (the default) than the
@ -144,6 +146,10 @@ EOF</userinput></screen>
emulators. This gives the highlighting a better color scheme for use on the emulators. This gives the highlighting a better color scheme for use on the
black background of these programs.</para> black background of these programs.</para>
<para>Creating an empty <filename>~/.vimrc</filename> prevents vim from
overriding settings in <filename>/etc/vimrc</filename> by using
<filename>/usr/share/vim/vim80/defaults.vim</filename>.</para>
<para>Documentation for other available options can be obtained by <para>Documentation for other available options can be obtained by
running the following command:</para> running the following command:</para>

View File

@ -1,13 +1,13 @@
<!ENTITY version "SVN-20170501"> <!ENTITY version "SVN-20170503">
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book; <!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
Change to x.y for release but not -rc releases --> Change to x.y for release but not -rc releases -->
<!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" --> <!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" -->
<!ENTITY versiond "20170501-systemd"> <!ENTITY versiond "20170503-systemd">
<!ENTITY short-versiond "systemd"> <!ENTITY short-versiond "systemd">
<!ENTITY generic-versiond "systemd"> <!ENTITY generic-versiond "systemd">
<!ENTITY releasedate "May 1, 2017"> <!ENTITY releasedate "May 3, 2017">
<!ENTITY copyrightdate "1999-2017"><!-- jhalfs needs a literal dash, not &ndash; --> <!ENTITY copyrightdate "1999-2017"><!-- jhalfs needs a literal dash, not &ndash; -->
<!ENTITY milestone "8.1"> <!ENTITY milestone "8.1">