sm-grimoire AT lists.ibiblio.org
Subject: Discussion of Spells and Grimoire items
List archive
Re: [SM-Grimoire] Stripping has no effect on some spells
- From: Dufflebunk <dufflebunk AT dufflebunk.homeip.net>
- To: Andrew <afrayedknot AT thefrayedknot.armory.com>
- Cc: sm-grimoire AT lists.ibiblio.org
- Subject: Re: [SM-Grimoire] Stripping has no effect on some spells
- Date: 02 Feb 2003 14:28:40 -0500
Grr, please revise that script so that it doesn't count shared libs, here is
the command:
for SPELL in `gaze installed | cut -d: -f1` ; do for FILE in `gaze install
$SPELL` ; do if [ -x $FILE ] && LINE=`file "$FILE"` && echo "$LINE" | grep -q
"ELF.*executable" ; then echo "$LINE" | grep -q "not stripped" && echo $SPELL
; continue 2; fi ; done ; done | sort > non_stripped.`hostname -s`.txt
On Sun, 2003-02-02 at 14:07, Dufflebunk wrote:
> Andrew has volunteered to coalate results. Please only send him results
> if you are using the strip compile optimization. If you are unsure, here
> is a one liner that'll tell you if you have stripping on:
>
> ( . /etc/sorcery/config ; echo "$OPTIMIZATIONS" | grep -q "strip" && echo
> "You are stripping" || echo "You are too conservative to strip" )
>
> Here is the one liner in bash that'll print all the spells you have
> which have one or more executables or shared libs (ELF) which are also
> not stripped:
>
> for SPELL in `gaze installed | cut -d: -f1` ; do for FILE in `gaze install
> $SPELL` ; do if [ -x $FILE ] && LINE=`file "$FILE"` && echo "$LINE" | grep
> -q "ELF" ; then echo "$LINE" | grep -q "not stripped" && echo $SPELL ;
> continue 2; fi ; done ; done | sort
>
> It is sorted at the end to make Andrews job a bit easier (ie cat
> results.* | sort --merg ;).
>
> The easiest way to send him the results would be:
> for SPELL in `gaze installed | cut -d: -f1` ; do for FILE in `gaze install
> $SPELL` ; do if [ -x $FILE ] && LINE=`file "$FILE"` && echo "$LINE" | grep
> -q "ELF" ; then echo "$LINE" | grep -q "not stripped" && echo $SPELL ;
> continue 2; fi ; done ; done | sort > not_stripped.`hostname -s`.txt
> then to send the newly created file as an attachment to
> afrayedknot AT thefrayedknot.armory.com
>
>
>
> On Sun, 2003-02-02 at 13:29, Andrew wrote:
> > On Sun, Feb 02, 2003 at 07:23:06PM +0100, Robert Helgesson wrote:
> > > On Sun, Feb 02, 2003 at 07:20:49PM +0100, Robert Helgesson wrote:
> > > > Howdy,
> > > >
> > > > Seems as if some spells don't use the $LDFLAGS variable which is
> > > > defined
> > > > alongside $CFLAGS.
> > > >
> > > > LDFLAGS contain for example flags to enable the stripping and
> > > > combreloc
> > > > features.
> > > >
> > > > Spells which are affected are pretty much those that need some special
> > > > treatment to make use of the $CFLAGS content.
> > >
> > > Meta bug related to this can be found at:
> > >
> > > http://bugs.sourcemage.org/show_bug.cgi?id=2462
> > >
> > perhaps we could write a script to go through all our binaries and report
> > which ones arent stripped, then the spell they are from? If a bunch of
> > us do it, we can figure out which spells are at fault and generate bugs
> > for them.
> >
> > something like:
> > for each in `ls -l /bin /usr/bin /usr/X11/bin`; do if [ file $each|grep
> > "not stripped" ] ; then gaze from $each ; fi ; done|sort|uniq
> >
> > i dont know conditionals well in bash, but that would be the basic idea.
> >
> >
> > Andrew
> > > --
> > > / Robert Helgesson |-- rycee AT home.se --\
> > > \-- ~~~~~~~~~~~~~~~~ --| http://www.rycee.cx/ /
> > > _______________________________________________
> > > SM-Grimoire mailing list
> > > SM-Grimoire AT lists.ibiblio.org
> > > http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
> > _______________________________________________
> > SM-Grimoire mailing list
> > SM-Grimoire AT lists.ibiblio.org
> > http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
>
> _______________________________________________
> SM-Grimoire mailing list
> SM-Grimoire AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
-
[SM-Grimoire] Stripping has no effect on some spells,
Robert Helgesson, 02/02/2003
-
Re: [SM-Grimoire] Stripping has no effect on some spells,
Robert Helgesson, 02/02/2003
-
Re: [SM-Grimoire] Stripping has no effect on some spells,
Andrew, 02/02/2003
-
Re: [SM-Grimoire] Stripping has no effect on some spells,
Dufflebunk, 02/02/2003
-
Re: [SM-Grimoire] Stripping has no effect on some spells,
Dufflebunk, 02/02/2003
- Re: [SM-Grimoire] Stripping has no effect on some spells, Dufflebunk, 02/02/2003
- Re: [SM-Grimoire] Stripping has no effect on some spells, Andrew, 02/02/2003
- Re: [SM-Grimoire] Stripping has no effect on some spells, Sergey A. Lipnevich, 02/02/2003
-
Re: [SM-Grimoire] Stripping has no effect on some spells,
Dufflebunk, 02/02/2003
-
Re: [SM-Grimoire] Stripping has no effect on some spells,
Dufflebunk, 02/02/2003
- Re: [SM-Grimoire] Stripping has no effect on some spells, Ladislav Hagara, 02/02/2003
-
Re: [SM-Grimoire] Stripping has no effect on some spells,
Dufflebunk, 02/02/2003
-
Re: [SM-Grimoire] Stripping has no effect on some spells,
Andrew, 02/02/2003
- Re: [SM-Grimoire] Stripping has no effect on some spells, Andrew, 02/04/2003
- Re: [SM-Grimoire] Stripping has no effect on some spells, Andrew, 02/09/2003
-
Re: [SM-Grimoire] Stripping has no effect on some spells,
Robert Helgesson, 02/02/2003
Archive powered by MHonArc 2.6.24.