Changeset 6094dae


Ignore:
Timestamp:
08/03/2021 04:04:15 PM (3 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
2a22256
Parents:
2cc15c3
git-author:
Xi Ruoyao <xry111@…> (08/03/2021 03:58:46 PM)
git-committer:
Xi Ruoyao <xry111@…> (08/03/2021 04:04:15 PM)
Message:

strip: restore versions in online_usrlib and save_usrlib

Without them, for example:

cp /usr/lib/libbfd.so /tmp/libbfd.so
# now /tmp/libbfd.so is a hardcopy of /usr/lib/libbfd-2.37.so
strip --strip-unneeded /tmp/libbfd.so
install -vm755 /tmp/libbfd.so /usr/lib/libbfd.so
# now /usr/lib/libbfd.so is *not* a symlink, but a real file

We don't want this to happen.

libdl and libpthread removed: they are now dummy libs and is not used by
anything built in LFS/BLFS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/strippingagain.xml

    r2cc15c3 r6094dae  
    4444
    4545<!--<screen><userinput>save_lib="ld-2.25.so libc-2.25.so libpthread-2.25.so libthread_db-1.0.so"-->
    46       <screen><userinput>save_usrlib="ld-linux-x86-64.so.2
     46<screen><userinput>save_usrlib="ld-linux-x86-64.so.2
    4747             libc.so.6
    48              libpthread.so.6
    49              libthread_db.so
     48             libthread_db.so.1
    5049             libquadmath.so.&libquadmath-version;
    51              libstdc++.so.6
     50             libstdc++.so.&libstdcpp-version;
    5251             libitm.so.&libitm-version;
    5352             libatomic.so.&libatomic-version;"
     
    6564
    6665online_usrbin="bash find strip"
    67 online_usrlib="libbfd.so
    68                libdl.so.2
    69                libhistory.so
    70                libncursesw.so
    71                libm.so.6
    72                libreadline.so
    73                libz.so
     66online_usrlib="libbfd-&binutils-version;.so
     67               libhistory.so.&readline-version;
     68               libncursesw.so.&ncurses-version;
     69               libm.so.6
     70               libreadline.so.&readline-version;
     71               libz.so.&zlib-version;
    7472               $(cd /usr/lib; find libnss*.so* -type f)"
    7573
Note: See TracChangeset for help on using the changeset viewer.