From owner-freebsd-questions@FreeBSD.ORG Tue Apr 6 06:27:15 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9EF41065670 for ; Tue, 6 Apr 2010 06:27:15 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 669C08FC0C for ; Tue, 6 Apr 2010 06:27:15 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o366R2LV003986 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 6 Apr 2010 07:27:02 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4BBAD435.2040801@infracaninophile.co.uk> Date: Tue, 06 Apr 2010 07:27:01 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Aiza References: <4BBA8890.9060706@comclark.com> In-Reply-To: <4BBA8890.9060706@comclark.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, SPF_FAIL autolearn=no version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on happy-idiot-talk.infracaninophile.co.uk Cc: FreeBSD Questions Subject: Re: Finding port dependants X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2010 06:27:16 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/04/2010 02:04:16, Aiza wrote: > The ports make file tree is so very large now a days (21491 ports). > Doing portsnap to download the complete ports system just to install 3 > ports is massive over kill. I have been doing package installs because > the resources consumed in disk space (inodes used) and no compile time > is such a time saver. But there are times when ports have no package or > the package is not up to date. What I am looking for is a method to find > the dependents and their dependents of the selected port. Then search > the package system to determine which have no packages. Install all the > packages and cvs only the make files for the ports lacking packages. I > have script to fetch only the make files for the selected port. > > So question is, does the ports index which I can download by it's self > using portsnap contain the info to find all the dependents of a port? In principle, yes, you should be able to use the INDEX to extract only a port and its dependencies rather than downloading the whole ports tree. Remember you will need the *build* dependencies as well. Not to mention everything under /usr/ports/Mk and quite probably everything with a name in CAPS under /usr/ports. However, be aware that you will be confined to using just the /default/ port options: if you try and customize things, you'll change the dependency graph and the standard INDEX won't match any more. On the whole though, most people don't make any more than a cursory attempt to implement something like this. The amount of hassle just isn't worth it. The ports tree is not that huge in the grand scheme of things -- without the distfiles it takes up about half a GB, and about 140,000 files or directories. That's comparable to what some of the larger ports (eg. OpenOffice: 1.9GB and 76,000 files once extracted) use for their sources alone. If you're running out of inodes that suggests you didn't create the file system with the standard 4k per inode ratio. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAku61DUACgkQ8Mjk52CukIwiUACeP9wGoDlfmCa1PPfm6GAVkJpk K+kAn0VSl0kWnYAI4HpvQtqsTvq+9rCV =ME8H -----END PGP SIGNATURE-----