From owner-freebsd-ports@FreeBSD.ORG Fri Jul 20 06:55:28 2007 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A68B16A578 for ; Fri, 20 Jul 2007 06:55:28 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout2.cac.washington.edu (mxout2.cac.washington.edu [140.142.33.4]) by mx1.freebsd.org (Postfix) with ESMTP id CCFAF13C467 for ; Fri, 20 Jul 2007 06:55:16 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9] (may be forged)) by mxout2.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.06) with ESMTP id l6K6tGaN022866 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 19 Jul 2007 23:55:16 -0700 X-Auth-Received: from [192.168.10.45] (c-24-10-12-194.hsd1.ca.comcast.net [24.10.12.194]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l6K6tFtV014122 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 19 Jul 2007 23:55:16 -0700 Message-ID: <46A05C52.20205@u.washington.edu> Date: Thu, 19 Jul 2007 23:55:14 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: ports@freebsd.org References: <46A05B21.90603@u.washington.edu> In-Reply-To: <46A05B21.90603@u.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.2.304607, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.7.19.233734 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, __USER_AGENT 0' Cc: Subject: Re: Proposal for another category in INDEX: common_deps 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: Fri, 20 Jul 2007 06:55:28 -0000 Garrett Cooper wrote: > Hello porters, > Currently in the INDEX files there are 13 categories describing > dependencies, 2 of which are: > > 8. build_deps > 9. run_deps > > I just ran a quick analysis with a Perl script and found that there > are a number of similarities in the build_deps and run_deps fields in > the INDEX files -- so many that I think that items common to both > build_deps and run_deps should be isolated and put into a new category > called 'common_deps': > I've posted my results to > , > and I've posted my script at: > . > > Questions and comments are more than welcome. > Thanks, > -Garrett Oh yes, you run field_analyzer.pl like so: #!/bin/sh for i in 5 6 7; do ./field_analyzer.pl < /path/to/INDEX-$i > /path/to/field_analysis-$i.log done This only works with Bourne compatible shells [redirecting input in and out doesn't work for (t)csh] of course. -Garrett