This system is stripped and working! Probably no problem, if it works 
now.

Thank you all who helped me.

Reply in line, below.

--- Em seg, 28/1/13, DJ Lucas escreveu:

> De: DJ Lucas
> Assunto: Re: [blfs-support] Stripping
> Para: 
> Data: Segunda-feira, 28 de Janeiro de 2013, 22:09
> On 01/28/2013 10:54 AM, Randy
> McMurchy wrote:
> > Fernando de Oliveira wrote these words on 01/28/13
> 10:41 CST:
> >> Forwarded from the "BLFS Book Maintenance List"
> list.
> >>
> >> Sorry for top posting.
> >>
> >> Thanks, Randy.
> >
> >
> > Though essentially the same thing Bruce said, here is
> what I do at the
> > completion of LFS. Simply modify the log file locations
> and include any other
> > directories you wish and you may like the results:

Randy, I have used only these you listed. Perhaps later...

> > du -sch {,usr/}{sbin,bin} \
> >   
>    >home/rml/build/Logs/LFS_System/Post-Installation/strip-bin.log
> 2>&1
> > echo \
> >     
> >>home/rml/build/Logs/LFS_System/Post-Installation/strip-bin.log
> > find sbin bin usr/sbin usr/bin -type f -exec strip
> --strip-all --preserve-dates {} \; \
> >     
> >>home/rml/build/Logs/LFS_System/Post-Installation/strip-bin.log
> 2>&1


Good that there is no slash in the beginning, so it is assumed you are 
not running the system to be stripped.



> > echo \
> >     
> >>home/rml/build/Logs/LFS_System/Post-Installation/strip-bin.log
> > du -sch {,usr/}{sbin,bin} \
> >     
> >>home/rml/build/Logs/LFS_System/Post-Installation/strip-bin.log
> 2>&1
> >
> cat   home/rml/build/Logs/LFS_System/Post-Installation/strip-bin.log
> | \
> >      grep -v "File format not
> recognized"
> >
> >
> > du -sch {,usr/}lib \
> >   
>    >home/rml/build/Logs/LFS_System/Post-Installation/strip-lib.log
> 2>&1
> > echo \
> >     
> >>home/rml/build/Logs/LFS_System/Post-Installation/strip-lib.log
> > find lib usr/lib -type f -exec strip --strip-debug
> --preserve-dates {} \; \
> >     
> >>home/rml/build/Logs/LFS_System/Post-Installation/strip-lib.log
> 2>&1
> > echo \
> >     
> >>home/rml/build/Logs/LFS_System/Post-Installation/strip-lib.log
> > du -sch {,usr/}lib \
> >     
> >>home/rml/build/Logs/LFS_System/Post-Installation/strip-lib.log
> 2>&1
> >
> cat   home/rml/build/Logs/LFS_System/Post-Installation/strip-lib.log
> | \
> >      grep -v "File format not
> recognized"
> >


I have only modified the log files and added some other commands for 
statistics, some after Bruce. Also, logged in k, not h (du).

> Just FYI, I ran across this comment in Arch's PKGBUILD for
> glibc (which 
> I've not verified, and blindly followed):
> 
>          # Do not strip the
> following files for improved debugging support
>          # ("improved" as in
> not breaking gdb and valgrind...):
>      
>    #   ld-${pkgver}.so
>      
>    #   libc-${pkgver}.so
>      
>    #   libpthread-${pkgver}.so
>      
>    #   libthread_db-1.0.so
> 
> Now, as to how useful that actually is in practice, I can't
> honestly see 
> a need being that everything else is already lacking...
> 
> Anyway, --strip-debug for static libs, --strip-unneeded for
> shared libs, 
> and --strip-all for executable files is what is default for
> makepkg (and 
> coincidentally is what I have stuck with for a while).

Thanks, DJ.

I have a xz file backing up these four, but they seem not to have 
been touched, perhaps already stripped in LFS build.

In another post, Bruce wrote, replying to Fernando:

> > I
> > still think (IMHO) that a small paragraph about it
> would be helpful,
> > probably in "Notes on Building Software", if it does
> not deserve a
> > page. Those LFS pages could be referred to as could
> that page
> 
> I have no problem with adding that.  I don't think it
> rises to the point 
> where an entire page is needed.  A section in 'Notes on
> Building 
> Software' is easy enough.  Why don't you create a
> ticket so we don't forget.


Thanks, Bruce.

Ticket created. Left for you to decide if priority should be low.

> > <http://www.technovelty.org/linux/stripping-shared-libraries.html>
> 
> That seems to be a good external reference too.

strip-bin totalseconds: 30
strip-lib totalseconds: 188
Totalseconds: 218

USED_AFTER - USED_BEFORE = -161340 (bin)
USED_AFTER - USED_BEFORE = -626516 (lib)

So, about 770M economy in space. Not much, but enough to really use 
strip from time to time.

Thank you very much again (BDR).

Have to turn off all machines now.

[]s,
Fernando
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to