On Thu, Jun 26, 2003 at 04:17:25PM -0700, Raul Acevedo wrote: > Well, what I *really* ran was this: > > for file in *; do if file $file | grep 'not stripped' > /dev/null; then strip $file; fi; done > > That will only do actual binaries that are not stripped. I am running X > just fine right now after that... > > Raul > > Charles Curley wrote: > > > On Thu, Jun 26, 2003 at 11:41:38AM -0700, Raul Acevedo wrote: > > > Just running strip on everything in /usr/X11R6/{bin,lib} ought to take > > > care of this if you're already installed the RPMs, right? > > > > Not a good idea. > > > > [root@xxxxxx X11R6]# du -hs . > > 193M . > > [root@xxxxxx X11R6]# find . -type f | xargs strip > > > > # All sorts of "File format not recognized" messages. I'm sure I could > > have refined the search, but what the heck. > > > > [root@xxxxxx X11R6]# du -hs . > > 57M . > > > > However, that crashed X. With a lot of "No Symbols found" > > messages. Oops. > > > > It might work better if you don't strip the modules. Anyone want to > > try that? First, I restored my files, like so: rpm -ivh --force XFree86-* (with the files present selected from a list of the installed RPMs) Then I took your line of code above (thanks!) and did the following: [root@xxxxxx X11R6]# cd bin [root@xxxxxx bin]# for file in *; do if file $file | grep 'not stripped' > /dev/null; then strip $file; fi; done [root@xxxxxx bin]# cd ../lib/ [root@xxxxxx lib]# for file in *; do if file $file | grep 'not stripped' > /dev/null; then strip $file; fi; done [root@xxxxxx lib]# cd ..; du -sh 177M . Not quite the size reduction I got before (which suggests I stripped some stuff I should not have). But X works. Thanks. -- Charles Curley /"\ ASCII Ribbon Campaign Looking for fine software \ / Respect for open standards and/or writing? X No HTML/RTF in email http://www.charlescurley.com / \ No M$ Word docs in email Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB
Attachment:
pgp00901.pgp
Description: PGP signature