Changeset 0f8922e for introduction/important/building-notes.xml
- Timestamp:
- 03/24/2023 08:44:09 AM (6 months ago)
- Branches:
- 12.0, kea, lazarus, lxqt, qt5new, trunk, xry111/xf86-video-removal
- Children:
- 218e13c
- Parents:
- 0de5b82f (diff), 9b33190 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
introduction/important/building-notes.xml
r0de5b82f r0f8922e 613 613 entries. The <command>mv</command> just removes the destination file from 614 614 the directory but does not touch its content, so that it satisfies the 615 condition for the kernel to use the old (deleted) file. The script below 616 is just an example. 615 condition for the kernel to use the old (deleted) file. 616 But this approach can detach hard links into duplicated copies, 617 causing a bloat which is obviously unwanted as we are stripping to 618 reduce system size. If two files in a same file system share the 619 same inode number, they are hard links to each other and we should 620 reconstruct the link. The script below is just an example. 617 621 It should be run as the &root; user: 618 622 </para> … … 626 630 fi 627 631 632 last_fs_inode= 633 last_file= 634 628 635 { find /usr/lib -type f -name '*.so*' ! -name '*dbg' 629 636 find /usr/lib -type f -name '*.a' 630 637 find /usr/{bin,sbin,libexec} -type f 631 } | while read file; do638 } | xargs stat -c '%m %i %n' | sort | while read file; do 632 639 if ! readelf -h $file >/dev/null 2>&1; then continue; fi 633 640 if file $file | grep --quiet --invert-match 'not stripped'; then continue; fi 641 642 if [ "$fs $inode" = "$last_fs_inode" ]; then 643 ln -f $last_file $file; 644 continue; 645 fi 634 646 635 647 cp --preserve $file ${file}.tmp 636 648 strip --strip-unneeded ${file}.tmp 637 649 mv ${file}.tmp $file 638 done</literal> 650 651 last_fs_inode="$fs $inode" 652 last_file=$file 653 done</literal> 639 654 EOF 640 655 chmod 744 /usr/sbin/strip-all.sh</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.