#70 closed defect (wontfix)
Better strip command in chapter 9
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Book | Version: | 3.0-pre3 |
Severity: | normal | Keywords: | |
Cc: |
Description
find \( ! -fstype proc -o ! -fstype devpts -o ! -fstype devfs \) -perm +6111 -type f -exec /usr/bin/strip -s '{}' ';'
see if this works as expected (ie: should skip /proc /dev/pts or /dev alltogether when devfs is in use)
Attachments (1)
Change History (15)
comment:1 by , 24 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 24 years ago
Resolution: | → later |
---|---|
Status: | assigned → closed |
comment:3 by , 23 years ago
Summary: | Better strip command in chapter 10 → Better strip command in chapter 9 |
---|
comment:4 by , 23 years ago
Resolution: | later |
---|---|
Status: | closed → reopened |
comment:5 by , 23 years ago
another candidate: find / -path /proc -prune -o -type f -exec strip --strip-debug '{}' ';'
comment:6 by , 23 years ago
Simplicity: assume that we got our stuff in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin /lib and /usr/lib
If people use non-standard locations, they can add their dirs themselves:
find /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin /lib /usr/lib -perm +6111 -type f -exec /usr/bin/strip -g '{}' ';'
comment:7 by , 23 years ago
Status: | reopened → assigned |
---|
comment:8 by , 23 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
new command: find $LFS/{,usr,usr/local}/{bin,sbin,lib} -type f \
-exec /usr/bin/strip --strip-debug '{}'
comment:10 by , 23 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Jeremy whipped up a nice script to strip as much as possible. It'll check if files are static libs and don't strip too much from those, etc. It has to be run outside of chroot if you plan to strip libraries, else you'll destroy the libraries that the 'strip' program uses (libc.so.6 for example).
Inside chroot you could run it and just disable to 'stripage' of library files. Perhaps we can slightly modify this to easily change the strip option to just -g intead of --strip-unneeded when we're inside chroot.
Anyways, script put in bugzilla, have a look, we'll deal with it later
comment:11 by , 23 years ago
Resolution: | → later |
---|---|
Status: | reopened → closed |
comment:12 by , 23 years ago
Resolution: | later |
---|---|
Status: | closed → reopened |
comment:13 by , 23 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
Never mind that script (hehe does anybody remember what I'm talking about...it's been a while). The current find/strip combinations work good enough, we're not aiming to reclaim every byte by making things more complicated. How it's done now is a good enough of a tradeof.
Hmpf not working as I want it to, i'm going to concentrate on other things