From owner-freebsd-questions@FreeBSD.ORG Mon Apr 30 19:52:36 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2149C16A401 for ; Mon, 30 Apr 2007 19:52:36 +0000 (UTC) (envelope-from jimmiejaz@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.freebsd.org (Postfix) with ESMTP id C2EEE13C455 for ; Mon, 30 Apr 2007 19:52:35 +0000 (UTC) (envelope-from jimmiejaz@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so1455441pyh for ; Mon, 30 Apr 2007 12:52:35 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:content-type:content-transfer-encoding; b=n+jx9JhDZ9SCRUqk5KoCqUtOcmEYpjNuPhUMlySZrP8lShoCrPqAxJlfbmTRBfSUu2Tr7dIqABMd8Px0x0d8f81z5ag6D9S3t1/Q7wMXBnjhX13Ih8rATe+Cwmvx6p28SmOE/fJvpDc7zf1po9gjMCgdpITP6TaftANXT6dvOjE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject:content-type:content-transfer-encoding; b=cU7joZXC8EhVzphS0nIxzC0OsX1t6HY7QXxd/ZuWo+ZBLAE2rB3NsV+P8R+gITtUp1+GUdvdwhEJEuet5iTN8XyZ0qnev1s4Pgm5CkNK7QyltnD2u8uGdsJ60RnraqPHzIt/N0pM+EIin1zOvOg3CpVAzJm1tvsTpQkfMYKIm2Q= Received: by 10.35.36.13 with SMTP id o13mr11889795pyj.1177961286459; Mon, 30 Apr 2007 12:28:06 -0700 (PDT) Received: from fortytwo.zapto.org ( [67.70.97.45]) by mx.google.com with ESMTP id w67sm9277669pyg.2007.04.30.12.28.05; Mon, 30 Apr 2007 12:28:05 -0700 (PDT) Message-ID: <46364346.5070504@gmail.com> Date: Mon, 30 Apr 2007 15:28:06 -0400 From: Jimmie James User-Agent: Thunderbird 2.0.0.0 (X11/20070426) MIME-Version: 1.0 To: modulok@gmail.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re:Port dependency tool (if that's what you'd call it) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jimmiejaz@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2007 19:52:36 -0000 >I'm not quite sure how to put into word what I want, so bear with me. Is >there a tool in the base system which does something along these lines: >1. Look at the makefile of a given port as far as its RUN_DEPENDS and >BUILD_DEPENDS. >2. Subtracting what I have already installed, provide me with information >about what would be fetched (and possibly installed) in an easy-to-digest >format, recursively (for all dependents of dependents ... and so on). >If not part of the base system, is there a port which offers this >functionality? >Thank ye. >-Modulok- Both, make pretty-print-run-depends-list, make pretty-print-build-depends-list can help you out. I don't know of anything in base that does it, but what I've done is use this script (it's not perfect) #!/bin/sh # # Much love Min1ster # for i in `make pretty-print-build-depends-list | awk -F\" '{print $2 }'` do hasit=`pkg_info -E $i` if [ -z $hasit ]; then echo "$i is not installed" else : # (not needed)echo "Everythings there, dude" fi done I have two of them, one with build and one with run deps (called.. checkbuild.sh and checkrun.sh) Hope this helps some. Jimmie