From owner-freebsd-ports@FreeBSD.ORG Tue Nov 17 01:22:46 2009 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 B26FE106566C; Tue, 17 Nov 2009 01:22:46 +0000 (UTC) (envelope-from s.kachelmann@googlemail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 201E38FC13; Tue, 17 Nov 2009 01:22:45 +0000 (UTC) Received: by fxm27 with SMTP id 27so6720103fxm.3 for ; Mon, 16 Nov 2009 17:22:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=AtASvzooDsoCc/o2fvRU4VRICf2k9/X9WH5LgRpRD1Q=; b=AyfdY1dfJrLq4P7u+JxuCsGI1QXyknC+xFDhsj+CmVraw+D1HD4pWm1MSJEF8fkEHs FZv6cEB1fBp9JcciP1y0107AJ2A8z+XvOEyPgkFAGFzCs7PwKjyZ0KqapNQXf04DX98e A7Ql2YlkexJwOvfm4p5A+de0Epwo325sffGkA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=oM3Rce4fIBn5c1GC0VpXGrAesB2Un9DzX0+X6pAvORPI1hW8yd3coof/96QywhmA5g xXNF1JL++qwEUSRfDby98dBfLCIx5urgc4H6sUdVE9SOvQd8VamlUN6kyjBkjNmmvIjK 3nQm4M7K1YsMKLi8h0J1fVjDq06sHxGEFdF+I= MIME-Version: 1.0 Received: by 10.239.145.33 with SMTP id q33mr827220hba.126.1258420964498; Mon, 16 Nov 2009 17:22:44 -0800 (PST) In-Reply-To: <4B01E71F.5050909@FreeBSD.org> References: <91b92520911151444k742351bfl9ae20fb82a604bd5@mail.gmail.com> <20091116000643.GA14996@owl.midgard.homeip.net> <91b92520911160312q62c777absb735c44334328f05@mail.gmail.com> <4B01E71F.5050909@FreeBSD.org> Date: Tue, 17 Nov 2009 02:22:44 +0100 Message-ID: <91b92520911161722n37e74043pd841de5948cc8e80@mail.gmail.com> From: Sandra Kachelmann To: Doug Barton Content-Type: text/plain; charset=ISO-8859-1 Cc: ports@freebsd.org Subject: Re: remove BUILD_DEPENDS automatically after install 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: Tue, 17 Nov 2009 01:22:46 -0000 On Tue, Nov 17, 2009 at 12:58 AM, Doug Barton wrote: > Sandra Kachelmann wrote: >> (portmaster author cc:ed) >> >> On Mon, Nov 16, 2009 at 1:06 AM, Erik Trulsson wrote: >>> On Sun, Nov 15, 2009 at 11:44:04PM +0100, Sandra Kachelmann wrote: >>>> Is there a reason why BUILD_DEPENDS aren't being removed after a port >>>> has been installed and if no other installed port depends on it? >>> How do you know that the user does not want that port installed? >>> And what if the user will install 20 other ports afterwards - all of which >>> is that same port as a BUILD_DEPENDS - should that port be >>> installed/deinstalled each and every time? >> >> It would be nice if this was configurable. Maybe it could be even >> integrated into portupgrade or portmaster. If such a port is installed >> directly it could get a package entry DIRECT_INSTALLED=yes in >> /var/db/pkg/.. or something (there is probably a better way to do >> this). > > I have a new feature in the svn version of portmaster called > --packages-build that for any given run creates an internal list of > dependencies that are only ever listed as build deps (never run deps) > and installs packages for them but builds everything else. This > feature was created at the request of one of companies that sponsored > the package installation code. Currently it does not pkg_delete those > packages when it's done, but I could easily add that. This is exactly what I was looking for. > Actually I suppose it would not be too hard to extend that "list of > build only deps" idea to a general feature which deletes them when > done. Something like --delete-build-only maybe? This would be limited I would find such an option extremely useful. > to the subset of the list of build-only deps that portmaster actually > installed. Just because something is build-only for a given run of > portmaster doesn't mean that it isn't a run dep for something else if > it is already installed. Or if it's already installed before the actual port build it could be considered as "wanted" and therefor not to be deleted after the build. Just out of curiosity, is your svn repository publicly accessible? Thank you so much for the good work. Sandra