Re: [RHSA-2003:067-01] Updated XFree86 packages provide security and bug fixes
Charles Curley <[email protected]>
| Newsgroups | gmane.linux.redhat.release.psyche |
|---|---|
| Message-ID | <[email protected]> |
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@issola X11R6]# du -hs .
> > 193M .
> > [root@issola 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@issola 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@issola X11R6]# cd bin
[root@issola bin]# for file in *; do if file $file | grep 'not stripped' > /dev/null; then strip $file; fi; done
[root@issola bin]# cd ../lib/
[root@issola lib]# for file in *; do if file $file | grep 'not stripped' > /dev/null; then strip $file; fi; done
[root@issola 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
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE++6Hx//ZMSE7N39sRAm5kAKCJnDCroSXl5h4G4ifkiyh1a0OTDwCfZElf uhfzmTsfPwV93mZpzn2qvFU= =FrZU -----END PGP SIGNATURE-----