From owner-freebsd-ports@FreeBSD.ORG Fri Jan 4 12:43:02 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 942A016A420 for ; Fri, 4 Jan 2008 12:43:02 +0000 (UTC) (envelope-from laszlof@FreeBSD.org) Received: from main.vonostingroup.com (main.vonostingroup.com [216.32.84.70]) by mx1.freebsd.org (Postfix) with ESMTP id 71F0713C4E1 for ; Fri, 4 Jan 2008 12:43:02 +0000 (UTC) (envelope-from laszlof@FreeBSD.org) Received: from [76.97.67.49] (helo=[192.168.0.2]) by main.vonostingroup.com with esmtpa (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JAlt7-000Mx6-He; Fri, 04 Jan 2008 06:43:01 -0600 Message-ID: <477E29D1.9040206@FreeBSD.org> Date: Fri, 04 Jan 2008 07:42:57 -0500 From: "Frank J. Laszlo" User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Aryeh Friedman References: <477DA1F9.9080407@FreeBSD.org> <477DA702.4040106@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - main.vonostingroup.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [26 6] / [26 6] X-AntiAbuse: Sender Address Domain - FreeBSD.org Cc: freebsd-ports@freebsd.org Subject: Re: determining what ports directly depend on X 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, 04 Jan 2008 12:43:02 -0000 Aryeh Friedman wrote: > On 1/3/08, Frank J. Laszlo wrote: > >> Aryeh Friedman wrote: >> >>> On 1/3/08, Frank J. Laszlo wrote: >>> >>> >>>> Aryeh Friedman wrote: >>>> >>>> >>>>> I need to determine which ports depend directly (i.e. they have it >>>>> listed as a B/RDEPS). The specfic task I am working on right now >>>>> (but this will need to be more general later) is attempting to find >>>>> all the direct childern of libtool15 >>>>> >>>>> >>>>> >>>> A quick hack would be >>>> >>>> grep libtool-1.5 /usr/ports/INDEX-6| awk -F"|" {'print $2'} >>>> >>>> >>> Doesn't quite work because it appears index is equiv to "make missing" >>> which includes indirect parents. For example x11-wm/compwiz does not >>> reference libool-1.5 except in a USE= line. >>> >>> >> Most ports should be setup to use "USE_AUTOTOOLS", but obviously there >> are a few strays. >> >> Anything that uses USE_AUTOTOOLS should have LIBTOOL_DEPENDS defined. >> You could check this. to collect the strays, grepping through for >> ^.*DEPENDS=.*libtool15" should pick them up. >> > > Completely useless... it catchs stuff I know for a fact has no direct > dependancy on libtool15... for example I am the author (but not the > maintainer but I helped in the port creation) of devel/thistest and > the *ONLY* direct dependancy it has is java/jdk16 it still lists > libtool-1.5 as a depend in INDEX-8 > Huh? You should be greping the Makefile, not the INDEX. This solution will require a bit of scripting to work properly. Any competent administrator should be able to develop a script that check for these 2 things in about 10 minutes. Regards, Frank Laszlo