Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Apr 2007 21:47:12 -0700 (PDT)
From:      L Goodwin <xrayv19@yahoo.com>
To:        Oliver Iberien <odilist@sonic.net>, freebsd-questions@freebsd.org
Subject:   Re: Grep and --exclude? or, finding a text string that might be anywhere
Message-ID:  <996620.31871.qm@web58102.mail.re3.yahoo.com>
In-Reply-To: <200704150923.25792.odilist@sonic.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Oliver, the error is due to incorrect syntax ("-e" flag omitted). Try this:

grep -R /usr -e "any2dvd"

L Goodwin

Oliver Iberien <odilist@sonic.net> wrote: I need to find a reference to an obscure delete port that is in some file 
somewhere (in /usr/ports/? somewhere in /usr?) as it is messing up make and, 
among other things, preventing me from running the gnome upgrade script. So, 
I do what little I know to do:

grep -R /usr/* "any2dvd"

This brings out a few valid discoveries (mostly in mailfiles when I posted 
about this) and lots of "operation not supported" and "No such file or 
directory" errors before grep spits out a "memory exhausted" error. If I 
could at least stop it from looking at */tmp/* and ~/.kde it might have a 
chance to get somewhere, but I can't figure out how --exclude 
or --exclude-dir work, despite googling over and over for examples. Can this 
be made to work? Or is there a better way?

Thanks,

Oliver

Previous post about the weird make error follows:

On Sunday 08 April 2007 21:24, you wrote:
> On Sun, Apr 08, 2007 at 09:30:14AM -0700, Oliver Iberien wrote:
> > I seem to have messed something up somewhere, and peculiar instructions
> > seem to have found their way in. An example is below:
> >
> > --->  Checking for the latest package of 'devel/gettext'
> > --->  Fetching the package(s) for 'gettext-0.16.1' (devel/gettext)
> > --->  Fetching gettext-0.16.1
> > /var/tmp/portupgradeJwjg3x7H/gettext-0.16.1.tb100% of 2093 kB  248 kBps
> > --->  Downloaded as gettext-0.16.1.tbz
> > --->  Identifying the package
> > /var/tmp/portupgradeJwjg3x7H/gettext-0.16.1.tbz --->  Saved as
> > /usr/ports/packages/All/gettext-0.16.1.tbz
> > --->  Skipping libiconv-1.9.2_2 (already installed)
> > --->  Found a package
> > of 'devel/gettext': /usr/ports/packages/All/gettext-0.16.1.tbz
> > (gettext-0.16.1)
> > --->  Located a package version 0.16.1
> > (/usr/ports/packages/All/gettext-0.16.1.tbz)
> > --->  Upgrading 'gettext-0.14.5_2' to 'gettext-0.16.1' (devel/gettext)
> > using a package
> > cd: can't cd to /usr/ports/multimedia/any2dvd
> > "Makefile", line 54: Could not
> > find /usr/ports/print/cups-lpr/../../print/cups/Makefile.common
> > make: fatal errors encountered -- cannot continue
> > ^C--->  Backing up the old version
> > --->  Uninstalling the old version
> >
> > The section
> >
> > cd: can't cd to /usr/ports/multimedia/any2dvd
> > "Makefile", line 54: Could not
> > find /usr/ports/print/cups-lpr/../../print/cups/Makefile.common
> >
> > appears often when installing both from packages and ports. I just stop
> > it and the install continues. What could be going on here?
>
> Check carefully for local changes you made referring to this file (in
> /usr/ports or /etc/make.conf, maybe elsewhere_.  It no longer exists
> in the ports tree so it is unreferenced in a standard install of it.
>
> Kris
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?996620.31871.qm>