A list of possible ports that require www/mozilla

Garrett Cooper youshi10 at u.washington.edu
Sun Mar 18 01:04:30 UTC 2007


Garrett Cooper wrote:
> Jeremy Messenger wrote:
>> On Sat, 17 Mar 2007 17:03:30 -0500, Garrett Cooper 
>> <youshi10 at u.washington.edu> 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 
>>> <http://students.washington.edu/youshi10/posted/mozilla.found>.
>>
>> 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 <goes on>".
>>
>> Cheers,
>> Mezz
>>
>>> Also, the list of ports subtrees that I don't update on my 7-CURRENT 
>>> system are as follows:
>>>
>> <snip>
>>>
>>> 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

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 | grep 
'/' > 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=        mozilla
/usr/ports//graphics/librsvg2/Makefile:USE_GECKO=       firefox mozilla 
seamonkey xulrunner firefox15
/usr/ports//java/eclipse/Makefile:USE_GECKO=    xulrunner firefox 
mozilla seamonkey
/usr/ports//net/liferea/Makefile:USE_GECKO=     mozilla firefox
/usr/ports//net/blam/Makefile:USE_GECKO=        firefox mozilla
/usr/ports//www/epiphany-extensions/Makefile:USE_GECKO= firefox mozilla 
seamonkey firefox15<->firefox
/usr/ports//www/galeon/Makefile:USE_GECKO=      firefox mozilla 
seamonkey xulrunner
/usr/ports//www/gecko-sharp10/Makefile:USE_GECKO=       firefox mozilla
/usr/ports//www/gecko-sharp20/Makefile:USE_GECKO=       firefox mozilla
/usr/ports//www/kazehakase/Makefile:USE_GECKO=  firefox mozilla 
seamonkey xulrunner firefox15<->seamonkey
/usr/ports//www/mplayer-plugin/Makefile:USE_GECKO=      firefox mozilla 
seamonkey
/usr/ports//www/ruby-gtkmozembed/Makefile:USE_GECKO=    firefox mozilla 
xulrunner firefox15
/usr/ports//x11-toolkits/swt-devel/Makefile:USE_GECKO=  mozilla firefox 
seamonkey
/usr/ports//x11-toolkits/swt/Makefile:USE_GECKO=        mozilla firefox 
seamonkey
/usr/ports//x11-toolkits/jdic/Makefile:#USE_GECKO=      firefox 
seamonkey mozilla
/usr/ports//x11-toolkits/py-gnome-extras/Makefile:USE_GECKO=    firefox 
mozilla seamonkey
/usr/ports//x11-toolkits/swt31/Makefile:USE_GECKO=      firefox mozilla 
seamonkey xulrunner
/usr/ports//x11-toolkits/wxmozilla/Makefile:USE_GECKO=  mozilla

So there are a number of ports still using mozilla in my ports tree on 
my dev box, unfortunately :(..

-Garrett


More information about the freebsd-ports mailing list