Subject: Re: Meta package for pkgsrc developer tools
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-pkg
Date: 08/06/2006 02:51:13
On Sat, Aug 05, 2006 at 03:50:43PM -0400, Greg A. Woods wrote:
> At Sat, 05 Aug 2006 15:18:26 +0200,
> Joerg Sonnenberger wrote:
> > 
> > On Fri, Aug 04, 2006 at 07:43:35PM -0700, John Nemeth wrote:
> > > On Dec 25,  1:00pm, Lubomir Sedlacik wrote:
> > > } On Sat, Aug 05, 2006 at 01:09:36AM +0900, Ryo HAYASAKA wrote:
> > > } > I think pkgclean and pkgfind are useful tools, too.
> > > } 
> > > } remind me, why do we have such an useless package as pkgclean in pkgsrc,
> > > } again?
> > > } 
> > > } (if you don't want clutter in your pkgsrc tree, mount it read-only and
> > > }  set WRKOBJDIR.  and when you feel like it, just wipe WRKOBJDIR clean
> > > }  with rm.  it's even faster!)
> > > 
> > >      cd /usr/pkgsrc && rm -r */*/work is pretty fast as well.
> > 
> > But not really portable.
> > 	find /usr/pkgsrc -name work -exec rm -r {} \;
> > doesn't hit command line limits.
> 
> but that's not as fast or efficient it could/should be.  Use xargs(1)!

Ironically, xargs is not necessarily faster. The command above needs
more execs, but has the advantage that find doesn't visit the work
directories. Using maxdepth would have a similiar result.

Joerg