From owner-freebsd-questions@FreeBSD.ORG Thu Feb 16 12:38:09 2012 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 C733C106564A for ; Thu, 16 Feb 2012 12:38:09 +0000 (UTC) (envelope-from nzp@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [204.13.164.18]) by mx1.freebsd.org (Postfix) with ESMTP id A5D908FC15 for ; Thu, 16 Feb 2012 12:38:09 +0000 (UTC) Received: from fruiteater.riseup.net (fruiteater-pn.riseup.net [10.0.1.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Gandi Standard SSL CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 192E9A1083 for ; Thu, 16 Feb 2012 04:38:09 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nzp@fruiteater.riseup.net) with ESMTPSA id E96AB955 Date: Thu, 16 Feb 2012 13:38:04 +0100 From: Nikola =?utf-8?B?UGF2bG92acSH?= To: freebsd-questions@freebsd.org Message-ID: <20120216123804.GB60165@sputnjik.localdomain> Mail-Followup-To: freebsd-questions@freebsd.org References: <20120215165738.75518ea9@cox.net> <20120216024408.GA57917@sputnjik.localdomain> <4F3CB79C.2030704@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4F3CB79C.2030704@infracaninophile.co.uk> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.97.3 at mx1 X-Virus-Status: Clean Subject: Re: [OT] Build deps caching (was: How to prevent gam_server from running?) 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: Thu, 16 Feb 2012 12:38:09 -0000 On Thu, Feb 16, 2012 at 08:00:28AM +0000, Matthew Seaman wrote: > On 16/02/2012 02:44, Nikola Pavlović wrote: > > (Yes some of the stuff in that list can be > > weeded out with pkg_cutleaves but they end coming back as build > > dependencies of other stuff that I do need). > > You know that portmaster(8) has the capability to delete build-only > dependencies? If you create packages of everything you build, the > effect can be that portmaster will just install the build dependency as > required for updates. > I now realize my algorithm for reading man portmaster was all wrong. :) When I started using FreeBSD I decided to not use packages, so I always disregarded all options dealing with them, and never made the connection between delete-build-only and local package caching. > Add this in portmaster.rc to do the deletion of build-only dependencies: > > PM_DEL_BUILD_ONLY=pw_dbo > I assume this is a typo, it should be 'pm_dbo'? > These will keep a cache of any packages you build, and use that cache > preferentially to reinstall anything (which is also really handy if > you've got a bunch of machines that can all share the same cache): > > MAKE_PACKAGE=gopt > PM_PACKAGES=first > LOCAL_PACKAGEDIR=/usr/ports/packages > PM_PACKAGES_LOCAL=pmp_local > Skimming through the man page and getopts part of portmaster I don't see a way to exclude some build-deps from being uninstalled. Am I missing something? I'm not sure ATM, but there could be some of them that are only ever build dependencies but which I want to keep installed for whatever reason. Anyway, thanks a lot for pointing this out, it's a really handy feature! -- There is a 20% chance of tomorrow.