From owner-freebsd-ports@FreeBSD.ORG Sun Mar 18 00:34:51 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 62A9E16A401 for ; Sun, 18 Mar 2007 00:34:51 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.freebsd.org (Postfix) with ESMTP id 4010F13C48A for ; Sun, 18 Mar 2007 00:34:51 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2I0Yoan001496 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 17 Mar 2007 17:34:50 -0700 X-Auth-Received: from [192.168.10.41] (c-67-187-172-183.hsd1.ca.comcast.net [67.187.172.183]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l2I0YnHe010060 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 17 Mar 2007 17:34:50 -0700 Message-ID: <45FC8929.2010309@u.washington.edu> Date: Sat, 17 Mar 2007 17:34:49 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.10 (X11/20070316) MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <45FC65B2.2060006@u.washington.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.3.17.171933 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __STOCK_PHRASE_7 0, __USER_AGENT 0' Subject: Re: A list of possible ports that require www/mozilla X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Mar 2007 00:34:51 -0000 Jeremy Messenger wrote: > On Sat, 17 Mar 2007 17:03:30 -0500, Garrett Cooper > wrote: > >> A did a (more) expensive ports tree walk and I found a partial list of >> ports which may require www/mozilla (or need to be modified >> appropriately to support globally required mozilla properties). The >> file is available at >> . > > Here is better grep with lesser false positive. > > ================================================== > % find /usr/ports -maxdepth 3 -name Makefile | xargs egrep -l > "www/mozilla$" > /usr/ports/java/eclipse-devel/Makefile > /usr/ports/mail/enigmail/Makefile > /usr/ports/net/penguintv/Makefile > /usr/ports/net/penguintv-devel/Makefile > /usr/ports/www/openvrml/Makefile > /usr/ports/x11-toolkits/hs-gtk2hs/Makefile > % find /usr/ports -maxdepth 3 -name Makefile | xargs egrep -l > "www/mozilla[[:cntrl:]].*" > /usr/ports/www/openvrml/Makefile > % find /usr/ports -maxdepth 3 -name Makefile | xargs egrep -l > "www/mozilla[[:space:]].*" > /usr/ports/devel/devhelp/Makefile > /usr/ports/www/openvrml/Makefile > % find /usr/ports -maxdepth 3 -name Makefile | xargs egrep -l > "www/mozilla.*HEADERS" > /usr/ports/www/swfdec-plugin/Makefile > % find /usr/ports -maxdepth 3 -name Makefile | xargs egrep -l > "www/.*MOZILLA" > /usr/ports/devel/devhelp/Makefile > /usr/ports/japanese/mozilla-jlp/Makefile > ================================================== > > Might need to write a shell script for find any of ports that only have > "USE_GECKO=mozilla", so can fix these ports to make work with > "USE_GECKO=firefox xulrunner ". > > Cheers, > Mezz > >> Also, the list of ports subtrees that I don't update on my 7-CURRENT >> system are as follows: >> > >> >> Thanks, >> -Garrett Technically those weren't really false positives.. they called up files needed by other ports that were using www/mozilla files. My script (now, slightly more improved): #!/bin/sh index_num=0 for i in $*; do let "index_num=index_num+1" > /dev/null done if [ $index_num -ne 3 ]; then echo "Usage: $0 [directory where ports are located] [filename of ports subtrees] [grep search string with key]" exit 1 fi for i in `cat $2`; do for j in `find "$1/$i" -name Makefile -type f -type l -maxdepth 2`; do grep -Hi -e '$3' $j done done I know it can be improved, but I just wanted something quick and my sh scripting skills are not as good as my bash or perl. -Garrett