From owner-freebsd-ports@FreeBSD.ORG Sun Mar 18 01:57:56 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 6AF6916A400 for ; Sun, 18 Mar 2007 01:57:56 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao106.cox.net (eastrmmtao106.cox.net [68.230.240.48]) by mx1.freebsd.org (Postfix) with ESMTP id 252EC13C45D for ; Sun, 18 Mar 2007 01:57:56 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao106.cox.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070318015754.MWJK2226.eastrmmtao106.cox.net@eastrmimpo02.cox.net>; Sat, 17 Mar 2007 21:57:54 -0400 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo02.cox.net with bizsmtp id c1xu1W00M4iy4EG0000000; Sat, 17 Mar 2007 21:57:54 -0400 Date: Sat, 17 Mar 2007 20:59:41 -0500 To: "Garrett Cooper" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <45FC65B2.2060006@u.washington.edu> <45FC8929.2010309@u.washington.edu> <45FC901C.9070809@u.washington.edu> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <45FC901C.9070809@u.washington.edu> User-Agent: Opera Mail/9.10 (Linux) Cc: freebsd-ports@freebsd.org 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 01:57:56 -0000 On Sat, 17 Mar 2007 20:04:28 -0500, Garrett Cooper = wrote: > Garrett Cooper wrote: >> 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. >>> >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >>> % 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 >>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D >>> >>> Might need to write a shell script for find any of ports that only = >>> have "USE_GECKO=3Dmozilla", so can fix these ports to make work with= = >>> "USE_GECKO=3Dfirefox xulrunner ". >>> >>> Cheers, >>> Mezz >>> >>>> Also, the list of ports subtrees that I don't update on my 7-CURREN= T = >>>> 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. The bsd.gecko.mk and Makefile.common are merely a framework, not a = dependency. My grep above shows the dependency rather than use files. Th= e = bsd.gecko.mk and Makefile can be move outside www/mozilla in anywhere = without have to make any of big change, but only change the path of both= = files. We can move bsd.gecko.mk and Makefile.common in www/firefox while= = www/mozilla has been marked as deprecated. >> My script (now, slightly more improved): >> #!/bin/sh >> index_num=3D0 >> for i in $*; do >> let "index_num=3Dindex_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 -maxdep= th = >> 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 > > Slight mistake. This line: > > for j in `find "$1/$i" -name Makefile -type f -type l -maxdepth 2`; do= > > Should read like this: > > for j in `find "$1/$i" -name Makefile -type f -maxdepth 2`; do > > Also, you'll have to get the directory names first. I used ls -1F | gr= ep = > '/' > dir_list and then ran the script like: > > /path/to/walk_tree_for_key /usr/ports/ ./dir_list "USE_GECKO.*mozilla"= > /usr/ports//devel/gtkmozedit/Makefile:USE_GECKO=3D mozilla > /usr/ports//x11-toolkits/wxmozilla/Makefile:USE_GECKO=3D mozilla > > So there are a number of ports still using mozilla in my ports tree on= = > my dev box, unfortunately :(.. Add 'WITH_GECKO=3Dfirefox' in your make.conf, then more ports will be de= pend = on firefox rather than mozilla. Anyway I think it's not bad, there only about less than 15 ports. The tw= o = 'USE_GECKO=3D mozilla' and about 10 ports that have hardcore or have not= yet = catch up to use USE_GECKO. You can add firefox in two of USE_GECKO to se= e = if it will working then you can make request(s) to the maintainer to add= = 'firefox'. There might be need some tweaks other than just add 'firefox'= = in USE_GECKO. However, you also can requests to the maintainers for = convert these ports to use USE_GECKO. Cheers, Mezz > -Garrett -- = mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org