diff options
-rw-r--r-- | chapter01/changelog.xml | 28 | ||||
-rw-r--r-- | chapter01/whatsnew.xml | 12 | ||||
-rw-r--r-- | chapter06/strippingagain.xml | 52 | ||||
-rw-r--r-- | general.ent | 6 | ||||
-rw-r--r-- | packages.ent | 24 |
5 files changed, 80 insertions, 42 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 4208da681..3ada283fa 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -43,6 +43,34 @@ appropriate for the entry or if needed the entire day's listitem. --> <listitem> + <para>2017-04-25</para> + <itemizedlist> + <listitem> + <para>[bdubbs] - Update to vim-8.0.586. Fixes + <ulink url="&lfs-ticket-root;4078">#4078</ulink>.</para> + </listitem> + <listitem> + <para>[bdubbs] - Update to eudev-3.2.2. Fixes + <ulink url="&lfs-ticket-root;4077">#4077</ulink>.</para> + </listitem> + <listitem> + <para>[bdubbs] - Update to linux-4.10.12. Fixes + <ulink url="&lfs-ticket-root;4075">#4075</ulink>.</para> + </listitem> + <listitem> + <para>[bdubbs] - Update to gperf-3.1. Fixes + <ulink url="&lfs-ticket-root;4053">#4053</ulink>.</para> + </listitem> + <listitem> + <para>[bdubbs] - Improve instructions to save debugging + information for selected libraries when stripping at + the end of Chapter 6. Fixes + <ulink url="&lfs-ticket-root;4076">#4076</ulink> (again).</para> + </listitem> + </itemizedlist> + </listitem> + + <listitem> <para>2017-04-22</para> <itemizedlist> <listitem> diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 42da0a7e8..a85296145 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -68,9 +68,9 @@ <!--<listitem> <para>Diffutils &diffutils-version;</para> </listitem>--> - <!--<listitem revision="sysv"> + <listitem revision="sysv"> <para>Eudev &eudev-version;</para> - </listitem>--> + </listitem> <!--<listitem> <para>E2fsprogs &e2fsprogs-version;</para> </listitem>--> @@ -107,9 +107,9 @@ <!--<listitem> <para>GMP &gmp-version;</para> </listitem>--> - <!--<listitem> + <listitem> <para>Gperf-&gperf-version;</para> - </listitem>--> + </listitem> <!--<listitem> <para>Grep &grep-version;</para> </listitem>--> @@ -227,9 +227,9 @@ <listitem> <para>Util-Linux &util-linux-version;</para> </listitem> - <!--<listitem> + <listitem> <para>Vim &vim-version;</para> - </listitem>--> + </listitem> <!--<listitem> <para>XML-Parser-&xml-parser-version;</para> </listitem>--> diff --git a/chapter06/strippingagain.xml b/chapter06/strippingagain.xml index fcd0c2a49..a90f477ec 100644 --- a/chapter06/strippingagain.xml +++ b/chapter06/strippingagain.xml @@ -10,7 +10,8 @@ <title>Stripping Again</title> - <para>If the intended user is not a programmer and does not plan to do + <para>This section is optional. If the intended user is not a + programmer and does not plan to do any debugging on the system software, the system size can be decreased by about 90 MB by removing the debugging symbols from binaries and libraries. This causes no inconvenience other than not being able to @@ -22,20 +23,38 @@ <command>strip</command> command, it is a good idea to make a backup of the LFS system in its current state.</para> - <para>First back up some libraries whose debug symbols are needed when - running regression tests in BLFS packages:</para> + <para>First place the debugging sysmbols for selected libraries + in separate files. This debugging information is needed if running + regression tests that use <ulink + url='&blfs-book;/general/prog/valgrind.html'>valgrind</ulink> or <ulink + url='&blfs-book;/general/prog/gdb.html'>gdb</ulink> later in BLFS. + </para> <!-- also of interest are libgfortan, libgo, libgomp, and libobjc from gcc --> -<screen><userinput>save_libs="ld- libatomic libc- libcilkrts libitm libmpx libpthread" -save_libs="$save_libs libquadmath libsanitizer libstdc++ libthread_db libvtv" -mkdir -p /var/dbg/lib /var/dbg/usr/lib +<screen><userinput>save_lib="ld-2.25.so libc-2.25.so libpthread-2.25.so libthread_db-1.0.so" -for lib in $save_libs -do - find /usr/lib -name ${lib}*so* -type f -exec cp {} /var/dbg/usr/lib \; - find /lib -name ${lib}*so* -type f -exec cp {} /var/dbg/lib \; -done</userinput></screen> +cd /lib + +for LIB in $save_lib; do + objcopy --only-keep-debug $LIB $LIB.dbg + strip --strip-unneeded $LIB + objcopy --add-gnu-debuglink=$LIB.dbg $LIB +done + +save_usrlib="libquadmath.o.0.0.0 libstdc++.so.6.0.22 + libmpx.so.2.0.0 libmpxwrappers.so.2.0.0 libitm.so.1.0.0 + libcilkrts.so.5.0.0 libatomic.so.1.2.0" + +cd /usr/lib + +for LIB in $save_usrlib; do + objcopy --only-keep-debug $LIB $LIB.dbg + strip --strip-unneeded $LIB + objcopy --add-gnu-debuglink=$LIB.dbg $LIB +done + +unset LIB save_lib save_usrlib</userinput></screen> <para>Before performing the stripping, take special care to ensure that none of the binaries that are about to be stripped are running. If @@ -57,7 +76,7 @@ done</userinput></screen> <screen><userinput>/tools/bin/find /usr/lib -type f -name \*.a \ -exec /tools/bin/strip --strip-debug {} ';' -/tools/bin/find /lib /usr/lib -type f -name \*.so* \ +/tools/bin/find /lib /usr/lib -type f \(-name \*.so* -a ! -name \*dbg\) \ -exec /tools/bin/strip --strip-unneeded {} ';' /tools/bin/find /{bin,sbin} /usr/{bin,sbin,libexec} -type f \ @@ -68,13 +87,4 @@ done</userinput></screen> warnings indicate that those files are scripts instead of binaries.</para> - <para>If desired, restore the saved libraries with the debug data - intact. The files can restored now or just held for later use. Note - that several of the files cannot be copied directly after rebooting - to the new LFS system. Later use requires booting to another system, - mounting the LFS partition, and then copying the files.</para> - -<screen><userinput>cp -av /var/dbg/lib/* /lib -cp -av /var/dbg/usr/lib/* /usr/lib</userinput></screen> - </sect1> diff --git a/general.ent b/general.ent index e3e8328ad..6af933a36 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ -<!ENTITY version "SVN-20170422"> +<!ENTITY version "SVN-20170425"> <!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 "20170422-systemd"> +<!ENTITY versiond "20170425-systemd"> <!ENTITY short-versiond "systemd"> <!ENTITY generic-versiond "systemd"> -<!ENTITY releasedate "April 11, 2017"> +<!ENTITY releasedate "April 25, 2017"> <!ENTITY copyrightdate "1999-2017"><!-- jhalfs needs a literal dash, not – --> <!ENTITY milestone "8.1"> diff --git a/packages.ent b/packages.ent index 84efe056a..20f00f3e5 100644 --- a/packages.ent +++ b/packages.ent @@ -145,10 +145,10 @@ <!ENTITY e2fsprogs-ch6-du "57 MB"> <!ENTITY e2fsprogs-ch6-sbu "4.1 SBU"> -<!ENTITY eudev-version "3.2.1"> -<!ENTITY eudev-size "1,778 KB"> +<!ENTITY eudev-version "3.2.2"> +<!ENTITY eudev-size "1,780 KB"> <!ENTITY eudev-url "http://dev.gentoo.org/~blueness/eudev/eudev-&eudev-version;.tar.gz"> -<!ENTITY eudev-md5 "49f71f6c271ffa95b3c20d757d45c2e5"> +<!ENTITY eudev-md5 "41e19b70462692fefd072a3f38818b6e"> <!ENTITY eudev-ch6-du "78 MB"> <!ENTITY eudev-ch6-sbu "0.2 SBU"> @@ -258,10 +258,10 @@ <!ENTITY gmp-ch6-du "59 MB"> <!ENTITY gmp-ch6-sbu "1.3 SBU"> -<!ENTITY gperf-version "3.0.4"> -<!ENTITY gperf-size "961 KB"> +<!ENTITY gperf-version "3.1"> +<!ENTITY gperf-size "1,188 KB"> <!ENTITY gperf-url "&gnu;gperf/gperf-&gperf-version;.tar.gz"> -<!ENTITY gperf-md5 "c1f1db32fb6598d6a93e6e88796a8632"> +<!ENTITY gperf-md5 "9e251c0a618ad0824b51117d5d9db87e"> <!ENTITY gperf-home "&gnu-software;gperf/"> <!ENTITY gperf-ch6-du "5.4 MB"> <!ENTITY gperf-ch6-sbu "less than 0.1 SBU"> @@ -392,12 +392,12 @@ <!ENTITY linux-major-version "4"> <!ENTITY linux-minor-version "10"> -<!ENTITY linux-patch-version "9"> +<!ENTITY linux-patch-version "12"> <!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">--> <!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;"> -<!ENTITY linux-size "92,033 KB"> +<!ENTITY linux-size "92,041 KB"> <!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz"> -<!ENTITY linux-md5 "1b0750c97a9f2913f94692bf1399056f"> +<!ENTITY linux-md5 "64ea1adbb60a311e03c24c99471db3f7"> <!ENTITY linux-home "http://www.kernel.org/"> <!-- measured for 4.8.3 / gcc-6.2.0 on x86_64 : minimum is allnoconfig extended for a hopefully-bootable build on desktop machine, @@ -617,11 +617,11 @@ <!ENTITY util-linux-ch6-du "164 MB"> <!ENTITY util-linux-ch6-sbu "1.0 SBU"> -<!ENTITY vim-version "8.0.069"> +<!ENTITY vim-version "8.0.586"> <!ENTITY vim-docdir "vim/vim80"> -<!ENTITY vim-size "10,389 KB"> +<!ENTITY vim-size "10,613 KB"> <!ENTITY vim-url "ftp://ftp.vim.org/pub/vim/unix/vim-&vim-version;.tar.bz2"> -<!ENTITY vim-md5 "457543a7754b0d3c1c0aa4d4c3bb4070"> +<!ENTITY vim-md5 "b35e794140c196ff59b492b56c1e73db"> <!ENTITY vim-home "http://www.vim.org"> <!ENTITY vim-ch6-du "141 MB"> <!ENTITY vim-ch6-sbu "1.3 SBU"> |