Author: pierre Date: Sat Jul 4 14:14:57 2020 New Revision: 11992 Log: Various clean up: - prevent static python libraries to be installed in chapter 7 since it is not overwrittent in chapter 8 - have libstdc++-pass2 install its host specific headers into a host specific directory - clean the temporary compiler and the cros compiler at the end of chapter 8
Modified: trunk/BOOK/chapter01/changelog.xml trunk/BOOK/chapter07/libstdc++-pass2.xml trunk/BOOK/chapter07/python.xml trunk/BOOK/chapter08/revisedchroot.xml trunk/BOOK/general.ent Modified: trunk/BOOK/chapter01/changelog.xml ============================================================================== --- trunk/BOOK/chapter01/changelog.xml Wed Jul 1 04:23:05 2020 (r11991) +++ trunk/BOOK/chapter01/changelog.xml Sat Jul 4 14:14:57 2020 (r11992) @@ -43,6 +43,24 @@ appropriate for the entry or if needed the entire day's listitem. --> <listitem> + <para>2020-07-04</para> + <itemizedlist> + <listitem> + <para>[pierre] - Remove /tools and files containing + {i686,x86_64}-lfs in their name at the end of chapter 8.</para> + </listitem> + <listitem> + <para>[pierre] - Add --host= to libstdc++-pass2, so that host + specific headers are installed in a host specific directory.</para> + </listitem> + <listitem> + <para>[pierre] - Fix temporary Python so that static libraries + are not installed.</para> + </listitem> + </itemizedlist> + </listitem> + + <listitem> <itemizedlist> <para>2020-07-01</para> <listitem> Modified: trunk/BOOK/chapter07/libstdc++-pass2.xml ============================================================================== --- trunk/BOOK/chapter07/libstdc++-pass2.xml Wed Jul 1 04:23:05 2020 (r11991) +++ trunk/BOOK/chapter07/libstdc++-pass2.xml Sat Jul 4 14:14:57 2020 (r11992) @@ -62,11 +62,12 @@ <para>Prepare libstdc++ for compilation:</para> -<screen><userinput remap="configure">../libstdc++-v3/configure \ - CXXFLAGS="-g -O2 -D_GNU_SOURCE" \ - --prefix=/usr \ - --disable-multilib \ - --disable-nls \ +<screen><userinput remap="configure">../libstdc++-v3/configure \ + CXXFLAGS="-g -O2 -D_GNU_SOURCE" \ + --prefix=/usr \ + --disable-multilib \ + --disable-nls \ + --host=$(uname -m)-lfs-linux-gnu \ --disable-libstdcxx-pch</userinput></screen> <variablelist> @@ -80,6 +81,15 @@ </listitem> </varlistentry> + <varlistentry> + <term><parameter>--host=$(uname -m)-lfs-linux-gnu</parameter></term> + <listitem> + <para>We have to mimic what would happen if this package were built + as part of a full compiler build. This switch would be passed to + configure by GCC's build machinery.</para> + </listitem> + </varlistentry> + <varlistentry> <term><parameter>--disable-libstdcxx-pch</parameter></term> <listitem> Modified: trunk/BOOK/chapter07/python.xml ============================================================================== --- trunk/BOOK/chapter07/python.xml Wed Jul 1 04:23:05 2020 (r11991) +++ trunk/BOOK/chapter07/python.xml Sat Jul 4 14:14:57 2020 (r11992) @@ -52,12 +52,21 @@ <para>Prepare Python for compilation:</para> -<screen><userinput remap="configure">./configure --prefix=/usr --without-ensurepip</userinput></screen> +<screen><userinput remap="configure">./configure --prefix=/usr \ + --enable-shared \ + --without-ensurepip</userinput></screen> <variablelist> <title>The meaning of the configure option:</title> <varlistentry> + <term><parameter>--enable-shared</parameter></term> + <listitem> + <para>This switch prevents installation of static libraries.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><parameter>--without-ensurepip</parameter></term> <listitem> <para>This switch disables the Python package installer, which is not Modified: trunk/BOOK/chapter08/revisedchroot.xml ============================================================================== --- trunk/BOOK/chapter08/revisedchroot.xml Wed Jul 1 04:23:05 2020 (r11991) +++ trunk/BOOK/chapter08/revisedchroot.xml Sat Jul 4 14:14:57 2020 (r11992) @@ -62,6 +62,19 @@ url="&blfs-book;/introduction/la-files.html">BLFS section "About Libtool Archive (.la) files"</ulink>.</para> + <para>The compiler built in <xref linkend="chapter-temporary-tools"/> and + <xref linkend="chapter-chroot-temporary-tools"/> is still partially + installed, and not needed anymore. Remove it with:</para> + +<screen><userinput>find /usr/{bin,lib,libexec,include} \ + -depth \ + -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf</userinput></screen> + + <para>The <filename class="directory">/tools</filename> directory can also + be removed to further gain some place:</para> + +<screen><userinput>rm -rf /tools</userinput></screen> + <para>Finally, remove the temporary 'tester' user account created at the beginning of the previous chapter.</para> Modified: trunk/BOOK/general.ent ============================================================================== --- trunk/BOOK/general.ent Wed Jul 1 04:23:05 2020 (r11991) +++ trunk/BOOK/general.ent Sat Jul 4 14:14:57 2020 (r11992) @@ -1,13 +1,13 @@ -<!ENTITY version "SVN-20200701"> +<!ENTITY version "SVN-20200704"> <!ENTITY short-version "svn"> <!-- Used below in &blfs-book; Change to x.y for release but not -rc releases --> <!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" --> -<!ENTITY versiond "20200701-systemd"> +<!ENTITY versiond "20200704-systemd"> <!ENTITY short-versiond "systemd"> <!ENTITY generic-versiond "systemd"> -<!ENTITY releasedate "July 1st, 2020"> +<!ENTITY releasedate "July 4th, 2020"> <!ENTITY copyrightdate "1999-2020"><!-- jhalfs needs a literal dash, not – --> -- http://lists.linuxfromscratch.org/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page