Re: Attempt #3, adding a new command 'sfilter'

From: Kris Kennaway <kris_at_obsecurity.org>
Date: Fri, 8 Sep 2006 15:18:24 -0400
On Fri, Sep 08, 2006 at 02:55:39PM -0400, John Baldwin wrote:
> On Thursday 07 September 2006 21:22, Kris Kennaway wrote:
> > On Thu, Sep 07, 2006 at 05:15:51PM -0400, Garance A Drosehn wrote:
> > > At 4:40 PM -0400 9/7/06, Kris Kennaway wrote:
> > > >On Thu, Sep 07, 2006 at 04:12:56PM -0400, Garance A Drosihn wrote:
> > > > > It seems reasonable to me to add a strftime() (and maybe a few other
> > > >> features) to our base-system awk.  But look at what happens if we
> > > >> install gawk:
> > > >>
> > > >> -r-xr-xr-x  2 root  wheel   115732 May 29 21:01 /usr/bin/awk*
> > > >> -r-xr-xr-x  2 root  wheel  1201108 Sep  7 15:39 /usr/local/bin/gawk*
> > > >
> > > >xor# ls -l `which gawk`
> > > >-r-xr-xr-x  2 root  wheel  225232 Sep  7 16:40 /usr/local/bin/gawk
> > > >xor# ls -l `which awk`
> > > >-r-xr-xr-x  2 root  wheel  123260 May 16 13:58 /usr/bin/awk
> > > 
> > > Huh.  I wonder why there's such a difference.  All I did was
> > > 
> > >       portinstall -N gawk
> > > 
> > > on my FreeBSD 5.x-ish machine (I did it there just because I had a
> > > root-session already open on that machine).  I've never installed
> > > gawk before.  Uname:
> > 
> > Most of the bloat appears to be from gettext.
> 
> Which is configurable from reading the port Makefile, so Julian can do:
> 
> cd /usr/ports/lang/gawk
> make WITHOUT_NLS=yes package
> 
> and have a small gawk package to install on his boxes. :)

Yep.  In fact unless you're actually using making use of gettext
(i.e. running with non-default locale) this is a good option to set in
your make.conf, to avoid lots of similar useless bloat and unnecessary
dependencies.

Kris

Received on Fri Sep 08 2006 - 17:18:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:00 UTC