From 9c7598cc15b7ec877b0350fbdc9d1d1fe466405b Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Mon, 2 Aug 2021 20:52:40 -0500 Subject: Package updates. Update to glibc-2.34. Update to diffutils-3.8. Update to libcap-2.52. --- chapter08/glibc.xml | 61 +++++++++++++++----------------------------- chapter08/strippingagain.xml | 22 +++++++++++----- chapter08/texinfo.xml | 6 +++++ 3 files changed, 42 insertions(+), 47 deletions(-) (limited to 'chapter08') diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index e39efd95f..2935c84af 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -50,15 +50,6 @@ patch -Np1 -i ../&glibc-fhs-patch; - Fix a bug that causes issues with chrooted applications: - - sed -e '402a\ *result = local->data.services[database_index];' \ - -i nss/nss_database.c - - Fix a build issue with gcc-11.1: - -sed 's/amx_/amx-/' -i sysdeps/x86/tst-cpu-features-supports.c - The Glibc documentation recommends building Glibc in a dedicated build directory: @@ -126,17 +117,6 @@ cd build - - - - This disables x86 ISA needed property in - Glibc libraries. Use it if - you are building Glibc with option in - CFLAGS, to workaround an issue in Glibc-2.33 - breaking it. - - - Compile the package: @@ -179,14 +159,6 @@ esac is known to fail in the LFS chroot environment. - - - elf/tst-cpu-features-cpuinfo - will fail on non-intel CPUs with this version of glibc. - - The nss/tst-nss-files-hosts-multi test may fail for reasons that have not been determined. @@ -504,14 +476,15 @@ mkdir -pv /etc/ld.so.conf.d ldd, lddlibc4, locale, localedef, makedb, mtrace, nscd, pcprofiledump, pldd, sln, sotruss, sprof, tzselect, xtrace, zdump, and zic - ld-&glibc-version;.so, libBrokenLocale.{a,so}, libSegFault.so, libanl.{a,so}, + ld-linux-x86-64.so.2, ld-linux.so.2, + libBrokenLocale.{a,so}, libSegFault.so, libanl.{a,so}, libc.{a,so}, libc_nonshared.a, - libcrypt.{a,so}, libdl.{a,so}, libg.a, libm.{a,so}, - libmcheck.a, libmemusage.so, libmvec.{a,so}, libnsl.{a,so}, + libcrypt.{a,so}, libdl.{a,so.2}, libg.a, libm.{a,so}, + libmcheck.a, libmemusage.so, libmvec.{a,so}, libnsl.so.1, libnss_compat.so, libnss_dns.so, libnss_files.so, libnss_hesiod.so, - libpcprofile.so, libpthread.{a,so}, - libpthread_nonshared.a, libresolv.{a,so}, librt.{a,so}, - libthread_db.so, and libutil.{a,so} + libpcprofile.so, libpthread.{a,so.0}, + libresolv.{a,so}, librt.{a,so.1}, + libthread_db.so, and libutil.{a,so.1} /usr/include/arpa, /usr/include/bits, /usr/include/gnu, /usr/include/net, /usr/include/netash, /usr/include/netatalk, /usr/include/netax25, /usr/include/neteconet, /usr/include/netinet, @@ -768,7 +741,7 @@ mkdir -pv /etc/ld.so.conf.d - ld-&glibc-version;.so + ld-*.so The helper program for shared library executables @@ -834,7 +807,9 @@ mkdir -pv /etc/ld.so.conf.d libdl - The dynamic linking interface library + Dummy library containing no functions. Previously was the + dynamic linking interface library, whose functions are now in + libc libdl @@ -886,7 +861,7 @@ mkdir -pv /etc/ld.so.conf.d libnsl - The network services library + The network services library, now deprecated libnsl @@ -918,7 +893,10 @@ mkdir -pv /etc/ld.so.conf.d libpthread - The POSIX threads library + Dummy library containing no functions. Previously contained + functions providing most of the interfaces specified + by the POSIX.1b Realtime Extension, now the functions are in + libc libpthread @@ -961,8 +939,11 @@ mkdir -pv /etc/ld.so.conf.d libutil - Contains code for standard functions used in - many different Unix utilities + >Dummy library containing no functions. Previously contained + code for standard functions used in + many different Unix utilities. These functions are now in + libc + libutil diff --git a/chapter08/strippingagain.xml b/chapter08/strippingagain.xml index f1eaa060d..9c162a86a 100644 --- a/chapter08/strippingagain.xml +++ b/chapter08/strippingagain.xml @@ -43,9 +43,14 @@ -save_usrlib="ld-&glibc-version;.so libc-&glibc-version;.so libpthread-&glibc-version;.so libthread_db-&libthread_db-version;.so - libquadmath.so.&libquadmath-version; libstdc++.so.&libstdcpp-version; - libitm.so.&libitm-version; libatomic.so.&libatomic-version;" +save_usrlib="ld-linux-x86-64.so.2 + libc.so.6 + libpthread.so.6 + libthread_db.so + libquadmath.so.&libquadmath-version; + libstdc++.so.6 + libitm.so.&libitm-version; + libatomic.so.&libatomic-version;" cd /usr/lib @@ -59,10 +64,13 @@ for LIB in $save_usrlib; do done online_usrbin="bash find strip" -online_usrlib="libbfd-&binutils-version;.so libdl-&glibc-version;.so - libhistory.so.&readline-version; libncursesw.so.&ncurses-version; - libm-&glibc-version;.so libreadline.so.&readline-version; - libz.so.&zlib-version; +online_usrlib="libbfd.so + libdl.so.2 + libhistory.so + libncursesw.so + libm.so.6 + libreadline.so + libz.so $(cd /usr/lib; find libnss*.so* -type f)" for BIN in $online_usrbin; do diff --git a/chapter08/texinfo.xml b/chapter08/texinfo.xml index 9cbbda6a6..2543cd14d 100644 --- a/chapter08/texinfo.xml +++ b/chapter08/texinfo.xml @@ -61,6 +61,12 @@ --> + + Again, fix an issue building the package with Glibc-2.34 or later: + +sed -e 's/__attribute_nonnull__/__nonnull/' \ + -i gnulib/lib/malloc/dynarray-skeleton.c + Compile the package: make -- cgit v1.2.3-54-g00ecf